google-dfp-api 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +5 -0
  3. data/lib/ad_manager_api/ad_manager_api_datetime.rb +11 -0
  4. data/lib/ad_manager_api/api_config.rb +21 -19
  5. data/lib/ad_manager_api/{v201911 → v202011}/activity_group_service.rb +7 -7
  6. data/lib/ad_manager_api/v202011/activity_group_service_registry.rb +45 -0
  7. data/lib/ad_manager_api/{v201911 → v202011}/activity_service.rb +7 -7
  8. data/lib/ad_manager_api/v202011/activity_service_registry.rb +45 -0
  9. data/lib/ad_manager_api/{v201911 → v202011}/ad_exclusion_rule_service.rb +7 -7
  10. data/lib/ad_manager_api/{v201911 → v202011}/ad_exclusion_rule_service_registry.rb +4 -4
  11. data/lib/ad_manager_api/{v201911 → v202011}/ad_rule_service.rb +47 -7
  12. data/lib/ad_manager_api/v202011/ad_rule_service_registry.rb +45 -0
  13. data/lib/ad_manager_api/v202011/adjustment_service.rb +94 -0
  14. data/lib/ad_manager_api/v202011/adjustment_service_registry.rb +45 -0
  15. data/lib/ad_manager_api/{v201911 → v202011}/audience_segment_service.rb +7 -7
  16. data/lib/ad_manager_api/{v201911 → v202011}/audience_segment_service_registry.rb +4 -4
  17. data/lib/ad_manager_api/{v201911 → v202011}/cdn_configuration_service.rb +7 -7
  18. data/lib/ad_manager_api/{v201911 → v202011}/cdn_configuration_service_registry.rb +3 -3
  19. data/lib/ad_manager_api/{v201911 → v202011}/cms_metadata_service.rb +23 -7
  20. data/lib/ad_manager_api/v202011/cms_metadata_service_registry.rb +45 -0
  21. data/lib/ad_manager_api/{v201911 → v202011}/company_service.rb +15 -7
  22. data/lib/ad_manager_api/v202011/company_service_registry.rb +45 -0
  23. data/lib/ad_manager_api/{v201911 → v202011}/contact_service.rb +7 -7
  24. data/lib/ad_manager_api/{v201911 → v202011}/contact_service_registry.rb +3 -3
  25. data/lib/ad_manager_api/{v201911 → v202011}/content_bundle_service.rb +7 -7
  26. data/lib/ad_manager_api/v202011/content_bundle_service_registry.rb +45 -0
  27. data/lib/ad_manager_api/{v201911 → v202011}/content_service.rb +7 -15
  28. data/lib/ad_manager_api/v202011/content_service_registry.rb +45 -0
  29. data/lib/ad_manager_api/v202011/creative_review_service.rb +46 -0
  30. data/lib/ad_manager_api/v202011/creative_review_service_registry.rb +43 -0
  31. data/lib/ad_manager_api/{v201911 → v202011}/creative_service.rb +15 -7
  32. data/lib/ad_manager_api/v202011/creative_service_registry.rb +45 -0
  33. data/lib/ad_manager_api/{v201911 → v202011}/creative_set_service.rb +7 -7
  34. data/lib/ad_manager_api/{v201911 → v202011}/creative_set_service_registry.rb +4 -4
  35. data/lib/ad_manager_api/{v201911 → v202011}/creative_template_service.rb +7 -7
  36. data/lib/ad_manager_api/{v201911 → v202011}/creative_template_service_registry.rb +3 -3
  37. data/lib/ad_manager_api/{v201911 → v202011}/creative_wrapper_service.rb +7 -7
  38. data/lib/ad_manager_api/v202011/creative_wrapper_service_registry.rb +45 -0
  39. data/lib/ad_manager_api/{v201911 → v202011}/custom_field_service.rb +7 -7
  40. data/lib/ad_manager_api/{v201911 → v202011}/custom_field_service_registry.rb +4 -4
  41. data/lib/ad_manager_api/{v201911 → v202011}/custom_targeting_service.rb +7 -7
  42. data/lib/ad_manager_api/v202011/custom_targeting_service_registry.rb +45 -0
  43. data/lib/ad_manager_api/{v201911 → v202011}/dai_authentication_key_service.rb +7 -7
  44. data/lib/ad_manager_api/{v201911 → v202011}/dai_authentication_key_service_registry.rb +3 -3
  45. data/lib/ad_manager_api/v202011/dai_encoding_profile_service.rb +62 -0
  46. data/lib/ad_manager_api/v202011/dai_encoding_profile_service_registry.rb +45 -0
  47. data/lib/ad_manager_api/{v201911 → v202011}/forecast_service.rb +15 -7
  48. data/lib/ad_manager_api/v202011/forecast_service_registry.rb +45 -0
  49. data/lib/ad_manager_api/{v201911 → v202011}/inventory_service.rb +7 -7
  50. data/lib/ad_manager_api/v202011/inventory_service_registry.rb +45 -0
  51. data/lib/ad_manager_api/{v201911 → v202011}/label_service.rb +7 -7
  52. data/lib/ad_manager_api/{v201911 → v202011}/label_service_registry.rb +3 -3
  53. data/lib/ad_manager_api/{v201911 → v202011}/line_item_creative_association_service.rb +7 -7
  54. data/lib/ad_manager_api/{v201911 → v202011}/line_item_creative_association_service_registry.rb +4 -4
  55. data/lib/ad_manager_api/{v201911 → v202011}/line_item_service.rb +7 -15
  56. data/lib/ad_manager_api/v202011/line_item_service_registry.rb +45 -0
  57. data/lib/ad_manager_api/{v201911 → v202011}/line_item_template_service.rb +7 -7
  58. data/lib/ad_manager_api/v202011/line_item_template_service_registry.rb +45 -0
  59. data/lib/ad_manager_api/{v201911 → v202011}/live_stream_event_service.rb +7 -15
  60. data/lib/ad_manager_api/v202011/live_stream_event_service_registry.rb +45 -0
  61. data/lib/ad_manager_api/{v201911 → v202011}/mobile_application_service.rb +7 -7
  62. data/lib/ad_manager_api/{v201911 → v202011}/mobile_application_service_registry.rb +3 -3
  63. data/lib/ad_manager_api/{v201911 → v202011}/native_style_service.rb +7 -7
  64. data/lib/ad_manager_api/v202011/native_style_service_registry.rb +45 -0
  65. data/lib/ad_manager_api/{v201911 → v202011}/network_service.rb +15 -7
  66. data/lib/ad_manager_api/v202011/network_service_registry.rb +45 -0
  67. data/lib/ad_manager_api/{v201911 → v202011}/order_service.rb +7 -7
  68. data/lib/ad_manager_api/v202011/order_service_registry.rb +45 -0
  69. data/lib/ad_manager_api/{v201911 → v202011}/placement_service.rb +7 -7
  70. data/lib/ad_manager_api/{v201911 → v202011}/placement_service_registry.rb +4 -4
  71. data/lib/ad_manager_api/{v201911 → v202011}/proposal_line_item_service.rb +15 -7
  72. data/lib/ad_manager_api/v202011/proposal_line_item_service_registry.rb +45 -0
  73. data/lib/ad_manager_api/{v201911 → v202011}/proposal_service.rb +7 -7
  74. data/lib/ad_manager_api/v202011/proposal_service_registry.rb +45 -0
  75. data/lib/ad_manager_api/{v201911 → v202011}/publisher_query_language_service.rb +7 -7
  76. data/lib/ad_manager_api/{v201911 → v202011}/publisher_query_language_service_registry.rb +4 -4
  77. data/lib/ad_manager_api/{v201911 → v202011}/report_service.rb +7 -7
  78. data/lib/ad_manager_api/v202011/report_service_registry.rb +45 -0
  79. data/lib/ad_manager_api/v202011/site_service.rb +62 -0
  80. data/lib/ad_manager_api/v202011/site_service_registry.rb +43 -0
  81. data/lib/ad_manager_api/v202011/stream_activity_monitor_service.rb +46 -0
  82. data/lib/ad_manager_api/v202011/stream_activity_monitor_service_registry.rb +43 -0
  83. data/lib/ad_manager_api/{v201911 → v202011}/suggested_ad_unit_service.rb +7 -7
  84. data/lib/ad_manager_api/v202011/suggested_ad_unit_service_registry.rb +45 -0
  85. data/lib/ad_manager_api/{v201911 → v202011}/targeting_preset_service.rb +7 -7
  86. data/lib/ad_manager_api/v202011/targeting_preset_service_registry.rb +45 -0
  87. data/lib/ad_manager_api/{v201911 → v202011}/team_service.rb +7 -7
  88. data/lib/ad_manager_api/{v201911 → v202011}/team_service_registry.rb +3 -3
  89. data/lib/ad_manager_api/{v201911 → v202011}/user_service.rb +7 -7
  90. data/lib/ad_manager_api/{v201911 → v202011}/user_service_registry.rb +3 -3
  91. data/lib/ad_manager_api/{v201911 → v202011}/user_team_association_service.rb +7 -7
  92. data/lib/ad_manager_api/{v201911 → v202011}/user_team_association_service_registry.rb +3 -3
  93. data/lib/ad_manager_api/version.rb +1 -1
  94. metadata +90 -82
  95. data/lib/ad_manager_api/v201911/activity_group_service_registry.rb +0 -45
  96. data/lib/ad_manager_api/v201911/activity_service_registry.rb +0 -45
  97. data/lib/ad_manager_api/v201911/ad_rule_service_registry.rb +0 -45
  98. data/lib/ad_manager_api/v201911/adjustment_service.rb +0 -46
  99. data/lib/ad_manager_api/v201911/adjustment_service_registry.rb +0 -45
  100. data/lib/ad_manager_api/v201911/cms_metadata_service_registry.rb +0 -45
  101. data/lib/ad_manager_api/v201911/company_service_registry.rb +0 -45
  102. data/lib/ad_manager_api/v201911/content_bundle_service_registry.rb +0 -45
  103. data/lib/ad_manager_api/v201911/content_service_registry.rb +0 -45
  104. data/lib/ad_manager_api/v201911/creative_service_registry.rb +0 -45
  105. data/lib/ad_manager_api/v201911/creative_wrapper_service_registry.rb +0 -45
  106. data/lib/ad_manager_api/v201911/custom_targeting_service_registry.rb +0 -45
  107. data/lib/ad_manager_api/v201911/forecast_service_registry.rb +0 -45
  108. data/lib/ad_manager_api/v201911/inventory_service_registry.rb +0 -45
  109. data/lib/ad_manager_api/v201911/line_item_service_registry.rb +0 -45
  110. data/lib/ad_manager_api/v201911/line_item_template_service_registry.rb +0 -45
  111. data/lib/ad_manager_api/v201911/live_stream_event_service_registry.rb +0 -45
  112. data/lib/ad_manager_api/v201911/native_style_service_registry.rb +0 -45
  113. data/lib/ad_manager_api/v201911/network_service_registry.rb +0 -45
  114. data/lib/ad_manager_api/v201911/order_service_registry.rb +0 -45
  115. data/lib/ad_manager_api/v201911/proposal_line_item_service_registry.rb +0 -45
  116. data/lib/ad_manager_api/v201911/proposal_service_registry.rb +0 -45
  117. data/lib/ad_manager_api/v201911/report_service_registry.rb +0 -45
  118. data/lib/ad_manager_api/v201911/suggested_ad_unit_service_registry.rb +0 -45
  119. data/lib/ad_manager_api/v201911/targeting_preset_service_registry.rb +0 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70157333bd91744db1cb01419b1a7488a930d9258ca29758b438b16433c4a571
4
- data.tar.gz: c7e6c249fc64f6d8661467331f8b159a2525d32745277d66f3c9217d20339ca3
3
+ metadata.gz: be2b73b7bf15027aefabd5a2806526ed80cd0e3293f552a4de1beb2b13775fa5
4
+ data.tar.gz: a6aacd3e09c7763caf2a97bd43a3c3eddd9e4e4a09ac083740b84d9d73a03d02
5
5
  SHA512:
6
- metadata.gz: d3f82133aea21b415daaaa6504a18b08958f23cbc249eb5b3ec48e78d13b203193edd7d5057a11bd4c6b4c62a9e4ac8825448dca0fc5ddc1771c6de9ff3ffc58
7
- data.tar.gz: 9ccae341e4c254e1835d6b7da7bf783095be514f414cd70dc46a0c136e030ac0dfa88599b715f4234442ac8aabdddb16b105ac1299760c6cf21d1407d5ea7f67
6
+ metadata.gz: 6ad2874c601771aa99cdfcdf68863fb55463af63da603460f098d8ca568938b58225c3db0b609e5eb67fc88d949d33e73bbff26415e2acb25614ea4eddc633fa
7
+ data.tar.gz: 886a3f6f43276bebce6b4f88f68e93366e6871d0ad8b59654a440dc216d8542421fb9c2141d2ba6b469998095050f9161da1d44be96411523b702d99245f9279
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 1.13.0:
2
+ - Added support for v202011.
3
+ - Removed support for v201911.
4
+ - Removed examples for v202002.
5
+
1
6
  1.12.0:
2
7
  - Added support for v202008.
3
8
  - Removed support for v201908.
@@ -73,6 +73,11 @@ module AdManagerApi
73
73
  def to_h()
74
74
  return {:year => @date.year, :month => @date.month, :day => @date.day}
75
75
  end
76
+
77
+ # Convert AdManagerDate into a native ruby Date object.
78
+ def to_date()
79
+ return Date.new(@date.year, @date.month, @date.day)
80
+ end
76
81
  end
77
82
 
78
83
  class AdManagerDateTime
@@ -167,6 +172,12 @@ module AdManagerApi
167
172
  }
168
173
  end
169
174
 
175
+ # Convert AdManagerDateTime into a native ruby Time object.
176
+ def to_time
177
+ return Time.new(@time.year, @time.month, @time.day, @time.hour, @time.min,
178
+ @time.sec, @timezone.current_period.utc_offset)
179
+ end
180
+
170
181
  # When an unrecognized method is applied to AdManagerDateTime, pass it
171
182
  # through to the internal ruby Time.
172
183
  def method_missing(name, *args, &block)
@@ -31,8 +31,8 @@ module AdManagerApi
31
31
  end
32
32
 
33
33
  # Set defaults
34
- DEFAULT_VERSION = :v202008
35
- LATEST_VERSION = :v202008
34
+ DEFAULT_VERSION = :v202011
35
+ LATEST_VERSION = :v202011
36
36
 
37
37
  # Set other constants
38
38
  API_NAME = 'AdManagerApi'
@@ -40,25 +40,26 @@ module AdManagerApi
40
40
 
41
41
  # Configure the services available to each version
42
42
  @@service_config = {
43
- :v201911 => [:ActivityGroupService, :ActivityService,
43
+ :v202002 => [:ActivityGroupService, :ActivityService,
44
44
  :AdExclusionRuleService, :AdjustmentService, :AdRuleService,
45
45
  :AudienceSegmentService, :CompanyService,
46
46
  :CdnConfigurationService, :CmsMetadataService,
47
47
  :ContactService, :ContentBundleService, :ContentService,
48
- :CreativeService, :CreativeSetService,
49
- :CreativeTemplateService, :CreativeWrapperService,
50
- :CustomFieldService, :CustomTargetingService,
51
- :DaiAuthenticationKeyService, :ForecastService,
52
- :InventoryService, :LabelService,
48
+ :CreativeReviewService, :CreativeService,
49
+ :CreativeSetService, :CreativeTemplateService,
50
+ :CreativeWrapperService, :CustomFieldService,
51
+ :CustomTargetingService, :DaiAuthenticationKeyService,
52
+ :ForecastService, :InventoryService, :LabelService,
53
53
  :LineItemCreativeAssociationService, :LineItemService,
54
54
  :LineItemTemplateService, :LiveStreamEventService,
55
55
  :MobileApplicationService, :NativeStyleService,
56
56
  :NetworkService, :OrderService, :PlacementService,
57
57
  :ProposalLineItemService, :ProposalService,
58
58
  :PublisherQueryLanguageService, :ReportService,
59
- :SuggestedAdUnitService, :TargetingPresetService,
60
- :TeamService, :UserService, :UserTeamAssociationService],
61
- :v202002 => [:ActivityGroupService, :ActivityService,
59
+ :StreamActivityMonitorService, :SuggestedAdUnitService,
60
+ :TargetingPresetService, :TeamService, :UserService,
61
+ :UserTeamAssociationService],
62
+ :v202005 => [:ActivityGroupService, :ActivityService,
62
63
  :AdExclusionRuleService, :AdjustmentService, :AdRuleService,
63
64
  :AudienceSegmentService, :CompanyService,
64
65
  :CdnConfigurationService, :CmsMetadataService,
@@ -77,7 +78,7 @@ module AdManagerApi
77
78
  :StreamActivityMonitorService, :SuggestedAdUnitService,
78
79
  :TargetingPresetService, :TeamService, :UserService,
79
80
  :UserTeamAssociationService],
80
- :v202005 => [:ActivityGroupService, :ActivityService,
81
+ :v202008 => [:ActivityGroupService, :ActivityService,
81
82
  :AdExclusionRuleService, :AdjustmentService, :AdRuleService,
82
83
  :AudienceSegmentService, :CompanyService,
83
84
  :CdnConfigurationService, :CmsMetadataService,
@@ -86,17 +87,18 @@ module AdManagerApi
86
87
  :CreativeSetService, :CreativeTemplateService,
87
88
  :CreativeWrapperService, :CustomFieldService,
88
89
  :CustomTargetingService, :DaiAuthenticationKeyService,
89
- :ForecastService, :InventoryService, :LabelService,
90
+ :DaiEncodingProfileService, :ForecastService,
91
+ :InventoryService, :LabelService,
90
92
  :LineItemCreativeAssociationService, :LineItemService,
91
93
  :LineItemTemplateService, :LiveStreamEventService,
92
94
  :MobileApplicationService, :NativeStyleService,
93
95
  :NetworkService, :OrderService, :PlacementService,
94
96
  :ProposalLineItemService, :ProposalService,
95
97
  :PublisherQueryLanguageService, :ReportService,
96
- :StreamActivityMonitorService, :SuggestedAdUnitService,
97
- :TargetingPresetService, :TeamService, :UserService,
98
- :UserTeamAssociationService],
99
- :v202008 => [:ActivityGroupService, :ActivityService,
98
+ :SiteService, :StreamActivityMonitorService,
99
+ :SuggestedAdUnitService, :TargetingPresetService,
100
+ :TeamService, :UserService, :UserTeamAssociationService],
101
+ :v202011 => [:ActivityGroupService, :ActivityService,
100
102
  :AdExclusionRuleService, :AdjustmentService, :AdRuleService,
101
103
  :AudienceSegmentService, :CompanyService,
102
104
  :CdnConfigurationService, :CmsMetadataService,
@@ -122,10 +124,10 @@ module AdManagerApi
122
124
  @@config = {
123
125
  :oauth_scope => 'https://www.googleapis.com/auth/dfp',
124
126
  :header_ns => 'https://www.google.com/apis/ads/publisher/',
125
- :v201911 => 'https://ads.google.com/apis/ads/publisher/',
126
127
  :v202002 => 'https://ads.google.com/apis/ads/publisher/',
127
128
  :v202005 => 'https://ads.google.com/apis/ads/publisher/',
128
- :v202008 => 'https://ads.google.com/apis/ads/publisher/'
129
+ :v202008 => 'https://ads.google.com/apis/ads/publisher/',
130
+ :v202011 => 'https://ads.google.com/apis/ads/publisher/'
129
131
  }
130
132
 
131
133
  public
@@ -2,19 +2,19 @@
2
2
  #
3
3
  # This is auto-generated code, changes will be overwritten.
4
4
  #
5
- # Copyright:: Copyright 2019, Google Inc. All Rights Reserved.
5
+ # Copyright:: Copyright 2020, Google Inc. All Rights Reserved.
6
6
  # License:: Licensed under the Apache License, Version 2.0.
7
7
  #
8
- # Code generated by AdsCommon library 1.0.2 on 2019-10-22 17:58:13.
8
+ # Code generated by AdsCommon library 1.0.2 on 2020-11-04 22:41:38.
9
9
 
10
10
  require 'ads_common/savon_service'
11
- require 'ad_manager_api/v201911/activity_group_service_registry'
11
+ require 'ad_manager_api/v202011/activity_group_service_registry'
12
12
 
13
- module AdManagerApi; module V201911; module ActivityGroupService
13
+ module AdManagerApi; module V202011; module ActivityGroupService
14
14
  class ActivityGroupService < AdsCommon::SavonService
15
15
  def initialize(config, endpoint)
16
- namespace = 'https://www.google.com/apis/ads/publisher/v201911'
17
- super(config, endpoint, namespace, :v201911)
16
+ namespace = 'https://www.google.com/apis/ads/publisher/v202011'
17
+ super(config, endpoint, namespace, :v202011)
18
18
  end
19
19
 
20
20
  def create_activity_groups(*args, &block)
@@ -48,7 +48,7 @@ module AdManagerApi; module V201911; module ActivityGroupService
48
48
  end
49
49
 
50
50
  def get_module()
51
- return AdManagerApi::V201911::ActivityGroupService
51
+ return AdManagerApi::V202011::ActivityGroupService
52
52
  end
53
53
  end
54
54
  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 2020, 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 2020-11-04 22:41:38.
9
+
10
+ require 'ad_manager_api/errors'
11
+
12
+ module AdManagerApi; module V202011; module ActivityGroupService
13
+ class ActivityGroupServiceRegistry
14
+ ACTIVITYGROUPSERVICE_METHODS = {:create_activity_groups=>{:input=>[{:name=>:activity_groups, :type=>"ActivityGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_activity_groups_response", :fields=>[{:name=>:rval, :type=>"ActivityGroup", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_activity_groups_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_activity_groups_by_statement_response", :fields=>[{:name=>:rval, :type=>"ActivityGroupPage", :min_occurs=>0, :max_occurs=>1}]}}, :update_activity_groups=>{:input=>[{:name=>:activity_groups, :type=>"ActivityGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_activity_groups_response", :fields=>[{:name=>:rval, :type=>"ActivityGroup", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
15
+ ACTIVITYGROUPSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivityError=>{:fields=>[{:name=>:reason, :type=>"ActivityError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ActivityGroup=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:company_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:impressions_lookback, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks_lookback, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"ActivityGroup.Status", :min_occurs=>0, :max_occurs=>1}]}, :ActivityGroupPage=>{: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=>"ActivityGroup", :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"}, :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"}, :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"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.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"}, :RequiredNumberError=>{:fields=>[{:name=>:reason, :type=>"RequiredNumberError.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}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :Value=>{:fields=>[], :abstract=>true}, :"ActivityError.Reason"=>{:type=>"string", :enumerations=>["ACTIVITIES_FEATURE_REQUIRED", "UNSUPPORTED_COMPANY_TYPE", "UNKNOWN"]}, :"ActivityGroup.Status"=>{:type=>"string", :enumerations=>["ACTIVE", "INACTIVE"]}, :"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", "NOT_WHITELISTED_FOR_API_ACCESS", "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", "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"]}, :"RangeError.Reason"=>{:type=>"string", :enumerations=>["TOO_HIGH", "TOO_LOW", "UNKNOWN"]}, :"RequiredCollectionError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, :"RequiredError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED"]}, :"RequiredNumberError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "TOO_LARGE_WITH_DETAILS", "TOO_SMALL_WITH_DETAILS", "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
+ ACTIVITYGROUPSERVICE_NAMESPACES = []
17
+
18
+ def self.get_method_signature(method_name)
19
+ return ACTIVITYGROUPSERVICE_METHODS[method_name.to_sym]
20
+ end
21
+
22
+ def self.get_type_signature(type_name)
23
+ return ACTIVITYGROUPSERVICE_TYPES[type_name.to_sym]
24
+ end
25
+
26
+ def self.get_namespace(index)
27
+ return ACTIVITYGROUPSERVICE_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, ActivityGroupServiceRegistry)
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 2019, Google Inc. All Rights Reserved.
5
+ # Copyright:: Copyright 2020, Google Inc. All Rights Reserved.
6
6
  # License:: Licensed under the Apache License, Version 2.0.
7
7
  #
8
- # Code generated by AdsCommon library 1.0.2 on 2019-10-22 17:58:13.
8
+ # Code generated by AdsCommon library 1.0.2 on 2020-11-04 22:41:39.
9
9
 
10
10
  require 'ads_common/savon_service'
11
- require 'ad_manager_api/v201911/activity_service_registry'
11
+ require 'ad_manager_api/v202011/activity_service_registry'
12
12
 
13
- module AdManagerApi; module V201911; module ActivityService
13
+ module AdManagerApi; module V202011; module ActivityService
14
14
  class ActivityService < AdsCommon::SavonService
15
15
  def initialize(config, endpoint)
16
- namespace = 'https://www.google.com/apis/ads/publisher/v201911'
17
- super(config, endpoint, namespace, :v201911)
16
+ namespace = 'https://www.google.com/apis/ads/publisher/v202011'
17
+ super(config, endpoint, namespace, :v202011)
18
18
  end
19
19
 
20
20
  def create_activities(*args, &block)
@@ -48,7 +48,7 @@ module AdManagerApi; module V201911; module ActivityService
48
48
  end
49
49
 
50
50
  def get_module()
51
- return AdManagerApi::V201911::ActivityService
51
+ return AdManagerApi::V202011::ActivityService
52
52
  end
53
53
  end
54
54
  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 2020, 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 2020-11-04 22:41:39.
9
+
10
+ require 'ad_manager_api/errors'
11
+
12
+ module AdManagerApi; module V202011; module ActivityService
13
+ class ActivityServiceRegistry
14
+ ACTIVITYSERVICE_METHODS = {:create_activities=>{:input=>[{:name=>:activities, :type=>"Activity", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_activities_response", :fields=>[{:name=>:rval, :type=>"Activity", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_activities_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_activities_by_statement_response", :fields=>[{:name=>:rval, :type=>"ActivityPage", :min_occurs=>0, :max_occurs=>1}]}}, :update_activities=>{:input=>[{:name=>:activities, :type=>"Activity", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_activities_response", :fields=>[{:name=>:rval, :type=>"Activity", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
15
+ ACTIVITYSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :Activity=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:activity_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:expected_url, :original_name=>"expectedURL", :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"Activity.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Activity.Type", :min_occurs=>0, :max_occurs=>1}]}, :ActivityError=>{:fields=>[{:name=>:reason, :type=>"ActivityError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ActivityPage=>{: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=>"Activity", :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"}, :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"}, :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"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.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}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :Value=>{:fields=>[], :abstract=>true}, :"Activity.Status"=>{:type=>"string", :enumerations=>["ACTIVE", "INACTIVE"]}, :"Activity.Type"=>{:type=>"string", :enumerations=>["PAGE_VIEWS", "DAILY_VISITS", "CUSTOM", "ITEMS_PURCHASED", "TRANSACTIONS", "IOS_APPLICATION_DOWNLOADS", "ANDROID_APPLICATION_DOWNLOADS", "UNKNOWN"]}, :"ActivityError.Reason"=>{:type=>"string", :enumerations=>["ACTIVITIES_FEATURE_REQUIRED", "UNSUPPORTED_COMPANY_TYPE", "UNKNOWN"]}, :"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", "NOT_WHITELISTED_FOR_API_ACCESS", "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", "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"]}, :"RangeError.Reason"=>{:type=>"string", :enumerations=>["TOO_HIGH", "TOO_LOW", "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"]}}
16
+ ACTIVITYSERVICE_NAMESPACES = []
17
+
18
+ def self.get_method_signature(method_name)
19
+ return ACTIVITYSERVICE_METHODS[method_name.to_sym]
20
+ end
21
+
22
+ def self.get_type_signature(type_name)
23
+ return ACTIVITYSERVICE_TYPES[type_name.to_sym]
24
+ end
25
+
26
+ def self.get_namespace(index)
27
+ return ACTIVITYSERVICE_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, ActivityServiceRegistry)
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 2019, Google Inc. All Rights Reserved.
5
+ # Copyright:: Copyright 2020, Google Inc. All Rights Reserved.
6
6
  # License:: Licensed under the Apache License, Version 2.0.
7
7
  #
8
- # Code generated by AdsCommon library 1.0.2 on 2019-10-22 17:58:14.
8
+ # Code generated by AdsCommon library 1.0.2 on 2020-11-04 22:41:39.
9
9
 
10
10
  require 'ads_common/savon_service'
11
- require 'ad_manager_api/v201911/ad_exclusion_rule_service_registry'
11
+ require 'ad_manager_api/v202011/ad_exclusion_rule_service_registry'
12
12
 
13
- module AdManagerApi; module V201911; module AdExclusionRuleService
13
+ module AdManagerApi; module V202011; module AdExclusionRuleService
14
14
  class AdExclusionRuleService < AdsCommon::SavonService
15
15
  def initialize(config, endpoint)
16
- namespace = 'https://www.google.com/apis/ads/publisher/v201911'
17
- super(config, endpoint, namespace, :v201911)
16
+ namespace = 'https://www.google.com/apis/ads/publisher/v202011'
17
+ super(config, endpoint, namespace, :v202011)
18
18
  end
19
19
 
20
20
  def create_ad_exclusion_rules(*args, &block)
@@ -56,7 +56,7 @@ module AdManagerApi; module V201911; module AdExclusionRuleService
56
56
  end
57
57
 
58
58
  def get_module()
59
- return AdManagerApi::V201911::AdExclusionRuleService
59
+ return AdManagerApi::V202011::AdExclusionRuleService
60
60
  end
61
61
  end
62
62
  end; end; end
@@ -2,17 +2,17 @@
2
2
  #
3
3
  # This is auto-generated code, changes will be overwritten.
4
4
  #
5
- # Copyright:: Copyright 2019, Google Inc. All Rights Reserved.
5
+ # Copyright:: Copyright 2020, Google Inc. All Rights Reserved.
6
6
  # License:: Licensed under the Apache License, Version 2.0.
7
7
  #
8
- # Code generated by AdsCommon library 1.0.2 on 2019-10-22 17:58:14.
8
+ # Code generated by AdsCommon library 1.0.2 on 2020-11-04 22:41:39.
9
9
 
10
10
  require 'ad_manager_api/errors'
11
11
 
12
- module AdManagerApi; module V201911; module AdExclusionRuleService
12
+ module AdManagerApi; module V202011; module AdExclusionRuleService
13
13
  class AdExclusionRuleServiceRegistry
14
14
  ADEXCLUSIONRULESERVICE_METHODS = {:create_ad_exclusion_rules=>{:input=>[{:name=>:ad_exclusion_rules, :type=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_ad_exclusion_rules_response", :fields=>[{:name=>:rval, :type=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_ad_exclusion_rules_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_ad_exclusion_rules_by_statement_response", :fields=>[{:name=>:rval, :type=>"AdExclusionRulePage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_ad_exclusion_rule_action=>{:input=>[{:name=>:ad_exclusion_rule_action, :type=>"AdExclusionRuleAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_ad_exclusion_rule_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_ad_exclusion_rules=>{:input=>[{:name=>:ad_exclusion_rules, :type=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_ad_exclusion_rules_response", :fields=>[{:name=>:rval, :type=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
15
- ADEXCLUSIONRULESERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateAdExclusionRules=>{:fields=>[], :base=>"AdExclusionRuleAction"}, :AdExclusionRuleAction=>{:fields=>[], :abstract=>true}, :AdExclusionRule=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_active, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:inventory_targeting, :type=>"InventoryTargeting", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_block_all, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:blocked_label_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:allowed_label_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:type, :type=>"AdExclusionRuleType", :min_occurs=>0, :max_occurs=>1}]}, :AdExclusionRuleError=>{:fields=>[{:name=>:reason, :type=>"AdExclusionRuleError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AdExclusionRulePage=>{: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=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}]}, :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"}, :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"}, :DeactivateAdExclusionRules=>{:fields=>[], :base=>"AdExclusionRuleAction"}, :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}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :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}]}, :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"}, :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}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[], :abstract=>true}, :"AdExclusionRuleError.Reason"=>{:type=>"string", :enumerations=>["BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT", "BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS", "BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS", "RULE_MUST_CONTAIN_BLOCKING", "BLOCKED_LABEL_ALSO_ALLOWED", "LABELS_MUST_BE_AD_EXCLUSION_TYPE", "EXCLUDED_AD_UNIT_ALSO_INCLUDED", "UNKNOWN"]}, :AdExclusionRuleType=>{:type=>"string", :enumerations=>["LABEL", "UNKNOWN"]}, :"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", "NOT_WHITELISTED_FOR_API_ACCESS", "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", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :"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_LIMIT_FOR_PROTECTION_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", "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"]}, :"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"]}}
15
+ ADEXCLUSIONRULESERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateAdExclusionRules=>{:fields=>[], :base=>"AdExclusionRuleAction"}, :AdExclusionRuleAction=>{:fields=>[], :abstract=>true}, :AdExclusionRule=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_active, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:inventory_targeting, :type=>"InventoryTargeting", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_block_all, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:blocked_label_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:allowed_label_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:type, :type=>"AdExclusionRuleType", :min_occurs=>0, :max_occurs=>1}]}, :AdExclusionRuleError=>{:fields=>[{:name=>:reason, :type=>"AdExclusionRuleError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AdExclusionRulePage=>{: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=>"AdExclusionRule", :min_occurs=>0, :max_occurs=>:unbounded}]}, :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"}, :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"}, :DeactivateAdExclusionRules=>{:fields=>[], :base=>"AdExclusionRuleAction"}, :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}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :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}]}, :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"}, :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}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[], :abstract=>true}, :"AdExclusionRuleError.Reason"=>{:type=>"string", :enumerations=>["BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT", "BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS", "BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS", "RULE_MUST_CONTAIN_BLOCKING", "BLOCKED_LABEL_ALSO_ALLOWED", "LABELS_MUST_BE_AD_EXCLUSION_TYPE", "EXCLUDED_AD_UNIT_ALSO_INCLUDED", "UNKNOWN"]}, :AdExclusionRuleType=>{:type=>"string", :enumerations=>["LABEL", "UNKNOWN"]}, :"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", "NOT_WHITELISTED_FOR_API_ACCESS", "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", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :"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", "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"]}, :"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
16
  ADEXCLUSIONRULESERVICE_NAMESPACES = []
17
17
 
18
18
  def self.get_method_signature(method_name)
@@ -2,19 +2,19 @@
2
2
  #
3
3
  # This is auto-generated code, changes will be overwritten.
4
4
  #
5
- # Copyright:: Copyright 2019, Google Inc. All Rights Reserved.
5
+ # Copyright:: Copyright 2020, Google Inc. All Rights Reserved.
6
6
  # License:: Licensed under the Apache License, Version 2.0.
7
7
  #
8
- # Code generated by AdsCommon library 1.0.2 on 2019-10-22 17:58:15.
8
+ # Code generated by AdsCommon library 1.0.2 on 2020-11-04 22:41:41.
9
9
 
10
10
  require 'ads_common/savon_service'
11
- require 'ad_manager_api/v201911/ad_rule_service_registry'
11
+ require 'ad_manager_api/v202011/ad_rule_service_registry'
12
12
 
13
- module AdManagerApi; module V201911; module AdRuleService
13
+ module AdManagerApi; module V202011; module AdRuleService
14
14
  class AdRuleService < AdsCommon::SavonService
15
15
  def initialize(config, endpoint)
16
- namespace = 'https://www.google.com/apis/ads/publisher/v201911'
17
- super(config, endpoint, namespace, :v201911)
16
+ namespace = 'https://www.google.com/apis/ads/publisher/v202011'
17
+ super(config, endpoint, namespace, :v202011)
18
18
  end
19
19
 
20
20
  def create_ad_rules(*args, &block)
@@ -25,6 +25,22 @@ module AdManagerApi; module V201911; module AdRuleService
25
25
  return get_soap_xml('create_ad_rules', args)
26
26
  end
27
27
 
28
+ def create_ad_spots(*args, &block)
29
+ return execute_action('create_ad_spots', args, &block)
30
+ end
31
+
32
+ def create_ad_spots_to_xml(*args)
33
+ return get_soap_xml('create_ad_spots', args)
34
+ end
35
+
36
+ def create_break_templates(*args, &block)
37
+ return execute_action('create_break_templates', args, &block)
38
+ end
39
+
40
+ def create_break_templates_to_xml(*args)
41
+ return get_soap_xml('create_break_templates', args)
42
+ end
43
+
28
44
  def get_ad_rules_by_statement(*args, &block)
29
45
  return execute_action('get_ad_rules_by_statement', args, &block)
30
46
  end
@@ -41,6 +57,14 @@ module AdManagerApi; module V201911; module AdRuleService
41
57
  return get_soap_xml('get_ad_spots_by_statement', args)
42
58
  end
43
59
 
60
+ def get_break_templates_by_statement(*args, &block)
61
+ return execute_action('get_break_templates_by_statement', args, &block)
62
+ end
63
+
64
+ def get_break_templates_by_statement_to_xml(*args)
65
+ return get_soap_xml('get_break_templates_by_statement', args)
66
+ end
67
+
44
68
  def perform_ad_rule_action(*args, &block)
45
69
  return execute_action('perform_ad_rule_action', args, &block)
46
70
  end
@@ -57,6 +81,22 @@ module AdManagerApi; module V201911; module AdRuleService
57
81
  return get_soap_xml('update_ad_rules', args)
58
82
  end
59
83
 
84
+ def update_ad_spots(*args, &block)
85
+ return execute_action('update_ad_spots', args, &block)
86
+ end
87
+
88
+ def update_ad_spots_to_xml(*args)
89
+ return get_soap_xml('update_ad_spots', args)
90
+ end
91
+
92
+ def update_break_templates(*args, &block)
93
+ return execute_action('update_break_templates', args, &block)
94
+ end
95
+
96
+ def update_break_templates_to_xml(*args)
97
+ return get_soap_xml('update_break_templates', args)
98
+ end
99
+
60
100
  private
61
101
 
62
102
  def get_service_registry()
@@ -64,7 +104,7 @@ module AdManagerApi; module V201911; module AdRuleService
64
104
  end
65
105
 
66
106
  def get_module()
67
- return AdManagerApi::V201911::AdRuleService
107
+ return AdManagerApi::V202011::AdRuleService
68
108
  end
69
109
  end
70
110
  end; end; end