google-adwords-api 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +0 -0
- data/ChangeLog +3 -0
- data/README.md +3 -3
- data/adwords_api.yml +0 -0
- data/lib/adwords_api.rb +0 -0
- data/lib/adwords_api/api_config.rb +71 -63
- data/lib/adwords_api/batch_job_utils.rb +0 -0
- data/lib/adwords_api/credential_handler.rb +0 -0
- data/lib/adwords_api/errors.rb +0 -0
- data/lib/adwords_api/incremental_upload_helper.rb +0 -0
- data/lib/adwords_api/report_header_handler.rb +0 -0
- data/lib/adwords_api/report_stream.rb +0 -0
- data/lib/adwords_api/report_utils.rb +0 -0
- data/lib/adwords_api/utils.rb +0 -0
- data/lib/adwords_api/utils_reporter.rb +0 -0
- data/lib/adwords_api/v201609/account_label_service.rb +2 -2
- data/lib/adwords_api/v201609/account_label_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_customizer_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_customizer_feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_ad_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_ad_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_bid_modifier_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_bid_modifier_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_criterion_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_criterion_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_extension_setting_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_extension_setting_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_group_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/ad_param_service.rb +2 -2
- data/lib/adwords_api/v201609/ad_param_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/adwords_user_list_service.rb +2 -2
- data/lib/adwords_api/v201609/adwords_user_list_service_registry.rb +3 -3
- data/lib/adwords_api/v201609/batch_job_service.rb +2 -2
- data/lib/adwords_api/v201609/batch_job_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/bidding_strategy_service.rb +2 -2
- data/lib/adwords_api/v201609/bidding_strategy_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/budget_order_service.rb +2 -2
- data/lib/adwords_api/v201609/budget_order_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/budget_service.rb +2 -2
- data/lib/adwords_api/v201609/budget_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/campaign_criterion_service.rb +2 -2
- data/lib/adwords_api/v201609/campaign_criterion_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/campaign_extension_setting_service.rb +2 -2
- data/lib/adwords_api/v201609/campaign_extension_setting_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/campaign_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/campaign_feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/campaign_service.rb +2 -2
- data/lib/adwords_api/v201609/campaign_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/campaign_shared_set_service.rb +2 -2
- data/lib/adwords_api/v201609/campaign_shared_set_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/constant_data_service.rb +2 -2
- data/lib/adwords_api/v201609/constant_data_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/conversion_tracker_service.rb +2 -2
- data/lib/adwords_api/v201609/conversion_tracker_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/customer_extension_setting_service.rb +2 -2
- data/lib/adwords_api/v201609/customer_extension_setting_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/customer_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/customer_feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/customer_service.rb +2 -2
- data/lib/adwords_api/v201609/customer_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/customer_sync_service.rb +2 -2
- data/lib/adwords_api/v201609/customer_sync_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/data_service.rb +2 -2
- data/lib/adwords_api/v201609/data_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/draft_async_error_service.rb +2 -2
- data/lib/adwords_api/v201609/draft_async_error_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/draft_service.rb +2 -2
- data/lib/adwords_api/v201609/draft_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/feed_item_service.rb +2 -2
- data/lib/adwords_api/v201609/feed_item_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/feed_mapping_service.rb +2 -2
- data/lib/adwords_api/v201609/feed_mapping_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/feed_service.rb +2 -2
- data/lib/adwords_api/v201609/feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/label_service.rb +2 -2
- data/lib/adwords_api/v201609/label_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/location_criterion_service.rb +2 -2
- data/lib/adwords_api/v201609/location_criterion_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/managed_customer_service.rb +2 -2
- data/lib/adwords_api/v201609/managed_customer_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/media_service.rb +2 -2
- data/lib/adwords_api/v201609/media_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/offline_call_conversion_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/offline_call_conversion_feed_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/offline_conversion_feed_service.rb +2 -2
- data/lib/adwords_api/v201609/offline_conversion_feed_service_registry.rb +3 -3
- data/lib/adwords_api/v201609/report_definition_service.rb +2 -2
- data/lib/adwords_api/v201609/report_definition_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/shared_criterion_service.rb +2 -2
- data/lib/adwords_api/v201609/shared_criterion_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/shared_set_service.rb +2 -2
- data/lib/adwords_api/v201609/shared_set_service_registry.rb +3 -3
- data/lib/adwords_api/v201609/targeting_idea_service.rb +2 -2
- data/lib/adwords_api/v201609/targeting_idea_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/traffic_estimator_service.rb +2 -2
- data/lib/adwords_api/v201609/traffic_estimator_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/trial_async_error_service.rb +2 -2
- data/lib/adwords_api/v201609/trial_async_error_service_registry.rb +2 -2
- data/lib/adwords_api/v201609/trial_service.rb +2 -2
- data/lib/adwords_api/v201609/trial_service_registry.rb +2 -2
- data/lib/adwords_api/v201702/account_label_service.rb +0 -0
- data/lib/adwords_api/v201702/account_label_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_customizer_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_customizer_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_ad_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_ad_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_bid_modifier_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_bid_modifier_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_criterion_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_group_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/ad_param_service.rb +0 -0
- data/lib/adwords_api/v201702/ad_param_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/adwords_user_list_service.rb +0 -0
- data/lib/adwords_api/v201702/adwords_user_list_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/batch_job_service.rb +0 -0
- data/lib/adwords_api/v201702/batch_job_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/bidding_strategy_service.rb +0 -0
- data/lib/adwords_api/v201702/bidding_strategy_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/budget_order_service.rb +0 -0
- data/lib/adwords_api/v201702/budget_order_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/budget_service.rb +0 -0
- data/lib/adwords_api/v201702/budget_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/campaign_criterion_service.rb +0 -0
- data/lib/adwords_api/v201702/campaign_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/campaign_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201702/campaign_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/campaign_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/campaign_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/campaign_service.rb +0 -0
- data/lib/adwords_api/v201702/campaign_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/campaign_shared_set_service.rb +0 -0
- data/lib/adwords_api/v201702/campaign_shared_set_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/constant_data_service.rb +0 -0
- data/lib/adwords_api/v201702/constant_data_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/conversion_tracker_service.rb +0 -0
- data/lib/adwords_api/v201702/conversion_tracker_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/customer_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201702/customer_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/customer_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/customer_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/customer_service.rb +0 -0
- data/lib/adwords_api/v201702/customer_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/customer_sync_service.rb +0 -0
- data/lib/adwords_api/v201702/customer_sync_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/data_service.rb +0 -0
- data/lib/adwords_api/v201702/data_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/draft_async_error_service.rb +0 -0
- data/lib/adwords_api/v201702/draft_async_error_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/draft_service.rb +0 -0
- data/lib/adwords_api/v201702/draft_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/feed_item_service.rb +0 -0
- data/lib/adwords_api/v201702/feed_item_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/feed_mapping_service.rb +0 -0
- data/lib/adwords_api/v201702/feed_mapping_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/feed_service.rb +0 -0
- data/lib/adwords_api/v201702/feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/label_service.rb +0 -0
- data/lib/adwords_api/v201702/label_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/location_criterion_service.rb +0 -0
- data/lib/adwords_api/v201702/location_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/managed_customer_service.rb +0 -0
- data/lib/adwords_api/v201702/managed_customer_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/media_service.rb +0 -0
- data/lib/adwords_api/v201702/media_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/offline_call_conversion_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/offline_call_conversion_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/offline_conversion_feed_service.rb +0 -0
- data/lib/adwords_api/v201702/offline_conversion_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/report_definition_service.rb +0 -0
- data/lib/adwords_api/v201702/report_definition_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/shared_criterion_service.rb +0 -0
- data/lib/adwords_api/v201702/shared_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/shared_set_service.rb +0 -0
- data/lib/adwords_api/v201702/shared_set_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/targeting_idea_service.rb +0 -0
- data/lib/adwords_api/v201702/targeting_idea_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/traffic_estimator_service.rb +0 -0
- data/lib/adwords_api/v201702/traffic_estimator_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/trial_async_error_service.rb +0 -0
- data/lib/adwords_api/v201702/trial_async_error_service_registry.rb +0 -0
- data/lib/adwords_api/v201702/trial_service.rb +0 -0
- data/lib/adwords_api/v201702/trial_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/account_label_service.rb +0 -0
- data/lib/adwords_api/v201705/account_label_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_customizer_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_customizer_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_ad_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_ad_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_bid_modifier_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_bid_modifier_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_criterion_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_group_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/ad_param_service.rb +0 -0
- data/lib/adwords_api/v201705/ad_param_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/adwords_user_list_service.rb +0 -0
- data/lib/adwords_api/v201705/adwords_user_list_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/batch_job_service.rb +0 -0
- data/lib/adwords_api/v201705/batch_job_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/bidding_strategy_service.rb +0 -0
- data/lib/adwords_api/v201705/bidding_strategy_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/budget_order_service.rb +0 -0
- data/lib/adwords_api/v201705/budget_order_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/budget_service.rb +0 -0
- data/lib/adwords_api/v201705/budget_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_bid_modifier_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_bid_modifier_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_criterion_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_group_performance_target_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_group_performance_target_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_group_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_group_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/campaign_shared_set_service.rb +0 -0
- data/lib/adwords_api/v201705/campaign_shared_set_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/constant_data_service.rb +0 -0
- data/lib/adwords_api/v201705/constant_data_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/conversion_tracker_service.rb +0 -0
- data/lib/adwords_api/v201705/conversion_tracker_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/customer_extension_setting_service.rb +0 -0
- data/lib/adwords_api/v201705/customer_extension_setting_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/customer_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/customer_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/customer_service.rb +0 -0
- data/lib/adwords_api/v201705/customer_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/customer_sync_service.rb +0 -0
- data/lib/adwords_api/v201705/customer_sync_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/data_service.rb +0 -0
- data/lib/adwords_api/v201705/data_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/draft_async_error_service.rb +0 -0
- data/lib/adwords_api/v201705/draft_async_error_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/draft_service.rb +0 -0
- data/lib/adwords_api/v201705/draft_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/feed_item_service.rb +0 -0
- data/lib/adwords_api/v201705/feed_item_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/feed_mapping_service.rb +0 -0
- data/lib/adwords_api/v201705/feed_mapping_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/feed_service.rb +0 -0
- data/lib/adwords_api/v201705/feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/label_service.rb +0 -0
- data/lib/adwords_api/v201705/label_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/location_criterion_service.rb +0 -0
- data/lib/adwords_api/v201705/location_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/managed_customer_service.rb +0 -0
- data/lib/adwords_api/v201705/managed_customer_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/media_service.rb +0 -0
- data/lib/adwords_api/v201705/media_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/offline_call_conversion_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/offline_call_conversion_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/offline_conversion_feed_service.rb +0 -0
- data/lib/adwords_api/v201705/offline_conversion_feed_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/report_definition_service.rb +0 -0
- data/lib/adwords_api/v201705/report_definition_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/shared_criterion_service.rb +0 -0
- data/lib/adwords_api/v201705/shared_criterion_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/shared_set_service.rb +0 -0
- data/lib/adwords_api/v201705/shared_set_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/targeting_idea_service.rb +0 -0
- data/lib/adwords_api/v201705/targeting_idea_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/traffic_estimator_service.rb +0 -0
- data/lib/adwords_api/v201705/traffic_estimator_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/trial_async_error_service.rb +0 -0
- data/lib/adwords_api/v201705/trial_async_error_service_registry.rb +0 -0
- data/lib/adwords_api/v201705/trial_service.rb +0 -0
- data/lib/adwords_api/v201705/trial_service_registry.rb +0 -0
- data/lib/adwords_api/v201708/account_label_service.rb +46 -0
- data/lib/adwords_api/v201708/account_label_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_customizer_feed_service.rb +46 -0
- data/lib/adwords_api/v201708/ad_customizer_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_ad_service.rb +62 -0
- data/lib/adwords_api/v201708/ad_group_ad_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_bid_modifier_service.rb +54 -0
- data/lib/adwords_api/v201708/ad_group_bid_modifier_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_criterion_service.rb +62 -0
- data/lib/adwords_api/v201708/ad_group_criterion_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_extension_setting_service.rb +54 -0
- data/lib/adwords_api/v201708/ad_group_extension_setting_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_feed_service.rb +54 -0
- data/lib/adwords_api/v201708/ad_group_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_group_service.rb +62 -0
- data/lib/adwords_api/v201708/ad_group_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/ad_param_service.rb +46 -0
- data/lib/adwords_api/v201708/ad_param_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/adwords_user_list_service.rb +62 -0
- data/lib/adwords_api/v201708/adwords_user_list_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/batch_job_service.rb +54 -0
- data/lib/adwords_api/v201708/batch_job_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/bidding_strategy_service.rb +54 -0
- data/lib/adwords_api/v201708/bidding_strategy_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/budget_order_service.rb +54 -0
- data/lib/adwords_api/v201708/budget_order_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/budget_service.rb +54 -0
- data/lib/adwords_api/v201708/budget_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_bid_modifier_service.rb +54 -0
- data/lib/adwords_api/v201708/campaign_bid_modifier_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_criterion_service.rb +54 -0
- data/lib/adwords_api/v201708/campaign_criterion_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_extension_setting_service.rb +54 -0
- data/lib/adwords_api/v201708/campaign_extension_setting_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_feed_service.rb +54 -0
- data/lib/adwords_api/v201708/campaign_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_group_performance_target_service.rb +46 -0
- data/lib/adwords_api/v201708/campaign_group_performance_target_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_group_service.rb +46 -0
- data/lib/adwords_api/v201708/campaign_group_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_service.rb +62 -0
- data/lib/adwords_api/v201708/campaign_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/campaign_shared_set_service.rb +54 -0
- data/lib/adwords_api/v201708/campaign_shared_set_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/constant_data_service.rb +110 -0
- data/lib/adwords_api/v201708/constant_data_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/conversion_tracker_service.rb +54 -0
- data/lib/adwords_api/v201708/conversion_tracker_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/customer_extension_setting_service.rb +54 -0
- data/lib/adwords_api/v201708/customer_extension_setting_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/customer_feed_service.rb +54 -0
- data/lib/adwords_api/v201708/customer_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/customer_service.rb +62 -0
- data/lib/adwords_api/v201708/customer_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/customer_sync_service.rb +38 -0
- data/lib/adwords_api/v201708/customer_sync_service_registry.rb +47 -0
- data/lib/adwords_api/v201708/data_service.rb +94 -0
- data/lib/adwords_api/v201708/data_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/draft_async_error_service.rb +46 -0
- data/lib/adwords_api/v201708/draft_async_error_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/draft_service.rb +54 -0
- data/lib/adwords_api/v201708/draft_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/feed_item_service.rb +54 -0
- data/lib/adwords_api/v201708/feed_item_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/feed_mapping_service.rb +54 -0
- data/lib/adwords_api/v201708/feed_mapping_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/feed_service.rb +54 -0
- data/lib/adwords_api/v201708/feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/label_service.rb +54 -0
- data/lib/adwords_api/v201708/label_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/location_criterion_service.rb +46 -0
- data/lib/adwords_api/v201708/location_criterion_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/managed_customer_service.rb +78 -0
- data/lib/adwords_api/v201708/managed_customer_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/media_service.rb +54 -0
- data/lib/adwords_api/v201708/media_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/offline_call_conversion_feed_service.rb +38 -0
- data/lib/adwords_api/v201708/offline_call_conversion_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/offline_conversion_feed_service.rb +38 -0
- data/lib/adwords_api/v201708/offline_conversion_feed_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/offline_data_upload_service.rb +46 -0
- data/lib/adwords_api/v201708/offline_data_upload_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/report_definition_service.rb +38 -0
- data/lib/adwords_api/v201708/report_definition_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/shared_criterion_service.rb +54 -0
- data/lib/adwords_api/v201708/shared_criterion_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/shared_set_service.rb +54 -0
- data/lib/adwords_api/v201708/shared_set_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/targeting_idea_service.rb +38 -0
- data/lib/adwords_api/v201708/targeting_idea_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/traffic_estimator_service.rb +38 -0
- data/lib/adwords_api/v201708/traffic_estimator_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/trial_async_error_service.rb +46 -0
- data/lib/adwords_api/v201708/trial_async_error_service_registry.rb +46 -0
- data/lib/adwords_api/v201708/trial_service.rb +54 -0
- data/lib/adwords_api/v201708/trial_service_registry.rb +46 -0
- data/lib/adwords_api/version.rb +1 -1
- metadata +107 -5
@@ -0,0 +1,38 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:49.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'adwords_api/v201708/offline_conversion_feed_service_registry'
|
12
|
+
|
13
|
+
module AdwordsApi; module V201708; module OfflineConversionFeedService
|
14
|
+
class OfflineConversionFeedService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201708'
|
17
|
+
super(config, endpoint, namespace, :v201708)
|
18
|
+
end
|
19
|
+
|
20
|
+
def mutate(*args, &block)
|
21
|
+
return execute_action('mutate', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def mutate_to_xml(*args)
|
25
|
+
return get_soap_xml('mutate', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def get_service_registry()
|
31
|
+
return OfflineConversionFeedServiceRegistry
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_module()
|
35
|
+
return AdwordsApi::V201708::OfflineConversionFeedService
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:49.
|
9
|
+
|
10
|
+
require 'adwords_api/errors'
|
11
|
+
|
12
|
+
module AdwordsApi; module V201708; module OfflineConversionFeedService
|
13
|
+
class OfflineConversionFeedServiceRegistry
|
14
|
+
OFFLINECONVERSIONFEEDSERVICE_METHODS = {:mutate=>{:input=>[{:name=>:operations, :type=>"OfflineConversionFeedOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"OfflineConversionFeedReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
OFFLINECONVERSIONFEEDSERVICE_TYPES = {:ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ClientTermsError=>{:fields=>[{:name=>:reason, :type=>"ClientTermsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:account_limit_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:existing_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :original_name=>"ListReturnValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OfflineConversionError=>{:fields=>[{:name=>:reason, :type=>"OfflineConversionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OfflineConversionFeed=>{:fields=>[{:name=>:google_click_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_value, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_currency_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_attribution_credit, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_attribution_model, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :OfflineConversionFeedOperation=>{:fields=>[{:name=>:operand, :type=>"OfflineConversionFeed", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :OfflineConversionFeedReturnValue=>{:fields=>[{:name=>:value, :type=>"OfflineConversionFeed", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:partial_failure_errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :original_name=>"Operation.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PagingError=>{:fields=>[{:name=>:reason, :type=>"PagingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RegionCodeError=>{:fields=>[{:name=>:reason, :type=>"RegionCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequestError=>{:fields=>[{:name=>:reason, :type=>"RequestError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"AuthorizationError.Reason"=>{:fields=>[]}, :"ClientTermsError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CurrencyCodeError.Reason"=>{:fields=>[]}, :"DatabaseError.Reason"=>{:fields=>[]}, :"DateError.Reason"=>{:fields=>[]}, :"DistinctError.Reason"=>{:fields=>[]}, :"EntityCountLimitExceeded.Reason"=>{:fields=>[]}, :"EntityNotFound.Reason"=>{:fields=>[]}, :"IdError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotEmptyError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"OfflineConversionError.Reason"=>{:fields=>[]}, :"OperationAccessDenied.Reason"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"OperatorError.Reason"=>{:fields=>[]}, :"PagingError.Reason"=>{:fields=>[]}, :"QuotaCheckError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RateExceededError.Reason"=>{:fields=>[]}, :"ReadOnlyError.Reason"=>{:fields=>[]}, :"RegionCodeError.Reason"=>{:fields=>[]}, :"RejectedError.Reason"=>{:fields=>[]}, :"RequestError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"SizeLimitError.Reason"=>{:fields=>[]}, :"StringFormatError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
+
OFFLINECONVERSIONFEEDSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return OFFLINECONVERSIONFEEDSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return OFFLINECONVERSIONFEEDSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return OFFLINECONVERSIONFEEDSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
# Exception class for holding a list of service errors.
|
38
|
+
class ApiException < ApplicationException
|
39
|
+
attr_reader :errors # ApiError
|
40
|
+
def initialize(exception_fault)
|
41
|
+
@array_fields ||= []
|
42
|
+
@array_fields << 'errors'
|
43
|
+
super(exception_fault, OfflineConversionFeedServiceRegistry)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:49.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'adwords_api/v201708/offline_data_upload_service_registry'
|
12
|
+
|
13
|
+
module AdwordsApi; module V201708; module OfflineDataUploadService
|
14
|
+
class OfflineDataUploadService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adwords.google.com/api/adwords/rm/v201708'
|
17
|
+
super(config, endpoint, namespace, :v201708)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get(*args, &block)
|
21
|
+
return execute_action('get', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_to_xml(*args)
|
25
|
+
return get_soap_xml('get', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def mutate(*args, &block)
|
29
|
+
return execute_action('mutate', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def mutate_to_xml(*args)
|
33
|
+
return get_soap_xml('mutate', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def get_service_registry()
|
39
|
+
return OfflineDataUploadServiceRegistry
|
40
|
+
end
|
41
|
+
|
42
|
+
def get_module()
|
43
|
+
return AdwordsApi::V201708::OfflineDataUploadService
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:49.
|
9
|
+
|
10
|
+
require 'adwords_api/errors'
|
11
|
+
|
12
|
+
module AdwordsApi; module V201708; module OfflineDataUploadService
|
13
|
+
class OfflineDataUploadServiceRegistry
|
14
|
+
OFFLINEDATAUPLOADSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"OfflineDataUploadPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"OfflineDataUploadOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"OfflineDataUploadReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
OFFLINEDATAUPLOADSERVICE_TYPES = {:AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue", :ns=>0}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :NotWhitelistedError=>{:fields=>[{:name=>:reason, :type=>"NotWhitelistedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue", :ns=>0}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :ns=>0}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RegionCodeError=>{:fields=>[{:name=>:reason, :type=>"RegionCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SelectorError=>{:fields=>[{:name=>:reason, :type=>"SelectorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :original_name=>"ComparableValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException", :ns=>0}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :original_name=>"ListReturnValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :original_name=>"Operation.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :original_name=>"Page.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :"AuthenticationError.Reason"=>{:fields=>[], :ns=>0}, :"AuthorizationError.Reason"=>{:fields=>[], :ns=>0}, :"DatabaseError.Reason"=>{:fields=>[], :ns=>0}, :"DateError.Reason"=>{:fields=>[], :ns=>0}, :"DistinctError.Reason"=>{:fields=>[], :ns=>0}, :"EntityNotFound.Reason"=>{:fields=>[], :ns=>0}, :"IdError.Reason"=>{:fields=>[], :ns=>0}, :"InternalApiError.Reason"=>{:fields=>[], :ns=>0}, :"NotEmptyError.Reason"=>{:fields=>[], :ns=>0}, :"NotWhitelistedError.Reason"=>{:fields=>[], :ns=>0}, :"NullError.Reason"=>{:fields=>[], :ns=>0}, :"OperationAccessDenied.Reason"=>{:fields=>[], :ns=>0}, :Operator=>{:fields=>[], :ns=>0}, :"OperatorError.Reason"=>{:fields=>[], :ns=>0}, :"Predicate.Operator"=>{:fields=>[], :ns=>0}, :"QuotaCheckError.Reason"=>{:fields=>[], :ns=>0}, :"RangeError.Reason"=>{:fields=>[], :ns=>0}, :"RateExceededError.Reason"=>{:fields=>[], :ns=>0}, :"ReadOnlyError.Reason"=>{:fields=>[], :ns=>0}, :"RegionCodeError.Reason"=>{:fields=>[], :ns=>0}, :"RejectedError.Reason"=>{:fields=>[], :ns=>0}, :"RequiredError.Reason"=>{:fields=>[], :ns=>0}, :"SelectorError.Reason"=>{:fields=>[], :ns=>0}, :"SizeLimitError.Reason"=>{:fields=>[], :ns=>0}, :SortOrder=>{:fields=>[], :ns=>0}, :"StringFormatError.Reason"=>{:fields=>[], :ns=>0}, :"StringLengthError.Reason"=>{:fields=>[], :ns=>0}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FirstPartyUploadMetadata=>{:fields=>[], :base=>"StoreSalesUploadCommonMetadata"}, :MoneyWithCurrency=>{:fields=>[{:name=>:money, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:currency_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :OfflineData=>{:fields=>[], :choices=>[{:name=>:store_sales_transaction, :original_name=>"StoreSalesTransaction", :type=>"StoreSalesTransaction", :min_occurs=>1, :max_occurs=>1}]}, :OfflineDataUpload=>{:fields=>[{:name=>:upload_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_upload_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:upload_type, :type=>"OfflineDataUploadType", :min_occurs=>0, :max_occurs=>1}, {:name=>:upload_status, :type=>"OfflineDataUploadStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:upload_metadata, :type=>"UploadMetadata", :min_occurs=>0, :max_occurs=>1}, {:name=>:offline_data_list, :type=>"OfflineData", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:partial_data_errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:failure_reason, :type=>"OfflineDataUploadFailureReason", :min_occurs=>0, :max_occurs=>1}]}, :OfflineDataUploadError=>{:fields=>[{:name=>:reason, :type=>"OfflineDataUploadError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OfflineDataUploadOperation=>{:fields=>[{:name=>:operand, :type=>"OfflineDataUpload", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :OfflineDataUploadPage=>{:fields=>[{:name=>:entries, :type=>"OfflineDataUpload", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :OfflineDataUploadReturnValue=>{:fields=>[{:name=>:value, :type=>"OfflineDataUpload", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:partial_failure_errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :StoreSalesTransaction=>{:fields=>[{:name=>:user_identifiers, :type=>"UserIdentifier", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:transaction_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:transaction_amount, :type=>"MoneyWithCurrency", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :StoreSalesUploadCommonMetadata=>{:fields=>[{:name=>:loyalty_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:transaction_upload_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:store_sales_upload_common_metadata_type, :original_name=>"StoreSalesUploadCommonMetadata.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ThirdPartyUploadMetadata=>{:fields=>[{:name=>:advertiser_upload_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:valid_transaction_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:partner_match_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:partner_upload_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:bridge_map_version_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:partner_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"StoreSalesUploadCommonMetadata"}, :UploadMetadata=>{:fields=>[], :choices=>[{:name=>:store_sales_upload_common_metadata, :original_name=>"StoreSalesUploadCommonMetadata", :type=>"StoreSalesUploadCommonMetadata", :min_occurs=>1, :max_occurs=>1}]}, :UserIdentifier=>{:fields=>[{:name=>:user_identifier_type, :type=>"OfflineDataUploadUserIdentifierType", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CurrencyCodeError.Reason"=>{:fields=>[]}, :"OfflineDataUploadError.Reason"=>{:fields=>[]}, :OfflineDataUploadFailureReason=>{:fields=>[]}, :OfflineDataUploadStatus=>{:fields=>[]}, :OfflineDataUploadType=>{:fields=>[]}, :OfflineDataUploadUserIdentifierType=>{:fields=>[]}}
|
16
|
+
OFFLINEDATAUPLOADSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201708"]
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return OFFLINEDATAUPLOADSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return OFFLINEDATAUPLOADSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return OFFLINEDATAUPLOADSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
# Exception class for holding a list of service errors.
|
38
|
+
class ApiException < ApplicationException
|
39
|
+
attr_reader :errors # ApiError
|
40
|
+
def initialize(exception_fault)
|
41
|
+
@array_fields ||= []
|
42
|
+
@array_fields << 'errors'
|
43
|
+
super(exception_fault, OfflineDataUploadServiceRegistry)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:50.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'adwords_api/v201708/report_definition_service_registry'
|
12
|
+
|
13
|
+
module AdwordsApi; module V201708; module ReportDefinitionService
|
14
|
+
class ReportDefinitionService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201708'
|
17
|
+
super(config, endpoint, namespace, :v201708)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_report_fields(*args, &block)
|
21
|
+
return execute_action('get_report_fields', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_report_fields_to_xml(*args)
|
25
|
+
return get_soap_xml('get_report_fields', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def get_service_registry()
|
31
|
+
return ReportDefinitionServiceRegistry
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_module()
|
35
|
+
return AdwordsApi::V201708::ReportDefinitionService
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:50.
|
9
|
+
|
10
|
+
require 'adwords_api/errors'
|
11
|
+
|
12
|
+
module AdwordsApi; module V201708; module ReportDefinitionService
|
13
|
+
class ReportDefinitionServiceRegistry
|
14
|
+
REPORTDEFINITIONSERVICE_METHODS = {:get_report_fields=>{:input=>[{:name=>:report_type, :type=>"ReportDefinition.ReportType", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_report_fields_response", :fields=>[{:name=>:rval, :type=>"ReportDefinitionField", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
REPORTDEFINITIONSERVICE_TYPES = {:AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ClientTermsError=>{:fields=>[{:name=>:reason, :type=>"ClientTermsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EnumValuePair=>{:fields=>[{:name=>:enum_value, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:enum_display_value, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotWhitelistedError=>{:fields=>[{:name=>:reason, :type=>"NotWhitelistedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReportDefinitionError=>{:fields=>[{:name=>:reason, :type=>"ReportDefinitionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReportDefinitionField=>{:fields=>[{:name=>:field_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_field_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:xml_attribute_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_behavior, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:enum_values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:can_select, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:can_filter, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_enum_type, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_beta, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_zero_row_compatible, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:enum_value_pairs, :type=>"EnumValuePair", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:exclusive_fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :RequestError=>{:fields=>[{:name=>:reason, :type=>"RequestError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"AuthorizationError.Reason"=>{:fields=>[]}, :"ClientTermsError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"DatabaseError.Reason"=>{:fields=>[]}, :"DateError.Reason"=>{:fields=>[]}, :"DistinctError.Reason"=>{:fields=>[]}, :"IdError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotEmptyError.Reason"=>{:fields=>[]}, :"NotWhitelistedError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"OperationAccessDenied.Reason"=>{:fields=>[]}, :"OperatorError.Reason"=>{:fields=>[]}, :"QuotaCheckError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RateExceededError.Reason"=>{:fields=>[]}, :"ReadOnlyError.Reason"=>{:fields=>[]}, :"RejectedError.Reason"=>{:fields=>[]}, :"ReportDefinition.ReportType"=>{:fields=>[]}, :"ReportDefinitionError.Reason"=>{:fields=>[]}, :"RequestError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"SizeLimitError.Reason"=>{:fields=>[]}, :"StringFormatError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
+
REPORTDEFINITIONSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return REPORTDEFINITIONSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return REPORTDEFINITIONSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return REPORTDEFINITIONSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
# Exception class for holding a list of service errors.
|
38
|
+
class ApiException < ApplicationException
|
39
|
+
attr_reader :errors # ApiError
|
40
|
+
def initialize(exception_fault)
|
41
|
+
@array_fields ||= []
|
42
|
+
@array_fields << 'errors'
|
43
|
+
super(exception_fault, ReportDefinitionServiceRegistry)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:51.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'adwords_api/v201708/shared_criterion_service_registry'
|
12
|
+
|
13
|
+
module AdwordsApi; module V201708; module SharedCriterionService
|
14
|
+
class SharedCriterionService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201708'
|
17
|
+
super(config, endpoint, namespace, :v201708)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get(*args, &block)
|
21
|
+
return execute_action('get', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_to_xml(*args)
|
25
|
+
return get_soap_xml('get', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def mutate(*args, &block)
|
29
|
+
return execute_action('mutate', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def mutate_to_xml(*args)
|
33
|
+
return get_soap_xml('mutate', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def query(*args, &block)
|
37
|
+
return execute_action('query', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def query_to_xml(*args)
|
41
|
+
return get_soap_xml('query', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def get_service_registry()
|
47
|
+
return SharedCriterionServiceRegistry
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_module()
|
51
|
+
return AdwordsApi::V201708::SharedCriterionService
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:51.
|
9
|
+
|
10
|
+
require 'adwords_api/errors'
|
11
|
+
|
12
|
+
module AdwordsApi; module V201708; module SharedCriterionService
|
13
|
+
class SharedCriterionServiceRegistry
|
14
|
+
SHAREDCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"SharedCriterionPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"SharedCriterionOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"SharedCriterionReturnValue", :min_occurs=>0, :max_occurs=>1}]}}, :query=>{:input=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"query_response", :fields=>[{:name=>:rval, :type=>"SharedCriterionPage", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
SHAREDCRITERIONSERVICE_TYPES = {:AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ClientTermsError=>{:fields=>[{:name=>:reason, :type=>"ClientTermsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CriterionError=>{:fields=>[{:name=>:reason, :type=>"CriterionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:account_limit_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:existing_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :MobileAppCategory=>{:fields=>[{:name=>:mobile_app_category_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :MobileApplication=>{:fields=>[{:name=>:app_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :QueryError=>{:fields=>[{:name=>:reason, :type=>"QueryError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequestError=>{:fields=>[{:name=>:reason, :type=>"RequestError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SelectorError=>{:fields=>[{:name=>:reason, :type=>"SelectorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SharedCriterionError=>{:fields=>[{:name=>:reason, :type=>"SharedCriterionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_parent_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_eligible_for_search, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_eligible_for_display, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:name=>:vertical_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:vertical_parent_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :YouTubeChannel=>{:fields=>[{:name=>:channel_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:channel_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :YouTubeVideo=>{:fields=>[{:name=>:video_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:video_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :original_name=>"Criterion.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SharedCriterion=>{:fields=>[{:name=>:shared_set_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:negative, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SharedCriterionOperation=>{:fields=>[{:name=>:operand, :type=>"SharedCriterion", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :SharedCriterionPage=>{:fields=>[{:name=>:entries, :type=>"SharedCriterion", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :SharedCriterionReturnValue=>{:fields=>[{:name=>:value, :type=>"SharedCriterion", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :original_name=>"ListReturnValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :original_name=>"Operation.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :original_name=>"Page.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"AuthorizationError.Reason"=>{:fields=>[]}, :"ClientTermsError.Reason"=>{:fields=>[]}, :"Criterion.Type"=>{:fields=>[]}, :"CriterionError.Reason"=>{:fields=>[]}, :"DatabaseError.Reason"=>{:fields=>[]}, :"DistinctError.Reason"=>{:fields=>[]}, :"EntityCountLimitExceeded.Reason"=>{:fields=>[]}, :"EntityNotFound.Reason"=>{:fields=>[]}, :"IdError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :"NotEmptyError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"OperationAccessDenied.Reason"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"OperatorError.Reason"=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :"QueryError.Reason"=>{:fields=>[]}, :"QuotaCheckError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RateExceededError.Reason"=>{:fields=>[]}, :"ReadOnlyError.Reason"=>{:fields=>[]}, :"RejectedError.Reason"=>{:fields=>[]}, :"RequestError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"SelectorError.Reason"=>{:fields=>[]}, :"SharedCriterionError.Reason"=>{:fields=>[]}, :"SizeLimitError.Reason"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"StringFormatError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}}
|
16
|
+
SHAREDCRITERIONSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return SHAREDCRITERIONSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return SHAREDCRITERIONSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return SHAREDCRITERIONSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
# Exception class for holding a list of service errors.
|
38
|
+
class ApiException < ApplicationException
|
39
|
+
attr_reader :errors # ApiError
|
40
|
+
def initialize(exception_fault)
|
41
|
+
@array_fields ||= []
|
42
|
+
@array_fields << 'errors'
|
43
|
+
super(exception_fault, SharedCriterionServiceRegistry)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:52.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'adwords_api/v201708/shared_set_service_registry'
|
12
|
+
|
13
|
+
module AdwordsApi; module V201708; module SharedSetService
|
14
|
+
class SharedSetService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201708'
|
17
|
+
super(config, endpoint, namespace, :v201708)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get(*args, &block)
|
21
|
+
return execute_action('get', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_to_xml(*args)
|
25
|
+
return get_soap_xml('get', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def mutate(*args, &block)
|
29
|
+
return execute_action('mutate', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def mutate_to_xml(*args)
|
33
|
+
return get_soap_xml('mutate', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def query(*args, &block)
|
37
|
+
return execute_action('query', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def query_to_xml(*args)
|
41
|
+
return get_soap_xml('query', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def get_service_registry()
|
47
|
+
return SharedSetServiceRegistry
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_module()
|
51
|
+
return AdwordsApi::V201708::SharedSetService
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.14.2 on 2017-08-09 17:59:52.
|
9
|
+
|
10
|
+
require 'adwords_api/errors'
|
11
|
+
|
12
|
+
module AdwordsApi; module V201708; module SharedSetService
|
13
|
+
class SharedSetServiceRegistry
|
14
|
+
SHAREDSETSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"SharedSetPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"SharedSetOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"SharedSetReturnValue", :min_occurs=>0, :max_occurs=>1}]}}, :query=>{:input=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"query_response", :fields=>[{:name=>:rval, :type=>"SharedSetPage", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
SHAREDSETSERVICE_TYPES = {:AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ClientTermsError=>{:fields=>[{:name=>:reason, :type=>"ClientTermsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:account_limit_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:existing_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NewEntityCreationError=>{:fields=>[{:name=>:reason, :type=>"NewEntityCreationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PagingError=>{:fields=>[{:name=>:reason, :type=>"PagingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :QueryError=>{:fields=>[{:name=>:reason, :type=>"QueryError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequestError=>{:fields=>[{:name=>:reason, :type=>"RequestError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SelectorError=>{:fields=>[{:name=>:reason, :type=>"SelectorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SharedSet=>{:fields=>[{:name=>:shared_set_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"SharedSetType", :min_occurs=>0, :max_occurs=>1}, {:name=>:member_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:reference_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"SharedSet.Status", :min_occurs=>0, :max_occurs=>1}]}, :SharedSetError=>{:fields=>[{:name=>:reason, :type=>"SharedSetError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SharedSetOperation=>{:fields=>[{:name=>:operand, :type=>"SharedSet", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :SharedSetPage=>{:fields=>[{:name=>:entries, :type=>"SharedSet", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"NullStatsPage"}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :original_name=>"Operation.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :original_name=>"Page.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :SharedSetReturnValue=>{:fields=>[{:name=>:value, :type=>"SharedSet", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :original_name=>"ListReturnValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"AuthorizationError.Reason"=>{:fields=>[]}, :"ClientTermsError.Reason"=>{:fields=>[]}, :"DatabaseError.Reason"=>{:fields=>[]}, :"DateError.Reason"=>{:fields=>[]}, :"DistinctError.Reason"=>{:fields=>[]}, :"EntityCountLimitExceeded.Reason"=>{:fields=>[]}, :"EntityNotFound.Reason"=>{:fields=>[]}, :"IdError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NewEntityCreationError.Reason"=>{:fields=>[]}, :"NotEmptyError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"OperationAccessDenied.Reason"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"OperatorError.Reason"=>{:fields=>[]}, :"PagingError.Reason"=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :"QueryError.Reason"=>{:fields=>[]}, :"QuotaCheckError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RateExceededError.Reason"=>{:fields=>[]}, :"ReadOnlyError.Reason"=>{:fields=>[]}, :"RejectedError.Reason"=>{:fields=>[]}, :"RequestError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"SelectorError.Reason"=>{:fields=>[]}, :"SharedSet.Status"=>{:fields=>[]}, :"SharedSetError.Reason"=>{:fields=>[]}, :SharedSetType=>{:fields=>[]}, :"SizeLimitError.Reason"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"StringFormatError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
+
SHAREDSETSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return SHAREDSETSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return SHAREDSETSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return SHAREDSETSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
# Exception class for holding a list of service errors.
|
38
|
+
class ApiException < ApplicationException
|
39
|
+
attr_reader :errors # ApiError
|
40
|
+
def initialize(exception_fault)
|
41
|
+
@array_fields ||= []
|
42
|
+
@array_fields << 'errors'
|
43
|
+
super(exception_fault, SharedSetServiceRegistry)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|