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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 24fd078875d49e4884a2eb50f8856d33f2834b66fab6d233ea343d65b6c84cfc
|
4
|
+
data.tar.gz: bdb86bd3a6de4edace0124603f821cf16a220505e52a3c9889c56d59c4b5154e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e1b630618e8b741897e5d0921bcbeae0558ad7e1fcb1647b08a6dc0b8e7a8b520cb8b8844da095075667f745b23f451ff8c8936fb8e91e6c78153ae0ffebdfb
|
7
|
+
data.tar.gz: ec04da6d65b7b66ec7ef7d4c1cd0f4597b952fe0cb9661b5f4cc44997ba302dc6115006f9af5b4980bd0023c6f84e0bf78ccaefd37a63b93f618f44d3c0791e3
|
data/ChangeLog
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
0.5.0:
|
2
|
+
- Adding support for Google Ads API v0_4.
|
3
|
+
- The namespace Googleads, with the path pattern "googleads", has changed to
|
4
|
+
GoogleAds, with the path "google_ads". The gem name is unchanged.
|
5
|
+
- The GoogleAdsClient has been renamed.
|
6
|
+
- The default config file has been renamed as "google_ads_config.rb".
|
7
|
+
|
1
8
|
0.4.0:
|
2
9
|
- Adding support for Google Ads API v0_3.
|
3
10
|
|
data/README.md
CHANGED
@@ -54,18 +54,18 @@ simply modify it to include the client ID, client secret, and refresh token.
|
|
54
54
|
The library will automatically read it from the home directory if instantiated
|
55
55
|
with no arguments:
|
56
56
|
|
57
|
-
adwords = Google::Ads::
|
57
|
+
adwords = Google::Ads::GoogleAds::GoogleAdsClient.new
|
58
58
|
|
59
59
|
Alternatively, if you prefer to keep the file elsewhere, you can instantiate the
|
60
60
|
library by passing the path to where you keep this file:
|
61
61
|
|
62
|
-
adwords = Google::Ads::
|
62
|
+
adwords = Google::Ads::GoogleAds::GoogleAdsClient.new('path/to/file.rb')
|
63
63
|
|
64
64
|
If you prefer not to store this information in a file at all, and would rather
|
65
65
|
pass the information programmatically at runtime, you can accomplish that this
|
66
66
|
way:
|
67
67
|
|
68
|
-
adwords = Google::Ads::
|
68
|
+
adwords = Google::Ads::GoogleAds::GoogleAdsClient.new do |config|
|
69
69
|
config.client_id = 'INSERT_CLIENT_ID_HERE'
|
70
70
|
config.client_secret = 'INSERT_CLIENT_SECRET_HERE'
|
71
71
|
config.refresh_token = 'INSERT_REFRESH_TOKEN_HERE'
|
@@ -77,17 +77,17 @@ You can also modify these properties after instantiation by using the
|
|
77
77
|
|
78
78
|
[Authorization guide]: https://developers.google.com/google-ads/api/docs/oauth/overview
|
79
79
|
[Authentication example]: https://github.com/googleads/google-ads-ruby/blob/master/examples/authentication/authenticate_in_standalone_application.rb
|
80
|
-
[adwords_config.rb]: https://github.com/googleads/google-ads-ruby/blob/master/
|
80
|
+
[adwords_config.rb]: https://github.com/googleads/google-ads-ruby/blob/master/google_ads_config.rb
|
81
81
|
|
82
82
|
## Usage
|
83
83
|
|
84
84
|
To include the gem in your code:
|
85
85
|
|
86
|
-
require 'google/ads/
|
86
|
+
require 'google/ads/google_ads'
|
87
87
|
|
88
88
|
To fetch a specific service, for example CampaignService:
|
89
89
|
|
90
|
-
adwords = Google::Ads::
|
90
|
+
adwords = Google::Ads::GoogleAds::GoogleAdsClient.new
|
91
91
|
campaign_service = adwords.service(:Campaign)
|
92
92
|
|
93
93
|
See the provided [examples][] for more detailed demonstrations of how to use the
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# library.
|
3
3
|
# Please fill in the required fields and copy it to your home directory.
|
4
4
|
|
5
|
-
Google::Ads::
|
5
|
+
Google::Ads::GoogleAds::Config.new do |c|
|
6
6
|
c.client_id = 'INSERT_CLIENT_ID_HERE'
|
7
7
|
c.client_secret = 'INSERT_CLIENT_SECRET_HERE'
|
8
8
|
c.refresh_token = 'INSERT_REFRESH_TOKEN_HERE'
|
@@ -14,33 +14,33 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# GoogleAds client class to configure settings and fetch services.
|
18
18
|
|
19
19
|
require 'googleauth'
|
20
20
|
|
21
|
-
require 'google/ads/
|
22
|
-
require 'google/ads/
|
23
|
-
require 'google/ads/
|
24
|
-
require 'google/ads/
|
25
|
-
require 'google/ads/
|
26
|
-
require 'google/ads/
|
21
|
+
require 'google/ads/google_ads/patches'
|
22
|
+
require 'google/ads/google_ads/config'
|
23
|
+
require 'google/ads/google_ads/field_mask_util'
|
24
|
+
require 'google/ads/google_ads/wrapper_util'
|
25
|
+
require 'google/ads/google_ads/proto_lookup_util'
|
26
|
+
require 'google/ads/google_ads/path_lookup_util'
|
27
27
|
|
28
|
-
require 'google/ads/
|
29
|
-
require 'google/ads/
|
28
|
+
require 'google/ads/google_ads/errors'
|
29
|
+
require 'google/ads/google_ads/v0/errors/errors_pb'
|
30
30
|
|
31
31
|
require 'google/gax'
|
32
32
|
|
33
33
|
module Google
|
34
34
|
module Ads
|
35
|
-
module
|
36
|
-
class
|
35
|
+
module GoogleAds
|
36
|
+
class GoogleAdsClient
|
37
37
|
API_VERSION = :V0
|
38
38
|
|
39
|
-
DEFAULT_CONFIG_FILENAME = '
|
39
|
+
DEFAULT_CONFIG_FILENAME = 'google_ads_config.rb'
|
40
40
|
|
41
41
|
def initialize(config_path = nil, &block)
|
42
42
|
if block_given?
|
43
|
-
@config = Google::Ads::
|
43
|
+
@config = Google::Ads::GoogleAds::Config.new
|
44
44
|
|
45
45
|
yield @config
|
46
46
|
else
|
@@ -56,19 +56,19 @@ module Google
|
|
56
56
|
file = File.read(config_path)
|
57
57
|
|
58
58
|
eval_result = eval(file, binding, config_path)
|
59
|
-
unless eval_result.instance_of?(Google::Ads::
|
59
|
+
unless eval_result.instance_of?(Google::Ads::GoogleAds::Config)
|
60
60
|
raise ArgumentError, sprintf(
|
61
61
|
'Configuration file did not produce expected type ' +
|
62
|
-
'Google::Ads::
|
62
|
+
'Google::Ads::GoogleAds::Config, got "%s" instead',
|
63
63
|
eval_result.class
|
64
64
|
)
|
65
65
|
end
|
66
66
|
@config = eval_result
|
67
67
|
end
|
68
68
|
@proto_lookup_util =
|
69
|
-
Google::Ads::
|
69
|
+
Google::Ads::GoogleAds::ProtoLookupUtil.new(API_VERSION)
|
70
70
|
@path_lookup_util =
|
71
|
-
Google::Ads::
|
71
|
+
Google::Ads::GoogleAds::PathLookupUtil.new(@proto_lookup_util)
|
72
72
|
end
|
73
73
|
|
74
74
|
def configure(&block)
|
@@ -123,12 +123,12 @@ module Google
|
|
123
123
|
|
124
124
|
# Returns a reference to the FieldMaskUtil class for ease of access.
|
125
125
|
def field_mask()
|
126
|
-
Google::Ads::
|
126
|
+
Google::Ads::GoogleAds::FieldMaskUtil
|
127
127
|
end
|
128
128
|
|
129
129
|
# Returns a reference to the WrapperUtil class for ease of access.
|
130
130
|
def wrapper()
|
131
|
-
Google::Ads::
|
131
|
+
Google::Ads::GoogleAds::WrapperUtil
|
132
132
|
end
|
133
133
|
|
134
134
|
# Returns a reference to the PathLookupUtil to generate resource names.
|
@@ -140,15 +140,22 @@ module Google
|
|
140
140
|
|
141
141
|
ERROR_TRANSFORMER = Proc.new do |gax_error|
|
142
142
|
begin
|
143
|
-
gax_error.status_details.each do |
|
143
|
+
gax_error.status_details.each do |detail|
|
144
144
|
# If there is an underlying GoogleAdsFailure, throw that one.
|
145
|
-
if
|
146
|
-
Google::Ads::
|
147
|
-
raise Google::Ads::
|
145
|
+
if detail.is_a?(
|
146
|
+
Google::Ads::GoogleAds::V0::Errors::GoogleAdsFailure)
|
147
|
+
raise Google::Ads::GooglAads::Errors::GoogleAdsError.new(
|
148
|
+
detail)
|
149
|
+
end
|
150
|
+
if detail.is_a?(Google::Protobuf::Any)
|
151
|
+
type = Google::Protobuf::DescriptorPool.generated_pool.lookup(
|
152
|
+
detail.type_name).msgclass
|
153
|
+
failure = detail.unpack(type)
|
154
|
+
raise Google::Ads::GoogleAds::Errors::GoogleAdsError.new(
|
148
155
|
failure)
|
149
156
|
end
|
150
157
|
end
|
151
|
-
rescue Google::Ads::
|
158
|
+
rescue Google::Ads::GoogleAds::Errors::GoogleAdsError
|
152
159
|
# If we raised this, bubble it out.
|
153
160
|
raise
|
154
161
|
rescue NoMethodError
|
File without changes
|
@@ -18,12 +18,18 @@
|
|
18
18
|
|
19
19
|
module Google
|
20
20
|
module Ads
|
21
|
-
module
|
21
|
+
module GoogleAds
|
22
22
|
class PathLookupUtil
|
23
23
|
def initialize(proto_lookup_util)
|
24
24
|
@proto_lookup_util = proto_lookup_util
|
25
25
|
end
|
26
26
|
|
27
|
+
def account_budget_proposal(customer_id, account_budget_proposal_id)
|
28
|
+
@proto_lookup_util.service(:AccountBudgetProposal).
|
29
|
+
account_budget_proposal_path(customer_id.to_s,
|
30
|
+
account_budget_proposal_id.to_s)
|
31
|
+
end
|
32
|
+
|
27
33
|
def ad_group_ad(customer_id, ad_group_id, ad_id)
|
28
34
|
@proto_lookup_util.service(:AdGroupAd).ad_group_ad_path(
|
29
35
|
customer_id.to_s, sprintf('%s_%s', ad_group_id.to_s, ad_id.to_s))
|
@@ -54,6 +60,11 @@ module Google
|
|
54
60
|
customer_id.to_s, bidding_strategy_id.to_s)
|
55
61
|
end
|
56
62
|
|
63
|
+
def billing_setup(customer_id, billing_id)
|
64
|
+
@proto_lookup_util.service(:BillingSetup).billing_setup_path(
|
65
|
+
customer_id.to_s, billing_id.to_s)
|
66
|
+
end
|
67
|
+
|
57
68
|
def campaign_bid_modifier(customer_id, campaign_bid_modifier_id)
|
58
69
|
@proto_lookup_util.service(:CampaignBidModifier).
|
59
70
|
campaign_bid_modifier_path(customer_id.to_s,
|
@@ -88,6 +99,16 @@ module Google
|
|
88
99
|
customer_id.to_s, campaign_id.to_s)
|
89
100
|
end
|
90
101
|
|
102
|
+
def change_status(customer_id, change_status_id)
|
103
|
+
@proto_lookup_util.service(:ChangeStatus).change_status_path(
|
104
|
+
customer_id.to_s, change_status_id.to_s)
|
105
|
+
end
|
106
|
+
|
107
|
+
def conversion_action(customer_id, conversion_action_id)
|
108
|
+
@proto_lookup_util.service(:ConversionAction).conversion_action_path(
|
109
|
+
customer_id.to_s, conversion_action_id.to_s)
|
110
|
+
end
|
111
|
+
|
91
112
|
def customer(customer_id)
|
92
113
|
@proto_lookup_util.service(:Customer).customer_path(customer_id.to_s)
|
93
114
|
end
|
@@ -125,6 +146,11 @@ module Google
|
|
125
146
|
@proto_lookup_util.service(:SharedSet).shared_set_path(
|
126
147
|
customer_id.to_s, shared_set_id.to_s)
|
127
148
|
end
|
149
|
+
|
150
|
+
def video(customer_id, video_id)
|
151
|
+
@proto_lookup_util.service(:Video).video_path(
|
152
|
+
customer_id.to_s, video_id.to_s)
|
153
|
+
end
|
128
154
|
end
|
129
155
|
end
|
130
156
|
end
|
@@ -18,28 +18,30 @@
|
|
18
18
|
|
19
19
|
module Google
|
20
20
|
module Ads
|
21
|
-
module
|
21
|
+
module GoogleAds
|
22
22
|
class ProtoLookupUtil
|
23
23
|
# Variables: Version, folder (resources/common), filename
|
24
|
-
RESOURCE_PATH = 'google/ads/
|
24
|
+
RESOURCE_PATH = 'google/ads/google_ads/%s/%s/%s'.freeze
|
25
25
|
# Variables: Version, class name
|
26
|
-
RESOURCE_CLASS_PATH = 'Google::Ads::
|
26
|
+
RESOURCE_CLASS_PATH = 'Google::Ads::GoogleAds::%s::Resources::%s'.freeze
|
27
27
|
# Variables: Version, class name
|
28
|
-
COMMON_CLASS_PATH = 'Google::Ads::
|
28
|
+
COMMON_CLASS_PATH = 'Google::Ads::GoogleAds::%s::Common::%s'.freeze
|
29
29
|
|
30
30
|
# Variables: Version, filename
|
31
|
-
ENUM_PATH = 'google/ads/
|
31
|
+
ENUM_PATH = 'google/ads/google_ads/%s/enums/%s'.freeze
|
32
32
|
# Variables: Version, enum name, enum name (again)
|
33
|
-
ENUM_CLASS_PATH = 'Google::Ads::
|
33
|
+
ENUM_CLASS_PATH = 'Google::Ads::GoogleAds::%s::Enums::%sEnum::%s'.freeze
|
34
34
|
|
35
35
|
# Variables: Version, filename
|
36
|
-
SERVICE_PATH = 'google/ads/
|
36
|
+
SERVICE_PATH = 'google/ads/google_ads/%s/services/%s'.freeze
|
37
37
|
# Variables: Version, entity name
|
38
38
|
SERVICE_CLASS_PATH =
|
39
|
-
'Google::Ads::
|
39
|
+
'Google::Ads::GoogleAds::%s::Services::%s'.freeze
|
40
40
|
|
41
41
|
RESOURCES = {
|
42
42
|
AdGroupAd: ['resources', 'ad_group_ad_pb', 'AdGroupAd'],
|
43
|
+
AdGroupAdPolicySummary: ['resources', 'ad_group_ad_pb',
|
44
|
+
'AdGroupAdPolicySummary'],
|
43
45
|
AdGroupCriterion: ['resources', 'ad_group_criterion_pb',
|
44
46
|
'AdGroupCriterion'],
|
45
47
|
QualityInfo: ['resources', 'ad_group_criterion_pb',
|
@@ -106,6 +108,17 @@ module Google
|
|
106
108
|
SharedCriterion: ['resources', 'shared_criterion_pb',
|
107
109
|
'SharedCriterion'],
|
108
110
|
SharedSet: ['resources', 'shared_set_pb', 'SharedSet'],
|
111
|
+
ConversionAction: ['resources', 'conversion_action_pb',
|
112
|
+
'ConversionAction'],
|
113
|
+
AttributionModelSettings: ['resources', 'conversion_action_pb', 'ConversionAction::AttributionModelSettings'],
|
114
|
+
TagSnippet: ['resources', 'conversion_action_pb', 'ConversionAction::TagSnippet'],
|
115
|
+
ValueSettings: ['resources', 'conversion_action_pb', 'ConversionAction::ValueSettings'],
|
116
|
+
AccountBudget: ['resources', 'account_budget_pb', 'AccountBudget'],
|
117
|
+
AccountBudgetProposal: ['resources', 'account_budget_proposal_pb',
|
118
|
+
'AccountBudgetProposal'],
|
119
|
+
BillingSetup: ['resources', 'billing_setup_pb', 'BillingSetup'],
|
120
|
+
ChangeStatus: ['resources', 'change_status_pb', 'ChangeStatus'],
|
121
|
+
Video: ['resources', 'video_pb', 'Video'],
|
109
122
|
TextAdInfo: ['common', 'ad_type_infos_pb', 'TextAdInfo'],
|
110
123
|
ExpandedTextAdInfo: ['common', 'ad_type_infos_pb', 'ExpandedTextAdInfo'],
|
111
124
|
DynamicSearchAdInfo: ['common', 'ad_type_infos_pb', 'DynamicSearchAdInfo'],
|
@@ -116,9 +129,12 @@ module Google
|
|
116
129
|
'ExpandedDynamicSearchAdInfo'],
|
117
130
|
HotelAdInfo: ['common', 'ad_type_infos_pb', 'HotelAdInfo'],
|
118
131
|
ShoppingSmartAdInfo: ['common', 'ad_type_infos_pb', 'ShoppingSmartAdInfo'],
|
132
|
+
ShoppingProductAdInfo: ['common', 'ad_type_infos_pb',
|
133
|
+
'ShoppingProductAdInfo'],
|
119
134
|
EnhancedCpc: ['common', 'bidding_pb', 'EnhancedCpc'],
|
120
135
|
ManualCpc: ['common', 'bidding_pb', 'ManualCpc'],
|
121
136
|
ManualCpm: ['common', 'bidding_pb', 'ManualCpm'],
|
137
|
+
ManualCpv: ['common', 'bidding_pb', 'ManualCpv'],
|
122
138
|
MaximizeConversions: ['common', 'bidding_pb', 'MaximizeConversions'],
|
123
139
|
MaximizeConversionValue: ['common', 'bidding_pb',
|
124
140
|
'MaximizeConversionValue'],
|
@@ -143,8 +159,12 @@ module Google
|
|
143
159
|
HotelCityInfo: ['common', 'criteria_pb', 'HotelCityInfo'],
|
144
160
|
ListingCustomAttributeInfo: ['common', 'criteria_pb',
|
145
161
|
'ListingCustomAttributeInfo'],
|
162
|
+
ProductChannelInfo: ['common', 'criteria_pb', 'ProductChannelInfo'],
|
163
|
+
ProductChannelExclusivityInfo: ['common', 'criteria_pb',
|
164
|
+
'ProductChannelExclusivityInfo'],
|
146
165
|
ProductConditionInfo: ['common', 'criteria_pb',
|
147
166
|
'ProductConditionInfo'],
|
167
|
+
ProductOfferIdInfo: ['common', 'criteria_pb', 'ProductOfferIdInfo'],
|
148
168
|
ProductTypeInfo: ['common', 'criteria_pb', 'ProductTypeInfo'],
|
149
169
|
HotelDateSelectionTypeInfo: ['common', 'criteria_pb',
|
150
170
|
'HotelDateSelectionTypeInfo'],
|
@@ -158,6 +178,8 @@ module Google
|
|
158
178
|
CustomParameter: ['common', 'custom_parameter_pb', 'CustomParameter'],
|
159
179
|
Metrics: ['common', 'metrics_pb', 'Metrics'],
|
160
180
|
PolicyViolationKey: ['common', 'policy_pb', 'PolicyViolationKey'],
|
181
|
+
PolicyValidationParameter: ['common', 'policy_pb',
|
182
|
+
'PolicyValidationParameter'],
|
161
183
|
PolicyTopicEntry: ['common', 'policy_pb', 'PolicyTopicEntry'],
|
162
184
|
PolicyTopicEvidence: ['common', 'policy_pb', 'PolicyTopicEvidence'],
|
163
185
|
TextList: ['common', 'policy_pb', 'PolicyTopicEvidence::TextList'],
|
@@ -187,6 +209,10 @@ module Google
|
|
187
209
|
}.freeze
|
188
210
|
|
189
211
|
ENUMS = {
|
212
|
+
AccountBudgetProposalStatus: ['account_budget_proposal_status_pb',
|
213
|
+
'AccountBudgetProposalStatus'],
|
214
|
+
AccountBudgetProposalType: ['account_budget_proposal_type_pb',
|
215
|
+
'AccountBudgetProposalType'],
|
190
216
|
AdGroupAdStatus: ['ad_group_ad_status_pb', 'AdGroupAdStatus'],
|
191
217
|
AdGroupCriterionStatus: ['ad_group_criterion_status_pb',
|
192
218
|
'AdGroupCriterionStatus'],
|
@@ -200,10 +226,12 @@ module Google
|
|
200
226
|
'AdvertisingChannelSubType'],
|
201
227
|
AdvertisingChannelType: ['advertising_channel_type_pb',
|
202
228
|
'AdvertisingChannelType'],
|
229
|
+
AttributionModel: ['attribution_model_pb', 'AttributionModel'],
|
203
230
|
BiddingSource: ['bidding_source_pb', 'BiddingSource'],
|
204
231
|
BiddingStrategyType: ['bidding_strategy_type_pb',
|
205
232
|
'BiddingStrategyType'],
|
206
233
|
BidModifierSource: ['bid_modifier_source_pb', 'BidModifierSource'],
|
234
|
+
BillingSetupStatus: ['billing_setup_status_pb', 'BillingSetupStatus'],
|
207
235
|
BudgetDeliveryMethod: ['budget_delivery_method_pb',
|
208
236
|
'BudgetDeliveryMethod'],
|
209
237
|
BudgetStatus: ['budget_status_pb', 'BudgetStatus'],
|
@@ -214,6 +242,18 @@ module Google
|
|
214
242
|
CampaignSharedSetStatus: ['campaign_shared_set_status_pb',
|
215
243
|
'CampaignSharedSetStatus'],
|
216
244
|
CampaignStatus: ['campaign_status_pb', 'CampaignStatus'],
|
245
|
+
ChangeStatusOperation: ['change_status_operation_pb',
|
246
|
+
'ChangeStatusOperation'],
|
247
|
+
ConversionActionCategory: ['conversion_action_category_pb',
|
248
|
+
'ConversionActionCategory'],
|
249
|
+
ConversionActionCountingType: ['conversion_action_counting_type_pb',
|
250
|
+
'ConversionActionCountingType'],
|
251
|
+
ConversionActionStatus: ['conversion_action_status_pb',
|
252
|
+
'ConversionActionStatus'],
|
253
|
+
ConversionActionType: ['conversion_action_type_pb',
|
254
|
+
'ConversionActionType'],
|
255
|
+
DataDrivenModelStatus: ['data_driven_model_status_pb',
|
256
|
+
'DataDrivenModelStatus'],
|
217
257
|
DayOfWeek: ['day_of_week_pb', 'DayOfWeek'],
|
218
258
|
Device: ['device_pb', 'Device'],
|
219
259
|
GoogleAdsFieldCategory: ['google_ads_field_category_pb',
|
@@ -231,24 +271,41 @@ module Google
|
|
231
271
|
MonthOfYear: ['month_of_year_pb', 'MonthOfYear'],
|
232
272
|
PageOnePromotedStrategyGoal: ['page_one_promoted_strategy_goal_pb',
|
233
273
|
'PageOnePromotedStrategyGoal'],
|
274
|
+
PolicyApprovalStatus: ['policy_approval_status_pb',
|
275
|
+
'PolicyApprovalStatus'],
|
276
|
+
PolicyReviewStatus: ['policy_review_status_pb',
|
277
|
+
'PolicyReviewStatus'],
|
234
278
|
PolicyTopicEntryType: ['policy_topic_entry_type_pb',
|
235
279
|
'PolicyTopicEntryType'],
|
236
280
|
PolicyTopicEvidenceDestinationMismatchUrlType: [
|
237
281
|
'policy_topic_evidence_destination_mismatch_url_type_pb',
|
238
282
|
'PolicyTopicEvidenceDestinationMismatchUrlType'],
|
283
|
+
ProductChannel: ['product_channel_pb', 'ProductChannel'],
|
284
|
+
ProductChannelExclusivity: ['product_channel_exclusivity_pb',
|
285
|
+
'ProductChannelExclusivity'],
|
239
286
|
ProductCondition: ['product_condition_pb', 'ProductCondition'],
|
240
287
|
ProductTypeLevel: ['product_type_level_pb', 'ProductTypeLevel'],
|
241
288
|
QualityScoreBucket: ['quality_score_bucket_pb', 'QualityScoreBucket'],
|
242
289
|
RecommendationType: ['recommendation_type_pb', 'RecommendationType'],
|
290
|
+
ResourceType: ['resource_type_pb',
|
291
|
+
'ResourceType'],
|
243
292
|
SharedSetStatus: ['shared_set_status_pb', 'SharedSetStatus'],
|
244
293
|
SharedSetType: ['shared_set_type_pb', 'SharedSetType'],
|
245
294
|
Slot: ['slot_pb', 'Slot'],
|
295
|
+
SpendingLimitType: ['spending_limit_type_pb',
|
296
|
+
'SpendingLimitType'],
|
246
297
|
TargetCpaOptInRecommendationGoal: [
|
247
298
|
'target_cpa_opt_in_recommendation_goal_pb',
|
248
|
-
'TargetCpaOptInRecommendationGoal']
|
299
|
+
'TargetCpaOptInRecommendationGoal'],
|
300
|
+
TimeType: ['time_type_pb', 'TimeType'],
|
301
|
+
TrackingCodePageFormat: ['tracking_code_page_format_pb', 'TrackingCodePageFormat'],
|
302
|
+
TrackingCodeType: ['tracking_code_type_pb', 'TrackingCodeType']
|
249
303
|
}.freeze
|
250
304
|
|
251
305
|
SERVICES = {
|
306
|
+
AccountBudgetProposal:
|
307
|
+
['account_budget_proposal_service_client',
|
308
|
+
'AccountBudgetProposalServiceClient'],
|
252
309
|
AdGroupAd: ['ad_group_ad_service_client', 'AdGroupAdServiceClient'],
|
253
310
|
AdGroupBidModifier: ['ad_group_bid_modifier_service_client',
|
254
311
|
'AdGroupBidModifierServiceClient'],
|
@@ -257,6 +314,8 @@ module Google
|
|
257
314
|
AdGroup: ['ad_group_service_client', 'AdGroupServiceClient'],
|
258
315
|
BiddingStrategy: ['bidding_strategy_service_client',
|
259
316
|
'BiddingStrategyServiceClient'],
|
317
|
+
BillingSetup: ['billing_setup_service_client',
|
318
|
+
'BillingSetupServiceClient'],
|
260
319
|
CampaignBidModifier: ['campaign_bid_modifier_service_client',
|
261
320
|
'CampaignBidModifierServiceClient'],
|
262
321
|
CampaignBudget: ['campaign_budget_service_client',
|
@@ -268,6 +327,10 @@ module Google
|
|
268
327
|
Campaign: ['campaign_service_client', 'CampaignServiceClient'],
|
269
328
|
CampaignSharedSet: ['campaign_shared_set_service_client',
|
270
329
|
'CampaignSharedSetServiceClient'],
|
330
|
+
ChangeStatus: ['change_status_service_client',
|
331
|
+
'ChangeStatusServiceClient'],
|
332
|
+
ConversionAction: ['conversion_action_service_client',
|
333
|
+
'ConversionActionServiceClient'],
|
271
334
|
Customer: ['customer_service_client', 'CustomerServiceClient'],
|
272
335
|
GeoTargetConstant: ['geo_target_constant_service_client',
|
273
336
|
'GeoTargetConstantServiceClient'],
|
@@ -280,10 +343,13 @@ module Google
|
|
280
343
|
'RecommendationServiceClient'],
|
281
344
|
SharedCriterion: ['shared_criterion_service_client',
|
282
345
|
'SharedCriterionServiceClient'],
|
283
|
-
SharedSet: ['shared_set_service_client', 'SharedSetServiceClient']
|
346
|
+
SharedSet: ['shared_set_service_client', 'SharedSetServiceClient'],
|
347
|
+
Video: ['video_service_client', 'VideoServiceClient']
|
284
348
|
}.freeze
|
285
349
|
|
286
350
|
OPERATIONS = {
|
351
|
+
AccountBudgetProposal: ['account_budget_proposal_service_pb',
|
352
|
+
'AccountBudgetProposalOperation'],
|
287
353
|
AdGroupAd: ['ad_group_ad_service_pb', 'AdGroupAdOperation'],
|
288
354
|
AdGroupBidModifier: ['ad_group_bid_modifier_service_pb',
|
289
355
|
'AdGroupBidModifierOperation'],
|
@@ -294,6 +360,7 @@ module Google
|
|
294
360
|
'ApplyRecommendationOperation'],
|
295
361
|
BiddingStrategy: ['bidding_strategy_service_pb',
|
296
362
|
'BiddingStrategyOperation'],
|
363
|
+
BillingSetup: ['billing_setup_service_pb', 'BillingSetupOperation'],
|
297
364
|
CampaignBidModifier: ['campaign_bid_modifier_service_pb',
|
298
365
|
'CampaignBidModifierOperation'],
|
299
366
|
CampaignBudget: ['campaign_budget_service_pb',
|
@@ -305,6 +372,7 @@ module Google
|
|
305
372
|
Campaign: ['campaign_service_pb', 'CampaignOperation'],
|
306
373
|
CampaignSharedSet: ['campaign_shared_set_service_pb',
|
307
374
|
'CampaignSharedSetOperation'],
|
375
|
+
ConversionAction: ['conversion_action_service_pb', 'ConversionActionOperation'],
|
308
376
|
SharedCriterion: ['shared_criterion_service_pb',
|
309
377
|
'SharedCriterionOperation'],
|
310
378
|
SharedSet: ['shared_set_service_pb', 'SharedSetOperation']
|
@@ -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/common/ad_type_infos.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
@@ -44,11 +44,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
44
44
|
end
|
45
45
|
add_message "google.ads.googleads.v0.common.ShoppingSmartAdInfo" do
|
46
46
|
end
|
47
|
+
add_message "google.ads.googleads.v0.common.ShoppingProductAdInfo" do
|
48
|
+
end
|
47
49
|
end
|
48
50
|
|
49
51
|
module Google
|
50
52
|
module Ads
|
51
|
-
module
|
53
|
+
module GoogleAds
|
52
54
|
module V0
|
53
55
|
module Common
|
54
56
|
TextAdInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.TextAdInfo").msgclass
|
@@ -59,6 +61,7 @@ module Google
|
|
59
61
|
ExpandedDynamicSearchAdInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ExpandedDynamicSearchAdInfo").msgclass
|
60
62
|
HotelAdInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.HotelAdInfo").msgclass
|
61
63
|
ShoppingSmartAdInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ShoppingSmartAdInfo").msgclass
|
64
|
+
ShoppingProductAdInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ShoppingProductAdInfo").msgclass
|
62
65
|
end
|
63
66
|
end
|
64
67
|
end
|
@@ -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/common/bidding.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/ads/
|
6
|
+
require 'google/ads/google_ads/v0/enums/page_one_promoted_strategy_goal_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.common.EnhancedCpc" do
|
@@ -13,6 +13,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
13
|
end
|
14
14
|
add_message "google.ads.googleads.v0.common.ManualCpm" do
|
15
15
|
end
|
16
|
+
add_message "google.ads.googleads.v0.common.ManualCpv" do
|
17
|
+
end
|
16
18
|
add_message "google.ads.googleads.v0.common.MaximizeConversions" do
|
17
19
|
end
|
18
20
|
add_message "google.ads.googleads.v0.common.MaximizeConversionValue" do
|
@@ -55,12 +57,13 @@ end
|
|
55
57
|
|
56
58
|
module Google
|
57
59
|
module Ads
|
58
|
-
module
|
60
|
+
module GoogleAds
|
59
61
|
module V0
|
60
62
|
module Common
|
61
63
|
EnhancedCpc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.EnhancedCpc").msgclass
|
62
64
|
ManualCpc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ManualCpc").msgclass
|
63
65
|
ManualCpm = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ManualCpm").msgclass
|
66
|
+
ManualCpv = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.ManualCpv").msgclass
|
64
67
|
MaximizeConversions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.MaximizeConversions").msgclass
|
65
68
|
MaximizeConversionValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.MaximizeConversionValue").msgclass
|
66
69
|
PageOnePromoted = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.common.PageOnePromoted").msgclass
|