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
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/ads/google_ads/v0/services/conversion_action_service.proto for package 'google.ads.googleads.v0.services'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2018 Google LLC.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
#
|
19
|
+
|
20
|
+
require 'grpc'
|
21
|
+
require 'google/ads/google_ads/v0/services/conversion_action_service_pb'
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Ads
|
25
|
+
module GoogleAds
|
26
|
+
module V0
|
27
|
+
module Services
|
28
|
+
module ConversionActionService
|
29
|
+
# Service to manage conversion actions.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.ads.googleads.v0.services.ConversionActionService'
|
37
|
+
|
38
|
+
# Returns the requested conversion action.
|
39
|
+
rpc :GetConversionAction, GetConversionActionRequest, Google::Ads::GoogleAds::V0::Resources::ConversionAction
|
40
|
+
# Creates, updates or removes conversion actions. Operation statuses are
|
41
|
+
# returned.
|
42
|
+
rpc :MutateConversionActions, MutateConversionActionsRequest, MutateConversionActionsResponse
|
43
|
+
end
|
44
|
+
|
45
|
+
Stub = Service.rpc_stub_class
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -16,19 +16,19 @@ require "googleauth"
|
|
16
16
|
|
17
17
|
module Google
|
18
18
|
module Ads
|
19
|
-
module
|
19
|
+
module GoogleAds
|
20
20
|
module V0
|
21
21
|
module Services
|
22
22
|
class Credentials < Google::Auth::Credentials
|
23
23
|
SCOPE = [
|
24
24
|
].freeze
|
25
|
-
PATH_ENV_VARS = %w(
|
26
|
-
|
25
|
+
PATH_ENV_VARS = %w(GOOGLEADS_KEYFILE
|
26
|
+
GOOGLEADS_CREDENTIALS
|
27
27
|
GOOGLE_CLOUD_CREDENTIALS
|
28
28
|
GOOGLE_CLOUD_KEYFILE
|
29
29
|
GCLOUD_KEYFILE)
|
30
|
-
JSON_ENV_VARS = %w(
|
31
|
-
|
30
|
+
JSON_ENV_VARS = %w(GOOGLEADS_KEYFILE_JSON
|
31
|
+
GOOGLEADS_CREDENTIALS_JSON
|
32
32
|
GOOGLE_CLOUD_CREDENTIALS_JSON
|
33
33
|
GOOGLE_CLOUD_KEYFILE_JSON
|
34
34
|
GCLOUD_KEYFILE_JSON)
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
# EDITING INSTRUCTIONS
|
16
16
|
# This file was generated from the file
|
17
|
-
# https://github.com/googleapis/googleapis/blob/master/google/ads/
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v0/services/customer_service.proto,
|
18
18
|
# and updates to that file get reflected here through a refresh process.
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
@@ -24,18 +24,18 @@ require "pathname"
|
|
24
24
|
|
25
25
|
require "google/gax"
|
26
26
|
|
27
|
-
require "google/ads/
|
28
|
-
require "google/ads/
|
27
|
+
require "google/ads/google_ads/v0/services/customer_service_pb"
|
28
|
+
require "google/ads/google_ads/v0/services/credentials"
|
29
29
|
|
30
30
|
module Google
|
31
31
|
module Ads
|
32
|
-
module
|
32
|
+
module GoogleAds
|
33
33
|
module V0
|
34
34
|
module Services
|
35
35
|
# Service to manage customers.
|
36
36
|
#
|
37
37
|
# @!attribute [r] customer_service_stub
|
38
|
-
# @return [Google::Ads::
|
38
|
+
# @return [Google::Ads::GoogleAds::V0::Services::CustomerService::Stub]
|
39
39
|
class CustomerServiceClient
|
40
40
|
attr_reader :customer_service_stub
|
41
41
|
|
@@ -113,12 +113,12 @@ module Google
|
|
113
113
|
# the gRPC module only when it's required.
|
114
114
|
# See https://github.com/googleapis/toolkit/issues/446
|
115
115
|
require "google/gax/grpc"
|
116
|
-
require "google/ads/
|
116
|
+
require "google/ads/google_ads/v0/services/customer_service_services_pb"
|
117
117
|
|
118
|
-
credentials ||= Google::Ads::
|
118
|
+
credentials ||= Google::Ads::GoogleAds::V0::Services::Credentials.default
|
119
119
|
|
120
120
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
121
|
-
updater_proc = Google::Ads::
|
121
|
+
updater_proc = Google::Ads::GoogleAds::V0::Services::Credentials.new(credentials).updater_proc
|
122
122
|
end
|
123
123
|
if credentials.is_a?(GRPC::Core::Channel)
|
124
124
|
channel = credentials
|
@@ -170,7 +170,7 @@ module Google
|
|
170
170
|
updater_proc: updater_proc,
|
171
171
|
scopes: scopes,
|
172
172
|
interceptors: interceptors,
|
173
|
-
&Google::Ads::
|
173
|
+
&Google::Ads::GoogleAds::V0::Services::CustomerService::Stub.method(:new)
|
174
174
|
)
|
175
175
|
|
176
176
|
@get_customer = Google::Gax.create_api_call(
|
@@ -190,15 +190,15 @@ module Google
|
|
190
190
|
# Overrides the default settings for this call, e.g, timeout,
|
191
191
|
# retries, etc.
|
192
192
|
# @yield [result, operation] Access the result along with the RPC operation
|
193
|
-
# @yieldparam result [Google::Ads::
|
193
|
+
# @yieldparam result [Google::Ads::GoogleAds::V0::Resources::Customer]
|
194
194
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
195
|
-
# @return [Google::Ads::
|
195
|
+
# @return [Google::Ads::GoogleAds::V0::Resources::Customer]
|
196
196
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
197
197
|
# @example
|
198
|
-
# require "google/ads/
|
198
|
+
# require "google/ads/google_ads"
|
199
199
|
#
|
200
|
-
# customer_service_client = Google::Ads::
|
201
|
-
# formatted_resource_name = Google::Ads::
|
200
|
+
# customer_service_client = Google::Ads::GoogleAds::Customer.new(version: :v0)
|
201
|
+
# formatted_resource_name = Google::Ads::GoogleAds::V0::Services::CustomerServiceClient.customer_path("[CUSTOMER]")
|
202
202
|
# response = customer_service_client.get_customer(formatted_resource_name)
|
203
203
|
|
204
204
|
def get_customer \
|
@@ -208,7 +208,7 @@ module Google
|
|
208
208
|
req = {
|
209
209
|
resource_name: resource_name
|
210
210
|
}.delete_if { |_, v| v.nil? }
|
211
|
-
req = Google::Gax::to_proto(req, Google::Ads::
|
211
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::GetCustomerRequest)
|
212
212
|
@get_customer.call(req, options, &block)
|
213
213
|
end
|
214
214
|
end
|
data/lib/google/ads/{googleads → google_ads}/v0/services/customer_service_client_config.json
RENAMED
File without changes
|
@@ -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/services/customer_service.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/resources/customer_pb'
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_message "google.ads.googleads.v0.services.GetCustomerRequest" do
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
module Google
|
15
15
|
module Ads
|
16
|
-
module
|
16
|
+
module GoogleAds
|
17
17
|
module V0
|
18
18
|
module Services
|
19
19
|
GetCustomerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.GetCustomerRequest").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/services/customer_service.proto for package 'google.ads.googleads.v0.services'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2018 Google LLC.
|
5
5
|
#
|
@@ -18,11 +18,11 @@
|
|
18
18
|
#
|
19
19
|
|
20
20
|
require 'grpc'
|
21
|
-
require 'google/ads/
|
21
|
+
require 'google/ads/google_ads/v0/services/customer_service_pb'
|
22
22
|
|
23
23
|
module Google
|
24
24
|
module Ads
|
25
|
-
module
|
25
|
+
module GoogleAds
|
26
26
|
module V0
|
27
27
|
module Services
|
28
28
|
module CustomerService
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
self.service_name = 'google.ads.googleads.v0.services.CustomerService'
|
37
37
|
|
38
38
|
# Returns the requested customer in full detail.
|
39
|
-
rpc :GetCustomer, GetCustomerRequest, Google::Ads::
|
39
|
+
rpc :GetCustomer, GetCustomerRequest, Google::Ads::GoogleAds::V0::Resources::Customer
|
40
40
|
end
|
41
41
|
|
42
42
|
Stub = Service.rpc_stub_class
|
data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_client.rb
RENAMED
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
# EDITING INSTRUCTIONS
|
16
16
|
# This file was generated from the file
|
17
|
-
# https://github.com/googleapis/googleapis/blob/master/google/ads/
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v0/services/geo_target_constant_service.proto,
|
18
18
|
# and updates to that file get reflected here through a refresh process.
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
@@ -24,18 +24,18 @@ require "pathname"
|
|
24
24
|
|
25
25
|
require "google/gax"
|
26
26
|
|
27
|
-
require "google/ads/
|
28
|
-
require "google/ads/
|
27
|
+
require "google/ads/google_ads/v0/services/geo_target_constant_service_pb"
|
28
|
+
require "google/ads/google_ads/v0/services/credentials"
|
29
29
|
|
30
30
|
module Google
|
31
31
|
module Ads
|
32
|
-
module
|
32
|
+
module GoogleAds
|
33
33
|
module V0
|
34
34
|
module Services
|
35
35
|
# Service to fetch geo target constants.
|
36
36
|
#
|
37
37
|
# @!attribute [r] geo_target_constant_service_stub
|
38
|
-
# @return [Google::Ads::
|
38
|
+
# @return [Google::Ads::GoogleAds::V0::Services::GeoTargetConstantService::Stub]
|
39
39
|
class GeoTargetConstantServiceClient
|
40
40
|
attr_reader :geo_target_constant_service_stub
|
41
41
|
|
@@ -113,12 +113,12 @@ module Google
|
|
113
113
|
# the gRPC module only when it's required.
|
114
114
|
# See https://github.com/googleapis/toolkit/issues/446
|
115
115
|
require "google/gax/grpc"
|
116
|
-
require "google/ads/
|
116
|
+
require "google/ads/google_ads/v0/services/geo_target_constant_service_services_pb"
|
117
117
|
|
118
|
-
credentials ||= Google::Ads::
|
118
|
+
credentials ||= Google::Ads::GoogleAds::V0::Services::Credentials.default
|
119
119
|
|
120
120
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
121
|
-
updater_proc = Google::Ads::
|
121
|
+
updater_proc = Google::Ads::GoogleAds::V0::Services::Credentials.new(credentials).updater_proc
|
122
122
|
end
|
123
123
|
if credentials.is_a?(GRPC::Core::Channel)
|
124
124
|
channel = credentials
|
@@ -170,7 +170,7 @@ module Google
|
|
170
170
|
updater_proc: updater_proc,
|
171
171
|
scopes: scopes,
|
172
172
|
interceptors: interceptors,
|
173
|
-
&Google::Ads::
|
173
|
+
&Google::Ads::GoogleAds::V0::Services::GeoTargetConstantService::Stub.method(:new)
|
174
174
|
)
|
175
175
|
|
176
176
|
@get_geo_target_constant = Google::Gax.create_api_call(
|
@@ -190,15 +190,15 @@ module Google
|
|
190
190
|
# Overrides the default settings for this call, e.g, timeout,
|
191
191
|
# retries, etc.
|
192
192
|
# @yield [result, operation] Access the result along with the RPC operation
|
193
|
-
# @yieldparam result [Google::Ads::
|
193
|
+
# @yieldparam result [Google::Ads::GoogleAds::V0::Resources::GeoTargetConstant]
|
194
194
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
195
|
-
# @return [Google::Ads::
|
195
|
+
# @return [Google::Ads::GoogleAds::V0::Resources::GeoTargetConstant]
|
196
196
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
197
197
|
# @example
|
198
|
-
# require "google/ads/
|
198
|
+
# require "google/ads/google_ads"
|
199
199
|
#
|
200
|
-
# geo_target_constant_service_client = Google::Ads::
|
201
|
-
# formatted_resource_name = Google::Ads::
|
200
|
+
# geo_target_constant_service_client = Google::Ads::GoogleAds::GeoTargetConstant.new(version: :v0)
|
201
|
+
# formatted_resource_name = Google::Ads::GoogleAds::V0::Services::GeoTargetConstantServiceClient.geo_target_constant_path("[GEO_TARGET_CONSTANT]")
|
202
202
|
# response = geo_target_constant_service_client.get_geo_target_constant(formatted_resource_name)
|
203
203
|
|
204
204
|
def get_geo_target_constant \
|
@@ -208,7 +208,7 @@ module Google
|
|
208
208
|
req = {
|
209
209
|
resource_name: resource_name
|
210
210
|
}.delete_if { |_, v| v.nil? }
|
211
|
-
req = Google::Gax::to_proto(req, Google::Ads::
|
211
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::GetGeoTargetConstantRequest)
|
212
212
|
@get_geo_target_constant.call(req, options, &block)
|
213
213
|
end
|
214
214
|
end
|
File without changes
|
@@ -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/services/geo_target_constant_service.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/resources/geo_target_constant_pb'
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_message "google.ads.googleads.v0.services.GetGeoTargetConstantRequest" do
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
module Google
|
15
15
|
module Ads
|
16
|
-
module
|
16
|
+
module GoogleAds
|
17
17
|
module V0
|
18
18
|
module Services
|
19
19
|
GetGeoTargetConstantRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.GetGeoTargetConstantRequest").msgclass
|
data/lib/google/ads/{googleads → google_ads}/v0/services/geo_target_constant_service_services_pb.rb
RENAMED
@@ -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/services/geo_target_constant_service.proto for package 'google.ads.googleads.v0.services'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2018 Google LLC.
|
5
5
|
#
|
@@ -18,11 +18,11 @@
|
|
18
18
|
#
|
19
19
|
|
20
20
|
require 'grpc'
|
21
|
-
require 'google/ads/
|
21
|
+
require 'google/ads/google_ads/v0/services/geo_target_constant_service_pb'
|
22
22
|
|
23
23
|
module Google
|
24
24
|
module Ads
|
25
|
-
module
|
25
|
+
module GoogleAds
|
26
26
|
module V0
|
27
27
|
module Services
|
28
28
|
module GeoTargetConstantService
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
self.service_name = 'google.ads.googleads.v0.services.GeoTargetConstantService'
|
37
37
|
|
38
38
|
# Returns the requested geo target constant in full detail.
|
39
|
-
rpc :GetGeoTargetConstant, GetGeoTargetConstantRequest, Google::Ads::
|
39
|
+
rpc :GetGeoTargetConstant, GetGeoTargetConstantRequest, Google::Ads::GoogleAds::V0::Resources::GeoTargetConstant
|
40
40
|
end
|
41
41
|
|
42
42
|
Stub = Service.rpc_stub_class
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
# EDITING INSTRUCTIONS
|
16
16
|
# This file was generated from the file
|
17
|
-
# https://github.com/googleapis/googleapis/blob/master/google/ads/
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v0/services/google_ads_field_service.proto,
|
18
18
|
# and updates to that file get reflected here through a refresh process.
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
@@ -24,18 +24,18 @@ require "pathname"
|
|
24
24
|
|
25
25
|
require "google/gax"
|
26
26
|
|
27
|
-
require "google/ads/
|
28
|
-
require "google/ads/
|
27
|
+
require "google/ads/google_ads/v0/services/google_ads_field_service_pb"
|
28
|
+
require "google/ads/google_ads/v0/services/credentials"
|
29
29
|
|
30
30
|
module Google
|
31
31
|
module Ads
|
32
|
-
module
|
32
|
+
module GoogleAds
|
33
33
|
module V0
|
34
34
|
module Services
|
35
35
|
# Service to fetch Google Ads API fields.
|
36
36
|
#
|
37
37
|
# @!attribute [r] google_ads_field_service_stub
|
38
|
-
# @return [Google::Ads::
|
38
|
+
# @return [Google::Ads::GoogleAds::V0::Services::GoogleAdsFieldService::Stub]
|
39
39
|
class GoogleAdsFieldServiceClient
|
40
40
|
attr_reader :google_ads_field_service_stub
|
41
41
|
|
@@ -122,12 +122,12 @@ module Google
|
|
122
122
|
# the gRPC module only when it's required.
|
123
123
|
# See https://github.com/googleapis/toolkit/issues/446
|
124
124
|
require "google/gax/grpc"
|
125
|
-
require "google/ads/
|
125
|
+
require "google/ads/google_ads/v0/services/google_ads_field_service_services_pb"
|
126
126
|
|
127
|
-
credentials ||= Google::Ads::
|
127
|
+
credentials ||= Google::Ads::GoogleAds::V0::Services::Credentials.default
|
128
128
|
|
129
129
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
130
|
-
updater_proc = Google::Ads::
|
130
|
+
updater_proc = Google::Ads::GoogleAds::V0::Services::Credentials.new(credentials).updater_proc
|
131
131
|
end
|
132
132
|
if credentials.is_a?(GRPC::Core::Channel)
|
133
133
|
channel = credentials
|
@@ -180,7 +180,7 @@ module Google
|
|
180
180
|
updater_proc: updater_proc,
|
181
181
|
scopes: scopes,
|
182
182
|
interceptors: interceptors,
|
183
|
-
&Google::Ads::
|
183
|
+
&Google::Ads::GoogleAds::V0::Services::GoogleAdsFieldService::Stub.method(:new)
|
184
184
|
)
|
185
185
|
|
186
186
|
@get_google_ads_field = Google::Gax.create_api_call(
|
@@ -205,15 +205,15 @@ module Google
|
|
205
205
|
# Overrides the default settings for this call, e.g, timeout,
|
206
206
|
# retries, etc.
|
207
207
|
# @yield [result, operation] Access the result along with the RPC operation
|
208
|
-
# @yieldparam result [Google::Ads::
|
208
|
+
# @yieldparam result [Google::Ads::GoogleAds::V0::Resources::GoogleAdsField]
|
209
209
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
210
|
-
# @return [Google::Ads::
|
210
|
+
# @return [Google::Ads::GoogleAds::V0::Resources::GoogleAdsField]
|
211
211
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
212
212
|
# @example
|
213
|
-
# require "google/ads/
|
213
|
+
# require "google/ads/google_ads"
|
214
214
|
#
|
215
|
-
# google_ads_field_service_client = Google::Ads::
|
216
|
-
# formatted_resource_name = Google::Ads::
|
215
|
+
# google_ads_field_service_client = Google::Ads::GoogleAds::GoogleAdsField.new(version: :v0)
|
216
|
+
# formatted_resource_name = Google::Ads::GoogleAds::V0::Services::GoogleAdsFieldServiceClient.google_ads_field_path("[GOOGLE_ADS_FIELD]")
|
217
217
|
# response = google_ads_field_service_client.get_google_ads_field(formatted_resource_name)
|
218
218
|
|
219
219
|
def get_google_ads_field \
|
@@ -223,7 +223,7 @@ module Google
|
|
223
223
|
req = {
|
224
224
|
resource_name: resource_name
|
225
225
|
}.delete_if { |_, v| v.nil? }
|
226
|
-
req = Google::Gax::to_proto(req, Google::Ads::
|
226
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::GetGoogleAdsFieldRequest)
|
227
227
|
@get_google_ads_field.call(req, options, &block)
|
228
228
|
end
|
229
229
|
|
@@ -241,18 +241,18 @@ module Google
|
|
241
241
|
# Overrides the default settings for this call, e.g, timeout,
|
242
242
|
# retries, etc.
|
243
243
|
# @yield [result, operation] Access the result along with the RPC operation
|
244
|
-
# @yieldparam result [Google::Gax::PagedEnumerable<Google::Ads::
|
244
|
+
# @yieldparam result [Google::Gax::PagedEnumerable<Google::Ads::GoogleAds::V0::Resources::GoogleAdsField>]
|
245
245
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
246
|
-
# @return [Google::Gax::PagedEnumerable<Google::Ads::
|
247
|
-
# An enumerable of Google::Ads::
|
246
|
+
# @return [Google::Gax::PagedEnumerable<Google::Ads::GoogleAds::V0::Resources::GoogleAdsField>]
|
247
|
+
# An enumerable of Google::Ads::GoogleAds::V0::Resources::GoogleAdsField instances.
|
248
248
|
# See Google::Gax::PagedEnumerable documentation for other
|
249
249
|
# operations such as per-page iteration or access to the response
|
250
250
|
# object.
|
251
251
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
252
252
|
# @example
|
253
|
-
# require "google/ads/
|
253
|
+
# require "google/ads/google_ads"
|
254
254
|
#
|
255
|
-
# google_ads_field_service_client = Google::Ads::
|
255
|
+
# google_ads_field_service_client = Google::Ads::GoogleAds::GoogleAdsField.new(version: :v0)
|
256
256
|
#
|
257
257
|
# # TODO: Initialize +query+:
|
258
258
|
# query = ''
|
@@ -279,7 +279,7 @@ module Google
|
|
279
279
|
query: query,
|
280
280
|
page_size: page_size
|
281
281
|
}.delete_if { |_, v| v.nil? }
|
282
|
-
req = Google::Gax::to_proto(req, Google::Ads::
|
282
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::SearchGoogleAdsFieldsRequest)
|
283
283
|
@search_google_ads_fields.call(req, options, &block)
|
284
284
|
end
|
285
285
|
end
|
data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_client_config.json
RENAMED
File without changes
|
@@ -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/services/google_ads_field_service.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/resources/google_ads_field_pb'
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_message "google.ads.googleads.v0.services.GetGoogleAdsFieldRequest" do
|
@@ -23,7 +23,7 @@ end
|
|
23
23
|
|
24
24
|
module Google
|
25
25
|
module Ads
|
26
|
-
module
|
26
|
+
module GoogleAds
|
27
27
|
module V0
|
28
28
|
module Services
|
29
29
|
GetGoogleAdsFieldRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.GetGoogleAdsFieldRequest").msgclass
|
data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_field_service_services_pb.rb
RENAMED
@@ -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/services/google_ads_field_service.proto for package 'google.ads.googleads.v0.services'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2018 Google LLC.
|
5
5
|
#
|
@@ -18,11 +18,11 @@
|
|
18
18
|
#
|
19
19
|
|
20
20
|
require 'grpc'
|
21
|
-
require 'google/ads/
|
21
|
+
require 'google/ads/google_ads/v0/services/google_ads_field_service_pb'
|
22
22
|
|
23
23
|
module Google
|
24
24
|
module Ads
|
25
|
-
module
|
25
|
+
module GoogleAds
|
26
26
|
module V0
|
27
27
|
module Services
|
28
28
|
module GoogleAdsFieldService
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
self.service_name = 'google.ads.googleads.v0.services.GoogleAdsFieldService'
|
37
37
|
|
38
38
|
# Returns just the requested field.
|
39
|
-
rpc :GetGoogleAdsField, GetGoogleAdsFieldRequest, Google::Ads::
|
39
|
+
rpc :GetGoogleAdsField, GetGoogleAdsFieldRequest, Google::Ads::GoogleAds::V0::Resources::GoogleAdsField
|
40
40
|
# Returns all fields that match the search query.
|
41
41
|
rpc :SearchGoogleAdsFields, SearchGoogleAdsFieldsRequest, SearchGoogleAdsFieldsResponse
|
42
42
|
end
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
# EDITING INSTRUCTIONS
|
16
16
|
# This file was generated from the file
|
17
|
-
# https://github.com/googleapis/googleapis/blob/master/google/ads/
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v0/services/google_ads_service.proto,
|
18
18
|
# and updates to that file get reflected here through a refresh process.
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
@@ -24,18 +24,18 @@ require "pathname"
|
|
24
24
|
|
25
25
|
require "google/gax"
|
26
26
|
|
27
|
-
require "google/ads/
|
28
|
-
require "google/ads/
|
27
|
+
require "google/ads/google_ads/v0/services/google_ads_service_pb"
|
28
|
+
require "google/ads/google_ads/v0/services/credentials"
|
29
29
|
|
30
30
|
module Google
|
31
31
|
module Ads
|
32
|
-
module
|
32
|
+
module GoogleAds
|
33
33
|
module V0
|
34
34
|
module Services
|
35
35
|
# Service to fetch data and metrics across resources.
|
36
36
|
#
|
37
37
|
# @!attribute [r] google_ads_service_stub
|
38
|
-
# @return [Google::Ads::
|
38
|
+
# @return [Google::Ads::GoogleAds::V0::Services::GoogleAdsService::Stub]
|
39
39
|
class GoogleAdsServiceClient
|
40
40
|
attr_reader :google_ads_service_stub
|
41
41
|
|
@@ -107,12 +107,12 @@ module Google
|
|
107
107
|
# the gRPC module only when it's required.
|
108
108
|
# See https://github.com/googleapis/toolkit/issues/446
|
109
109
|
require "google/gax/grpc"
|
110
|
-
require "google/ads/
|
110
|
+
require "google/ads/google_ads/v0/services/google_ads_service_services_pb"
|
111
111
|
|
112
|
-
credentials ||= Google::Ads::
|
112
|
+
credentials ||= Google::Ads::GoogleAds::V0::Services::Credentials.default
|
113
113
|
|
114
114
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
115
|
-
updater_proc = Google::Ads::
|
115
|
+
updater_proc = Google::Ads::GoogleAds::V0::Services::Credentials.new(credentials).updater_proc
|
116
116
|
end
|
117
117
|
if credentials.is_a?(GRPC::Core::Channel)
|
118
118
|
channel = credentials
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
updater_proc: updater_proc,
|
166
166
|
scopes: scopes,
|
167
167
|
interceptors: interceptors,
|
168
|
-
&Google::Ads::
|
168
|
+
&Google::Ads::GoogleAds::V0::Services::GoogleAdsService::Stub.method(:new)
|
169
169
|
)
|
170
170
|
|
171
171
|
@search = Google::Gax.create_api_call(
|
@@ -193,18 +193,18 @@ module Google
|
|
193
193
|
# Overrides the default settings for this call, e.g, timeout,
|
194
194
|
# retries, etc.
|
195
195
|
# @yield [result, operation] Access the result along with the RPC operation
|
196
|
-
# @yieldparam result [Google::Gax::PagedEnumerable<Google::Ads::
|
196
|
+
# @yieldparam result [Google::Gax::PagedEnumerable<Google::Ads::GoogleAds::V0::Services::GoogleAdsRow>]
|
197
197
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
198
|
-
# @return [Google::Gax::PagedEnumerable<Google::Ads::
|
199
|
-
# An enumerable of Google::Ads::
|
198
|
+
# @return [Google::Gax::PagedEnumerable<Google::Ads::GoogleAds::V0::Services::GoogleAdsRow>]
|
199
|
+
# An enumerable of Google::Ads::GoogleAds::V0::Services::GoogleAdsRow instances.
|
200
200
|
# See Google::Gax::PagedEnumerable documentation for other
|
201
201
|
# operations such as per-page iteration or access to the response
|
202
202
|
# object.
|
203
203
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
204
204
|
# @example
|
205
|
-
# require "google/ads/
|
205
|
+
# require "google/ads/google_ads"
|
206
206
|
#
|
207
|
-
# google_ads_service_client = Google::Ads::
|
207
|
+
# google_ads_service_client = Google::Ads::GoogleAds::GoogleAds.new(version: :v0)
|
208
208
|
#
|
209
209
|
# # TODO: Initialize +customer_id+:
|
210
210
|
# customer_id = ''
|
@@ -236,7 +236,7 @@ module Google
|
|
236
236
|
query: query,
|
237
237
|
page_size: page_size
|
238
238
|
}.delete_if { |_, v| v.nil? }
|
239
|
-
req = Google::Gax::to_proto(req, Google::Ads::
|
239
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V0::Services::SearchGoogleAdsRequest)
|
240
240
|
@search.call(req, options, &block)
|
241
241
|
end
|
242
242
|
end
|
data/lib/google/ads/{googleads → google_ads}/v0/services/google_ads_service_client_config.json
RENAMED
File without changes
|