google-ads-googleads 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ChangeLog +7 -0
- data/README.md +6 -6
- data/{googleads_config.rb → google_ads_config.rb} +1 -1
- data/lib/google/ads/{googleads → google_ads}/config.rb +1 -1
- data/lib/google/ads/{googleads → google_ads}/errors.rb +1 -1
- data/lib/google/ads/{googleads → google_ads}/field_mask_util.rb +1 -1
- data/lib/google/ads/{googleads/googleads_client.rb → google_ads/google_ads_client.rb} +31 -24
- data/lib/google/ads/{googleads → google_ads}/patches.rb +0 -0
- data/lib/google/ads/{googleads → google_ads}/path_lookup_util.rb +27 -1
- data/lib/google/ads/{googleads → google_ads}/proto_lookup_util.rb +78 -10
- data/lib/google/ads/{googleads → google_ads}/v0/common/ad_type_infos_pb.rb +5 -2
- data/lib/google/ads/{googleads → google_ads}/v0/common/bidding_pb.rb +6 -3
- data/lib/google/ads/{googleads → google_ads}/v0/common/criteria_pb.rb +29 -12
- data/lib/google/ads/{googleads → google_ads}/v0/common/custom_parameter_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/common/metrics_pb.rb +10 -2
- data/lib/google/ads/{googleads → google_ads}/v0/common/policy_pb.rb +8 -4
- data/lib/google/ads/{googleads → google_ads}/v0/common/value_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/account_budget_proposal_status_pb.rb +31 -0
- data/lib/google/ads/google_ads/v0/enums/account_budget_proposal_type_pb.rb +30 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_group_ad_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_group_criterion_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_group_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_group_type_pb.rb +4 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_network_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_serving_optimization_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/ad_type_pb.rb +3 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/advertising_channel_sub_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/advertising_channel_type_pb.rb +3 -2
- data/lib/google/ads/google_ads/v0/enums/attribution_model_pb.rb +33 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/bid_modifier_source_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/bidding_source_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/bidding_strategy_type_pb.rb +3 -2
- data/lib/google/ads/google_ads/v0/enums/billing_setup_status_pb.rb +30 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/budget_delivery_method_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/budget_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/campaign_group_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/campaign_serving_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/campaign_shared_set_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/campaign_status_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/change_status_operation_pb.rb +29 -0
- data/lib/google/ads/google_ads/v0/enums/conversion_action_category_pb.rb +32 -0
- data/lib/google/ads/google_ads/v0/enums/conversion_action_counting_type_pb.rb +28 -0
- data/lib/google/ads/google_ads/v0/enums/conversion_action_status_pb.rb +29 -0
- data/lib/google/ads/google_ads/v0/enums/conversion_action_type_pb.rb +34 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/criterion_type_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/data_driven_model_status_pb.rb +30 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/day_of_week_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/device_pb.rb +2 -3
- data/lib/google/ads/{googleads → google_ads}/v0/enums/google_ads_field_category_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/google_ads_field_data_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/hotel_date_selection_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/interaction_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/keyword_match_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/listing_custom_attribute_index_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/listing_group_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/minute_of_hour_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/month_of_year_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/page_one_promoted_strategy_goal_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/policy_approval_status_pb.rb +30 -0
- data/lib/google/ads/google_ads/v0/enums/policy_review_status_pb.rb +29 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/policy_topic_entry_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/product_channel_exclusivity_pb.rb +28 -0
- data/lib/google/ads/google_ads/v0/enums/product_channel_pb.rb +28 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/product_condition_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/product_type_level_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/quality_score_bucket_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/recommendation_type_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/resource_type_pb.rb +32 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/shared_set_status_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/shared_set_type_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/enums/slot_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/spending_limit_type_pb.rb +27 -0
- data/lib/google/ads/{googleads → google_ads}/v0/enums/target_cpa_opt_in_recommendation_goal_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/enums/time_type_pb.rb +28 -0
- data/lib/google/ads/google_ads/v0/enums/tracking_code_page_format_pb.rb +27 -0
- data/lib/google/ads/google_ads/v0/enums/tracking_code_type_pb.rb +29 -0
- data/lib/google/ads/google_ads/v0/errors/account_budget_proposal_error_pb.rb +48 -0
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_customizer_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_group_ad_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_group_bid_modifier_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_group_criterion_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_group_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/ad_sharing_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/adx_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/authentication_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/authorization_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/bidding_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/bidding_strategy_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/campaign_budget_error_pb.rb +3 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/campaign_criterion_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/campaign_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/campaign_group_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/campaign_shared_set_error_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/errors/change_status_error_pb.rb +28 -0
- data/lib/google/ads/{googleads → google_ads}/v0/errors/collection_size_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/context_error_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/errors/conversion_action_error_pb.rb +34 -0
- data/lib/google/ads/{googleads → google_ads}/v0/errors/criterion_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/database_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/date_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/date_range_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/distinct_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/enum_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/errors_pb.rb +69 -63
- data/lib/google/ads/{googleads → google_ads}/v0/errors/feed_attribute_reference_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/field_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/field_mask_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/function_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/function_parsing_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/header_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/id_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/image_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/internal_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/list_operation_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/media_bundle_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/media_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/multiplier_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/mutate_error_pb.rb +3 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/new_resource_creation_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/not_empty_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/null_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/operation_access_denied_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/operator_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/policy_finding_error_pb.rb +3 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/query_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/quota_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/range_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/recommendation_error_pb.rb +3 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/region_code_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/request_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/resource_access_denied_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/resource_count_limit_exceeded_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/setting_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/shared_criterion_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/shared_set_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/string_format_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/string_length_error_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/errors/url_field_error_pb.rb +2 -2
- data/lib/google/ads/google_ads/v0/resources/account_budget_pb.rb +22 -0
- data/lib/google/ads/google_ads/v0/resources/account_budget_proposal_pb.rb +49 -0
- data/lib/google/ads/google_ads/v0/resources/ad_group_ad_pb.rb +38 -0
- data/lib/google/ads/{googleads → google_ads}/v0/resources/ad_group_bid_modifier_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/resources/ad_group_criterion_pb.rb +8 -8
- data/lib/google/ads/{googleads → google_ads}/v0/resources/ad_group_pb.rb +5 -5
- data/lib/google/ads/{googleads → google_ads}/v0/resources/ad_pb.rb +9 -5
- data/lib/google/ads/{googleads → google_ads}/v0/resources/bidding_strategy_pb.rb +4 -4
- data/lib/google/ads/google_ads/v0/resources/billing_setup_pb.rb +31 -0
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_bid_modifier_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_budget_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_criterion_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_group_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_pb.rb +11 -10
- data/lib/google/ads/{googleads → google_ads}/v0/resources/campaign_shared_set_pb.rb +3 -3
- data/lib/google/ads/google_ads/v0/resources/change_status_pb.rb +33 -0
- data/lib/google/ads/google_ads/v0/resources/conversion_action_pb.rb +64 -0
- data/lib/google/ads/{googleads → google_ads}/v0/resources/customer_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/resources/geo_target_constant_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/resources/google_ads_field_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/resources/keyword_view_pb.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/v0/resources/recommendation_pb.rb +6 -6
- data/lib/google/ads/{googleads → google_ads}/v0/resources/shared_criterion_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/resources/shared_set_pb.rb +4 -4
- data/lib/google/ads/google_ads/v0/resources/video_pb.rb +27 -0
- data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_client.rb +280 -0
- data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.json +36 -0
- data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_pb.rb +46 -0
- data/lib/google/ads/google_ads/v0/services/account_budget_proposal_service_services_pb.rb +63 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_ad_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_ad_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_ad_service_pb.rb +5 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_ad_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_bid_modifier_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_bid_modifier_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_bid_modifier_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_bid_modifier_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_criterion_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_criterion_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_criterion_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_criterion_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/ad_group_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/bidding_strategy_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/bidding_strategy_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/bidding_strategy_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/bidding_strategy_service_services_pb.rb +4 -4
- data/lib/google/ads/google_ads/v0/services/billing_setup_service_client.rb +276 -0
- data/lib/google/ads/google_ads/v0/services/billing_setup_service_client_config.json +36 -0
- data/lib/google/ads/google_ads/v0/services/billing_setup_service_pb.rb +43 -0
- data/lib/google/ads/google_ads/v0/services/billing_setup_service_services_pb.rb +59 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_bid_modifier_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_bid_modifier_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_bid_modifier_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_bid_modifier_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_budget_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_budget_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_budget_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_budget_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_criterion_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_criterion_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_criterion_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_criterion_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_group_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_group_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_group_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_group_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_shared_set_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_shared_set_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_shared_set_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/campaign_shared_set_service_services_pb.rb +4 -4
- data/lib/google/ads/google_ads/v0/services/change_status_service_client.rb +221 -0
- data/lib/google/ads/google_ads/v0/services/change_status_service_client_config.json +31 -0
- data/lib/google/ads/google_ads/v0/services/change_status_service_pb.rb +24 -0
- data/lib/google/ads/google_ads/v0/services/change_status_service_services_pb.rb +48 -0
- data/lib/google/ads/google_ads/v0/services/conversion_action_service_client.rb +268 -0
- data/lib/google/ads/google_ads/v0/services/conversion_action_service_client_config.json +36 -0
- data/lib/google/ads/google_ads/v0/services/conversion_action_service_pb.rb +47 -0
- data/lib/google/ads/google_ads/v0/services/conversion_action_service_services_pb.rb +51 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/credentials.rb +5 -5
- data/lib/google/ads/{googleads → google_ads}/v0/services/customer_service_client.rb +15 -15
- data/lib/google/ads/{googleads → google_ads}/v0/services/customer_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/customer_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/customer_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_client.rb +15 -15
- data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_client.rb +21 -21
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_service_client.rb +15 -15
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_service_pb.rb +35 -25
- data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_service_services_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/keyword_view_service_client.rb +15 -15
- data/lib/google/ads/{googleads → google_ads}/v0/services/keyword_view_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/keyword_view_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/keyword_view_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/recommendation_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/recommendation_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/recommendation_service_pb.rb +5 -5
- data/lib/google/ads/{googleads → google_ads}/v0/services/recommendation_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_criterion_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_criterion_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_criterion_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_criterion_service_services_pb.rb +4 -4
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_set_service_client.rb +22 -22
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_set_service_client_config.json +0 -0
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_set_service_pb.rb +3 -3
- data/lib/google/ads/{googleads → google_ads}/v0/services/shared_set_service_services_pb.rb +4 -4
- data/lib/google/ads/google_ads/v0/services/video_service_client.rb +221 -0
- data/lib/google/ads/google_ads/v0/services/video_service_client_config.json +31 -0
- data/lib/google/ads/google_ads/v0/services/video_service_pb.rb +24 -0
- data/lib/google/ads/google_ads/v0/services/video_service_services_pb.rb +48 -0
- data/lib/google/ads/{googleads → google_ads}/version.rb +2 -2
- data/lib/google/ads/{googleads → google_ads}/wrapper_util.rb +1 -1
- data/lib/google/ads/{googleads.rb → google_ads.rb} +2 -2
- metadata +266 -267
- data/lib/google/ads/googleads/v0/resources/ad_group_ad_pb.rb +0 -28
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/ad_type_infos.rb +0 -120
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/bidding.rb +0 -176
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/criteria.rb +0 -225
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/custom_parameter.rb +0 -33
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/metrics.rb +0 -208
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad.rb +0 -79
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group.rb +0 -87
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_ad.rb +0 -43
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_bid_modifier.rb +0 -70
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_criterion.rb +0 -148
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/bidding_strategy.rb +0 -73
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign.rb +0 -223
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_bid_modifier.rb +0 -46
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_budget.rb +0 -88
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_criterion.rb +0 -66
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_group.rb +0 -49
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_shared_set.rb +0 -47
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/customer.rb +0 -57
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/geo_target_constant.rb +0 -44
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/google_ads_field.rb +0 -89
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/keyword_view.rb +0 -32
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/recommendation.rb +0 -223
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_criterion.rb +0 -46
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_set.rb +0 -56
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_ad_service.rb +0 -68
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_bid_modifier_service.rb +0 -71
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_criterion_service.rb +0 -69
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_service.rb +0 -68
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/bidding_strategy_service.rb +0 -70
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_bid_modifier_service.rb +0 -71
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_budget_service.rb +0 -69
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_criterion_service.rb +0 -69
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_group_service.rb +0 -70
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_service.rb +0 -69
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_shared_set_service.rb +0 -64
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/customer_service.rb +0 -29
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/geo_target_constant_service.rb +0 -29
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_field_service.rb +0 -59
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_service.rb +0 -156
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/keyword_view_service.rb +0 -29
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/recommendation_service.rb +0 -112
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_criterion_service.rb +0 -64
- data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_set_service.rb +0 -69
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/any.rb +0 -124
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/field_mask.rb +0 -223
- data/lib/google/ads/googleads/v0/services/doc/google/protobuf/wrappers.rb +0 -89
- data/lib/google/ads/googleads/v0/services/doc/google/rpc/status.rb +0 -83
- data/lib/google/ads/googleads/v0/services/doc/overview.rb +0 -82
- data/lib/google/ads/googleads/v0/services.rb +0 -1163
@@ -1,223 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module Google
|
16
|
-
module Protobuf
|
17
|
-
# +FieldMask+ represents a set of symbolic field paths, for example:
|
18
|
-
#
|
19
|
-
# paths: "f.a"
|
20
|
-
# paths: "f.b.d"
|
21
|
-
#
|
22
|
-
# Here +f+ represents a field in some root message, +a+ and +b+
|
23
|
-
# fields in the message found in +f+, and +d+ a field found in the
|
24
|
-
# message in +f.b+.
|
25
|
-
#
|
26
|
-
# Field masks are used to specify a subset of fields that should be
|
27
|
-
# returned by a get operation or modified by an update operation.
|
28
|
-
# Field masks also have a custom JSON encoding (see below).
|
29
|
-
#
|
30
|
-
# = Field Masks in Projections
|
31
|
-
#
|
32
|
-
# When used in the context of a projection, a response message or
|
33
|
-
# sub-message is filtered by the API to only contain those fields as
|
34
|
-
# specified in the mask. For example, if the mask in the previous
|
35
|
-
# example is applied to a response message as follows:
|
36
|
-
#
|
37
|
-
# f {
|
38
|
-
# a : 22
|
39
|
-
# b {
|
40
|
-
# d : 1
|
41
|
-
# x : 2
|
42
|
-
# }
|
43
|
-
# y : 13
|
44
|
-
# }
|
45
|
-
# z: 8
|
46
|
-
#
|
47
|
-
# The result will not contain specific values for fields x,y and z
|
48
|
-
# (their value will be set to the default, and omitted in proto text
|
49
|
-
# output):
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# f {
|
53
|
-
# a : 22
|
54
|
-
# b {
|
55
|
-
# d : 1
|
56
|
-
# }
|
57
|
-
# }
|
58
|
-
#
|
59
|
-
# A repeated field is not allowed except at the last position of a
|
60
|
-
# paths string.
|
61
|
-
#
|
62
|
-
# If a FieldMask object is not present in a get operation, the
|
63
|
-
# operation applies to all fields (as if a FieldMask of all fields
|
64
|
-
# had been specified).
|
65
|
-
#
|
66
|
-
# Note that a field mask does not necessarily apply to the
|
67
|
-
# top-level response message. In case of a REST get operation, the
|
68
|
-
# field mask applies directly to the response, but in case of a REST
|
69
|
-
# list operation, the mask instead applies to each individual message
|
70
|
-
# in the returned resource list. In case of a REST custom method,
|
71
|
-
# other definitions may be used. Where the mask applies will be
|
72
|
-
# clearly documented together with its declaration in the API. In
|
73
|
-
# any case, the effect on the returned resource/resources is required
|
74
|
-
# behavior for APIs.
|
75
|
-
#
|
76
|
-
# = Field Masks in Update Operations
|
77
|
-
#
|
78
|
-
# A field mask in update operations specifies which fields of the
|
79
|
-
# targeted resource are going to be updated. The API is required
|
80
|
-
# to only change the values of the fields as specified in the mask
|
81
|
-
# and leave the others untouched. If a resource is passed in to
|
82
|
-
# describe the updated values, the API ignores the values of all
|
83
|
-
# fields not covered by the mask.
|
84
|
-
#
|
85
|
-
# If a repeated field is specified for an update operation, the existing
|
86
|
-
# repeated values in the target resource will be overwritten by the new values.
|
87
|
-
# Note that a repeated field is only allowed in the last position of a +paths+
|
88
|
-
# string.
|
89
|
-
#
|
90
|
-
# If a sub-message is specified in the last position of the field mask for an
|
91
|
-
# update operation, then the existing sub-message in the target resource is
|
92
|
-
# overwritten. Given the target message:
|
93
|
-
#
|
94
|
-
# f {
|
95
|
-
# b {
|
96
|
-
# d : 1
|
97
|
-
# x : 2
|
98
|
-
# }
|
99
|
-
# c : 1
|
100
|
-
# }
|
101
|
-
#
|
102
|
-
# And an update message:
|
103
|
-
#
|
104
|
-
# f {
|
105
|
-
# b {
|
106
|
-
# d : 10
|
107
|
-
# }
|
108
|
-
# }
|
109
|
-
#
|
110
|
-
# then if the field mask is:
|
111
|
-
#
|
112
|
-
# paths: "f.b"
|
113
|
-
#
|
114
|
-
# then the result will be:
|
115
|
-
#
|
116
|
-
# f {
|
117
|
-
# b {
|
118
|
-
# d : 10
|
119
|
-
# }
|
120
|
-
# c : 1
|
121
|
-
# }
|
122
|
-
#
|
123
|
-
# However, if the update mask was:
|
124
|
-
#
|
125
|
-
# paths: "f.b.d"
|
126
|
-
#
|
127
|
-
# then the result would be:
|
128
|
-
#
|
129
|
-
# f {
|
130
|
-
# b {
|
131
|
-
# d : 10
|
132
|
-
# x : 2
|
133
|
-
# }
|
134
|
-
# c : 1
|
135
|
-
# }
|
136
|
-
#
|
137
|
-
# In order to reset a field's value to the default, the field must
|
138
|
-
# be in the mask and set to the default value in the provided resource.
|
139
|
-
# Hence, in order to reset all fields of a resource, provide a default
|
140
|
-
# instance of the resource and set all fields in the mask, or do
|
141
|
-
# not provide a mask as described below.
|
142
|
-
#
|
143
|
-
# If a field mask is not present on update, the operation applies to
|
144
|
-
# all fields (as if a field mask of all fields has been specified).
|
145
|
-
# Note that in the presence of schema evolution, this may mean that
|
146
|
-
# fields the client does not know and has therefore not filled into
|
147
|
-
# the request will be reset to their default. If this is unwanted
|
148
|
-
# behavior, a specific service may require a client to always specify
|
149
|
-
# a field mask, producing an error if not.
|
150
|
-
#
|
151
|
-
# As with get operations, the location of the resource which
|
152
|
-
# describes the updated values in the request message depends on the
|
153
|
-
# operation kind. In any case, the effect of the field mask is
|
154
|
-
# required to be honored by the API.
|
155
|
-
#
|
156
|
-
# == Considerations for HTTP REST
|
157
|
-
#
|
158
|
-
# The HTTP kind of an update operation which uses a field mask must
|
159
|
-
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
160
|
-
# (PUT must only be used for full updates).
|
161
|
-
#
|
162
|
-
# = JSON Encoding of Field Masks
|
163
|
-
#
|
164
|
-
# In JSON, a field mask is encoded as a single string where paths are
|
165
|
-
# separated by a comma. Fields name in each path are converted
|
166
|
-
# to/from lower-camel naming conventions.
|
167
|
-
#
|
168
|
-
# As an example, consider the following message declarations:
|
169
|
-
#
|
170
|
-
# message Profile {
|
171
|
-
# User user = 1;
|
172
|
-
# Photo photo = 2;
|
173
|
-
# }
|
174
|
-
# message User {
|
175
|
-
# string display_name = 1;
|
176
|
-
# string address = 2;
|
177
|
-
# }
|
178
|
-
#
|
179
|
-
# In proto a field mask for +Profile+ may look as such:
|
180
|
-
#
|
181
|
-
# mask {
|
182
|
-
# paths: "user.display_name"
|
183
|
-
# paths: "photo"
|
184
|
-
# }
|
185
|
-
#
|
186
|
-
# In JSON, the same mask is represented as below:
|
187
|
-
#
|
188
|
-
# {
|
189
|
-
# mask: "user.displayName,photo"
|
190
|
-
# }
|
191
|
-
#
|
192
|
-
# = Field Masks and Oneof Fields
|
193
|
-
#
|
194
|
-
# Field masks treat fields in oneofs just as regular fields. Consider the
|
195
|
-
# following message:
|
196
|
-
#
|
197
|
-
# message SampleMessage {
|
198
|
-
# oneof test_oneof {
|
199
|
-
# string name = 4;
|
200
|
-
# SubMessage sub_message = 9;
|
201
|
-
# }
|
202
|
-
# }
|
203
|
-
#
|
204
|
-
# The field mask can be:
|
205
|
-
#
|
206
|
-
# mask {
|
207
|
-
# paths: "name"
|
208
|
-
# }
|
209
|
-
#
|
210
|
-
# Or:
|
211
|
-
#
|
212
|
-
# mask {
|
213
|
-
# paths: "sub_message"
|
214
|
-
# }
|
215
|
-
#
|
216
|
-
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
|
-
# paths.
|
218
|
-
# @!attribute [rw] paths
|
219
|
-
# @return [Array<String>]
|
220
|
-
# The set of field mask paths.
|
221
|
-
class FieldMask; end
|
222
|
-
end
|
223
|
-
end
|
@@ -1,89 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module Google
|
16
|
-
module Protobuf
|
17
|
-
# Wrapper message for +double+.
|
18
|
-
#
|
19
|
-
# The JSON representation for +DoubleValue+ is JSON number.
|
20
|
-
# @!attribute [rw] value
|
21
|
-
# @return [Float]
|
22
|
-
# The double value.
|
23
|
-
class DoubleValue; end
|
24
|
-
|
25
|
-
# Wrapper message for +float+.
|
26
|
-
#
|
27
|
-
# The JSON representation for +FloatValue+ is JSON number.
|
28
|
-
# @!attribute [rw] value
|
29
|
-
# @return [Float]
|
30
|
-
# The float value.
|
31
|
-
class FloatValue; end
|
32
|
-
|
33
|
-
# Wrapper message for +int64+.
|
34
|
-
#
|
35
|
-
# The JSON representation for +Int64Value+ is JSON string.
|
36
|
-
# @!attribute [rw] value
|
37
|
-
# @return [Integer]
|
38
|
-
# The int64 value.
|
39
|
-
class Int64Value; end
|
40
|
-
|
41
|
-
# Wrapper message for +uint64+.
|
42
|
-
#
|
43
|
-
# The JSON representation for +UInt64Value+ is JSON string.
|
44
|
-
# @!attribute [rw] value
|
45
|
-
# @return [Integer]
|
46
|
-
# The uint64 value.
|
47
|
-
class UInt64Value; end
|
48
|
-
|
49
|
-
# Wrapper message for +int32+.
|
50
|
-
#
|
51
|
-
# The JSON representation for +Int32Value+ is JSON number.
|
52
|
-
# @!attribute [rw] value
|
53
|
-
# @return [Integer]
|
54
|
-
# The int32 value.
|
55
|
-
class Int32Value; end
|
56
|
-
|
57
|
-
# Wrapper message for +uint32+.
|
58
|
-
#
|
59
|
-
# The JSON representation for +UInt32Value+ is JSON number.
|
60
|
-
# @!attribute [rw] value
|
61
|
-
# @return [Integer]
|
62
|
-
# The uint32 value.
|
63
|
-
class UInt32Value; end
|
64
|
-
|
65
|
-
# Wrapper message for +bool+.
|
66
|
-
#
|
67
|
-
# The JSON representation for +BoolValue+ is JSON +true+ and +false+.
|
68
|
-
# @!attribute [rw] value
|
69
|
-
# @return [true, false]
|
70
|
-
# The bool value.
|
71
|
-
class BoolValue; end
|
72
|
-
|
73
|
-
# Wrapper message for +string+.
|
74
|
-
#
|
75
|
-
# The JSON representation for +StringValue+ is JSON string.
|
76
|
-
# @!attribute [rw] value
|
77
|
-
# @return [String]
|
78
|
-
# The string value.
|
79
|
-
class StringValue; end
|
80
|
-
|
81
|
-
# Wrapper message for +bytes+.
|
82
|
-
#
|
83
|
-
# The JSON representation for +BytesValue+ is JSON string.
|
84
|
-
# @!attribute [rw] value
|
85
|
-
# @return [String]
|
86
|
-
# The bytes value.
|
87
|
-
class BytesValue; end
|
88
|
-
end
|
89
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module Google
|
16
|
-
module Rpc
|
17
|
-
# The +Status+ type defines a logical error model that is suitable for different
|
18
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
19
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
20
|
-
#
|
21
|
-
# * Simple to use and understand for most users
|
22
|
-
# * Flexible enough to meet unexpected needs
|
23
|
-
#
|
24
|
-
# = Overview
|
25
|
-
#
|
26
|
-
# The +Status+ message contains three pieces of data: error code, error message,
|
27
|
-
# and error details. The error code should be an enum value of
|
28
|
-
# {Google::Rpc::Code}, but it may accept additional error codes if needed. The
|
29
|
-
# error message should be a developer-facing English message that helps
|
30
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
31
|
-
# error message is needed, put the localized message in the error details or
|
32
|
-
# localize it in the client. The optional error details may contain arbitrary
|
33
|
-
# information about the error. There is a predefined set of error detail types
|
34
|
-
# in the package +google.rpc+ that can be used for common error conditions.
|
35
|
-
#
|
36
|
-
# = Language mapping
|
37
|
-
#
|
38
|
-
# The +Status+ message is the logical representation of the error model, but it
|
39
|
-
# is not necessarily the actual wire format. When the +Status+ message is
|
40
|
-
# exposed in different client libraries and different wire protocols, it can be
|
41
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
42
|
-
# in Java, but more likely mapped to some error codes in C.
|
43
|
-
#
|
44
|
-
# = Other uses
|
45
|
-
#
|
46
|
-
# The error model and the +Status+ message can be used in a variety of
|
47
|
-
# environments, either with or without APIs, to provide a
|
48
|
-
# consistent developer experience across different environments.
|
49
|
-
#
|
50
|
-
# Example uses of this error model include:
|
51
|
-
#
|
52
|
-
# * Partial errors. If a service needs to return partial errors to the client,
|
53
|
-
# it may embed the +Status+ in the normal response to indicate the partial
|
54
|
-
# errors.
|
55
|
-
#
|
56
|
-
# * Workflow errors. A typical workflow has multiple steps. Each step may
|
57
|
-
# have a +Status+ message for error reporting.
|
58
|
-
#
|
59
|
-
# * Batch operations. If a client uses batch request and batch response, the
|
60
|
-
# +Status+ message should be used directly inside batch response, one for
|
61
|
-
# each error sub-response.
|
62
|
-
#
|
63
|
-
# * Asynchronous operations. If an API call embeds asynchronous operation
|
64
|
-
# results in its response, the status of those operations should be
|
65
|
-
# represented directly using the +Status+ message.
|
66
|
-
#
|
67
|
-
# * Logging. If some API errors are stored in logs, the message +Status+ could
|
68
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
69
|
-
# @!attribute [rw] code
|
70
|
-
# @return [Integer]
|
71
|
-
# The status code, which should be an enum value of {Google::Rpc::Code}.
|
72
|
-
# @!attribute [rw] message
|
73
|
-
# @return [String]
|
74
|
-
# A developer-facing error message, which should be in English. Any
|
75
|
-
# user-facing error message should be localized and sent in the
|
76
|
-
# {Google::Rpc::Status#details} field, or localized by the client.
|
77
|
-
# @!attribute [rw] details
|
78
|
-
# @return [Array<Google::Protobuf::Any>]
|
79
|
-
# A list of messages that carry the error details. There is a common set of
|
80
|
-
# message types for APIs to use.
|
81
|
-
class Status; end
|
82
|
-
end
|
83
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module Google
|
16
|
-
module Ads
|
17
|
-
# rubocop:disable LineLength
|
18
|
-
|
19
|
-
##
|
20
|
-
# # Ruby Client for Google Ads API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
21
|
-
#
|
22
|
-
# [Google Ads API][Product Documentation]:
|
23
|
-
# Manage your AdWords accounts, campaigns, and reports with this REST-based
|
24
|
-
# API.
|
25
|
-
# - [Product Documentation][]
|
26
|
-
#
|
27
|
-
# ## Quick Start
|
28
|
-
# In order to use this library, you first need to go through the following
|
29
|
-
# steps:
|
30
|
-
#
|
31
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
32
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
33
|
-
# 3. [Enable the Google Ads API.](https://console.cloud.google.com/apis/library/googleads.googleapis.com)
|
34
|
-
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
35
|
-
#
|
36
|
-
# ### Installation
|
37
|
-
# ```
|
38
|
-
# $ gem install google-ads-googleads
|
39
|
-
# ```
|
40
|
-
#
|
41
|
-
# ### Next Steps
|
42
|
-
# - Read the [Google Ads API Product documentation][Product Documentation]
|
43
|
-
# to learn more about the product and see How-to Guides.
|
44
|
-
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
45
|
-
# to see the full list of Cloud APIs that we cover.
|
46
|
-
#
|
47
|
-
# [Product Documentation]: https://cloud.google.com/googleads
|
48
|
-
#
|
49
|
-
# ## Enabling Logging
|
50
|
-
#
|
51
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
52
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
53
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
54
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
55
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
56
|
-
#
|
57
|
-
# Configuring a Ruby stdlib logger:
|
58
|
-
#
|
59
|
-
# ```ruby
|
60
|
-
# require "logger"
|
61
|
-
#
|
62
|
-
# module MyLogger
|
63
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
64
|
-
# def logger
|
65
|
-
# LOGGER
|
66
|
-
# end
|
67
|
-
# end
|
68
|
-
#
|
69
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
70
|
-
# module GRPC
|
71
|
-
# extend MyLogger
|
72
|
-
# end
|
73
|
-
# ```
|
74
|
-
#
|
75
|
-
module Googleads
|
76
|
-
module V0
|
77
|
-
module Services
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|