google-dfp-api 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +12 -0
- data/lib/ad_manager_api/api_config.rb +16 -18
- data/lib/ad_manager_api/v202405/ad_rule_service.rb +2 -2
- data/lib/ad_manager_api/v202405/ad_rule_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/adjustment_service.rb +2 -2
- data/lib/ad_manager_api/v202405/adjustment_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/audience_segment_service.rb +2 -2
- data/lib/ad_manager_api/v202405/audience_segment_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/cdn_configuration_service.rb +2 -2
- data/lib/ad_manager_api/v202405/cdn_configuration_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/cms_metadata_service.rb +2 -2
- data/lib/ad_manager_api/v202405/cms_metadata_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/company_service.rb +2 -2
- data/lib/ad_manager_api/v202405/company_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/contact_service.rb +2 -2
- data/lib/ad_manager_api/v202405/contact_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/content_bundle_service.rb +2 -2
- data/lib/ad_manager_api/v202405/content_bundle_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/content_service.rb +2 -2
- data/lib/ad_manager_api/v202405/content_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/creative_service.rb +2 -2
- data/lib/ad_manager_api/v202405/creative_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/creative_set_service.rb +2 -2
- data/lib/ad_manager_api/v202405/creative_set_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/creative_template_service.rb +2 -2
- data/lib/ad_manager_api/v202405/creative_template_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/creative_wrapper_service.rb +2 -2
- data/lib/ad_manager_api/v202405/creative_wrapper_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/custom_field_service.rb +2 -2
- data/lib/ad_manager_api/v202405/custom_field_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/custom_targeting_service.rb +2 -2
- data/lib/ad_manager_api/v202405/custom_targeting_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/dai_authentication_key_service.rb +2 -2
- data/lib/ad_manager_api/v202405/dai_authentication_key_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/dai_encoding_profile_service.rb +2 -2
- data/lib/ad_manager_api/v202405/dai_encoding_profile_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/forecast_service.rb +2 -2
- data/lib/ad_manager_api/v202405/forecast_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/inventory_service.rb +2 -2
- data/lib/ad_manager_api/v202405/inventory_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/label_service.rb +2 -2
- data/lib/ad_manager_api/v202405/label_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/line_item_creative_association_service.rb +2 -2
- data/lib/ad_manager_api/v202405/line_item_creative_association_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/line_item_service.rb +2 -2
- data/lib/ad_manager_api/v202405/line_item_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/line_item_template_service.rb +2 -2
- data/lib/ad_manager_api/v202405/line_item_template_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/live_stream_event_service.rb +2 -2
- data/lib/ad_manager_api/v202405/live_stream_event_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/mobile_application_service.rb +2 -2
- data/lib/ad_manager_api/v202405/mobile_application_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/native_style_service.rb +2 -2
- data/lib/ad_manager_api/v202405/native_style_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/network_service.rb +2 -2
- data/lib/ad_manager_api/v202405/network_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/order_service.rb +2 -2
- data/lib/ad_manager_api/v202405/order_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/placement_service.rb +2 -2
- data/lib/ad_manager_api/v202405/placement_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/proposal_line_item_service.rb +2 -2
- data/lib/ad_manager_api/v202405/proposal_line_item_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/proposal_service.rb +2 -2
- data/lib/ad_manager_api/v202405/proposal_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/publisher_query_language_service.rb +2 -2
- data/lib/ad_manager_api/v202405/publisher_query_language_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/report_service.rb +2 -2
- data/lib/ad_manager_api/v202405/report_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/segment_population_service.rb +2 -2
- data/lib/ad_manager_api/v202405/segment_population_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/site_service.rb +2 -2
- data/lib/ad_manager_api/v202405/site_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/stream_activity_monitor_service.rb +2 -2
- data/lib/ad_manager_api/v202405/stream_activity_monitor_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/suggested_ad_unit_service.rb +2 -2
- data/lib/ad_manager_api/v202405/suggested_ad_unit_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/targeting_preset_service.rb +2 -2
- data/lib/ad_manager_api/v202405/targeting_preset_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/team_service.rb +2 -2
- data/lib/ad_manager_api/v202405/team_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/user_service.rb +2 -2
- data/lib/ad_manager_api/v202405/user_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/user_team_association_service.rb +2 -2
- data/lib/ad_manager_api/v202405/user_team_association_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202405/yield_group_service.rb +2 -2
- data/lib/ad_manager_api/v202405/yield_group_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/ad_rule_service.rb +2 -2
- data/lib/ad_manager_api/v202408/ad_rule_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/adjustment_service.rb +2 -2
- data/lib/ad_manager_api/v202408/adjustment_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/ads_txt_service.rb +2 -2
- data/lib/ad_manager_api/v202408/ads_txt_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/audience_segment_service.rb +2 -2
- data/lib/ad_manager_api/v202408/audience_segment_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/cdn_configuration_service.rb +2 -2
- data/lib/ad_manager_api/v202408/cdn_configuration_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/cms_metadata_service.rb +2 -2
- data/lib/ad_manager_api/v202408/cms_metadata_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/company_service.rb +2 -2
- data/lib/ad_manager_api/v202408/company_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/contact_service.rb +2 -2
- data/lib/ad_manager_api/v202408/contact_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/content_bundle_service.rb +2 -2
- data/lib/ad_manager_api/v202408/content_bundle_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/content_service.rb +2 -2
- data/lib/ad_manager_api/v202408/content_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/creative_service.rb +2 -2
- data/lib/ad_manager_api/v202408/creative_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/creative_set_service.rb +2 -2
- data/lib/ad_manager_api/v202408/creative_set_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/creative_template_service.rb +2 -2
- data/lib/ad_manager_api/v202408/creative_template_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/creative_wrapper_service.rb +2 -2
- data/lib/ad_manager_api/v202408/creative_wrapper_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/custom_field_service.rb +2 -2
- data/lib/ad_manager_api/v202408/custom_field_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/custom_targeting_service.rb +2 -2
- data/lib/ad_manager_api/v202408/custom_targeting_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/dai_authentication_key_service.rb +2 -2
- data/lib/ad_manager_api/v202408/dai_authentication_key_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/dai_encoding_profile_service.rb +2 -2
- data/lib/ad_manager_api/v202408/dai_encoding_profile_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/forecast_service.rb +2 -2
- data/lib/ad_manager_api/v202408/forecast_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/inventory_service.rb +2 -2
- data/lib/ad_manager_api/v202408/inventory_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/label_service.rb +2 -2
- data/lib/ad_manager_api/v202408/label_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/line_item_creative_association_service.rb +2 -2
- data/lib/ad_manager_api/v202408/line_item_creative_association_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/line_item_service.rb +2 -2
- data/lib/ad_manager_api/v202408/line_item_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/line_item_template_service.rb +2 -2
- data/lib/ad_manager_api/v202408/line_item_template_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/live_stream_event_service.rb +2 -2
- data/lib/ad_manager_api/v202408/live_stream_event_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/mobile_application_service.rb +2 -2
- data/lib/ad_manager_api/v202408/mobile_application_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/native_style_service.rb +2 -2
- data/lib/ad_manager_api/v202408/native_style_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/network_service.rb +2 -2
- data/lib/ad_manager_api/v202408/network_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/order_service.rb +2 -2
- data/lib/ad_manager_api/v202408/order_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/placement_service.rb +2 -2
- data/lib/ad_manager_api/v202408/placement_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/proposal_line_item_service.rb +2 -2
- data/lib/ad_manager_api/v202408/proposal_line_item_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/proposal_service.rb +2 -2
- data/lib/ad_manager_api/v202408/proposal_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/publisher_query_language_service.rb +2 -2
- data/lib/ad_manager_api/v202408/publisher_query_language_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/report_service.rb +2 -2
- data/lib/ad_manager_api/v202408/report_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/segment_population_service.rb +2 -2
- data/lib/ad_manager_api/v202408/segment_population_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/site_service.rb +2 -2
- data/lib/ad_manager_api/v202408/site_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/stream_activity_monitor_service.rb +2 -2
- data/lib/ad_manager_api/v202408/stream_activity_monitor_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/suggested_ad_unit_service.rb +2 -2
- data/lib/ad_manager_api/v202408/suggested_ad_unit_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/targeting_preset_service.rb +2 -2
- data/lib/ad_manager_api/v202408/targeting_preset_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/team_service.rb +2 -2
- data/lib/ad_manager_api/v202408/team_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/user_service.rb +2 -2
- data/lib/ad_manager_api/v202408/user_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/user_team_association_service.rb +2 -2
- data/lib/ad_manager_api/v202408/user_team_association_service_registry.rb +4 -4
- data/lib/ad_manager_api/v202408/yield_group_service.rb +2 -2
- data/lib/ad_manager_api/v202408/yield_group_service_registry.rb +4 -4
- data/lib/ad_manager_api/{v202311 → v202411}/ad_rule_service.rb +7 -7
- data/lib/ad_manager_api/v202411/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/adjustment_service.rb +7 -7
- data/lib/ad_manager_api/v202411/adjustment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v202411/ads_txt_service.rb +38 -0
- data/lib/ad_manager_api/v202411/ads_txt_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202311 → v202411}/audience_segment_service.rb +7 -7
- data/lib/ad_manager_api/v202411/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/cdn_configuration_service.rb +7 -7
- data/lib/ad_manager_api/v202411/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/cms_metadata_service.rb +7 -7
- data/lib/ad_manager_api/v202411/cms_metadata_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/company_service.rb +7 -7
- data/lib/ad_manager_api/v202411/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/contact_service.rb +7 -7
- data/lib/ad_manager_api/v202411/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/content_bundle_service.rb +7 -7
- data/lib/ad_manager_api/v202411/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/content_service.rb +7 -7
- data/lib/ad_manager_api/v202411/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/creative_service.rb +7 -7
- data/lib/ad_manager_api/v202411/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/creative_set_service.rb +7 -7
- data/lib/ad_manager_api/v202411/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/creative_template_service.rb +7 -7
- data/lib/ad_manager_api/v202411/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/creative_wrapper_service.rb +7 -7
- data/lib/ad_manager_api/v202411/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/custom_field_service.rb +7 -7
- data/lib/ad_manager_api/v202411/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/custom_targeting_service.rb +7 -7
- data/lib/ad_manager_api/v202411/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/dai_authentication_key_service.rb +7 -7
- data/lib/ad_manager_api/v202411/dai_authentication_key_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/dai_encoding_profile_service.rb +7 -7
- data/lib/ad_manager_api/v202411/dai_encoding_profile_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/forecast_service.rb +7 -7
- data/lib/ad_manager_api/v202411/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/inventory_service.rb +7 -7
- data/lib/ad_manager_api/v202411/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/label_service.rb +7 -7
- data/lib/ad_manager_api/v202411/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/line_item_creative_association_service.rb +7 -15
- data/lib/ad_manager_api/v202411/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/line_item_service.rb +7 -7
- data/lib/ad_manager_api/v202411/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/line_item_template_service.rb +7 -7
- data/lib/ad_manager_api/v202411/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/live_stream_event_service.rb +7 -7
- data/lib/ad_manager_api/v202411/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/mobile_application_service.rb +7 -7
- data/lib/ad_manager_api/v202411/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/native_style_service.rb +7 -7
- data/lib/ad_manager_api/v202411/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/network_service.rb +7 -7
- data/lib/ad_manager_api/v202411/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/order_service.rb +7 -7
- data/lib/ad_manager_api/v202411/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/placement_service.rb +7 -7
- data/lib/ad_manager_api/v202411/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/proposal_line_item_service.rb +7 -7
- data/lib/ad_manager_api/v202411/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/proposal_service.rb +7 -7
- data/lib/ad_manager_api/v202411/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/publisher_query_language_service.rb +7 -7
- data/lib/ad_manager_api/v202411/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/report_service.rb +7 -7
- data/lib/ad_manager_api/v202411/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/segment_population_service.rb +7 -7
- data/lib/ad_manager_api/v202411/segment_population_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202311 → v202411}/site_service.rb +7 -7
- data/lib/ad_manager_api/v202411/site_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202311 → v202411}/stream_activity_monitor_service.rb +7 -7
- data/lib/ad_manager_api/v202411/stream_activity_monitor_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202311 → v202411}/suggested_ad_unit_service.rb +7 -7
- data/lib/ad_manager_api/v202411/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v202411/targeting_preset_service.rb +62 -0
- data/lib/ad_manager_api/v202411/targeting_preset_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202411}/team_service.rb +7 -7
- data/lib/ad_manager_api/v202411/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/user_service.rb +7 -7
- data/lib/ad_manager_api/v202411/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/user_team_association_service.rb +7 -7
- data/lib/ad_manager_api/v202411/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202411}/yield_group_service.rb +7 -7
- data/lib/ad_manager_api/v202411/yield_group_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202402 → v202502}/ad_rule_service.rb +7 -7
- data/lib/ad_manager_api/v202502/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/adjustment_service.rb +7 -7
- data/lib/ad_manager_api/v202502/adjustment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v202502/ads_txt_service.rb +38 -0
- data/lib/ad_manager_api/v202502/ads_txt_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202402 → v202502}/audience_segment_service.rb +7 -7
- data/lib/ad_manager_api/v202502/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/cdn_configuration_service.rb +7 -7
- data/lib/ad_manager_api/v202502/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/cms_metadata_service.rb +7 -7
- data/lib/ad_manager_api/v202502/cms_metadata_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/company_service.rb +7 -7
- data/lib/ad_manager_api/v202502/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/contact_service.rb +7 -7
- data/lib/ad_manager_api/v202502/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/content_bundle_service.rb +7 -7
- data/lib/ad_manager_api/v202502/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/content_service.rb +7 -7
- data/lib/ad_manager_api/v202502/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/creative_service.rb +7 -7
- data/lib/ad_manager_api/v202502/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/creative_set_service.rb +7 -7
- data/lib/ad_manager_api/v202502/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/creative_template_service.rb +7 -7
- data/lib/ad_manager_api/v202502/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/creative_wrapper_service.rb +7 -7
- data/lib/ad_manager_api/v202502/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/custom_field_service.rb +7 -7
- data/lib/ad_manager_api/v202502/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/custom_targeting_service.rb +7 -7
- data/lib/ad_manager_api/v202502/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/dai_authentication_key_service.rb +7 -7
- data/lib/ad_manager_api/v202502/dai_authentication_key_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/dai_encoding_profile_service.rb +7 -7
- data/lib/ad_manager_api/v202502/dai_encoding_profile_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/forecast_service.rb +7 -7
- data/lib/ad_manager_api/v202502/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/inventory_service.rb +7 -7
- data/lib/ad_manager_api/v202502/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/label_service.rb +7 -7
- data/lib/ad_manager_api/v202502/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/line_item_creative_association_service.rb +7 -15
- data/lib/ad_manager_api/v202502/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/line_item_service.rb +7 -7
- data/lib/ad_manager_api/v202502/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/line_item_template_service.rb +7 -7
- data/lib/ad_manager_api/v202502/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/live_stream_event_service.rb +7 -7
- data/lib/ad_manager_api/v202502/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/mobile_application_service.rb +7 -7
- data/lib/ad_manager_api/v202502/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/native_style_service.rb +7 -7
- data/lib/ad_manager_api/v202502/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/network_service.rb +7 -7
- data/lib/ad_manager_api/v202502/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/order_service.rb +7 -7
- data/lib/ad_manager_api/v202502/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/placement_service.rb +7 -7
- data/lib/ad_manager_api/v202502/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/proposal_line_item_service.rb +7 -7
- data/lib/ad_manager_api/v202502/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/proposal_service.rb +7 -7
- data/lib/ad_manager_api/v202502/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/publisher_query_language_service.rb +7 -7
- data/lib/ad_manager_api/v202502/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/report_service.rb +7 -7
- data/lib/ad_manager_api/v202502/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/segment_population_service.rb +7 -7
- data/lib/ad_manager_api/v202502/segment_population_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202402 → v202502}/site_service.rb +7 -7
- data/lib/ad_manager_api/v202502/site_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202402 → v202502}/stream_activity_monitor_service.rb +7 -7
- data/lib/ad_manager_api/v202502/stream_activity_monitor_service_registry.rb +43 -0
- data/lib/ad_manager_api/{v202402 → v202502}/suggested_ad_unit_service.rb +7 -7
- data/lib/ad_manager_api/v202502/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v202502/targeting_preset_service.rb +62 -0
- data/lib/ad_manager_api/v202502/targeting_preset_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202402 → v202502}/team_service.rb +7 -7
- data/lib/ad_manager_api/v202502/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/user_service.rb +7 -7
- data/lib/ad_manager_api/v202502/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/user_team_association_service.rb +7 -7
- data/lib/ad_manager_api/v202502/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/{v202311 → v202502}/yield_group_service.rb +7 -7
- data/lib/ad_manager_api/v202502/yield_group_service_registry.rb +43 -0
- data/lib/ad_manager_api/version.rb +1 -1
- metadata +177 -183
- data/lib/ad_manager_api/v202311/activity_group_service.rb +0 -54
- data/lib/ad_manager_api/v202311/activity_group_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/activity_service.rb +0 -54
- data/lib/ad_manager_api/v202311/activity_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/ad_rule_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/adjustment_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/audience_segment_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/cdn_configuration_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/cms_metadata_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/company_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/contact_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/content_bundle_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/content_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/creative_review_service.rb +0 -38
- data/lib/ad_manager_api/v202311/creative_review_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202311/creative_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/creative_set_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/creative_template_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/creative_wrapper_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/custom_field_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/custom_targeting_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/dai_authentication_key_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/dai_encoding_profile_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/forecast_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/inventory_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/label_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/line_item_creative_association_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/line_item_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/line_item_template_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/live_stream_event_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/mobile_application_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/native_style_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/network_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/order_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/placement_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/proposal_line_item_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/proposal_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/publisher_query_language_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/report_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/segment_population_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202311/site_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202311/stream_activity_monitor_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202311/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/targeting_preset_service.rb +0 -38
- data/lib/ad_manager_api/v202311/targeting_preset_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/team_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/user_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/user_team_association_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202311/yield_group_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202402/activity_group_service.rb +0 -54
- data/lib/ad_manager_api/v202402/activity_group_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/activity_service.rb +0 -54
- data/lib/ad_manager_api/v202402/activity_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/ad_rule_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/adjustment_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/audience_segment_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/cdn_configuration_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/cms_metadata_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/company_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/contact_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/content_bundle_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/content_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/creative_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/creative_set_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/creative_template_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/creative_wrapper_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/custom_field_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/custom_targeting_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/dai_authentication_key_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/dai_encoding_profile_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/forecast_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/inventory_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/label_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/line_item_creative_association_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/line_item_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/line_item_template_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/live_stream_event_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/mobile_application_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/native_style_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/network_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/order_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/placement_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/proposal_line_item_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/proposal_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/publisher_query_language_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/report_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/segment_population_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202402/site_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202402/stream_activity_monitor_service_registry.rb +0 -43
- data/lib/ad_manager_api/v202402/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/targeting_preset_service.rb +0 -38
- data/lib/ad_manager_api/v202402/targeting_preset_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/team_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/user_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/user_team_association_service_registry.rb +0 -45
- data/lib/ad_manager_api/v202402/yield_group_service_registry.rb +0 -43
@@ -2,19 +2,19 @@
|
|
2
2
|
#
|
3
3
|
# This is auto-generated code, changes will be overwritten.
|
4
4
|
#
|
5
|
-
# Copyright:: Copyright
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
6
|
# License:: Licensed under the Apache License, Version 2.0.
|
7
7
|
#
|
8
|
-
# Code generated by AdsCommon library
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
9
|
|
10
10
|
require 'ads_common/savon_service'
|
11
|
-
require 'ad_manager_api/
|
11
|
+
require 'ad_manager_api/v202502/site_service_registry'
|
12
12
|
|
13
|
-
module AdManagerApi; module
|
13
|
+
module AdManagerApi; module V202502; module SiteService
|
14
14
|
class SiteService < AdsCommon::SavonService
|
15
15
|
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/
|
17
|
-
super(config, endpoint, namespace, :
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v202502'
|
17
|
+
super(config, endpoint, namespace, :v202502)
|
18
18
|
end
|
19
19
|
|
20
20
|
def create_sites(*args, &block)
|
@@ -56,7 +56,7 @@ module AdManagerApi; module V202402; module SiteService
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def get_module()
|
59
|
-
return AdManagerApi::
|
59
|
+
return AdManagerApi::V202502::SiteService
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end; end; end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V202502; module SiteService
|
13
|
+
class SiteServiceRegistry
|
14
|
+
SITESERVICE_METHODS = {create_sites: {input: [{name: :sites, type: "Site", min_occurs: 0, max_occurs: :unbounded}], output: {name: "create_sites_response", fields: [{name: :rval, type: "Site", min_occurs: 0, max_occurs: :unbounded}]}}, get_sites_by_statement: {input: [{name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "get_sites_by_statement_response", fields: [{name: :rval, type: "SitePage", min_occurs: 0, max_occurs: 1}]}}, perform_site_action: {input: [{name: :site_action, type: "SiteAction", min_occurs: 0, max_occurs: 1}, {name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "perform_site_action_response", fields: [{name: :rval, type: "UpdateResult", min_occurs: 0, max_occurs: 1}]}}, update_sites: {input: [{name: :sites, type: "Site", min_occurs: 0, max_occurs: :unbounded}], output: {name: "update_sites_response", fields: [{name: :rval, type: "Site", min_occurs: 0, max_occurs: :unbounded}]}}}
|
15
|
+
SITESERVICE_TYPES = {ObjectValue: {fields: [], abstract: true, base: "Value"}, AdSenseAccountError: {fields: [{name: :reason, type: "AdSenseAccountError.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}], abstract: true}, ApiException: {fields: [{name: :errors, type: "ApiError", min_occurs: 0, max_occurs: :unbounded}], base: "ApplicationException"}, ApiVersionError: {fields: [{name: :reason, type: "ApiVersionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ApplicationException: {fields: [{name: :message, type: "string", min_occurs: 0, max_occurs: 1}]}, AuthenticationError: {fields: [{name: :reason, type: "AuthenticationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, BooleanValue: {fields: [{name: :value, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "Value"}, CollectionSizeError: {fields: [{name: :reason, type: "CollectionSizeError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CommonError: {fields: [{name: :reason, type: "CommonError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, Date: {fields: [{name: :year, type: "int", min_occurs: 0, max_occurs: 1}, {name: :month, type: "int", min_occurs: 0, max_occurs: 1}, {name: :day, type: "int", min_occurs: 0, max_occurs: 1}]}, DateTime: {fields: [{name: :date, type: "Date", min_occurs: 0, max_occurs: 1}, {name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "int", min_occurs: 0, max_occurs: 1}, {name: :second, type: "int", min_occurs: 0, max_occurs: 1}, {name: :time_zone_id, type: "string", min_occurs: 0, max_occurs: 1}]}, DateTimeValue: {fields: [{name: :value, type: "DateTime", min_occurs: 0, max_occurs: 1}], base: "Value"}, DateValue: {fields: [{name: :value, type: "Date", min_occurs: 0, max_occurs: 1}], base: "Value"}, DeactivateSite: {fields: [], base: "SiteAction"}, DisapprovalReason: {fields: [{name: :type, type: "DisapprovalReason.Type", min_occurs: 0, max_occurs: 1}, {name: :details, type: "string", min_occurs: 0, max_occurs: 1}]}, EntityLimitReachedError: {fields: [{name: :reason, type: "EntityLimitReachedError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, FeatureError: {fields: [{name: :reason, type: "FeatureError.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}]}, InternalApiError: {fields: [{name: :reason, type: "InternalApiError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NotNullError: {fields: [{name: :reason, type: "NotNullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NullError: {fields: [{name: :reason, type: "NullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NumberValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, ParseError: {fields: [{name: :reason, type: "ParseError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PermissionError: {fields: [{name: :reason, type: "PermissionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageContextError: {fields: [{name: :reason, type: "PublisherQueryLanguageContextError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageSyntaxError: {fields: [{name: :reason, type: "PublisherQueryLanguageSyntaxError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, QuotaError: {fields: [{name: :reason, type: "QuotaError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredCollectionError: {fields: [{name: :reason, type: "RequiredCollectionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredError: {fields: [{name: :reason, type: "RequiredError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ServerError: {fields: [{name: :reason, type: "ServerError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SetValue: {fields: [{name: :values, type: "Value", min_occurs: 0, max_occurs: :unbounded}], base: "Value"}, SiteAction: {fields: [], abstract: true}, Site: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :url, type: "string", min_occurs: 0, max_occurs: 1}, {name: :child_network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :approval_status, type: "ApprovalStatus", min_occurs: 0, max_occurs: 1}, {name: :approval_status_update_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :disapproval_reasons, type: "DisapprovalReason", min_occurs: 0, max_occurs: :unbounded}]}, SiteError: {fields: [{name: :reason, type: "SiteError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SitePage: {fields: [{name: :total_result_set_size, type: "int", min_occurs: 0, max_occurs: 1}, {name: :start_index, type: "int", min_occurs: 0, max_occurs: 1}, {name: :results, type: "Site", min_occurs: 0, max_occurs: :unbounded}]}, SoapRequestHeader: {fields: [{name: :network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :application_name, type: "string", min_occurs: 0, max_occurs: 1}]}, SoapResponseHeader: {fields: [{name: :request_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :response_time, type: "long", min_occurs: 0, max_occurs: 1}]}, Statement: {fields: [{name: :query, type: "string", min_occurs: 0, max_occurs: 1}, {name: :values, type: "String_ValueMapEntry", min_occurs: 0, max_occurs: :unbounded}]}, StatementError: {fields: [{name: :reason, type: "StatementError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, 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"}, String_ValueMapEntry: {fields: [{name: :key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :value, type: "Value", min_occurs: 0, max_occurs: 1}]}, SubmitSiteForApproval: {fields: [], base: "SiteAction"}, TextValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, UpdateResult: {fields: [{name: :num_changes, type: "int", min_occurs: 0, max_occurs: 1}]}, UrlError: {fields: [{name: :reason, type: "UrlError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, Value: {fields: [], abstract: true}, "AdSenseAccountError.Reason": {type: "string", enumerations: ["ASSOCIATE_ACCOUNT_API_ERROR", "CANNOT_ACCESS_INVALID_ACCOUNT", "ACCOUNT_ACCESS_DENIED", "GET_AD_SLOT_API_ERROR", "GET_CHANNEL_API_ERROR", "GET_BULK_ACCOUNT_STATUSES_API_ERROR", "RESEND_VERIFICATION_EMAIL_ERROR", "UNEXPECTED_API_RESPONSE_ERROR", "UNKNOWN"]}, "ApiVersionError.Reason": {type: "string", enumerations: ["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, ApprovalStatus: {type: "string", enumerations: ["DRAFT", "UNCHECKED", "APPROVED", "DISAPPROVED", "REQUIRES_REVIEW", "UNKNOWN"]}, "AuthenticationError.Reason": {type: "string", enumerations: ["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NETWORK_API_ACCESS_DISABLED", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, "CollectionSizeError.Reason": {type: "string", enumerations: ["TOO_LARGE", "UNKNOWN"]}, "CommonError.Reason": {type: "string", enumerations: ["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "UNSUPPORTED_OPERATION", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, "DisapprovalReason.Type": {type: "string", enumerations: ["CONTENT", "OWNERSHIP", "OTHER", "UNKNOWN"]}, "EntityLimitReachedError.Reason": {type: "string", enumerations: ["CUSTOM_TARGETING_VALUES_LIMIT_REACHED", "AD_EXCLUSION_RULES_LIMIT_REACHED", "FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED", "PLACEMENTS_LIMIT_REACHED", "LINE_ITEMS_LIMIT_REACHED", "ACTIVE_LINE_ITEMS_LIMIT_REACHED", "DAI_ENCODING_PROFILES_LIMIT_REACHED", "TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED", "FORECAST_ADJUSTMENTS_LIMIT_REACHED", "ACTIVE_EXPERIMENTS_LIMIT_REACHED", "SITES_LIMIT_REACHED", "USER_TEAMS_LIMIT_REACHED", "ACTIVE_TARGETING_PRESETS_LIMIT_REACHED", "UNKNOWN"]}, "FeatureError.Reason": {type: "string", enumerations: ["MISSING_FEATURE", "UNKNOWN"]}, "InternalApiError.Reason": {type: "string", enumerations: ["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, "NotNullError.Reason": {type: "string", enumerations: ["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, "NullError.Reason": {type: "string", enumerations: ["NOT_NULL", "UNKNOWN"]}, "ParseError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "PermissionError.Reason": {type: "string", enumerations: ["PERMISSION_DENIED", "UNKNOWN"]}, "PublisherQueryLanguageContextError.Reason": {type: "string", enumerations: ["UNEXECUTABLE", "UNKNOWN"]}, "PublisherQueryLanguageSyntaxError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "QuotaError.Reason": {type: "string", enumerations: ["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT", "SEGMENT_POPULATION_LIMIT"]}, "RequiredCollectionError.Reason": {type: "string", enumerations: ["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, "RequiredError.Reason": {type: "string", enumerations: ["REQUIRED"]}, "ServerError.Reason": {type: "string", enumerations: ["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, "SiteError.Reason": {type: "string", enumerations: ["INVALID_CHILD_NETWORK_CODE", "CANNOT_ARCHIVE_SITE_WITH_SUBSITES", "INVALID_URL_FOR_SITE", "MULTIPLE_UPDATES_FOR_SAME_SITE", "TOO_MANY_SITES_PER_REVIEW_REQUEST", "TOO_MANY_REVIEW_REQUESTS_FOR_SITE", "INVALID_APPROVAL_STATUS_FOR_REVIEW", "UNKNOWN"]}, "StatementError.Reason": {type: "string", enumerations: ["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, "StringFormatError.Reason": {type: "string", enumerations: ["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, "StringLengthError.Reason": {type: "string", enumerations: ["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, "UrlError.Reason": {type: "string", enumerations: ["CANNOT_USE_RESERVED_URL", "CANNOT_USE_GOOGLE_URL", "INVALID_URL", "UNKNOWN"]}}
|
16
|
+
SITESERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return SITESERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return SITESERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return SITESERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
32
|
+
attr_reader :message # string
|
33
|
+
end
|
34
|
+
|
35
|
+
class ApiException < ApplicationException
|
36
|
+
attr_reader :errors # ApiError
|
37
|
+
def initialize(exception_fault)
|
38
|
+
@array_fields ||= []
|
39
|
+
@array_fields << 'errors'
|
40
|
+
super(exception_fault, SiteServiceRegistry)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end; end; end
|
@@ -2,19 +2,19 @@
|
|
2
2
|
#
|
3
3
|
# This is auto-generated code, changes will be overwritten.
|
4
4
|
#
|
5
|
-
# Copyright:: Copyright
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
6
|
# License:: Licensed under the Apache License, Version 2.0.
|
7
7
|
#
|
8
|
-
# Code generated by AdsCommon library
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
9
|
|
10
10
|
require 'ads_common/savon_service'
|
11
|
-
require 'ad_manager_api/
|
11
|
+
require 'ad_manager_api/v202502/stream_activity_monitor_service_registry'
|
12
12
|
|
13
|
-
module AdManagerApi; module
|
13
|
+
module AdManagerApi; module V202502; module StreamActivityMonitorService
|
14
14
|
class StreamActivityMonitorService < AdsCommon::SavonService
|
15
15
|
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/
|
17
|
-
super(config, endpoint, namespace, :
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v202502'
|
17
|
+
super(config, endpoint, namespace, :v202502)
|
18
18
|
end
|
19
19
|
|
20
20
|
def get_sam_sessions_by_statement(*args, &block)
|
@@ -40,7 +40,7 @@ module AdManagerApi; module V202402; module StreamActivityMonitorService
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def get_module()
|
43
|
-
return AdManagerApi::
|
43
|
+
return AdManagerApi::V202502::StreamActivityMonitorService
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end; end; end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V202502; module StreamActivityMonitorService
|
13
|
+
class StreamActivityMonitorServiceRegistry
|
14
|
+
STREAMACTIVITYMONITORSERVICE_METHODS = {get_sam_sessions_by_statement: {input: [{name: :statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "get_sam_sessions_by_statement_response", fields: [{name: :rval, type: "SamSession", min_occurs: 0, max_occurs: :unbounded}]}}, register_sessions_for_monitoring: {input: [{name: :session_ids, type: "string", min_occurs: 0, max_occurs: :unbounded}], output: {name: "register_sessions_for_monitoring_response", fields: [{name: :rval, type: "string", min_occurs: 0, max_occurs: :unbounded}]}}}
|
15
|
+
STREAMACTIVITYMONITORSERVICE_TYPES = {ObjectValue: {fields: [], abstract: true, base: "Value"}, AdBreak: {fields: [{name: :root_ad_responses, type: "AdResponse", min_occurs: 0, max_occurs: :unbounded}, {name: :ad_decision_creatives, type: "AdDecisionCreative", min_occurs: 0, max_occurs: :unbounded}, {name: :pod_num, type: "int", min_occurs: 0, max_occurs: 1}, {name: :linear_absolute_pod_num, type: "int", min_occurs: 0, max_occurs: 1}, {name: :ad_break_duration_millis, type: "long", min_occurs: 0, max_occurs: 1}, {name: :filled_duration_millis, type: "long", min_occurs: 0, max_occurs: 1}, {name: :served_duration_millis, type: "long", min_occurs: 0, max_occurs: 1}, {name: :start_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :start_time_offset_millis, type: "long", min_occurs: 0, max_occurs: 1}, {name: :sam_error, type: "SamError", min_occurs: 0, max_occurs: 1}, {name: :midroll_index, type: "int", min_occurs: 0, max_occurs: 1}, {name: :decisioned_ads, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :tracking_events, type: "TrackingEvent", min_occurs: 0, max_occurs: :unbounded}]}, AdDecisionCreative: {fields: [{name: :sequence, type: "int", min_occurs: 0, max_occurs: 1}, {name: :slate_duration_mills, type: "long", min_occurs: 0, max_occurs: 1}, {name: :creative_duration_mills, type: "long", min_occurs: 0, max_occurs: 1}, {name: :creative_transcode, type: "CreativeTranscode", min_occurs: 0, max_occurs: 1}, {name: :google_video_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :sam_error, type: "SamError", min_occurs: 0, max_occurs: 1}, {name: :is_transcoded, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :is_dropped, type: "boolean", min_occurs: 0, max_occurs: 1}]}, AdResponse: {fields: [{name: :request_url, type: "string", min_occurs: 0, max_occurs: 1}, {name: :is_vmap_request, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :response_body, type: "string", min_occurs: 0, max_occurs: 1}, {name: :redirect_responses, type: "AdResponse", min_occurs: 0, max_occurs: :unbounded}, {name: :sam_error, type: "SamError", min_occurs: 0, max_occurs: 1}, {name: :ad_errors, type: "SamError", min_occurs: 0, max_occurs: :unbounded}]}, 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}], abstract: true}, ApiException: {fields: [{name: :errors, type: "ApiError", min_occurs: 0, max_occurs: :unbounded}], base: "ApplicationException"}, ApiVersionError: {fields: [{name: :reason, type: "ApiVersionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ApplicationException: {fields: [{name: :message, type: "string", min_occurs: 0, max_occurs: 1}]}, AuthenticationError: {fields: [{name: :reason, type: "AuthenticationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, BooleanValue: {fields: [{name: :value, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "Value"}, CollectionSizeError: {fields: [{name: :reason, type: "CollectionSizeError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CommonError: {fields: [{name: :reason, type: "CommonError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CreativeTranscode: {fields: [{name: :ad_server, type: "string", min_occurs: 0, max_occurs: 1}, {name: :creative_id_type, type: "CreativeTranscode.IdType", min_occurs: 0, max_occurs: 1}, {name: :creative_id, type: "string", min_occurs: 0, max_occurs: 1}]}, Date: {fields: [{name: :year, type: "int", min_occurs: 0, max_occurs: 1}, {name: :month, type: "int", min_occurs: 0, max_occurs: 1}, {name: :day, type: "int", min_occurs: 0, max_occurs: 1}]}, DateTime: {fields: [{name: :date, type: "Date", min_occurs: 0, max_occurs: 1}, {name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "int", min_occurs: 0, max_occurs: 1}, {name: :second, type: "int", min_occurs: 0, max_occurs: 1}, {name: :time_zone_id, type: "string", min_occurs: 0, max_occurs: 1}]}, DateTimeValue: {fields: [{name: :value, type: "DateTime", min_occurs: 0, max_occurs: 1}], base: "Value"}, DateValue: {fields: [{name: :value, type: "Date", min_occurs: 0, max_occurs: 1}], base: "Value"}, FeatureError: {fields: [{name: :reason, type: "FeatureError.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}]}, InternalApiError: {fields: [{name: :reason, type: "InternalApiError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, LinearStreamCreateRequest: {fields: [{name: :live_stream_event_asset_key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :event_name, type: "string", min_occurs: 0, max_occurs: 1}, {name: :live_stream_event_id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :event_start_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :event_end_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :prefetch_enabled, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :pod_trimming_enabled, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "StreamCreateRequest"}, NotNullError: {fields: [{name: :reason, type: "NotNullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NumberValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, ParseError: {fields: [{name: :reason, type: "ParseError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PermissionError: {fields: [{name: :reason, type: "PermissionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageContextError: {fields: [{name: :reason, type: "PublisherQueryLanguageContextError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageSyntaxError: {fields: [{name: :reason, type: "PublisherQueryLanguageSyntaxError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, QuotaError: {fields: [{name: :reason, type: "QuotaError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredCollectionError: {fields: [{name: :reason, type: "RequiredCollectionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredError: {fields: [{name: :reason, type: "RequiredError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SamError: {fields: [{name: :sam_error_type, type: "SamErrorType", min_occurs: 0, max_occurs: 1}, {name: :error_details, type: "string", min_occurs: 0, max_occurs: 1}]}, SamSession: {fields: [{name: :session_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :is_vod_session, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :stream_create_request, type: "StreamCreateRequest", min_occurs: 0, max_occurs: 1}, {name: :ad_breaks, type: "AdBreak", min_occurs: 0, max_occurs: :unbounded}, {name: :start_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :session_duration_millis, type: "long", min_occurs: 0, max_occurs: 1}, {name: :content_duration_millis, type: "long", min_occurs: 0, max_occurs: 1}]}, SamSessionError: {fields: [{name: :reason, type: "SamSessionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ServerError: {fields: [{name: :reason, type: "ServerError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SetValue: {fields: [{name: :values, type: "Value", min_occurs: 0, max_occurs: :unbounded}], base: "Value"}, SoapRequestHeader: {fields: [{name: :network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :application_name, type: "string", min_occurs: 0, max_occurs: 1}]}, SoapResponseHeader: {fields: [{name: :request_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :response_time, type: "long", min_occurs: 0, max_occurs: 1}]}, Statement: {fields: [{name: :query, type: "string", min_occurs: 0, max_occurs: 1}, {name: :values, type: "String_ValueMapEntry", min_occurs: 0, max_occurs: :unbounded}]}, StatementError: {fields: [{name: :reason, type: "StatementError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, StreamCreateRequest: {fields: [{name: :url, type: "string", min_occurs: 0, max_occurs: 1}, {name: :user_agent, type: "string", min_occurs: 0, max_occurs: 1}, {name: :reporting_type, type: "ReportingType", min_occurs: 0, max_occurs: 1}], abstract: true}, 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"}, String_ValueMapEntry: {fields: [{name: :key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :value, type: "Value", min_occurs: 0, max_occurs: 1}]}, TextValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, TrackingEvent: {fields: [{name: :pings, type: "TrackingEvent.Ping", min_occurs: 0, max_occurs: :unbounded}]}, "TrackingEvent.Ping": {fields: [{name: :uri, type: "string", min_occurs: 0, max_occurs: 1}, {name: :has_error, type: "boolean", min_occurs: 0, max_occurs: 1}]}, Value: {fields: [], abstract: true}, VodStreamCreateRequest: {fields: [{name: :content_source_id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :video_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :content_id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :content_name, type: "string", min_occurs: 0, max_occurs: 1}, {name: :cue_points, type: "long", min_occurs: 0, max_occurs: :unbounded}], base: "StreamCreateRequest"}, "ApiVersionError.Reason": {type: "string", enumerations: ["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, "AuthenticationError.Reason": {type: "string", enumerations: ["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NETWORK_API_ACCESS_DISABLED", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, "CollectionSizeError.Reason": {type: "string", enumerations: ["TOO_LARGE", "UNKNOWN"]}, "CommonError.Reason": {type: "string", enumerations: ["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "UNSUPPORTED_OPERATION", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, "CreativeTranscode.IdType": {type: "string", enumerations: ["AD_ID", "CREATIVE_ID", "CREATIVE_ADID", "UNIVERSAL_AD_ID", "MEDIA_URI", "MEDIA_URI_PATH", "CREATIVE_ADID_WITH_FALLBACK", "CANONICALIZED_MEDIA_URI", "GV_REGISTRY_ID", "UNKNOWN_ID_TYPE", "MEDIA_URI_HASH", "UNKNOWN"]}, "FeatureError.Reason": {type: "string", enumerations: ["MISSING_FEATURE", "UNKNOWN"]}, "InternalApiError.Reason": {type: "string", enumerations: ["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, "NotNullError.Reason": {type: "string", enumerations: ["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, "ParseError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "PermissionError.Reason": {type: "string", enumerations: ["PERMISSION_DENIED", "UNKNOWN"]}, "PublisherQueryLanguageContextError.Reason": {type: "string", enumerations: ["UNEXECUTABLE", "UNKNOWN"]}, "PublisherQueryLanguageSyntaxError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "QuotaError.Reason": {type: "string", enumerations: ["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT", "SEGMENT_POPULATION_LIMIT"]}, ReportingType: {type: "string", enumerations: ["DISABLED", "CLIENT", "SERVER", "AD_MEDIA", "UNKNOWN"]}, "RequiredCollectionError.Reason": {type: "string", enumerations: ["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, "RequiredError.Reason": {type: "string", enumerations: ["REQUIRED"]}, SamErrorType: {type: "string", enumerations: ["INTERNAL_ERROR", "AD_REQUEST_ERROR", "VAST_PARSE_ERROR", "UNSUPPORTED_AD_SYSTEM", "CANNOT_FIND_UNIQUE_TRANSCODE_ID", "CANNOT_FIND_MEDIA_FILE_PATH", "MISSING_INLINE_ELEMENTS", "MAX_WRAPPER_DEPTH_REACHED", "INVALID_AD_SEQUENCE_NUMBER", "FAILED_PING", "AD_TAG_PARSE_ERROR", "VMAP_PARSE_ERROR", "INVALID_VMAP_RESPONSE", "NO_AD_BREAKS_IN_VMAP", "CUSTOM_AD_SOURCE_IN_VMAP", "AD_BREAK_TYPE_NOT_SUPPORTED", "NEITHER_AD_SOURCE_NOR_TRACKING", "UNKNOWN_ERROR", "AD_POD_DROPPED_TO_MANY_AD_PODS", "AD_POD_DROPPED_EMPTY_ADS", "AD_BREAK_WITHOUT_AD_POD", "TRANSCODING_IN_PROGRESS", "UNSUPPORTED_VAST_VERSION", "AD_POD_DROPPED_BUMPER_ERROR", "NO_VALID_MEDIAFILES_FOUND", "EXCEEDS_MAX_FILLER", "SKIPPABLE_AD_NOT_SUPPORTED", "AD_REQUEST_TIMEOUT", "AD_POD_DROPPED_UNSUPPORTED_TYPE", "DUPLICATE_AD_TAG", "FOLLOW_REDIRECTS_IS_FALSE", "AD_POD_DROPPED_INCOMPATIBLE_TIMEOFFSET", "UNKNOWN"]}, "SamSessionError.Reason": {type: "string", enumerations: ["COULD_NOT_REGISTER_SESSION", "MALFORMED_SESSION_ID", "INVALID_SESSION_ID", "INVALID_DEBUG_KEY", "REQUEST_EXCEEDS_SESSION_LIMIT", "UNKNOWN"]}, "ServerError.Reason": {type: "string", enumerations: ["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, "StatementError.Reason": {type: "string", enumerations: ["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, "StringFormatError.Reason": {type: "string", enumerations: ["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, "StringLengthError.Reason": {type: "string", enumerations: ["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}}
|
16
|
+
STREAMACTIVITYMONITORSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return STREAMACTIVITYMONITORSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return STREAMACTIVITYMONITORSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return STREAMACTIVITYMONITORSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
32
|
+
attr_reader :message # string
|
33
|
+
end
|
34
|
+
|
35
|
+
class ApiException < ApplicationException
|
36
|
+
attr_reader :errors # ApiError
|
37
|
+
def initialize(exception_fault)
|
38
|
+
@array_fields ||= []
|
39
|
+
@array_fields << 'errors'
|
40
|
+
super(exception_fault, StreamActivityMonitorServiceRegistry)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end; end; end
|
@@ -2,19 +2,19 @@
|
|
2
2
|
#
|
3
3
|
# This is auto-generated code, changes will be overwritten.
|
4
4
|
#
|
5
|
-
# Copyright:: Copyright
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
6
|
# License:: Licensed under the Apache License, Version 2.0.
|
7
7
|
#
|
8
|
-
# Code generated by AdsCommon library
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
9
|
|
10
10
|
require 'ads_common/savon_service'
|
11
|
-
require 'ad_manager_api/
|
11
|
+
require 'ad_manager_api/v202502/suggested_ad_unit_service_registry'
|
12
12
|
|
13
|
-
module AdManagerApi; module
|
13
|
+
module AdManagerApi; module V202502; module SuggestedAdUnitService
|
14
14
|
class SuggestedAdUnitService < AdsCommon::SavonService
|
15
15
|
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/
|
17
|
-
super(config, endpoint, namespace, :
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v202502'
|
17
|
+
super(config, endpoint, namespace, :v202502)
|
18
18
|
end
|
19
19
|
|
20
20
|
def get_suggested_ad_units_by_statement(*args, &block)
|
@@ -40,7 +40,7 @@ module AdManagerApi; module V202402; module SuggestedAdUnitService
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def get_module()
|
43
|
-
return AdManagerApi::
|
43
|
+
return AdManagerApi::V202502::SuggestedAdUnitService
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:37.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V202502; module SuggestedAdUnitService
|
13
|
+
class SuggestedAdUnitServiceRegistry
|
14
|
+
SUGGESTEDADUNITSERVICE_METHODS = {get_suggested_ad_units_by_statement: {input: [{name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "get_suggested_ad_units_by_statement_response", fields: [{name: :rval, type: "SuggestedAdUnitPage", min_occurs: 0, max_occurs: 1}]}}, perform_suggested_ad_unit_action: {input: [{name: :suggested_ad_unit_action, type: "SuggestedAdUnitAction", min_occurs: 0, max_occurs: 1}, {name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "perform_suggested_ad_unit_action_response", fields: [{name: :rval, type: "SuggestedAdUnitUpdateResult", min_occurs: 0, max_occurs: 1}]}}}
|
15
|
+
SUGGESTEDADUNITSERVICE_TYPES = {ObjectValue: {fields: [], abstract: true, base: "Value"}, AdUnitParent: {fields: [{name: :id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :name, type: "string", min_occurs: 0, max_occurs: 1}, {name: :ad_unit_code, type: "string", min_occurs: 0, max_occurs: 1}]}, 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}], abstract: true}, ApiException: {fields: [{name: :errors, type: "ApiError", min_occurs: 0, max_occurs: :unbounded}], base: "ApplicationException"}, ApiVersionError: {fields: [{name: :reason, type: "ApiVersionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ApplicationException: {fields: [{name: :message, type: "string", min_occurs: 0, max_occurs: 1}]}, ApproveSuggestedAdUnits: {fields: [], base: "SuggestedAdUnitAction"}, AuthenticationError: {fields: [{name: :reason, type: "AuthenticationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, BooleanValue: {fields: [{name: :value, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "Value"}, CollectionSizeError: {fields: [{name: :reason, type: "CollectionSizeError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CommonError: {fields: [{name: :reason, type: "CommonError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, Date: {fields: [{name: :year, type: "int", min_occurs: 0, max_occurs: 1}, {name: :month, type: "int", min_occurs: 0, max_occurs: 1}, {name: :day, type: "int", min_occurs: 0, max_occurs: 1}]}, DateTime: {fields: [{name: :date, type: "Date", min_occurs: 0, max_occurs: 1}, {name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "int", min_occurs: 0, max_occurs: 1}, {name: :second, type: "int", min_occurs: 0, max_occurs: 1}, {name: :time_zone_id, type: "string", min_occurs: 0, max_occurs: 1}]}, DateTimeValue: {fields: [{name: :value, type: "DateTime", min_occurs: 0, max_occurs: 1}], base: "Value"}, DateValue: {fields: [{name: :value, type: "Date", min_occurs: 0, max_occurs: 1}], base: "Value"}, EntityLimitReachedError: {fields: [{name: :reason, type: "EntityLimitReachedError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, FeatureError: {fields: [{name: :reason, type: "FeatureError.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}]}, InternalApiError: {fields: [{name: :reason, type: "InternalApiError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, AdUnitSize: {fields: [{name: :size, type: "Size", min_occurs: 0, max_occurs: 1}, {name: :environment_type, type: "EnvironmentType", min_occurs: 0, max_occurs: 1}, {name: :companions, type: "AdUnitSize", min_occurs: 0, max_occurs: :unbounded}, {name: :full_display_string, type: "string", min_occurs: 0, max_occurs: 1}, {name: :is_audio, type: "boolean", min_occurs: 0, max_occurs: 1}]}, InventoryUnitSizesError: {fields: [{name: :reason, type: "InventoryUnitSizesError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, LabelEntityAssociationError: {fields: [{name: :reason, type: "LabelEntityAssociationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NotNullError: {fields: [{name: :reason, type: "NotNullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NumberValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, ParseError: {fields: [{name: :reason, type: "ParseError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PermissionError: {fields: [{name: :reason, type: "PermissionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageContextError: {fields: [{name: :reason, type: "PublisherQueryLanguageContextError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageSyntaxError: {fields: [{name: :reason, type: "PublisherQueryLanguageSyntaxError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, QuotaError: {fields: [{name: :reason, type: "QuotaError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredCollectionError: {fields: [{name: :reason, type: "RequiredCollectionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredError: {fields: [{name: :reason, type: "RequiredError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ServerError: {fields: [{name: :reason, type: "ServerError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SetValue: {fields: [{name: :values, type: "Value", min_occurs: 0, max_occurs: :unbounded}], base: "Value"}, Size: {fields: [{name: :width, type: "int", min_occurs: 0, max_occurs: 1}, {name: :height, type: "int", min_occurs: 0, max_occurs: 1}, {name: :is_aspect_ratio, type: "boolean", min_occurs: 0, max_occurs: 1}]}, SoapRequestHeader: {fields: [{name: :network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :application_name, type: "string", min_occurs: 0, max_occurs: 1}]}, SoapResponseHeader: {fields: [{name: :request_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :response_time, type: "long", min_occurs: 0, max_occurs: 1}]}, Statement: {fields: [{name: :query, type: "string", min_occurs: 0, max_occurs: 1}, {name: :values, type: "String_ValueMapEntry", min_occurs: 0, max_occurs: :unbounded}]}, StatementError: {fields: [{name: :reason, type: "StatementError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, 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"}, String_ValueMapEntry: {fields: [{name: :key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :value, type: "Value", min_occurs: 0, max_occurs: 1}]}, SuggestedAdUnitAction: {fields: [], abstract: true}, SuggestedAdUnit: {fields: [{name: :id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :num_requests, type: "long", min_occurs: 0, max_occurs: 1}, {name: :path, type: "string", min_occurs: 0, max_occurs: :unbounded}, {name: :parent_path, type: "AdUnitParent", min_occurs: 0, max_occurs: :unbounded}, {name: :target_window, type: "AdUnit.TargetWindow", min_occurs: 0, max_occurs: 1}, {name: :target_platform, type: "TargetPlatform", min_occurs: 0, max_occurs: 1}, {name: :suggested_ad_unit_sizes, type: "AdUnitSize", min_occurs: 0, max_occurs: :unbounded}]}, SuggestedAdUnitPage: {fields: [{name: :total_result_set_size, type: "int", min_occurs: 0, max_occurs: 1}, {name: :start_index, type: "int", min_occurs: 0, max_occurs: 1}, {name: :results, type: "SuggestedAdUnit", min_occurs: 0, max_occurs: :unbounded}]}, SuggestedAdUnitUpdateResult: {fields: [{name: :new_ad_unit_ids, type: "string", min_occurs: 0, max_occurs: :unbounded}, {name: :num_changes, type: "int", min_occurs: 0, max_occurs: 1}]}, TextValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, TypeError: {fields: [], base: "ApiError"}, UniqueError: {fields: [], base: "ApiError"}, Value: {fields: [], abstract: true}, "AdUnit.TargetWindow": {type: "string", enumerations: ["TOP", "BLANK"]}, "ApiVersionError.Reason": {type: "string", enumerations: ["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, "AuthenticationError.Reason": {type: "string", enumerations: ["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NETWORK_API_ACCESS_DISABLED", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, "CollectionSizeError.Reason": {type: "string", enumerations: ["TOO_LARGE", "UNKNOWN"]}, "CommonError.Reason": {type: "string", enumerations: ["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "UNSUPPORTED_OPERATION", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, "EntityLimitReachedError.Reason": {type: "string", enumerations: ["CUSTOM_TARGETING_VALUES_LIMIT_REACHED", "AD_EXCLUSION_RULES_LIMIT_REACHED", "FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED", "PLACEMENTS_LIMIT_REACHED", "LINE_ITEMS_LIMIT_REACHED", "ACTIVE_LINE_ITEMS_LIMIT_REACHED", "DAI_ENCODING_PROFILES_LIMIT_REACHED", "TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED", "FORECAST_ADJUSTMENTS_LIMIT_REACHED", "ACTIVE_EXPERIMENTS_LIMIT_REACHED", "SITES_LIMIT_REACHED", "USER_TEAMS_LIMIT_REACHED", "ACTIVE_TARGETING_PRESETS_LIMIT_REACHED", "UNKNOWN"]}, EnvironmentType: {type: "string", enumerations: ["BROWSER", "VIDEO_PLAYER"]}, "FeatureError.Reason": {type: "string", enumerations: ["MISSING_FEATURE", "UNKNOWN"]}, "InternalApiError.Reason": {type: "string", enumerations: ["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, "InventoryUnitSizesError.Reason": {type: "string", enumerations: ["INVALID_SIZES", "INVALID_SIZE_FOR_PLATFORM", "VIDEO_FEATURE_MISSING", "VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING", "INVALID_SIZE_FOR_MASTER", "INVALID_SIZE_FOR_COMPANION", "DUPLICATE_MASTER_SIZES", "ASPECT_RATIO_NOT_SUPPORTED", "VIDEO_COMPANIONS_NOT_SUPPORTED", "UNKNOWN"]}, "LabelEntityAssociationError.Reason": {type: "string", enumerations: ["DUPLICATE_ASSOCIATION", "INVALID_ASSOCIATION", "NEGATION_NOT_ALLOWED", "DUPLICATE_ASSOCIATION_WITH_NEGATION", "UNKNOWN"]}, "NotNullError.Reason": {type: "string", enumerations: ["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, "ParseError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "PermissionError.Reason": {type: "string", enumerations: ["PERMISSION_DENIED", "UNKNOWN"]}, "PublisherQueryLanguageContextError.Reason": {type: "string", enumerations: ["UNEXECUTABLE", "UNKNOWN"]}, "PublisherQueryLanguageSyntaxError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "QuotaError.Reason": {type: "string", enumerations: ["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT", "SEGMENT_POPULATION_LIMIT"]}, "RequiredCollectionError.Reason": {type: "string", enumerations: ["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, "RequiredError.Reason": {type: "string", enumerations: ["REQUIRED"]}, "ServerError.Reason": {type: "string", enumerations: ["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, "StatementError.Reason": {type: "string", enumerations: ["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, "StringFormatError.Reason": {type: "string", enumerations: ["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, "StringLengthError.Reason": {type: "string", enumerations: ["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, TargetPlatform: {type: "string", enumerations: ["WEB", "MOBILE", "ANY"]}}
|
16
|
+
SUGGESTEDADUNITSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return SUGGESTEDADUNITSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return SUGGESTEDADUNITSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return SUGGESTEDADUNITSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, SuggestedAdUnitServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:38.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v202502/targeting_preset_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V202502; module TargetingPresetService
|
14
|
+
class TargetingPresetService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v202502'
|
17
|
+
super(config, endpoint, namespace, :v202502)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_targeting_presets(*args, &block)
|
21
|
+
return execute_action('create_targeting_presets', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_targeting_presets_to_xml(*args)
|
25
|
+
return get_soap_xml('create_targeting_presets', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_targeting_presets_by_statement(*args, &block)
|
29
|
+
return execute_action('get_targeting_presets_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_targeting_presets_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_targeting_presets_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_targeting_preset_action(*args, &block)
|
37
|
+
return execute_action('perform_targeting_preset_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_targeting_preset_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_targeting_preset_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_targeting_presets(*args, &block)
|
45
|
+
return execute_action('update_targeting_presets', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_targeting_presets_to_xml(*args)
|
49
|
+
return get_soap_xml('update_targeting_presets', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return TargetingPresetServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return AdManagerApi::V202502::TargetingPresetService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:38.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V202502; module TargetingPresetService
|
13
|
+
class TargetingPresetServiceRegistry
|
14
|
+
TARGETINGPRESETSERVICE_METHODS = {create_targeting_presets: {input: [{name: :targeting_presets, type: "TargetingPreset", min_occurs: 0, max_occurs: :unbounded}], output: {name: "create_targeting_presets_response", fields: [{name: :rval, type: "TargetingPreset", min_occurs: 0, max_occurs: :unbounded}]}}, get_targeting_presets_by_statement: {input: [{name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "get_targeting_presets_by_statement_response", fields: [{name: :rval, type: "TargetingPresetPage", min_occurs: 0, max_occurs: 1}]}}, perform_targeting_preset_action: {input: [{name: :targeting_preset_action, type: "TargetingPresetAction", min_occurs: 0, max_occurs: 1}, {name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "perform_targeting_preset_action_response", fields: [{name: :rval, type: "UpdateResult", min_occurs: 0, max_occurs: 1}]}}, update_targeting_presets: {input: [{name: :targeting_presets, type: "TargetingPreset", min_occurs: 0, max_occurs: :unbounded}], output: {name: "update_targeting_presets_response", fields: [{name: :rval, type: "TargetingPreset", min_occurs: 0, max_occurs: :unbounded}]}}}
|
15
|
+
TARGETINGPRESETSERVICE_TYPES = {ObjectValue: {fields: [], abstract: true, base: "Value"}, AdUnitTargeting: {fields: [{name: :ad_unit_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :include_descendants, type: "boolean", min_occurs: 0, max_occurs: 1}]}, 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}], abstract: true}, ApiException: {fields: [{name: :errors, type: "ApiError", min_occurs: 0, max_occurs: :unbounded}], base: "ApplicationException"}, TechnologyTargeting: {fields: [{name: :bandwidth_group_targeting, type: "BandwidthGroupTargeting", min_occurs: 0, max_occurs: 1}, {name: :browser_targeting, type: "BrowserTargeting", min_occurs: 0, max_occurs: 1}, {name: :browser_language_targeting, type: "BrowserLanguageTargeting", min_occurs: 0, max_occurs: 1}, {name: :device_capability_targeting, type: "DeviceCapabilityTargeting", min_occurs: 0, max_occurs: 1}, {name: :device_category_targeting, type: "DeviceCategoryTargeting", min_occurs: 0, max_occurs: 1}, {name: :device_manufacturer_targeting, type: "DeviceManufacturerTargeting", min_occurs: 0, max_occurs: 1}, {name: :mobile_carrier_targeting, type: "MobileCarrierTargeting", min_occurs: 0, max_occurs: 1}, {name: :mobile_device_targeting, type: "MobileDeviceTargeting", min_occurs: 0, max_occurs: 1}, {name: :mobile_device_submodel_targeting, type: "MobileDeviceSubmodelTargeting", min_occurs: 0, max_occurs: 1}, {name: :operating_system_targeting, type: "OperatingSystemTargeting", min_occurs: 0, max_occurs: 1}, {name: :operating_system_version_targeting, type: "OperatingSystemVersionTargeting", min_occurs: 0, max_occurs: 1}]}, ApiVersionError: {fields: [{name: :reason, type: "ApiVersionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ApplicationException: {fields: [{name: :message, type: "string", min_occurs: 0, max_occurs: 1}]}, AuthenticationError: {fields: [{name: :reason, type: "AuthenticationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, BandwidthGroup: {fields: [], base: "Technology"}, BandwidthGroupTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :bandwidth_groups, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, BooleanValue: {fields: [{name: :value, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "Value"}, Browser: {fields: [{name: :major_version, type: "string", min_occurs: 0, max_occurs: 1}, {name: :minor_version, type: "string", min_occurs: 0, max_occurs: 1}], base: "Technology"}, BrowserLanguage: {fields: [], base: "Technology"}, BrowserLanguageTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :browser_languages, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, BrowserTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :browsers, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, BuyerUserListTargeting: {fields: [{name: :has_buyer_user_list_targeting, type: "boolean", min_occurs: 0, max_occurs: 1}]}, CollectionSizeError: {fields: [{name: :reason, type: "CollectionSizeError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CommonError: {fields: [{name: :reason, type: "CommonError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ContentLabelTargeting: {fields: [{name: :excluded_content_label_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}]}, ContentTargeting: {fields: [{name: :targeted_content_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_content_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :targeted_video_content_bundle_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_video_content_bundle_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}]}, CustomCriteria: {fields: [{name: :key_id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :value_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :operator, type: "CustomCriteria.ComparisonOperator", min_occurs: 0, max_occurs: 1}], base: "CustomCriteriaLeaf"}, CustomCriteriaSet: {fields: [{name: :logical_operator, type: "CustomCriteriaSet.LogicalOperator", min_occurs: 0, max_occurs: 1}, {name: :children, type: "CustomCriteriaNode", min_occurs: 0, max_occurs: :unbounded}], base: "CustomCriteriaNode"}, CmsMetadataCriteria: {fields: [{name: :operator, type: "CmsMetadataCriteria.ComparisonOperator", min_occurs: 0, max_occurs: 1}, {name: :cms_metadata_value_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}], base: "CustomCriteriaLeaf"}, CustomTargetingError: {fields: [{name: :reason, type: "CustomTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CustomCriteriaLeaf: {fields: [], abstract: true, base: "CustomCriteriaNode"}, CustomCriteriaNode: {fields: [], abstract: true}, AudienceSegmentCriteria: {fields: [{name: :operator, type: "AudienceSegmentCriteria.ComparisonOperator", min_occurs: 0, max_occurs: 1}, {name: :audience_segment_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}], base: "CustomCriteriaLeaf"}, Date: {fields: [{name: :year, type: "int", min_occurs: 0, max_occurs: 1}, {name: :month, type: "int", min_occurs: 0, max_occurs: 1}, {name: :day, type: "int", min_occurs: 0, max_occurs: 1}]}, DateTime: {fields: [{name: :date, type: "Date", min_occurs: 0, max_occurs: 1}, {name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "int", min_occurs: 0, max_occurs: 1}, {name: :second, type: "int", min_occurs: 0, max_occurs: 1}, {name: :time_zone_id, type: "string", min_occurs: 0, max_occurs: 1}]}, DateTimeRange: {fields: [{name: :start_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}, {name: :end_date_time, type: "DateTime", min_occurs: 0, max_occurs: 1}]}, DateTimeRangeTargeting: {fields: [{name: :targeted_date_time_ranges, type: "DateTimeRange", min_occurs: 0, max_occurs: :unbounded}]}, DateTimeRangeTargetingError: {fields: [{name: :reason, type: "DateTimeRangeTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, DateTimeValue: {fields: [{name: :value, type: "DateTime", min_occurs: 0, max_occurs: 1}], base: "Value"}, DateValue: {fields: [{name: :value, type: "Date", min_occurs: 0, max_occurs: 1}], base: "Value"}, DayPart: {fields: [{name: :day_of_week, type: "DayOfWeek", min_occurs: 0, max_occurs: 1}, {name: :start_time, type: "TimeOfDay", min_occurs: 0, max_occurs: 1}, {name: :end_time, type: "TimeOfDay", min_occurs: 0, max_occurs: 1}]}, DayPartTargeting: {fields: [{name: :day_parts, type: "DayPart", min_occurs: 0, max_occurs: :unbounded}, {name: :time_zone, type: "DeliveryTimeZone", min_occurs: 0, max_occurs: 1}]}, DayPartTargetingError: {fields: [{name: :reason, type: "DayPartTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, DeleteTargetingPresetAction: {fields: [], base: "TargetingPresetAction"}, DeviceCapability: {fields: [], base: "Technology"}, DeviceCapabilityTargeting: {fields: [{name: :targeted_device_capabilities, type: "Technology", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_device_capabilities, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, DeviceCategory: {fields: [], base: "Technology"}, DeviceCategoryTargeting: {fields: [{name: :targeted_device_categories, type: "Technology", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_device_categories, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, DeviceManufacturer: {fields: [], base: "Technology"}, DeviceManufacturerTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :device_manufacturers, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, EntityChildrenLimitReachedError: {fields: [{name: :reason, type: "EntityChildrenLimitReachedError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, EntityLimitReachedError: {fields: [{name: :reason, type: "EntityLimitReachedError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, FeatureError: {fields: [{name: :reason, type: "FeatureError.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}]}, GenericTargetingError: {fields: [{name: :reason, type: "GenericTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, GeoTargeting: {fields: [{name: :targeted_locations, type: "Location", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_locations, type: "Location", min_occurs: 0, max_occurs: :unbounded}]}, GeoTargetingError: {fields: [{name: :reason, type: "GeoTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, InternalApiError: {fields: [{name: :reason, type: "InternalApiError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, InventorySizeTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :targeted_sizes, type: "TargetedSize", min_occurs: 0, max_occurs: :unbounded}]}, InventoryTargeting: {fields: [{name: :targeted_ad_units, type: "AdUnitTargeting", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_ad_units, type: "AdUnitTargeting", min_occurs: 0, max_occurs: :unbounded}, {name: :targeted_placement_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}]}, InventoryTargetingError: {fields: [{name: :reason, type: "InventoryTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, InventoryUrl: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}]}, InventoryUrlTargeting: {fields: [{name: :targeted_urls, type: "InventoryUrl", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_urls, type: "InventoryUrl", min_occurs: 0, max_occurs: :unbounded}]}, Location: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :type, type: "string", min_occurs: 0, max_occurs: 1}, {name: :canonical_parent_id, type: "int", min_occurs: 0, max_occurs: 1}, {name: :display_name, type: "string", min_occurs: 0, max_occurs: 1}]}, MobileApplicationTargeting: {fields: [{name: :mobile_application_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}]}, MobileApplicationTargetingError: {fields: [{name: :reason, type: "MobileApplicationTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, MobileCarrier: {fields: [], base: "Technology"}, MobileCarrierTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :mobile_carriers, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, MobileDevice: {fields: [{name: :manufacturer_criterion_id, type: "long", min_occurs: 0, max_occurs: 1}], base: "Technology"}, MobileDeviceSubmodel: {fields: [{name: :mobile_device_criterion_id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :device_manufacturer_criterion_id, type: "long", min_occurs: 0, max_occurs: 1}], base: "Technology"}, MobileDeviceSubmodelTargeting: {fields: [{name: :targeted_mobile_device_submodels, type: "Technology", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_mobile_device_submodels, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, MobileDeviceTargeting: {fields: [{name: :targeted_mobile_devices, type: "Technology", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_mobile_devices, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, NotNullError: {fields: [{name: :reason, type: "NotNullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NumberValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, OperatingSystem: {fields: [], base: "Technology"}, OperatingSystemTargeting: {fields: [{name: :is_targeted, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :operating_systems, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, OperatingSystemVersion: {fields: [{name: :major_version, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minor_version, type: "int", min_occurs: 0, max_occurs: 1}, {name: :micro_version, type: "int", min_occurs: 0, max_occurs: 1}], base: "Technology"}, OperatingSystemVersionTargeting: {fields: [{name: :targeted_operating_system_versions, type: "Technology", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_operating_system_versions, type: "Technology", min_occurs: 0, max_occurs: :unbounded}]}, ParseError: {fields: [{name: :reason, type: "ParseError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PermissionError: {fields: [{name: :reason, type: "PermissionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageContextError: {fields: [{name: :reason, type: "PublisherQueryLanguageContextError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageSyntaxError: {fields: [{name: :reason, type: "PublisherQueryLanguageSyntaxError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, QuotaError: {fields: [{name: :reason, type: "QuotaError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequestPlatformTargeting: {fields: [{name: :targeted_request_platforms, type: "RequestPlatform", min_occurs: 0, max_occurs: :unbounded}]}, RequestPlatformTargetingError: {fields: [{name: :reason, type: "RequestPlatformTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredCollectionError: {fields: [{name: :reason, type: "RequiredCollectionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredError: {fields: [{name: :reason, type: "RequiredError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ServerError: {fields: [{name: :reason, type: "ServerError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SetValue: {fields: [{name: :values, type: "Value", min_occurs: 0, max_occurs: :unbounded}], base: "Value"}, Size: {fields: [{name: :width, type: "int", min_occurs: 0, max_occurs: 1}, {name: :height, type: "int", min_occurs: 0, max_occurs: 1}, {name: :is_aspect_ratio, type: "boolean", min_occurs: 0, max_occurs: 1}]}, SoapRequestHeader: {fields: [{name: :network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :application_name, type: "string", min_occurs: 0, max_occurs: 1}]}, SoapResponseHeader: {fields: [{name: :request_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :response_time, type: "long", min_occurs: 0, max_occurs: 1}]}, Statement: {fields: [{name: :query, type: "string", min_occurs: 0, max_occurs: 1}, {name: :values, type: "String_ValueMapEntry", min_occurs: 0, max_occurs: :unbounded}]}, StatementError: {fields: [{name: :reason, type: "StatementError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, 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"}, String_ValueMapEntry: {fields: [{name: :key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :value, type: "Value", min_occurs: 0, max_occurs: 1}]}, TargetedSize: {fields: [{name: :size, type: "Size", min_occurs: 0, max_occurs: 1}]}, Targeting: {fields: [{name: :geo_targeting, type: "GeoTargeting", min_occurs: 0, max_occurs: 1}, {name: :inventory_targeting, type: "InventoryTargeting", min_occurs: 0, max_occurs: 1}, {name: :day_part_targeting, type: "DayPartTargeting", min_occurs: 0, max_occurs: 1}, {name: :date_time_range_targeting, type: "DateTimeRangeTargeting", min_occurs: 0, max_occurs: 1}, {name: :technology_targeting, type: "TechnologyTargeting", min_occurs: 0, max_occurs: 1}, {name: :custom_targeting, type: "CustomCriteriaSet", min_occurs: 0, max_occurs: 1}, {name: :user_domain_targeting, type: "UserDomainTargeting", min_occurs: 0, max_occurs: 1}, {name: :content_targeting, type: "ContentTargeting", min_occurs: 0, max_occurs: 1}, {name: :video_position_targeting, type: "VideoPositionTargeting", min_occurs: 0, max_occurs: 1}, {name: :mobile_application_targeting, type: "MobileApplicationTargeting", min_occurs: 0, max_occurs: 1}, {name: :buyer_user_list_targeting, type: "BuyerUserListTargeting", min_occurs: 0, max_occurs: 1}, {name: :inventory_url_targeting, type: "InventoryUrlTargeting", min_occurs: 0, max_occurs: 1}, {name: :vertical_targeting, type: "VerticalTargeting", min_occurs: 0, max_occurs: 1}, {name: :content_label_targeting, type: "ContentLabelTargeting", min_occurs: 0, max_occurs: 1}, {name: :request_platform_targeting, type: "RequestPlatformTargeting", min_occurs: 0, max_occurs: 1}, {name: :inventory_size_targeting, type: "InventorySizeTargeting", min_occurs: 0, max_occurs: 1}]}, TargetingPresetAction: {fields: [], abstract: true}, TargetingPreset: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :name, type: "string", min_occurs: 0, max_occurs: 1}, {name: :targeting, type: "Targeting", min_occurs: 0, max_occurs: 1}]}, TargetingPresetPage: {fields: [{name: :total_result_set_size, type: "int", min_occurs: 0, max_occurs: 1}, {name: :start_index, type: "int", min_occurs: 0, max_occurs: 1}, {name: :results, type: "TargetingPreset", min_occurs: 0, max_occurs: :unbounded}]}, Technology: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :name, type: "string", min_occurs: 0, max_occurs: 1}]}, TechnologyTargetingError: {fields: [{name: :reason, type: "TechnologyTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, TextValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, TimeOfDay: {fields: [{name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "MinuteOfHour", min_occurs: 0, max_occurs: 1}]}, UniqueError: {fields: [], base: "ApiError"}, UpdateResult: {fields: [{name: :num_changes, type: "int", min_occurs: 0, max_occurs: 1}]}, UserDomainTargeting: {fields: [{name: :domains, type: "string", min_occurs: 0, max_occurs: :unbounded}, {name: :targeted, type: "boolean", min_occurs: 0, max_occurs: 1}]}, UserDomainTargetingError: {fields: [{name: :reason, type: "UserDomainTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, Value: {fields: [], abstract: true}, VerticalTargeting: {fields: [{name: :targeted_vertical_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}, {name: :excluded_vertical_ids, type: "long", min_occurs: 0, max_occurs: :unbounded}]}, VideoPosition: {fields: [{name: :position_type, type: "VideoPosition.Type", min_occurs: 0, max_occurs: 1}, {name: :midroll_index, type: "int", min_occurs: 0, max_occurs: 1}]}, VideoPositionTargeting: {fields: [{name: :targeted_positions, type: "VideoPositionTarget", min_occurs: 0, max_occurs: :unbounded}]}, VideoPositionTargetingError: {fields: [{name: :reason, type: "VideoPositionTargetingError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, VideoPositionWithinPod: {fields: [{name: :index, type: "int", min_occurs: 0, max_occurs: 1}]}, VideoPositionTarget: {fields: [{name: :video_position, type: "VideoPosition", min_occurs: 0, max_occurs: 1}, {name: :video_bumper_type, type: "VideoBumperType", min_occurs: 0, max_occurs: 1}, {name: :video_position_within_pod, type: "VideoPositionWithinPod", min_occurs: 0, max_occurs: 1}, {name: :ad_spot_id, type: "long", min_occurs: 0, max_occurs: 1}]}, "ApiVersionError.Reason": {type: "string", enumerations: ["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, "AuthenticationError.Reason": {type: "string", enumerations: ["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NETWORK_API_ACCESS_DISABLED", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, "CollectionSizeError.Reason": {type: "string", enumerations: ["TOO_LARGE", "UNKNOWN"]}, "CommonError.Reason": {type: "string", enumerations: ["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "UNSUPPORTED_OPERATION", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, "CustomCriteria.ComparisonOperator": {type: "string", enumerations: ["IS", "IS_NOT"]}, "CustomCriteriaSet.LogicalOperator": {type: "string", enumerations: ["AND", "OR"]}, "CmsMetadataCriteria.ComparisonOperator": {type: "string", enumerations: ["EQUALS", "NOT_EQUALS"]}, "CustomTargetingError.Reason": {type: "string", enumerations: ["KEY_NOT_FOUND", "KEY_COUNT_TOO_LARGE", "KEY_NAME_DUPLICATE", "KEY_NAME_EMPTY", "KEY_NAME_INVALID_LENGTH", "KEY_NAME_INVALID_CHARS", "KEY_NAME_RESERVED", "KEY_DISPLAY_NAME_INVALID_LENGTH", "KEY_STATUS_NOT_ACTIVE", "VALUE_NOT_FOUND", "GET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID", "VALUE_COUNT_FOR_KEY_TOO_LARGE", "VALUE_NAME_DUPLICATE", "VALUE_NAME_EMPTY", "VALUE_NAME_INVALID_LENGTH", "VALUE_NAME_INVALID_CHARS", "VALUE_DISPLAY_NAME_INVALID_LENGTH", "VALUE_MATCH_TYPE_NOT_ALLOWED", "VALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY", "SUFFIX_MATCH_TYPE_NOT_ALLOWED", "CONTAINS_MATCH_TYPE_NOT_ALLOWED", "VALUE_STATUS_NOT_ACTIVE", "KEY_WITH_MISSING_VALUES", "INVALID_VALUE_FOR_KEY", "CANNOT_OR_DIFFERENT_KEYS", "INVALID_TARGETING_EXPRESSION", "DELETED_KEY_CANNOT_BE_USED_FOR_TARGETING", "DELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING", "VIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING", "CANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING", "CANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING", "CANNOT_TARGET_AUDIENCE_SEGMENT", "CANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT", "CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT", "INVALID_AUDIENCE_SEGMENTS", "CANNOT_TARGET_MAPPED_METADATA", "ONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED", "UNKNOWN"]}, "AudienceSegmentCriteria.ComparisonOperator": {type: "string", enumerations: ["IS", "IS_NOT"]}, "DateTimeRangeTargetingError.Reason": {type: "string", enumerations: ["EMPTY_RANGES", "NOT_SPONSORSHIP_LINEITEM", "NOT_SPONSORSHIP_OR_STANDARD_LINEITEM", "UNSUPPORTED_LINEITEM_RESERVATION_TYPE", "PAST_RANGES_CHANGED", "RANGES_OVERLAP", "FIRST_DATE_TIME_DOES_NOT_MATCH_START_TIME", "LAST_DATE_TIME_DOES_NOT_MATCH_END_TIME", "RANGES_OUT_OF_LINEITEM_ACTIVE_PERIOD", "START_TIME_IS_NOT_START_OF_DAY", "END_TIME_IS_NOT_END_OF_DAY", "START_DATE_TIME_IS_IN_PAST", "MODIFY_START_DATE_TIME_TO_PAST", "RANGE_END_TIME_BEFORE_START_TIME", "END_DATE_TIME_IS_TOO_LATE", "LIMITED_RANGES_IN_UNLIMITED_LINEITEM", "UNKNOWN"]}, DayOfWeek: {type: "string", enumerations: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]}, "DayPartTargetingError.Reason": {type: "string", enumerations: ["INVALID_HOUR", "INVALID_MINUTE", "END_TIME_NOT_AFTER_START_TIME", "TIME_PERIODS_OVERLAP", "UNKNOWN"]}, DeliveryTimeZone: {type: "string", enumerations: ["PUBLISHER", "BROWSER"]}, "EntityChildrenLimitReachedError.Reason": {type: "string", enumerations: ["LINE_ITEM_LIMIT_FOR_ORDER_REACHED", "CREATIVE_ASSOCIATION_LIMIT_FOR_LINE_ITEM_REACHED", "AD_UNIT_LIMIT_FOR_PLACEMENT_REACHED", "TARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED", "TARGETING_EXPRESSION_SIZE_LIMIT_REACHED", "CUSTOM_TARGETING_VALUES_FOR_KEY_LIMIT_REACHED", "TARGETING_EXPRESSION_LIMIT_FOR_CREATIVES_ON_LINE_ITEM_REACHED", "ATTACHMENT_LIMIT_FOR_PROPOSAL_REACHED", "PROPOSAL_LINE_ITEM_LIMIT_FOR_PROPOSAL_REACHED", "PRODUCT_LIMIT_FOR_PRODUCT_PACKAGE_REACHED", "PRODUCT_TEMPLATE_AND_PRODUCT_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED", "PRODUCT_PACKAGE_ITEM_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED", "PREMIUM_LIMIT_FOR_RATE_CARD_REACHED", "AD_UNIT_LIMIT_FOR_AD_EXCLUSION_RULE_TARGETING_REACHED", "NATIVE_STYLE_LIMIT_FOR_NATIVE_AD_FORMAT_REACHED", "TARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED", "UNKNOWN"]}, "EntityLimitReachedError.Reason": {type: "string", enumerations: ["CUSTOM_TARGETING_VALUES_LIMIT_REACHED", "AD_EXCLUSION_RULES_LIMIT_REACHED", "FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED", "PLACEMENTS_LIMIT_REACHED", "LINE_ITEMS_LIMIT_REACHED", "ACTIVE_LINE_ITEMS_LIMIT_REACHED", "DAI_ENCODING_PROFILES_LIMIT_REACHED", "TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED", "FORECAST_ADJUSTMENTS_LIMIT_REACHED", "ACTIVE_EXPERIMENTS_LIMIT_REACHED", "SITES_LIMIT_REACHED", "USER_TEAMS_LIMIT_REACHED", "ACTIVE_TARGETING_PRESETS_LIMIT_REACHED", "UNKNOWN"]}, "FeatureError.Reason": {type: "string", enumerations: ["MISSING_FEATURE", "UNKNOWN"]}, "GenericTargetingError.Reason": {type: "string", enumerations: ["CONFLICTING_INCLUSION_OR_EXCLUSION_OF_SIBLINGS", "INCLUDING_DESCENDANTS_OF_EXCLUDED_CRITERIA", "UNKNOWN"]}, "GeoTargetingError.Reason": {type: "string", enumerations: ["TARGETED_LOCATIONS_NOT_EXCLUDABLE", "EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED", "POSTAL_CODES_CANNOT_BE_EXCLUDED", "UNTARGETABLE_LOCATION", "UNKNOWN"]}, "InternalApiError.Reason": {type: "string", enumerations: ["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, "InventoryTargetingError.Reason": {type: "string", enumerations: ["AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED", "INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED", "INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED", "INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED", "INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED", "EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED", "EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED", "SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED", "SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS", "YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY", "UNKNOWN"]}, MinuteOfHour: {type: "string", enumerations: ["ZERO", "FIFTEEN", "THIRTY", "FORTY_FIVE"]}, "MobileApplicationTargetingError.Reason": {type: "string", enumerations: ["CANNOT_TARGET_UNLINKED_APPLICATION", "UNKNOWN"]}, "NotNullError.Reason": {type: "string", enumerations: ["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, "ParseError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "PermissionError.Reason": {type: "string", enumerations: ["PERMISSION_DENIED", "UNKNOWN"]}, "PublisherQueryLanguageContextError.Reason": {type: "string", enumerations: ["UNEXECUTABLE", "UNKNOWN"]}, "PublisherQueryLanguageSyntaxError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "QuotaError.Reason": {type: "string", enumerations: ["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT", "SEGMENT_POPULATION_LIMIT"]}, RequestPlatform: {type: "string", enumerations: ["UNKNOWN", "BROWSER", "MOBILE_APP", "VIDEO_PLAYER"]}, "RequestPlatformTargetingError.Reason": {type: "string", enumerations: ["REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_LINE_ITEM_TYPE", "REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_ENVIRONMENT_TYPE", "UNKNOWN"]}, "RequiredCollectionError.Reason": {type: "string", enumerations: ["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, "RequiredError.Reason": {type: "string", enumerations: ["REQUIRED"]}, "ServerError.Reason": {type: "string", enumerations: ["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, "StatementError.Reason": {type: "string", enumerations: ["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, "StringFormatError.Reason": {type: "string", enumerations: ["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, "StringLengthError.Reason": {type: "string", enumerations: ["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, "TechnologyTargetingError.Reason": {type: "string", enumerations: ["MOBILE_LINE_ITEM_CONTAINS_WEB_TECH_CRITERIA", "WEB_LINE_ITEM_CONTAINS_MOBILE_TECH_CRITERIA", "MOBILE_CARRIER_TARGETING_FEATURE_NOT_ENABLED", "DEVICE_CAPABILITY_TARGETING_FEATURE_NOT_ENABLED", "UNKNOWN"]}, "UserDomainTargetingError.Reason": {type: "string", enumerations: ["INVALID_DOMAIN_NAMES", "UNKNOWN"]}, VideoBumperType: {type: "string", enumerations: ["BEFORE", "AFTER"]}, "VideoPosition.Type": {type: "string", enumerations: ["UNKNOWN", "ALL", "PREROLL", "MIDROLL", "POSTROLL"]}, "VideoPositionTargetingError.Reason": {type: "string", enumerations: ["CANNOT_MIX_BUMPER_AND_NON_BUMPER_TARGETING", "INVALID_BUMPER_TARGETING", "CAN_ONLY_TARGET_CUSTOM_AD_SPOTS", "UNKNOWN"]}}
|
16
|
+
TARGETINGPRESETSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return TARGETINGPRESETSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return TARGETINGPRESETSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return TARGETINGPRESETSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, TargetingPresetServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -2,19 +2,19 @@
|
|
2
2
|
#
|
3
3
|
# This is auto-generated code, changes will be overwritten.
|
4
4
|
#
|
5
|
-
# Copyright:: Copyright
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
6
|
# License:: Licensed under the Apache License, Version 2.0.
|
7
7
|
#
|
8
|
-
# Code generated by AdsCommon library
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:39.
|
9
9
|
|
10
10
|
require 'ads_common/savon_service'
|
11
|
-
require 'ad_manager_api/
|
11
|
+
require 'ad_manager_api/v202502/team_service_registry'
|
12
12
|
|
13
|
-
module AdManagerApi; module
|
13
|
+
module AdManagerApi; module V202502; module TeamService
|
14
14
|
class TeamService < AdsCommon::SavonService
|
15
15
|
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/
|
17
|
-
super(config, endpoint, namespace, :
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v202502'
|
17
|
+
super(config, endpoint, namespace, :v202502)
|
18
18
|
end
|
19
19
|
|
20
20
|
def create_teams(*args, &block)
|
@@ -56,7 +56,7 @@ module AdManagerApi; module V202402; module TeamService
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def get_module()
|
59
|
-
return AdManagerApi::
|
59
|
+
return AdManagerApi::V202502::TeamService
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2025, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 3.0.0 on 2025-02-19 19:22:39.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V202502; module TeamService
|
13
|
+
class TeamServiceRegistry
|
14
|
+
TEAMSERVICE_METHODS = {create_teams: {input: [{name: :teams, type: "Team", min_occurs: 0, max_occurs: :unbounded}], output: {name: "create_teams_response", fields: [{name: :rval, type: "Team", min_occurs: 0, max_occurs: :unbounded}]}}, get_teams_by_statement: {input: [{name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "get_teams_by_statement_response", fields: [{name: :rval, type: "TeamPage", min_occurs: 0, max_occurs: 1}]}}, perform_team_action: {input: [{name: :team_action, type: "TeamAction", min_occurs: 0, max_occurs: 1}, {name: :filter_statement, type: "Statement", min_occurs: 0, max_occurs: 1}], output: {name: "perform_team_action_response", fields: [{name: :rval, type: "UpdateResult", min_occurs: 0, max_occurs: 1}]}}, update_teams: {input: [{name: :teams, type: "Team", min_occurs: 0, max_occurs: :unbounded}], output: {name: "update_teams_response", fields: [{name: :rval, type: "Team", min_occurs: 0, max_occurs: :unbounded}]}}}
|
15
|
+
TEAMSERVICE_TYPES = {ObjectValue: {fields: [], abstract: true, base: "Value"}, ActivateTeams: {fields: [], base: "TeamAction"}, 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}], abstract: true}, ApiException: {fields: [{name: :errors, type: "ApiError", min_occurs: 0, max_occurs: :unbounded}], base: "ApplicationException"}, ApiVersionError: {fields: [{name: :reason, type: "ApiVersionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ApplicationException: {fields: [{name: :message, type: "string", min_occurs: 0, max_occurs: 1}]}, AuthenticationError: {fields: [{name: :reason, type: "AuthenticationError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, BooleanValue: {fields: [{name: :value, type: "boolean", min_occurs: 0, max_occurs: 1}], base: "Value"}, CollectionSizeError: {fields: [{name: :reason, type: "CollectionSizeError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, CommonError: {fields: [{name: :reason, type: "CommonError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, Date: {fields: [{name: :year, type: "int", min_occurs: 0, max_occurs: 1}, {name: :month, type: "int", min_occurs: 0, max_occurs: 1}, {name: :day, type: "int", min_occurs: 0, max_occurs: 1}]}, DateTime: {fields: [{name: :date, type: "Date", min_occurs: 0, max_occurs: 1}, {name: :hour, type: "int", min_occurs: 0, max_occurs: 1}, {name: :minute, type: "int", min_occurs: 0, max_occurs: 1}, {name: :second, type: "int", min_occurs: 0, max_occurs: 1}, {name: :time_zone_id, type: "string", min_occurs: 0, max_occurs: 1}]}, DateTimeValue: {fields: [{name: :value, type: "DateTime", min_occurs: 0, max_occurs: 1}], base: "Value"}, DateValue: {fields: [{name: :value, type: "Date", min_occurs: 0, max_occurs: 1}], base: "Value"}, DeactivateTeams: {fields: [], base: "TeamAction"}, EntityLimitReachedError: {fields: [{name: :reason, type: "EntityLimitReachedError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, FeatureError: {fields: [{name: :reason, type: "FeatureError.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}]}, InternalApiError: {fields: [{name: :reason, type: "InternalApiError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NotNullError: {fields: [{name: :reason, type: "NotNullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NullError: {fields: [{name: :reason, type: "NullError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, NumberValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, OrderError: {fields: [{name: :reason, type: "OrderError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ParseError: {fields: [{name: :reason, type: "ParseError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PermissionError: {fields: [{name: :reason, type: "PermissionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageContextError: {fields: [{name: :reason, type: "PublisherQueryLanguageContextError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, PublisherQueryLanguageSyntaxError: {fields: [{name: :reason, type: "PublisherQueryLanguageSyntaxError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, QuotaError: {fields: [{name: :reason, type: "QuotaError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredCollectionError: {fields: [{name: :reason, type: "RequiredCollectionError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, RequiredError: {fields: [{name: :reason, type: "RequiredError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, ServerError: {fields: [{name: :reason, type: "ServerError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, SetValue: {fields: [{name: :values, type: "Value", min_occurs: 0, max_occurs: :unbounded}], base: "Value"}, SoapRequestHeader: {fields: [{name: :network_code, type: "string", min_occurs: 0, max_occurs: 1}, {name: :application_name, type: "string", min_occurs: 0, max_occurs: 1}]}, SoapResponseHeader: {fields: [{name: :request_id, type: "string", min_occurs: 0, max_occurs: 1}, {name: :response_time, type: "long", min_occurs: 0, max_occurs: 1}]}, Statement: {fields: [{name: :query, type: "string", min_occurs: 0, max_occurs: 1}, {name: :values, type: "String_ValueMapEntry", min_occurs: 0, max_occurs: :unbounded}]}, StatementError: {fields: [{name: :reason, type: "StatementError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, 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"}, String_ValueMapEntry: {fields: [{name: :key, type: "string", min_occurs: 0, max_occurs: 1}, {name: :value, type: "Value", min_occurs: 0, max_occurs: 1}]}, TeamAction: {fields: [], abstract: true}, Team: {fields: [{name: :id, type: "long", min_occurs: 0, max_occurs: 1}, {name: :name, type: "string", min_occurs: 0, max_occurs: 1}, {name: :description, type: "string", min_occurs: 0, max_occurs: 1}, {name: :status, type: "TeamStatus", min_occurs: 0, max_occurs: 1}, {name: :has_all_companies, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :has_all_inventory, type: "boolean", min_occurs: 0, max_occurs: 1}, {name: :team_access_type, type: "TeamAccessType", min_occurs: 0, max_occurs: 1}]}, TeamError: {fields: [{name: :reason, type: "TeamError.Reason", min_occurs: 0, max_occurs: 1}], base: "ApiError"}, TeamPage: {fields: [{name: :total_result_set_size, type: "int", min_occurs: 0, max_occurs: 1}, {name: :start_index, type: "int", min_occurs: 0, max_occurs: 1}, {name: :results, type: "Team", min_occurs: 0, max_occurs: :unbounded}]}, TextValue: {fields: [{name: :value, type: "string", min_occurs: 0, max_occurs: 1}], base: "Value"}, TypeError: {fields: [], base: "ApiError"}, UniqueError: {fields: [], base: "ApiError"}, UpdateResult: {fields: [{name: :num_changes, type: "int", min_occurs: 0, max_occurs: 1}]}, Value: {fields: [], abstract: true}, "ApiVersionError.Reason": {type: "string", enumerations: ["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, "AuthenticationError.Reason": {type: "string", enumerations: ["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NETWORK_API_ACCESS_DISABLED", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, "CollectionSizeError.Reason": {type: "string", enumerations: ["TOO_LARGE", "UNKNOWN"]}, "CommonError.Reason": {type: "string", enumerations: ["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "UNSUPPORTED_OPERATION", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, "EntityLimitReachedError.Reason": {type: "string", enumerations: ["CUSTOM_TARGETING_VALUES_LIMIT_REACHED", "AD_EXCLUSION_RULES_LIMIT_REACHED", "FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED", "PLACEMENTS_LIMIT_REACHED", "LINE_ITEMS_LIMIT_REACHED", "ACTIVE_LINE_ITEMS_LIMIT_REACHED", "DAI_ENCODING_PROFILES_LIMIT_REACHED", "TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED", "FORECAST_ADJUSTMENTS_LIMIT_REACHED", "ACTIVE_EXPERIMENTS_LIMIT_REACHED", "SITES_LIMIT_REACHED", "USER_TEAMS_LIMIT_REACHED", "ACTIVE_TARGETING_PRESETS_LIMIT_REACHED", "UNKNOWN"]}, "FeatureError.Reason": {type: "string", enumerations: ["MISSING_FEATURE", "UNKNOWN"]}, "InternalApiError.Reason": {type: "string", enumerations: ["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, "NotNullError.Reason": {type: "string", enumerations: ["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, "NullError.Reason": {type: "string", enumerations: ["NULL_CONTENT"]}, "OrderError.Reason": {type: "string", enumerations: ["UPDATE_CANCELED_ORDER_NOT_ALLOWED", "UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED", "UPDATE_ARCHIVED_ORDER_NOT_ALLOWED", "CANNOT_MODIFY_PROPOSAL_ID", "PRIMARY_USER_REQUIRED", "PRIMARY_USER_CANNOT_BE_SECONDARY", "ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER", "USER_NOT_ON_ORDERS_TEAMS", "AGENCY_NOT_ON_ORDERS_TEAMS", "INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER", "UNKNOWN"]}, "ParseError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "PermissionError.Reason": {type: "string", enumerations: ["PERMISSION_DENIED", "UNKNOWN"]}, "PublisherQueryLanguageContextError.Reason": {type: "string", enumerations: ["UNEXECUTABLE", "UNKNOWN"]}, "PublisherQueryLanguageSyntaxError.Reason": {type: "string", enumerations: ["UNPARSABLE", "UNKNOWN"]}, "QuotaError.Reason": {type: "string", enumerations: ["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT", "SEGMENT_POPULATION_LIMIT"]}, "RequiredCollectionError.Reason": {type: "string", enumerations: ["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, "RequiredError.Reason": {type: "string", enumerations: ["REQUIRED"]}, "ServerError.Reason": {type: "string", enumerations: ["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, "StatementError.Reason": {type: "string", enumerations: ["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, "StringFormatError.Reason": {type: "string", enumerations: ["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, "StringLengthError.Reason": {type: "string", enumerations: ["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, TeamAccessType: {type: "string", enumerations: ["NONE", "READ_ONLY", "READ_WRITE"]}, "TeamError.Reason": {type: "string", enumerations: ["ENTITY_NOT_ON_USERS_TEAMS", "AD_UNITS_NOT_ON_ORDER_TEAMS", "PLACEMENTS_NOT_ON_ORDER_TEAMS", "MISSING_USERS_TEAM", "ALL_TEAM_ASSOCIATION_NOT_ALLOWED", "INVALID_TEAM_ASSIGNMENT", "CANNOT_UPDATE_INACTIVE_TEAM", "UNKNOWN"]}, TeamStatus: {type: "string", enumerations: ["ACTIVE", "INACTIVE", "UNKNOWN"]}}
|
16
|
+
TEAMSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return TEAMSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return TEAMSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return TEAMSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, TeamServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|