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,16 +1,16 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/campaign.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
7
|
-
require 'google/ads/
|
8
|
-
require 'google/ads/
|
9
|
-
require 'google/ads/
|
10
|
-
require 'google/ads/
|
11
|
-
require 'google/ads/
|
12
|
-
require 'google/ads/
|
13
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/common/bidding_pb'
|
7
|
+
require 'google/ads/google_ads/v0/common/custom_parameter_pb'
|
8
|
+
require 'google/ads/google_ads/v0/enums/ad_serving_optimization_status_pb'
|
9
|
+
require 'google/ads/google_ads/v0/enums/advertising_channel_sub_type_pb'
|
10
|
+
require 'google/ads/google_ads/v0/enums/advertising_channel_type_pb'
|
11
|
+
require 'google/ads/google_ads/v0/enums/bidding_strategy_type_pb'
|
12
|
+
require 'google/ads/google_ads/v0/enums/campaign_serving_status_pb'
|
13
|
+
require 'google/ads/google_ads/v0/enums/campaign_status_pb'
|
14
14
|
require 'google/protobuf/wrappers_pb'
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_message "google.ads.googleads.v0.resources.Campaign" do
|
@@ -37,6 +37,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
37
37
|
optional :bidding_strategy, :message, 23, "google.protobuf.StringValue"
|
38
38
|
optional :manual_cpc, :message, 24, "google.ads.googleads.v0.common.ManualCpc"
|
39
39
|
optional :manual_cpm, :message, 25, "google.ads.googleads.v0.common.ManualCpm"
|
40
|
+
optional :manual_cpv, :message, 37, "google.ads.googleads.v0.common.ManualCpv"
|
40
41
|
optional :maximize_conversions, :message, 30, "google.ads.googleads.v0.common.MaximizeConversions"
|
41
42
|
optional :maximize_conversion_value, :message, 31, "google.ads.googleads.v0.common.MaximizeConversionValue"
|
42
43
|
optional :target_cpa, :message, 26, "google.ads.googleads.v0.common.TargetCpa"
|
@@ -70,7 +71,7 @@ end
|
|
70
71
|
|
71
72
|
module Google
|
72
73
|
module Ads
|
73
|
-
module
|
74
|
+
module GoogleAds
|
74
75
|
module V0
|
75
76
|
module Resources
|
76
77
|
Campaign = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign").msgclass
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/campaign_shared_set.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/enums/campaign_shared_set_status_pb'
|
7
7
|
require 'google/protobuf/wrappers_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_message "google.ads.googleads.v0.resources.CampaignSharedSet" do
|
@@ -16,7 +16,7 @@ end
|
|
16
16
|
|
17
17
|
module Google
|
18
18
|
module Ads
|
19
|
-
module
|
19
|
+
module GoogleAds
|
20
20
|
module V0
|
21
21
|
module Resources
|
22
22
|
CampaignSharedSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.CampaignSharedSet").msgclass
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/ads/google_ads/v0/resources/change_status.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/ads/google_ads/v0/enums/change_status_operation_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/resource_type_pb'
|
8
|
+
require 'google/protobuf/wrappers_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.ads.googleads.v0.resources.ChangeStatus" do
|
11
|
+
optional :resource_name, :string, 1
|
12
|
+
optional :last_change_date_time, :message, 3, "google.protobuf.StringValue"
|
13
|
+
optional :resource_type, :enum, 4, "google.ads.googleads.v0.enums.ResourceTypeEnum.ResourceType"
|
14
|
+
optional :campaign, :message, 5, "google.protobuf.StringValue"
|
15
|
+
optional :ad_group, :message, 6, "google.protobuf.StringValue"
|
16
|
+
optional :resource_status, :enum, 8, "google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation"
|
17
|
+
optional :ad_group_ad, :message, 9, "google.protobuf.StringValue"
|
18
|
+
optional :ad_group_criterion, :message, 10, "google.protobuf.StringValue"
|
19
|
+
optional :campaign_criterion, :message, 11, "google.protobuf.StringValue"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Ads
|
25
|
+
module GoogleAds
|
26
|
+
module V0
|
27
|
+
module Resources
|
28
|
+
ChangeStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.ChangeStatus").msgclass
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/ads/google_ads/v0/resources/conversion_action.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/ads/google_ads/v0/enums/attribution_model_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/conversion_action_category_pb'
|
8
|
+
require 'google/ads/google_ads/v0/enums/conversion_action_counting_type_pb'
|
9
|
+
require 'google/ads/google_ads/v0/enums/conversion_action_status_pb'
|
10
|
+
require 'google/ads/google_ads/v0/enums/conversion_action_type_pb'
|
11
|
+
require 'google/ads/google_ads/v0/enums/data_driven_model_status_pb'
|
12
|
+
require 'google/ads/google_ads/v0/enums/tracking_code_page_format_pb'
|
13
|
+
require 'google/ads/google_ads/v0/enums/tracking_code_type_pb'
|
14
|
+
require 'google/protobuf/wrappers_pb'
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_message "google.ads.googleads.v0.resources.ConversionAction" do
|
17
|
+
optional :resource_name, :string, 1
|
18
|
+
optional :id, :message, 2, "google.protobuf.Int64Value"
|
19
|
+
optional :name, :message, 3, "google.protobuf.StringValue"
|
20
|
+
optional :status, :enum, 4, "google.ads.googleads.v0.enums.ConversionActionStatusEnum.ConversionActionStatus"
|
21
|
+
optional :type, :enum, 5, "google.ads.googleads.v0.enums.ConversionActionTypeEnum.ConversionActionType"
|
22
|
+
optional :category, :enum, 6, "google.ads.googleads.v0.enums.ConversionActionCategoryEnum.ConversionActionCategory"
|
23
|
+
optional :owner_customer, :message, 7, "google.protobuf.StringValue"
|
24
|
+
optional :include_in_conversions_metric, :message, 8, "google.protobuf.BoolValue"
|
25
|
+
optional :click_through_lookback_window_days, :message, 9, "google.protobuf.Int64Value"
|
26
|
+
optional :view_through_lookback_window_days, :message, 10, "google.protobuf.Int64Value"
|
27
|
+
optional :value_settings, :message, 11, "google.ads.googleads.v0.resources.ConversionAction.ValueSettings"
|
28
|
+
optional :counting_type, :enum, 12, "google.ads.googleads.v0.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType"
|
29
|
+
optional :attribution_model_settings, :message, 13, "google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings"
|
30
|
+
repeated :tag_snippets, :message, 14, "google.ads.googleads.v0.resources.ConversionAction.TagSnippet"
|
31
|
+
optional :phone_call_duration_seconds, :message, 15, "google.protobuf.Int64Value"
|
32
|
+
optional :app_id, :message, 16, "google.protobuf.StringValue"
|
33
|
+
end
|
34
|
+
add_message "google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings" do
|
35
|
+
optional :attribution_model, :enum, 1, "google.ads.googleads.v0.enums.AttributionModelEnum.AttributionModel"
|
36
|
+
optional :data_driven_model_status, :enum, 2, "google.ads.googleads.v0.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus"
|
37
|
+
end
|
38
|
+
add_message "google.ads.googleads.v0.resources.ConversionAction.TagSnippet" do
|
39
|
+
optional :type, :enum, 1, "google.ads.googleads.v0.enums.TrackingCodeTypeEnum.TrackingCodeType"
|
40
|
+
optional :page_format, :enum, 2, "google.ads.googleads.v0.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat"
|
41
|
+
optional :global_site_tag, :message, 3, "google.protobuf.StringValue"
|
42
|
+
optional :event_snippet, :message, 4, "google.protobuf.StringValue"
|
43
|
+
end
|
44
|
+
add_message "google.ads.googleads.v0.resources.ConversionAction.ValueSettings" do
|
45
|
+
optional :default_value, :message, 1, "google.protobuf.DoubleValue"
|
46
|
+
optional :default_currency_code, :message, 2, "google.protobuf.StringValue"
|
47
|
+
optional :always_use_default_value, :message, 3, "google.protobuf.BoolValue"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module Google
|
52
|
+
module Ads
|
53
|
+
module GoogleAds
|
54
|
+
module V0
|
55
|
+
module Resources
|
56
|
+
ConversionAction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.ConversionAction").msgclass
|
57
|
+
ConversionAction::AttributionModelSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings").msgclass
|
58
|
+
ConversionAction::TagSnippet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.ConversionAction.TagSnippet").msgclass
|
59
|
+
ConversionAction::ValueSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.ConversionAction.ValueSettings").msgclass
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/customer.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
@@ -19,7 +19,7 @@ end
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Ads
|
22
|
-
module
|
22
|
+
module GoogleAds
|
23
23
|
module V0
|
24
24
|
module Resources
|
25
25
|
Customer = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Customer").msgclass
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/geo_target_constant.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
@@ -16,7 +16,7 @@ end
|
|
16
16
|
|
17
17
|
module Google
|
18
18
|
module Ads
|
19
|
-
module
|
19
|
+
module GoogleAds
|
20
20
|
module V0
|
21
21
|
module Resources
|
22
22
|
GeoTargetConstant = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.GeoTargetConstant").msgclass
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/google_ads_field.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
7
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/enums/google_ads_field_category_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/google_ads_field_data_type_pb'
|
8
8
|
require 'google/protobuf/wrappers_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.ads.googleads.v0.resources.GoogleAdsField" do
|
@@ -27,7 +27,7 @@ end
|
|
27
27
|
|
28
28
|
module Google
|
29
29
|
module Ads
|
30
|
-
module
|
30
|
+
module GoogleAds
|
31
31
|
module V0
|
32
32
|
module Resources
|
33
33
|
GoogleAdsField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.GoogleAdsField").msgclass
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/keyword_view.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
module Google
|
13
13
|
module Ads
|
14
|
-
module
|
14
|
+
module GoogleAds
|
15
15
|
module V0
|
16
16
|
module Resources
|
17
17
|
KeywordView = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.KeywordView").msgclass
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/recommendation.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
7
|
-
require 'google/ads/
|
8
|
-
require 'google/ads/
|
9
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/common/criteria_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/recommendation_type_pb'
|
8
|
+
require 'google/ads/google_ads/v0/enums/target_cpa_opt_in_recommendation_goal_pb'
|
9
|
+
require 'google/ads/google_ads/v0/resources/ad_pb'
|
10
10
|
require 'google/protobuf/wrappers_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.ads.googleads.v0.resources.Recommendation" do
|
@@ -84,7 +84,7 @@ end
|
|
84
84
|
|
85
85
|
module Google
|
86
86
|
module Ads
|
87
|
-
module
|
87
|
+
module GoogleAds
|
88
88
|
module V0
|
89
89
|
module Resources
|
90
90
|
Recommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation").msgclass
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/shared_criterion.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
7
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/common/criteria_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/criterion_type_pb'
|
8
8
|
require 'google/protobuf/wrappers_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.ads.googleads.v0.resources.SharedCriterion" do
|
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
module Google
|
22
22
|
module Ads
|
23
|
-
module
|
23
|
+
module GoogleAds
|
24
24
|
module V0
|
25
25
|
module Resources
|
26
26
|
SharedCriterion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.SharedCriterion").msgclass
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/ads/
|
2
|
+
# source: google/ads/google_ads/v0/resources/shared_set.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
7
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/enums/shared_set_status_pb'
|
7
|
+
require 'google/ads/google_ads/v0/enums/shared_set_type_pb'
|
8
8
|
require 'google/protobuf/wrappers_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.ads.googleads.v0.resources.SharedSet" do
|
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
module Google
|
22
22
|
module Ads
|
23
|
-
module
|
23
|
+
module GoogleAds
|
24
24
|
module V0
|
25
25
|
module Resources
|
26
26
|
SharedSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.SharedSet").msgclass
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/ads/google_ads/v0/resources/video.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/wrappers_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.ads.googleads.v0.resources.Video" do
|
9
|
+
optional :resource_name, :string, 1
|
10
|
+
optional :id, :message, 2, "google.protobuf.StringValue"
|
11
|
+
optional :channel_id, :message, 3, "google.protobuf.StringValue"
|
12
|
+
optional :duration_millis, :message, 4, "google.protobuf.Int64Value"
|
13
|
+
optional :title, :message, 5, "google.protobuf.StringValue"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Ads
|
19
|
+
module GoogleAds
|
20
|
+
module V0
|
21
|
+
module Resources
|
22
|
+
Video = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Video").msgclass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,280 @@
|
|
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
|
+
# EDITING INSTRUCTIONS
|
16
|
+
# This file was generated from the file
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v0/services/account_budget_proposal_service.proto,
|
18
|
+
# and updates to that file get reflected here through a refresh process.
|
19
|
+
# For the short term, the refresh process will only be runnable by Google
|
20
|
+
# engineers.
|
21
|
+
|
22
|
+
require "json"
|
23
|
+
require "pathname"
|
24
|
+
|
25
|
+
require "google/gax"
|
26
|
+
|
27
|
+
require "google/ads/google_ads/v0/services/account_budget_proposal_service_pb"
|
28
|
+
require "google/ads/google_ads/v0/services/credentials"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Ads
|
32
|
+
module GoogleAds
|
33
|
+
module V0
|
34
|
+
module Services
|
35
|
+
# A service for managing account-level budgets via proposals.
|
36
|
+
#
|
37
|
+
# A proposal is a request to create a new budget or make changes to an
|
38
|
+
# existing one.
|
39
|
+
#
|
40
|
+
# Reads for account-level budgets managed by these proposals will be
|
41
|
+
# supported in a future version. Please use BudgetOrderService until then:
|
42
|
+
# https://developers.google.com/adwords/api/docs/guides/budget-order
|
43
|
+
#
|
44
|
+
# Mutates:
|
45
|
+
# The CREATE operation creates a new proposal.
|
46
|
+
# UPDATE operations aren't supported.
|
47
|
+
# The REMOVE operation cancels a pending proposal.
|
48
|
+
#
|
49
|
+
# @!attribute [r] account_budget_proposal_service_stub
|
50
|
+
# @return [Google::Ads::GoogleAds::V0::Services::AccountBudgetProposalService::Stub]
|
51
|
+
class AccountBudgetProposalServiceClient
|
52
|
+
attr_reader :account_budget_proposal_service_stub
|
53
|
+
|
54
|
+
# The default address of the service.
|
55
|
+
SERVICE_ADDRESS = "googleads.googleapis.com".freeze
|
56
|
+
|
57
|
+
# The default port of the service.
|
58
|
+
DEFAULT_SERVICE_PORT = 443
|
59
|
+
|
60
|
+
# The default set of gRPC interceptors.
|
61
|
+
GRPC_INTERCEPTORS = []
|
62
|
+
|
63
|
+
DEFAULT_TIMEOUT = 30
|
64
|
+
|
65
|
+
# The scopes needed to make gRPC calls to all of the methods defined in
|
66
|
+
# this service.
|
67
|
+
ALL_SCOPES = [
|
68
|
+
].freeze
|
69
|
+
|
70
|
+
|
71
|
+
ACCOUNT_BUDGET_PROPOSAL_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
72
|
+
"customers/{customer}/accountBudgetProposals/{account_budget_proposal}"
|
73
|
+
)
|
74
|
+
|
75
|
+
private_constant :ACCOUNT_BUDGET_PROPOSAL_PATH_TEMPLATE
|
76
|
+
|
77
|
+
# Returns a fully-qualified account_budget_proposal resource name string.
|
78
|
+
# @param customer [String]
|
79
|
+
# @param account_budget_proposal [String]
|
80
|
+
# @return [String]
|
81
|
+
def self.account_budget_proposal_path customer, account_budget_proposal
|
82
|
+
ACCOUNT_BUDGET_PROPOSAL_PATH_TEMPLATE.render(
|
83
|
+
:"customer" => customer,
|
84
|
+
:"account_budget_proposal" => account_budget_proposal
|
85
|
+
)
|
86
|
+
end
|
87
|
+
|
88
|
+
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
89
|
+
# Provides the means for authenticating requests made by the client. This parameter can
|
90
|
+
# be many types.
|
91
|
+
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
92
|
+
# authenticating requests made by this client.
|
93
|
+
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
94
|
+
# credentials for this client.
|
95
|
+
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
96
|
+
# credentials for this client.
|
97
|
+
# A `GRPC::Core::Channel` will be used to make calls through.
|
98
|
+
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
99
|
+
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
100
|
+
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
101
|
+
# metadata for requests, generally, to give OAuth credentials.
|
102
|
+
# @param scopes [Array<String>]
|
103
|
+
# The OAuth scopes for this service. This parameter is ignored if
|
104
|
+
# an updater_proc is supplied.
|
105
|
+
# @param client_config [Hash]
|
106
|
+
# A Hash for call options for each method. See
|
107
|
+
# Google::Gax#construct_settings for the structure of
|
108
|
+
# this data. Falls back to the default config if not specified
|
109
|
+
# or the specified config is missing data points.
|
110
|
+
# @param timeout [Numeric]
|
111
|
+
# The default timeout, in seconds, for calls made through this client.
|
112
|
+
# @param metadata [Hash]
|
113
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
114
|
+
# @param exception_transformer [Proc]
|
115
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
116
|
+
# custom error handling.
|
117
|
+
def initialize \
|
118
|
+
credentials: nil,
|
119
|
+
scopes: ALL_SCOPES,
|
120
|
+
client_config: {},
|
121
|
+
timeout: DEFAULT_TIMEOUT,
|
122
|
+
metadata: nil,
|
123
|
+
exception_transformer: nil,
|
124
|
+
lib_name: nil,
|
125
|
+
lib_version: ""
|
126
|
+
# These require statements are intentionally placed here to initialize
|
127
|
+
# the gRPC module only when it's required.
|
128
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
129
|
+
require "google/gax/grpc"
|
130
|
+
require "google/ads/google_ads/v0/services/account_budget_proposal_service_services_pb"
|
131
|
+
|
132
|
+
credentials ||= Google::Ads::GoogleAds::V0::Services::Credentials.default
|
133
|
+
|
134
|
+
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
|
+
updater_proc = Google::Ads::GoogleAds::V0::Services::Credentials.new(credentials).updater_proc
|
136
|
+
end
|
137
|
+
if credentials.is_a?(GRPC::Core::Channel)
|
138
|
+
channel = credentials
|
139
|
+
end
|
140
|
+
if credentials.is_a?(GRPC::Core::ChannelCredentials)
|
141
|
+
chan_creds = credentials
|
142
|
+
end
|
143
|
+
if credentials.is_a?(Proc)
|
144
|
+
updater_proc = credentials
|
145
|
+
end
|
146
|
+
if credentials.is_a?(Google::Auth::Credentials)
|
147
|
+
updater_proc = credentials.updater_proc
|
148
|
+
end
|
149
|
+
|
150
|
+
package_version = Gem.loaded_specs['google-ads-googleads'].version.version
|
151
|
+
|
152
|
+
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
153
|
+
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
154
|
+
google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
|
155
|
+
google_api_client << " grpc/#{GRPC::VERSION}"
|
156
|
+
google_api_client.freeze
|
157
|
+
|
158
|
+
headers = { :"x-goog-api-client" => google_api_client }
|
159
|
+
headers.merge!(metadata) unless metadata.nil?
|
160
|
+
client_config_file = Pathname.new(__dir__).join(
|
161
|
+
"account_budget_proposal_service_client_config.json"
|
162
|
+
)
|
163
|
+
defaults = client_config_file.open do |f|
|
164
|
+
Google::Gax.construct_settings(
|
165
|
+
"google.ads.googleads.v0.services.AccountBudgetProposalService",
|
166
|
+
JSON.parse(f.read),
|
167
|
+
client_config,
|
168
|
+
Google::Gax::Grpc::STATUS_CODE_NAMES,
|
169
|
+
timeout,
|
170
|
+
errors: Google::Gax::Grpc::API_ERRORS,
|
171
|
+
metadata: headers
|
172
|
+
)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Allow overriding the service path/port in subclasses.
|
176
|
+
service_path = self.class::SERVICE_ADDRESS
|
177
|
+
port = self.class::DEFAULT_SERVICE_PORT
|
178
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
179
|
+
@account_budget_proposal_service_stub = Google::Gax::Grpc.create_stub(
|
180
|
+
service_path,
|
181
|
+
port,
|
182
|
+
chan_creds: chan_creds,
|
183
|
+
channel: channel,
|
184
|
+
updater_proc: updater_proc,
|
185
|
+
scopes: scopes,
|
186
|
+
interceptors: interceptors,
|
187
|
+
&Google::Ads::GoogleAds::V0::Services::AccountBudgetProposalService::Stub.method(:new)
|
188
|
+
)
|
189
|
+
|
190
|
+
@get_account_budget_proposal = Google::Gax.create_api_call(
|
191
|
+
@account_budget_proposal_service_stub.method(:get_account_budget_proposal),
|
192
|
+
defaults["get_account_budget_proposal"],
|
193
|
+
exception_transformer: exception_transformer
|
194
|
+
)
|
195
|
+
@mutate_account_budget_proposal = Google::Gax.create_api_call(
|
196
|
+
@account_budget_proposal_service_stub.method(:mutate_account_budget_proposal),
|
197
|
+
defaults["mutate_account_budget_proposal"],
|
198
|
+
exception_transformer: exception_transformer
|
199
|
+
)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Service calls
|
203
|
+
|
204
|
+
# Returns an account-level budget proposal in full detail.
|
205
|
+
#
|
206
|
+
# @param resource_name [String]
|
207
|
+
# The resource name of the account-level budget proposal to fetch.
|
208
|
+
# @param options [Google::Gax::CallOptions]
|
209
|
+
# Overrides the default settings for this call, e.g, timeout,
|
210
|
+
# retries, etc.
|
211
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
212
|
+
# @yieldparam result [Google::Ads::GoogleAds::V0::Resources::AccountBudgetProposal]
|
213
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
214
|
+
# @return [Google::Ads::GoogleAds::V0::Resources::AccountBudgetProposal]
|
215
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
216
|
+
# @example
|
217
|
+
# require "google/ads/google_ads"
|
218
|
+
#
|
219
|
+
# account_budget_proposal_service_client = Google::Ads::GoogleAds::AccountBudgetProposal.new(version: :v0)
|
220
|
+
# formatted_resource_name = Google::Ads::GoogleAds::V0::Services::AccountBudgetProposalServiceClient.account_budget_proposal_path("[CUSTOMER]", "[ACCOUNT_BUDGET_PROPOSAL]")
|
221
|
+
# response = account_budget_proposal_service_client.get_account_budget_proposal(formatted_resource_name)
|
222
|
+
|
223
|
+
def get_account_budget_proposal \
|
224
|
+
resource_name,
|
225
|
+
options: nil,
|
226
|
+
&block
|
227
|
+
req = {
|
228
|
+
resource_name: resource_name
|
229
|
+
}.delete_if { |_, v| v.nil? }
|
230
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::GetAccountBudgetProposalRequest)
|
231
|
+
@get_account_budget_proposal.call(req, options, &block)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Creates, updates, or removes account budget proposals. Operation statuses
|
235
|
+
# are returned.
|
236
|
+
#
|
237
|
+
# @param customer_id [String]
|
238
|
+
# The ID of the customer.
|
239
|
+
# @param operation [Google::Ads::GoogleAds::V0::Services::AccountBudgetProposalOperation | Hash]
|
240
|
+
# The operation to perform on an individual account-level budget proposal.
|
241
|
+
# A hash of the same form as `Google::Ads::GoogleAds::V0::Services::AccountBudgetProposalOperation`
|
242
|
+
# can also be provided.
|
243
|
+
# @param options [Google::Gax::CallOptions]
|
244
|
+
# Overrides the default settings for this call, e.g, timeout,
|
245
|
+
# retries, etc.
|
246
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
247
|
+
# @yieldparam result [Google::Ads::GoogleAds::V0::Services::MutateAccountBudgetProposalResponse]
|
248
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
249
|
+
# @return [Google::Ads::GoogleAds::V0::Services::MutateAccountBudgetProposalResponse]
|
250
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
251
|
+
# @example
|
252
|
+
# require "google/ads/google_ads"
|
253
|
+
#
|
254
|
+
# account_budget_proposal_service_client = Google::Ads::GoogleAds::AccountBudgetProposal.new(version: :v0)
|
255
|
+
#
|
256
|
+
# # TODO: Initialize +customer_id+:
|
257
|
+
# customer_id = ''
|
258
|
+
#
|
259
|
+
# # TODO: Initialize +operation+:
|
260
|
+
# operation = {}
|
261
|
+
# response = account_budget_proposal_service_client.mutate_account_budget_proposal(customer_id, operation)
|
262
|
+
|
263
|
+
def mutate_account_budget_proposal \
|
264
|
+
customer_id,
|
265
|
+
operation,
|
266
|
+
options: nil,
|
267
|
+
&block
|
268
|
+
req = {
|
269
|
+
customer_id: customer_id,
|
270
|
+
operation: operation
|
271
|
+
}.delete_if { |_, v| v.nil? }
|
272
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::MutateAccountBudgetProposalRequest)
|
273
|
+
@mutate_account_budget_proposal.call(req, options, &block)
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.ads.googleads.v0.services.AccountBudgetProposalService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
|
+
},
|
11
|
+
"retry_params": {
|
12
|
+
"default": {
|
13
|
+
"initial_retry_delay_millis": 100,
|
14
|
+
"retry_delay_multiplier": 1.3,
|
15
|
+
"max_retry_delay_millis": 60000,
|
16
|
+
"initial_rpc_timeout_millis": 20000,
|
17
|
+
"rpc_timeout_multiplier": 1.0,
|
18
|
+
"max_rpc_timeout_millis": 20000,
|
19
|
+
"total_timeout_millis": 600000
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"methods": {
|
23
|
+
"GetAccountBudgetProposal": {
|
24
|
+
"timeout_millis": 60000,
|
25
|
+
"retry_codes_name": "idempotent",
|
26
|
+
"retry_params_name": "default"
|
27
|
+
},
|
28
|
+
"MutateAccountBudgetProposal": {
|
29
|
+
"timeout_millis": 60000,
|
30
|
+
"retry_codes_name": "non_idempotent",
|
31
|
+
"retry_params_name": "default"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|