google-dfp-api 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +5 -0
  3. data/lib/ad_manager_api/api_config.rb +14 -14
  4. data/lib/ad_manager_api/{v202102 → v202202}/activity_group_service.rb +7 -7
  5. data/lib/ad_manager_api/{v202102 → v202202}/activity_group_service_registry.rb +3 -3
  6. data/lib/ad_manager_api/{v202102 → v202202}/activity_service.rb +7 -7
  7. data/lib/ad_manager_api/{v202102 → v202202}/activity_service_registry.rb +3 -3
  8. data/lib/ad_manager_api/{v202102 → v202202}/ad_rule_service.rb +7 -7
  9. data/lib/ad_manager_api/{v202102 → v202202}/ad_rule_service_registry.rb +4 -4
  10. data/lib/ad_manager_api/{v202102 → v202202}/adjustment_service.rb +7 -7
  11. data/lib/ad_manager_api/v202202/adjustment_service_registry.rb +45 -0
  12. data/lib/ad_manager_api/{v202102 → v202202}/audience_segment_service.rb +7 -7
  13. data/lib/ad_manager_api/{v202102 → v202202}/audience_segment_service_registry.rb +3 -3
  14. data/lib/ad_manager_api/{v202102 → v202202}/cdn_configuration_service.rb +7 -7
  15. data/lib/ad_manager_api/{v202102 → v202202}/cdn_configuration_service_registry.rb +3 -3
  16. data/lib/ad_manager_api/{v202102 → v202202}/cms_metadata_service.rb +7 -7
  17. data/lib/ad_manager_api/{v202102 → v202202}/cms_metadata_service_registry.rb +3 -3
  18. data/lib/ad_manager_api/{v202102 → v202202}/company_service.rb +7 -7
  19. data/lib/ad_manager_api/v202202/company_service_registry.rb +45 -0
  20. data/lib/ad_manager_api/{v202102 → v202202}/contact_service.rb +7 -7
  21. data/lib/ad_manager_api/{v202102 → v202202}/contact_service_registry.rb +3 -3
  22. data/lib/ad_manager_api/{v202102 → v202202}/content_bundle_service.rb +7 -7
  23. data/lib/ad_manager_api/v202202/content_bundle_service_registry.rb +45 -0
  24. data/lib/ad_manager_api/{v202102 → v202202}/content_service.rb +7 -7
  25. data/lib/ad_manager_api/{v202102 → v202202}/content_service_registry.rb +4 -4
  26. data/lib/ad_manager_api/{v202102 → v202202}/creative_review_service.rb +7 -7
  27. data/lib/ad_manager_api/{v202102 → v202202}/creative_review_service_registry.rb +3 -3
  28. data/lib/ad_manager_api/{v202102 → v202202}/creative_service.rb +7 -7
  29. data/lib/ad_manager_api/v202202/creative_service_registry.rb +45 -0
  30. data/lib/ad_manager_api/{v202102 → v202202}/creative_set_service.rb +7 -7
  31. data/lib/ad_manager_api/{v202102 → v202202}/creative_set_service_registry.rb +4 -4
  32. data/lib/ad_manager_api/{v202102 → v202202}/creative_template_service.rb +7 -7
  33. data/lib/ad_manager_api/{v202102 → v202202}/creative_template_service_registry.rb +3 -3
  34. data/lib/ad_manager_api/{v202102 → v202202}/creative_wrapper_service.rb +7 -7
  35. data/lib/ad_manager_api/v202202/creative_wrapper_service_registry.rb +45 -0
  36. data/lib/ad_manager_api/{v202102 → v202202}/custom_field_service.rb +7 -7
  37. data/lib/ad_manager_api/{v202102 → v202202}/custom_field_service_registry.rb +3 -3
  38. data/lib/ad_manager_api/{v202102 → v202202}/custom_targeting_service.rb +7 -7
  39. data/lib/ad_manager_api/{v202102 → v202202}/custom_targeting_service_registry.rb +3 -3
  40. data/lib/ad_manager_api/{v202102 → v202202}/dai_authentication_key_service.rb +7 -7
  41. data/lib/ad_manager_api/{v202102 → v202202}/dai_authentication_key_service_registry.rb +3 -3
  42. data/lib/ad_manager_api/{v202102 → v202202}/dai_encoding_profile_service.rb +7 -7
  43. data/lib/ad_manager_api/v202202/dai_encoding_profile_service_registry.rb +45 -0
  44. data/lib/ad_manager_api/{v202102 → v202202}/forecast_service.rb +7 -7
  45. data/lib/ad_manager_api/v202202/forecast_service_registry.rb +45 -0
  46. data/lib/ad_manager_api/{v202102 → v202202}/inventory_service.rb +7 -7
  47. data/lib/ad_manager_api/v202202/inventory_service_registry.rb +45 -0
  48. data/lib/ad_manager_api/{v202102 → v202202}/label_service.rb +7 -7
  49. data/lib/ad_manager_api/{v202102 → v202202}/label_service_registry.rb +4 -4
  50. data/lib/ad_manager_api/{v202102 → v202202}/line_item_creative_association_service.rb +15 -7
  51. data/lib/ad_manager_api/v202202/line_item_creative_association_service_registry.rb +45 -0
  52. data/lib/ad_manager_api/{v202102 → v202202}/line_item_service.rb +7 -7
  53. data/lib/ad_manager_api/v202202/line_item_service_registry.rb +45 -0
  54. data/lib/ad_manager_api/{v202102 → v202202}/line_item_template_service.rb +7 -7
  55. data/lib/ad_manager_api/v202202/line_item_template_service_registry.rb +45 -0
  56. data/lib/ad_manager_api/{v202102 → v202202}/live_stream_event_service.rb +39 -7
  57. data/lib/ad_manager_api/v202202/live_stream_event_service_registry.rb +45 -0
  58. data/lib/ad_manager_api/{v202102 → v202202}/mobile_application_service.rb +7 -7
  59. data/lib/ad_manager_api/v202202/mobile_application_service_registry.rb +45 -0
  60. data/lib/ad_manager_api/{v202102 → v202202}/native_style_service.rb +7 -7
  61. data/lib/ad_manager_api/{v202102 → v202202}/native_style_service_registry.rb +4 -4
  62. data/lib/ad_manager_api/{v202102 → v202202}/network_service.rb +7 -7
  63. data/lib/ad_manager_api/v202202/network_service_registry.rb +45 -0
  64. data/lib/ad_manager_api/{v202102 → v202202}/order_service.rb +7 -7
  65. data/lib/ad_manager_api/{v202102 → v202202}/order_service_registry.rb +4 -4
  66. data/lib/ad_manager_api/{v202102 → v202202}/placement_service.rb +7 -7
  67. data/lib/ad_manager_api/{v202102 → v202202}/placement_service_registry.rb +3 -3
  68. data/lib/ad_manager_api/{v202102 → v202202}/proposal_line_item_service.rb +7 -7
  69. data/lib/ad_manager_api/v202202/proposal_line_item_service_registry.rb +45 -0
  70. data/lib/ad_manager_api/{v202102 → v202202}/proposal_service.rb +7 -7
  71. data/lib/ad_manager_api/v202202/proposal_service_registry.rb +45 -0
  72. data/lib/ad_manager_api/{v202102 → v202202}/publisher_query_language_service.rb +7 -7
  73. data/lib/ad_manager_api/{v202102 → v202202}/publisher_query_language_service_registry.rb +4 -4
  74. data/lib/ad_manager_api/{v202102 → v202202}/report_service.rb +7 -7
  75. data/lib/ad_manager_api/v202202/report_service_registry.rb +45 -0
  76. data/lib/ad_manager_api/{v202102 → v202202}/site_service.rb +7 -7
  77. data/lib/ad_manager_api/v202202/site_service_registry.rb +43 -0
  78. data/lib/ad_manager_api/{v202102 → v202202}/stream_activity_monitor_service.rb +7 -7
  79. data/lib/ad_manager_api/v202202/stream_activity_monitor_service_registry.rb +43 -0
  80. data/lib/ad_manager_api/{v202102 → v202202}/suggested_ad_unit_service.rb +7 -7
  81. data/lib/ad_manager_api/{v202102 → v202202}/suggested_ad_unit_service_registry.rb +3 -3
  82. data/lib/ad_manager_api/{v202102 → v202202}/targeting_preset_service.rb +7 -7
  83. data/lib/ad_manager_api/{v202102 → v202202}/targeting_preset_service_registry.rb +4 -4
  84. data/lib/ad_manager_api/{v202102 → v202202}/team_service.rb +7 -7
  85. data/lib/ad_manager_api/{v202102 → v202202}/team_service_registry.rb +3 -3
  86. data/lib/ad_manager_api/{v202102 → v202202}/user_service.rb +7 -7
  87. data/lib/ad_manager_api/{v202102 → v202202}/user_service_registry.rb +4 -4
  88. data/lib/ad_manager_api/{v202102 → v202202}/user_team_association_service.rb +7 -7
  89. data/lib/ad_manager_api/{v202102 → v202202}/user_team_association_service_registry.rb +3 -3
  90. data/lib/ad_manager_api/v202202/yield_group_service.rb +62 -0
  91. data/lib/ad_manager_api/v202202/yield_group_service_registry.rb +43 -0
  92. data/lib/ad_manager_api/version.rb +1 -1
  93. metadata +90 -90
  94. data/lib/ad_manager_api/v202102/ad_exclusion_rule_service.rb +0 -62
  95. data/lib/ad_manager_api/v202102/ad_exclusion_rule_service_registry.rb +0 -45
  96. data/lib/ad_manager_api/v202102/adjustment_service_registry.rb +0 -45
  97. data/lib/ad_manager_api/v202102/company_service_registry.rb +0 -45
  98. data/lib/ad_manager_api/v202102/content_bundle_service_registry.rb +0 -45
  99. data/lib/ad_manager_api/v202102/creative_service_registry.rb +0 -45
  100. data/lib/ad_manager_api/v202102/creative_wrapper_service_registry.rb +0 -45
  101. data/lib/ad_manager_api/v202102/dai_encoding_profile_service_registry.rb +0 -45
  102. data/lib/ad_manager_api/v202102/forecast_service_registry.rb +0 -45
  103. data/lib/ad_manager_api/v202102/inventory_service_registry.rb +0 -45
  104. data/lib/ad_manager_api/v202102/line_item_creative_association_service_registry.rb +0 -45
  105. data/lib/ad_manager_api/v202102/line_item_service_registry.rb +0 -45
  106. data/lib/ad_manager_api/v202102/line_item_template_service_registry.rb +0 -45
  107. data/lib/ad_manager_api/v202102/live_stream_event_service_registry.rb +0 -45
  108. data/lib/ad_manager_api/v202102/mobile_application_service_registry.rb +0 -45
  109. data/lib/ad_manager_api/v202102/network_service_registry.rb +0 -45
  110. data/lib/ad_manager_api/v202102/proposal_line_item_service_registry.rb +0 -45
  111. data/lib/ad_manager_api/v202102/proposal_service_registry.rb +0 -45
  112. data/lib/ad_manager_api/v202102/report_service_registry.rb +0 -45
  113. data/lib/ad_manager_api/v202102/site_service_registry.rb +0 -43
  114. data/lib/ad_manager_api/v202102/stream_activity_monitor_service_registry.rb +0 -43
@@ -1,43 +0,0 @@
1
- # Encoding: utf-8
2
- #
3
- # This is auto-generated code, changes will be overwritten.
4
- #
5
- # Copyright:: Copyright 2021, Google Inc. All Rights Reserved.
6
- # License:: Licensed under the Apache License, Version 2.0.
7
- #
8
- # Code generated by AdsCommon library 1.0.2 on 2021-02-12 12:59:26.
9
-
10
- require 'ad_manager_api/errors'
11
-
12
- module AdManagerApi; module V202102; 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"}, :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"}, :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"}, :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=>:active, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :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}, :"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"]}, :"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"]}, :"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", "INVALID_URL_FOR_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
@@ -1,43 +0,0 @@
1
- # Encoding: utf-8
2
- #
3
- # This is auto-generated code, changes will be overwritten.
4
- #
5
- # Copyright:: Copyright 2021, Google Inc. All Rights Reserved.
6
- # License:: Licensed under the Apache License, Version 2.0.
7
- #
8
- # Code generated by AdsCommon library 1.0.2 on 2021-02-12 12:59:27.
9
-
10
- require 'ad_manager_api/errors'
11
-
12
- module AdManagerApi; module V202102; 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=>:sam_error, :type=>"SamError", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_transcoded, :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}], :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"]}, :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", "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