google-ads-googleads 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Rakefile +7 -2
- data/lib/google/ads/google_ads/factories.rb +3 -3
- data/lib/google/ads/google_ads/factories/v1/enums.rb +975 -975
- data/lib/google/ads/google_ads/factories/v1/operations.rb +993 -993
- data/lib/google/ads/google_ads/factories/v1/resources.rb +2289 -2289
- data/lib/google/ads/google_ads/factories/v1/services.rb +395 -395
- data/lib/google/ads/google_ads/factories/v2/enums.rb +995 -995
- data/lib/google/ads/google_ads/factories/v2/operations.rb +1001 -1001
- data/lib/google/ads/google_ads/factories/v2/resources.rb +2519 -2519
- data/lib/google/ads/google_ads/factories/v2/services.rb +419 -419
- data/lib/google/ads/google_ads/factories/v3/enums.rb +1033 -985
- data/lib/google/ads/google_ads/factories/v3/operations.rb +1092 -1004
- data/lib/google/ads/google_ads/factories/v3/resources.rb +2579 -2462
- data/lib/google/ads/google_ads/factories/v3/services.rb +460 -420
- data/lib/google/ads/google_ads/v3/common/offline_user_data_pb.rb +70 -0
- data/lib/google/ads/google_ads/v3/enums/ad_group_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/enums/ad_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/enums/conversion_action_category_pb.rb +14 -0
- data/lib/google/ads/google_ads/v3/enums/offline_user_data_job_failure_reason_pb.rb +21 -0
- data/lib/google/ads/google_ads/v3/enums/offline_user_data_job_status_pb.rb +23 -0
- data/lib/google/ads/google_ads/v3/enums/offline_user_data_job_type_pb.rb +22 -0
- data/lib/google/ads/google_ads/v3/errors/account_budget_proposal_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/errors/ad_group_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/errors/asset_link_error_pb.rb +20 -0
- data/lib/google/ads/google_ads/v3/errors/campaign_budget_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/errors/criterion_error_pb.rb +6 -0
- data/lib/google/ads/google_ads/v3/errors/customer_client_link_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/errors/errors_pb.rb +6 -0
- data/lib/google/ads/google_ads/v3/errors/manager_link_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v3/errors/mutate_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v3/errors/offline_user_data_job_error_pb.rb +41 -0
- data/lib/google/ads/google_ads/v3/errors/user_data_error_pb.rb +22 -0
- data/lib/google/ads/google_ads/v3/resources/account_budget_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/account_budget_proposal_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_ad_asset_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_ad_label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_ad_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_audience_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_bid_modifier_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_criterion_label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_criterion_simulation_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_extension_setting_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_feed_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_group_simulation_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_parameter_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/ad_schedule_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/age_range_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/asset_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/bidding_strategy_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/billing_setup_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_audience_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_bid_modifier_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_budget_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_criterion_simulation_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_draft_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_experiment_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_extension_setting_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_feed_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/campaign_pb.rb +11 -9
- data/lib/google/ads/google_ads/v3/resources/campaign_shared_set_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/carrier_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/change_status_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/click_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/conversion_action_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/currency_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/custom_interest_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_client_link_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_client_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_extension_setting_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_feed_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_manager_link_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_negative_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/customer_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/detail_placement_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/display_keyword_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/distance_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/domain_category_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/dynamic_search_ads_search_term_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/expanded_landing_page_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/extension_feed_item_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/feed_item_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/feed_item_target_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/feed_mapping_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/feed_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/feed_placeholder_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/gender_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/geo_target_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/geographic_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/google_ads_field_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/group_placement_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/hotel_group_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/hotel_performance_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/invoice_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_plan_ad_group_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_plan_campaign_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_plan_keyword_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_plan_negative_keyword_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_plan_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/keyword_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/label_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/landing_page_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/language_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/location_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/managed_placement_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/media_file_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/merchant_center_link_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/mobile_app_category_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/mobile_device_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/mutate_job_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/offline_user_data_job_pb.rb +31 -0
- data/lib/google/ads/google_ads/v3/resources/operating_system_version_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/paid_organic_search_term_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/parental_status_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/payments_account_pb.rb +2 -0
- data/lib/google/ads/google_ads/v3/resources/product_bidding_category_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/product_group_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/recommendation_pb.rb +22 -21
- data/lib/google/ads/google_ads/v3/resources/remarketing_action_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/search_term_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/shared_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/shared_set_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/shopping_performance_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/topic_constant_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/topic_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/user_interest_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/user_list_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/user_location_view_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/resources/video_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/account_budget_proposal_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/account_budget_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_ad_asset_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_ad_label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_ad_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_audience_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_bid_modifier_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_criterion_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_criterion_simulation_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_extension_setting_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_feed_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_group_simulation_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_parameter_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_schedule_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/ad_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/age_range_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/asset_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/bidding_strategy_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/billing_setup_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_audience_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_budget_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_criterion_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_criterion_simulation_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_draft_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_experiment_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_extension_setting_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_feed_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/campaign_shared_set_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/carrier_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/change_status_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/click_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/conversion_action_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/conversion_adjustment_upload_service_client.rb +1 -1
- data/lib/google/ads/google_ads/v3/services/conversion_upload_service_client.rb +2 -2
- data/lib/google/ads/google_ads/v3/services/currency_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/custom_interest_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_client_link_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_client_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_extension_setting_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_feed_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_negative_criterion_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/customer_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/detail_placement_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/display_keyword_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/distance_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/domain_category_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/dynamic_search_ads_search_term_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/expanded_landing_page_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/feed_item_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/feed_item_target_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/feed_mapping_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/feed_placeholder_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/feed_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/gender_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/geo_target_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/geographic_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/google_ads_field_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/google_ads_service_client_config.json +9 -1
- data/lib/google/ads/google_ads/v3/services/google_ads_service_pb.rb +5 -0
- data/lib/google/ads/google_ads/v3/services/group_placement_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/hotel_group_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/hotel_performance_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_ad_group_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_campaign_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_idea_service_client.rb +1 -1
- data/lib/google/ads/google_ads/v3/services/keyword_plan_idea_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_keyword_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_plan_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/keyword_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/label_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/landing_page_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/language_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/location_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/managed_placement_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/media_file_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/mobile_app_category_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/mobile_device_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/mutate_job_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/offline_user_data_job_service_client.rb +415 -0
- data/lib/google/ads/google_ads/v3/services/offline_user_data_job_service_client_config.json +46 -0
- data/lib/google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb +54 -0
- data/lib/google/ads/google_ads/v3/services/offline_user_data_job_service_services_pb.rb +50 -0
- data/lib/google/ads/google_ads/v3/services/operating_system_version_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/paid_organic_search_term_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/parental_status_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/product_bidding_category_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/product_group_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/reach_plan_service_client.rb +3 -5
- data/lib/google/ads/google_ads/v3/services/recommendation_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/remarketing_action_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/search_term_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/shared_criterion_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/shared_set_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/shopping_performance_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/topic_constant_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/topic_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/user_data_service_client.rb +225 -0
- data/lib/google/ads/google_ads/v3/services/user_data_service_client_config.json +31 -0
- data/lib/google/ads/google_ads/v3/services/user_data_service_pb.rb +34 -0
- data/lib/google/ads/google_ads/v3/services/user_data_service_services_pb.rb +42 -0
- data/lib/google/ads/google_ads/v3/services/user_interest_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/user_list_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/user_location_view_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v3/services/video_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +19 -3
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.ads.googleads.v3.services.OfflineUserDataJobService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
|
+
},
|
11
|
+
"retry_params": {
|
12
|
+
"default": {
|
13
|
+
"initial_retry_delay_millis": 5000,
|
14
|
+
"retry_delay_multiplier": 1.3,
|
15
|
+
"max_retry_delay_millis": 60000,
|
16
|
+
"initial_rpc_timeout_millis": 3600000,
|
17
|
+
"rpc_timeout_multiplier": 1.0,
|
18
|
+
"max_rpc_timeout_millis": 3600000,
|
19
|
+
"total_timeout_millis": 3600000
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"methods": {
|
23
|
+
"CreateOfflineUserDataJob": {
|
24
|
+
"timeout_millis": 60000,
|
25
|
+
"retry_codes_name": "non_idempotent",
|
26
|
+
"retry_params_name": "default"
|
27
|
+
},
|
28
|
+
"GetOfflineUserDataJob": {
|
29
|
+
"timeout_millis": 60000,
|
30
|
+
"retry_codes_name": "idempotent",
|
31
|
+
"retry_params_name": "default"
|
32
|
+
},
|
33
|
+
"AddOfflineUserDataJobOperations": {
|
34
|
+
"timeout_millis": 60000,
|
35
|
+
"retry_codes_name": "non_idempotent",
|
36
|
+
"retry_params_name": "default"
|
37
|
+
},
|
38
|
+
"RunOfflineUserDataJob": {
|
39
|
+
"timeout_millis": 60000,
|
40
|
+
"retry_codes_name": "non_idempotent",
|
41
|
+
"retry_params_name": "default"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/ads/google_ads/v3/services/offline_user_data_job_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/ads/google_ads/v3/common/offline_user_data_pb'
|
7
|
+
require 'google/ads/google_ads/v3/resources/offline_user_data_job_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
require 'google/api/client_pb'
|
10
|
+
require 'google/api/field_behavior_pb'
|
11
|
+
require 'google/api/resource_pb'
|
12
|
+
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/wrappers_pb'
|
14
|
+
require 'google/rpc/status_pb'
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_message "google.ads.googleads.v3.services.CreateOfflineUserDataJobRequest" do
|
17
|
+
optional :customer_id, :string, 1
|
18
|
+
optional :job, :message, 2, "google.ads.googleads.v3.resources.OfflineUserDataJob"
|
19
|
+
end
|
20
|
+
add_message "google.ads.googleads.v3.services.CreateOfflineUserDataJobResponse" do
|
21
|
+
optional :resource_name, :string, 1
|
22
|
+
end
|
23
|
+
add_message "google.ads.googleads.v3.services.GetOfflineUserDataJobRequest" do
|
24
|
+
optional :resource_name, :string, 1
|
25
|
+
end
|
26
|
+
add_message "google.ads.googleads.v3.services.RunOfflineUserDataJobRequest" do
|
27
|
+
optional :resource_name, :string, 1
|
28
|
+
end
|
29
|
+
add_message "google.ads.googleads.v3.services.AddOfflineUserDataJobOperationsRequest" do
|
30
|
+
optional :resource_name, :string, 1
|
31
|
+
optional :enable_partial_failure, :message, 2, "google.protobuf.BoolValue"
|
32
|
+
repeated :operations, :message, 3, "google.ads.googleads.v3.services.OfflineUserDataJobOperation"
|
33
|
+
end
|
34
|
+
add_message "google.ads.googleads.v3.services.OfflineUserDataJobOperation" do
|
35
|
+
oneof :operation do
|
36
|
+
optional :create, :message, 1, "google.ads.googleads.v3.common.UserData"
|
37
|
+
optional :remove, :message, 2, "google.ads.googleads.v3.common.UserData"
|
38
|
+
optional :remove_all, :bool, 3
|
39
|
+
end
|
40
|
+
end
|
41
|
+
add_message "google.ads.googleads.v3.services.AddOfflineUserDataJobOperationsResponse" do
|
42
|
+
optional :partial_failure_error, :message, 1, "google.rpc.Status"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google::Ads::GoogleAds::V3::Services
|
47
|
+
CreateOfflineUserDataJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.CreateOfflineUserDataJobRequest").msgclass
|
48
|
+
CreateOfflineUserDataJobResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.CreateOfflineUserDataJobResponse").msgclass
|
49
|
+
GetOfflineUserDataJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.GetOfflineUserDataJobRequest").msgclass
|
50
|
+
RunOfflineUserDataJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.RunOfflineUserDataJobRequest").msgclass
|
51
|
+
AddOfflineUserDataJobOperationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.AddOfflineUserDataJobOperationsRequest").msgclass
|
52
|
+
OfflineUserDataJobOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.OfflineUserDataJobOperation").msgclass
|
53
|
+
AddOfflineUserDataJobOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v3.services.AddOfflineUserDataJobOperationsResponse").msgclass
|
54
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/ads/google_ads/v3/services/offline_user_data_job_service.proto for package 'Google::Ads::GoogleAds::V3::Services'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2020 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
|
+
require 'grpc'
|
20
|
+
require 'google/ads/google_ads/v3/services/offline_user_data_job_service_pb'
|
21
|
+
|
22
|
+
module Google::Ads::GoogleAds::V3::Services
|
23
|
+
module OfflineUserDataJobService
|
24
|
+
# Proto file describing the OfflineUserDataJobService.
|
25
|
+
#
|
26
|
+
# Service to manage offline user data jobs.
|
27
|
+
class Service
|
28
|
+
|
29
|
+
include GRPC::GenericService
|
30
|
+
|
31
|
+
self.marshal_class_method = :encode
|
32
|
+
self.unmarshal_class_method = :decode
|
33
|
+
self.service_name = 'google.ads.googleads.v3.services.OfflineUserDataJobService'
|
34
|
+
|
35
|
+
# Creates an offline user data job.
|
36
|
+
rpc :CreateOfflineUserDataJob, CreateOfflineUserDataJobRequest, CreateOfflineUserDataJobResponse
|
37
|
+
# Returns the offline user data job.
|
38
|
+
rpc :GetOfflineUserDataJob, GetOfflineUserDataJobRequest, Google::Ads::GoogleAds::V3::Resources::OfflineUserDataJob
|
39
|
+
# Adds operations to the offline user data job.
|
40
|
+
rpc :AddOfflineUserDataJobOperations, AddOfflineUserDataJobOperationsRequest, AddOfflineUserDataJobOperationsResponse
|
41
|
+
# Runs the offline user data job.
|
42
|
+
#
|
43
|
+
# When finished, the long running operation will contain the processing
|
44
|
+
# result or failure information, if any.
|
45
|
+
rpc :RunOfflineUserDataJob, RunOfflineUserDataJobRequest, Google::Longrunning::Operation
|
46
|
+
end
|
47
|
+
|
48
|
+
Stub = Service.rpc_stub_class
|
49
|
+
end
|
50
|
+
end
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/operating_system_version_constant_pb
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetOperatingSystemVersionConstantRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/paid_organic_search_term_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetPaidOrganicSearchTermViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/parental_status_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetParentalStatusViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/product_bidding_category_constant_pb
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetProductBiddingCategoryConstantRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/product_group_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetProductGroupViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -342,7 +342,7 @@ module Google
|
|
342
342
|
# This is equivalent to the frequency cap exposed in Google Ads when creating
|
343
343
|
# a campaign, it represents the maximum number of times an ad can be shown to
|
344
344
|
# the same user.
|
345
|
-
# If not specified no cap is applied.
|
345
|
+
# If not specified, no cap is applied.
|
346
346
|
# A hash of the same form as `Google::Protobuf::Int32Value`
|
347
347
|
# can also be provided.
|
348
348
|
# @param min_effective_frequency [Google::Protobuf::Int32Value | Hash]
|
@@ -358,9 +358,6 @@ module Google
|
|
358
358
|
# This is planned targeting: execution details might vary based on the
|
359
359
|
# advertising product, please consult an implementation specialist.
|
360
360
|
#
|
361
|
-
# If no targeting dimensions are specified, then campaigns will target
|
362
|
-
# everywhere and everyone.
|
363
|
-
#
|
364
361
|
# See specific metrics for details on how targeting affects them.
|
365
362
|
#
|
366
363
|
# In some cases, targeting may be overridden using the
|
@@ -368,7 +365,8 @@ module Google
|
|
368
365
|
# A hash of the same form as `Google::Ads::GoogleAds::V3::Services::Targeting`
|
369
366
|
# can also be provided.
|
370
367
|
# @param planned_products [Array<Google::Ads::GoogleAds::V3::Services::PlannedProduct | Hash>]
|
371
|
-
# Required. The
|
368
|
+
# Required. The products to be forecast.
|
369
|
+
# The max number of allowed planned products is 15.
|
372
370
|
# A hash of the same form as `Google::Ads::GoogleAds::V3::Services::PlannedProduct`
|
373
371
|
# can also be provided.
|
374
372
|
# @param options [Google::Gax::CallOptions]
|
@@ -10,6 +10,7 @@ require 'google/ads/google_ads/v3/resources/recommendation_pb'
|
|
10
10
|
require 'google/api/annotations_pb'
|
11
11
|
require 'google/api/client_pb'
|
12
12
|
require 'google/api/field_behavior_pb'
|
13
|
+
require 'google/api/resource_pb'
|
13
14
|
require 'google/protobuf/wrappers_pb'
|
14
15
|
require 'google/rpc/status_pb'
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/remarketing_action_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
require 'google/protobuf/field_mask_pb'
|
11
12
|
require 'google/rpc/status_pb'
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/search_term_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetSearchTermViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/shared_criterion_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_message "google.ads.googleads.v3.services.GetSharedCriterionRequest" do
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/shared_set_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
require 'google/protobuf/field_mask_pb'
|
11
12
|
require 'google/rpc/status_pb'
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/shopping_performance_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetShoppingPerformanceViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/topic_constant_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetTopicConstantRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -7,6 +7,7 @@ require 'google/ads/google_ads/v3/resources/topic_view_pb'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_message "google.ads.googleads.v3.services.GetTopicViewRequest" do
|
12
13
|
optional :resource_name, :string, 1
|
@@ -0,0 +1,225 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# EDITING INSTRUCTIONS
|
16
|
+
# This file was generated from the file
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/ads/google_ads/v3/services/user_data_service.proto,
|
18
|
+
# and updates to that file get reflected here through a refresh process.
|
19
|
+
# For the short term, the refresh process will only be runnable by Google
|
20
|
+
# engineers.
|
21
|
+
|
22
|
+
require "json"
|
23
|
+
require "pathname"
|
24
|
+
|
25
|
+
require "google/gax"
|
26
|
+
|
27
|
+
require "google/ads/google_ads/v3/services/user_data_service_pb"
|
28
|
+
require "google/ads/google_ads/v3/services/credentials"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Ads
|
32
|
+
module GoogleAds
|
33
|
+
module V3
|
34
|
+
module Services
|
35
|
+
# Service to manage user data uploads.
|
36
|
+
# Accessible to whitelisted customers only.
|
37
|
+
#
|
38
|
+
# @!attribute [r] user_data_service_stub
|
39
|
+
# @return [Google::Ads::GoogleAds::V3::Services::UserDataService::Stub]
|
40
|
+
class UserDataServiceClient
|
41
|
+
attr_reader :user_data_service_stub
|
42
|
+
|
43
|
+
# The default address of the service.
|
44
|
+
SERVICE_ADDRESS = "googleads.googleapis.com".freeze
|
45
|
+
|
46
|
+
# The default port of the service.
|
47
|
+
DEFAULT_SERVICE_PORT = 443
|
48
|
+
|
49
|
+
# The default set of gRPC interceptors.
|
50
|
+
GRPC_INTERCEPTORS = []
|
51
|
+
|
52
|
+
DEFAULT_TIMEOUT = 30
|
53
|
+
|
54
|
+
# The scopes needed to make gRPC calls to all of the methods defined in
|
55
|
+
# this service.
|
56
|
+
ALL_SCOPES = [
|
57
|
+
].freeze
|
58
|
+
|
59
|
+
|
60
|
+
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
61
|
+
# Provides the means for authenticating requests made by the client. This parameter can
|
62
|
+
# be many types.
|
63
|
+
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
64
|
+
# authenticating requests made by this client.
|
65
|
+
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
66
|
+
# credentials for this client.
|
67
|
+
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
68
|
+
# credentials for this client.
|
69
|
+
# A `GRPC::Core::Channel` will be used to make calls through.
|
70
|
+
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
71
|
+
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
72
|
+
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
73
|
+
# metadata for requests, generally, to give OAuth credentials.
|
74
|
+
# @param scopes [Array<String>]
|
75
|
+
# The OAuth scopes for this service. This parameter is ignored if
|
76
|
+
# an updater_proc is supplied.
|
77
|
+
# @param client_config [Hash]
|
78
|
+
# A Hash for call options for each method. See
|
79
|
+
# Google::Gax#construct_settings for the structure of
|
80
|
+
# this data. Falls back to the default config if not specified
|
81
|
+
# or the specified config is missing data points.
|
82
|
+
# @param timeout [Numeric]
|
83
|
+
# The default timeout, in seconds, for calls made through this client.
|
84
|
+
# @param metadata [Hash]
|
85
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
86
|
+
# @param exception_transformer [Proc]
|
87
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
88
|
+
# custom error handling.
|
89
|
+
def initialize \
|
90
|
+
credentials: nil,
|
91
|
+
scopes: ALL_SCOPES,
|
92
|
+
client_config: {},
|
93
|
+
timeout: DEFAULT_TIMEOUT,
|
94
|
+
metadata: nil,
|
95
|
+
exception_transformer: nil,
|
96
|
+
lib_name: nil,
|
97
|
+
lib_version: ""
|
98
|
+
# These require statements are intentionally placed here to initialize
|
99
|
+
# the gRPC module only when it's required.
|
100
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
101
|
+
require "google/gax/grpc"
|
102
|
+
require "google/ads/google_ads/v3/services/user_data_service_services_pb"
|
103
|
+
|
104
|
+
credentials ||= Google::Ads::GoogleAds::V3::Services::Credentials.default
|
105
|
+
|
106
|
+
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
107
|
+
updater_proc = Google::Ads::GoogleAds::V3::Services::Credentials.new(credentials).updater_proc
|
108
|
+
end
|
109
|
+
if credentials.is_a?(GRPC::Core::Channel)
|
110
|
+
channel = credentials
|
111
|
+
end
|
112
|
+
if credentials.is_a?(GRPC::Core::ChannelCredentials)
|
113
|
+
chan_creds = credentials
|
114
|
+
end
|
115
|
+
if credentials.is_a?(Proc)
|
116
|
+
updater_proc = credentials
|
117
|
+
end
|
118
|
+
if credentials.is_a?(Google::Auth::Credentials)
|
119
|
+
updater_proc = credentials.updater_proc
|
120
|
+
end
|
121
|
+
|
122
|
+
package_version = Gem.loaded_specs['google-ads-googleads'].version.version
|
123
|
+
|
124
|
+
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
125
|
+
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
126
|
+
google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
|
127
|
+
google_api_client << " grpc/#{GRPC::VERSION}"
|
128
|
+
google_api_client.freeze
|
129
|
+
|
130
|
+
headers = { :"x-goog-api-client" => google_api_client }
|
131
|
+
headers.merge!(metadata) unless metadata.nil?
|
132
|
+
client_config_file = Pathname.new(__dir__).join(
|
133
|
+
"user_data_service_client_config.json"
|
134
|
+
)
|
135
|
+
defaults = client_config_file.open do |f|
|
136
|
+
Google::Gax.construct_settings(
|
137
|
+
"google.ads.googleads.v3.services.UserDataService",
|
138
|
+
JSON.parse(f.read),
|
139
|
+
client_config,
|
140
|
+
Google::Gax::Grpc::STATUS_CODE_NAMES,
|
141
|
+
timeout,
|
142
|
+
errors: Google::Gax::Grpc::API_ERRORS,
|
143
|
+
metadata: headers
|
144
|
+
)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Allow overriding the service path/port in subclasses.
|
148
|
+
service_path = self.class::SERVICE_ADDRESS
|
149
|
+
port = self.class::DEFAULT_SERVICE_PORT
|
150
|
+
interceptors = self.class::GRPC_INTERCEPTORS
|
151
|
+
@user_data_service_stub = Google::Gax::Grpc.create_stub(
|
152
|
+
service_path,
|
153
|
+
port,
|
154
|
+
chan_creds: chan_creds,
|
155
|
+
channel: channel,
|
156
|
+
updater_proc: updater_proc,
|
157
|
+
scopes: scopes,
|
158
|
+
interceptors: interceptors,
|
159
|
+
&Google::Ads::GoogleAds::V3::Services::UserDataService::Stub.method(:new)
|
160
|
+
)
|
161
|
+
|
162
|
+
@upload_user_data = Google::Gax.create_api_call(
|
163
|
+
@user_data_service_stub.method(:upload_user_data),
|
164
|
+
defaults["upload_user_data"],
|
165
|
+
exception_transformer: exception_transformer,
|
166
|
+
params_extractor: proc do |request|
|
167
|
+
{'customer_id' => request.customer_id}
|
168
|
+
end
|
169
|
+
)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Service calls
|
173
|
+
|
174
|
+
# Uploads the given user data.
|
175
|
+
#
|
176
|
+
# @param customer_id [String]
|
177
|
+
# Required. The ID of the customer for which to update the user data.
|
178
|
+
# @param operations [Array<Google::Ads::GoogleAds::V3::Services::UserDataOperation | Hash>]
|
179
|
+
# Required. The list of operations to be done.
|
180
|
+
# A hash of the same form as `Google::Ads::GoogleAds::V3::Services::UserDataOperation`
|
181
|
+
# can also be provided.
|
182
|
+
# @param customer_match_user_list_metadata [Google::Ads::GoogleAds::V3::Common::CustomerMatchUserListMetadata | Hash]
|
183
|
+
# Metadata for data updates to a Customer Match user list.
|
184
|
+
# A hash of the same form as `Google::Ads::GoogleAds::V3::Common::CustomerMatchUserListMetadata`
|
185
|
+
# can also be provided.
|
186
|
+
# @param options [Google::Gax::CallOptions]
|
187
|
+
# Overrides the default settings for this call, e.g, timeout,
|
188
|
+
# retries, etc.
|
189
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
190
|
+
# @yieldparam result [Google::Ads::GoogleAds::V3::Services::UploadUserDataResponse]
|
191
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
192
|
+
# @return [Google::Ads::GoogleAds::V3::Services::UploadUserDataResponse]
|
193
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
194
|
+
# @example
|
195
|
+
# require "google/ads/google_ads"
|
196
|
+
#
|
197
|
+
# user_data_client = Google::Ads::GoogleAds::UserData.new(version: :v3)
|
198
|
+
#
|
199
|
+
# # TODO: Initialize `customer_id`:
|
200
|
+
# customer_id = ''
|
201
|
+
#
|
202
|
+
# # TODO: Initialize `operations`:
|
203
|
+
# operations = []
|
204
|
+
# response = user_data_client.upload_user_data(customer_id, operations)
|
205
|
+
|
206
|
+
def upload_user_data \
|
207
|
+
customer_id,
|
208
|
+
operations,
|
209
|
+
customer_match_user_list_metadata: nil,
|
210
|
+
options: nil,
|
211
|
+
&block
|
212
|
+
req = {
|
213
|
+
customer_id: customer_id,
|
214
|
+
operations: operations,
|
215
|
+
customer_match_user_list_metadata: customer_match_user_list_metadata
|
216
|
+
}.delete_if { |_, v| v.nil? }
|
217
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V3::Services::UploadUserDataRequest)
|
218
|
+
@upload_user_data.call(req, options, &block)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|