google-dfp-api 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/ChangeLog +4 -0
  2. data/README +1 -1
  3. data/Rakefile +2 -2
  4. data/examples/v201103/creative_service/copy_image_creatives.rb +0 -2
  5. data/examples/v201103/creative_service/update_creatives.rb +0 -2
  6. data/examples/v201103/line_item_service/update_line_items.rb +0 -1
  7. data/examples/v201104/creative_service/copy_image_creatives.rb +0 -2
  8. data/examples/v201104/creative_service/update_creatives.rb +0 -2
  9. data/examples/v201104/line_item_service/update_line_items.rb +0 -1
  10. data/examples/v201107/creative_service/copy_image_creatives.rb +0 -2
  11. data/examples/v201107/creative_service/update_creatives.rb +0 -2
  12. data/examples/v201107/line_item_service/update_line_items.rb +0 -1
  13. data/examples/v201108/creative_service/copy_image_creatives.rb +0 -2
  14. data/examples/v201108/creative_service/update_creatives.rb +0 -2
  15. data/examples/v201108/line_item_service/create_line_items.rb +12 -5
  16. data/examples/v201108/line_item_service/update_line_items.rb +0 -1
  17. data/examples/v201108/publisher_query_language_service/get_all_postal_codes.rb +85 -0
  18. data/lib/dfp_api.rb +1 -1
  19. data/lib/dfp_api/api_config.rb +1 -16
  20. data/lib/dfp_api/v201103/company_service.rb +13 -13
  21. data/lib/dfp_api/v201103/company_service_registry.rb +5 -3
  22. data/lib/dfp_api/v201103/creative_service.rb +13 -13
  23. data/lib/dfp_api/v201103/creative_service_registry.rb +5 -3
  24. data/lib/dfp_api/v201103/custom_targeting_service.rb +17 -17
  25. data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +5 -3
  26. data/lib/dfp_api/v201103/forecast_service.rb +5 -5
  27. data/lib/dfp_api/v201103/forecast_service_registry.rb +5 -3
  28. data/lib/dfp_api/v201103/inventory_service.rb +15 -15
  29. data/lib/dfp_api/v201103/inventory_service_registry.rb +5 -3
  30. data/lib/dfp_api/v201103/line_item_creative_association_service.rb +15 -15
  31. data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +5 -3
  32. data/lib/dfp_api/v201103/line_item_service.rb +15 -15
  33. data/lib/dfp_api/v201103/line_item_service_registry.rb +5 -3
  34. data/lib/dfp_api/v201103/network_service.rb +7 -7
  35. data/lib/dfp_api/v201103/network_service_registry.rb +5 -3
  36. data/lib/dfp_api/v201103/order_service.rb +15 -15
  37. data/lib/dfp_api/v201103/order_service_registry.rb +5 -3
  38. data/lib/dfp_api/v201103/placement_service.rb +15 -15
  39. data/lib/dfp_api/v201103/placement_service_registry.rb +5 -3
  40. data/lib/dfp_api/v201103/publisher_query_language_service.rb +3 -3
  41. data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +5 -3
  42. data/lib/dfp_api/v201103/report_service.rb +7 -7
  43. data/lib/dfp_api/v201103/report_service_registry.rb +5 -3
  44. data/lib/dfp_api/v201103/user_service.rb +17 -17
  45. data/lib/dfp_api/v201103/user_service_registry.rb +5 -3
  46. data/lib/dfp_api/v201104/company_service.rb +13 -13
  47. data/lib/dfp_api/v201104/company_service_registry.rb +3 -3
  48. data/lib/dfp_api/v201104/creative_service.rb +13 -13
  49. data/lib/dfp_api/v201104/creative_service_registry.rb +3 -3
  50. data/lib/dfp_api/v201104/custom_targeting_service.rb +17 -17
  51. data/lib/dfp_api/v201104/custom_targeting_service_registry.rb +3 -3
  52. data/lib/dfp_api/v201104/forecast_service.rb +5 -5
  53. data/lib/dfp_api/v201104/forecast_service_registry.rb +3 -3
  54. data/lib/dfp_api/v201104/inventory_service.rb +15 -15
  55. data/lib/dfp_api/v201104/inventory_service_registry.rb +3 -3
  56. data/lib/dfp_api/v201104/line_item_creative_association_service.rb +15 -15
  57. data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +3 -3
  58. data/lib/dfp_api/v201104/line_item_service.rb +15 -15
  59. data/lib/dfp_api/v201104/line_item_service_registry.rb +3 -3
  60. data/lib/dfp_api/v201104/network_service.rb +7 -7
  61. data/lib/dfp_api/v201104/network_service_registry.rb +3 -3
  62. data/lib/dfp_api/v201104/order_service.rb +15 -15
  63. data/lib/dfp_api/v201104/order_service_registry.rb +3 -3
  64. data/lib/dfp_api/v201104/placement_service.rb +15 -15
  65. data/lib/dfp_api/v201104/placement_service_registry.rb +3 -3
  66. data/lib/dfp_api/v201104/publisher_query_language_service.rb +3 -3
  67. data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +3 -3
  68. data/lib/dfp_api/v201104/report_service.rb +7 -7
  69. data/lib/dfp_api/v201104/report_service_registry.rb +3 -3
  70. data/lib/dfp_api/v201104/user_service.rb +17 -17
  71. data/lib/dfp_api/v201104/user_service_registry.rb +3 -3
  72. data/lib/dfp_api/v201107/company_service.rb +13 -13
  73. data/lib/dfp_api/v201107/company_service_registry.rb +3 -3
  74. data/lib/dfp_api/v201107/creative_service.rb +13 -13
  75. data/lib/dfp_api/v201107/creative_service_registry.rb +5 -3
  76. data/lib/dfp_api/v201107/custom_targeting_service.rb +17 -17
  77. data/lib/dfp_api/v201107/custom_targeting_service_registry.rb +3 -3
  78. data/lib/dfp_api/v201107/forecast_service.rb +5 -5
  79. data/lib/dfp_api/v201107/forecast_service_registry.rb +5 -3
  80. data/lib/dfp_api/v201107/inventory_service.rb +17 -17
  81. data/lib/dfp_api/v201107/inventory_service_registry.rb +5 -3
  82. data/lib/dfp_api/v201107/label_service.rb +15 -15
  83. data/lib/dfp_api/v201107/label_service_registry.rb +3 -3
  84. data/lib/dfp_api/v201107/line_item_creative_association_service.rb +15 -15
  85. data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +5 -3
  86. data/lib/dfp_api/v201107/line_item_service.rb +15 -15
  87. data/lib/dfp_api/v201107/line_item_service_registry.rb +5 -3
  88. data/lib/dfp_api/v201107/network_service.rb +7 -7
  89. data/lib/dfp_api/v201107/network_service_registry.rb +5 -3
  90. data/lib/dfp_api/v201107/order_service.rb +15 -15
  91. data/lib/dfp_api/v201107/order_service_registry.rb +3 -3
  92. data/lib/dfp_api/v201107/placement_service.rb +15 -15
  93. data/lib/dfp_api/v201107/placement_service_registry.rb +5 -3
  94. data/lib/dfp_api/v201107/publisher_query_language_service.rb +3 -3
  95. data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +5 -3
  96. data/lib/dfp_api/v201107/report_service.rb +7 -7
  97. data/lib/dfp_api/v201107/report_service_registry.rb +3 -3
  98. data/lib/dfp_api/v201107/user_service.rb +19 -19
  99. data/lib/dfp_api/v201107/user_service_registry.rb +3 -3
  100. data/lib/dfp_api/v201108/company_service.rb +13 -13
  101. data/lib/dfp_api/v201108/company_service_registry.rb +3 -3
  102. data/lib/dfp_api/v201108/creative_service.rb +13 -13
  103. data/lib/dfp_api/v201108/creative_service_registry.rb +3 -3
  104. data/lib/dfp_api/v201108/custom_targeting_service.rb +17 -17
  105. data/lib/dfp_api/v201108/custom_targeting_service_registry.rb +3 -3
  106. data/lib/dfp_api/v201108/forecast_service.rb +5 -5
  107. data/lib/dfp_api/v201108/forecast_service_registry.rb +3 -3
  108. data/lib/dfp_api/v201108/inventory_service.rb +17 -17
  109. data/lib/dfp_api/v201108/inventory_service_registry.rb +3 -3
  110. data/lib/dfp_api/v201108/label_service.rb +15 -15
  111. data/lib/dfp_api/v201108/label_service_registry.rb +3 -3
  112. data/lib/dfp_api/v201108/line_item_creative_association_service.rb +15 -15
  113. data/lib/dfp_api/v201108/line_item_creative_association_service_registry.rb +3 -3
  114. data/lib/dfp_api/v201108/line_item_service.rb +15 -15
  115. data/lib/dfp_api/v201108/line_item_service_registry.rb +3 -3
  116. data/lib/dfp_api/v201108/network_service.rb +7 -7
  117. data/lib/dfp_api/v201108/network_service_registry.rb +3 -3
  118. data/lib/dfp_api/v201108/order_service.rb +15 -15
  119. data/lib/dfp_api/v201108/order_service_registry.rb +3 -3
  120. data/lib/dfp_api/v201108/placement_service.rb +15 -15
  121. data/lib/dfp_api/v201108/placement_service_registry.rb +3 -3
  122. data/lib/dfp_api/v201108/publisher_query_language_service.rb +3 -3
  123. data/lib/dfp_api/v201108/publisher_query_language_service_registry.rb +3 -3
  124. data/lib/dfp_api/v201108/report_service.rb +7 -7
  125. data/lib/dfp_api/v201108/report_service_registry.rb +3 -3
  126. data/lib/dfp_api/v201108/third_party_slot_service.rb +9 -9
  127. data/lib/dfp_api/v201108/third_party_slot_service_registry.rb +3 -3
  128. data/lib/dfp_api/v201108/user_service.rb +19 -19
  129. data/lib/dfp_api/v201108/user_service_registry.rb +3 -3
  130. data/test/bugs/test_issue_00000016.rb +10 -10
  131. data/test/dfp_api/test_dfp_api.rb +1 -1
  132. metadata +362 -366
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.5:
2
+ - Added postal code targeting examples.
3
+ - Require google-ads-common 0.5.4 or later from now on.
4
+
1
5
  0.2.4:
2
6
  - Support for proxies.
3
7
  - Require google-ads-common 0.5.1 or later from now on.
data/README CHANGED
@@ -189,7 +189,7 @@ or via configuration file (see example).
189
189
  External dependencies should be pulled automatically on gem install. Here is the
190
190
  list though:
191
191
 
192
- - Google Ads Common library (google-ads-common-0.5.1);
192
+ - Google Ads Common library (google-ads-common-0.5.4);
193
193
  - Savon 'the heavy metal Ruby SOAP client' (savon-0.9.6).
194
194
 
195
195
 
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
47
47
  s.test_files = tests
48
48
  s.has_rdoc = true
49
49
  s.extra_rdoc_files = docs
50
- s.add_dependency('google-ads-common', '~> 0.5.1')
50
+ s.add_dependency('google-ads-common', '~> 0.5.4')
51
51
  s.add_dependency('savon', '= 0.9.6')
52
52
  end
53
53
 
@@ -70,7 +70,7 @@ task :generate do
70
70
  api_config = DfpApi::ApiConfig
71
71
  versions = api_config.versions()
72
72
  versions.each do |version|
73
- code_path = "lib/%s/%s" % [api_config.api_path, version]
73
+ code_path = "lib/%s/%s" % [api_config.api_name.to_s.snakecase, version]
74
74
  wsdls = DfpApi::ApiConfig.get_wsdls(version)
75
75
  wsdls.each do |service_name, wsdl_url|
76
76
  logger.info("Processing %s at [%s]..." % [service_name, wsdl_url])
@@ -73,8 +73,6 @@ def copy_image_creatives()
73
73
  image_url = new_creative.delete(:image_url)
74
74
  new_creative[:image_byte_array] =
75
75
  Base64.encode64(AdsCommon::Http.get(image_url))
76
- # Savon doesn't get us xsi_type back yet so we have to specify it.
77
- new_creative[:xsi_type] = 'ImageCreative'
78
76
  new_creative
79
77
  end
80
78
 
@@ -56,8 +56,6 @@ def update_creatives()
56
56
  # Update each local creative object by changing its destination URL.
57
57
  creatives.each do |creative|
58
58
  creative[:destination_url] = 'http://news.google.com'
59
- # Savon doesn't get us xsi_type back yet so we have to specify it.
60
- creative[:xsi_type] = 'ImageCreative'
61
59
  end
62
60
 
63
61
  # Update the creatives on the server.
@@ -67,7 +67,6 @@ def update_line_items()
67
67
  line_item[:delivery_rate_type] = 'AS_FAST_AS_POSSIBLE'
68
68
  new_line_items << line_item
69
69
  end
70
- # TODO: We also have to specify xsi_types here, issue #10.
71
70
  new_line_items
72
71
  end
73
72
 
@@ -73,8 +73,6 @@ def copy_image_creatives()
73
73
  image_url = new_creative.delete(:image_url)
74
74
  new_creative[:image_byte_array] =
75
75
  Base64.encode64(AdsCommon::Http.get(image_url))
76
- # Savon doesn't get us xsi_type back yet so we have to specify it.
77
- new_creative[:xsi_type] = 'ImageCreative'
78
76
  new_creative
79
77
  end
80
78
 
@@ -56,8 +56,6 @@ def update_creatives()
56
56
  # Update each local creative object by changing its destination URL.
57
57
  creatives.each do |creative|
58
58
  creative[:destination_url] = 'http://news.google.com'
59
- # Savon doesn't get us xsi_type back yet so we have to specify it.
60
- creative[:xsi_type] = 'ImageCreative'
61
59
  end
62
60
 
63
61
  # Update the creatives on the server.
@@ -67,7 +67,6 @@ def update_line_items()
67
67
  line_item[:delivery_rate_type] = 'AS_FAST_AS_POSSIBLE'
68
68
  new_line_items << line_item
69
69
  end
70
- # TODO: We also have to specify xsi_types here, issue #10.
71
70
  new_line_items
72
71
  end
73
72
 
@@ -73,8 +73,6 @@ def copy_image_creatives()
73
73
  image_url = new_creative.delete(:image_url)
74
74
  new_creative[:image_byte_array] =
75
75
  Base64.encode64(AdsCommon::Http.get(image_url))
76
- # Savon doesn't get us xsi_type back yet so we have to specify it.
77
- new_creative[:xsi_type] = 'ImageCreative'
78
76
  new_creative
79
77
  end
80
78
 
@@ -56,8 +56,6 @@ def update_creatives()
56
56
  # Update each local creative object by changing its destination URL.
57
57
  creatives.each do |creative|
58
58
  creative[:destination_url] = 'http://news.google.com'
59
- # Savon doesn't get us xsi_type back yet so we have to specify it.
60
- creative[:xsi_type] = 'ImageCreative'
61
59
  end
62
60
 
63
61
  # Update the creatives on the server.
@@ -67,7 +67,6 @@ def update_line_items()
67
67
  line_item[:delivery_rate_type] = 'AS_FAST_AS_POSSIBLE'
68
68
  new_line_items << line_item
69
69
  end
70
- # TODO: We also have to specify xsi_types here, issue #10.
71
70
  new_line_items
72
71
  end
73
72
 
@@ -73,8 +73,6 @@ def copy_image_creatives()
73
73
  image_url = new_creative.delete(:image_url)
74
74
  new_creative[:image_byte_array] =
75
75
  Base64.encode64(AdsCommon::Http.get(image_url))
76
- # Savon doesn't get us xsi_type back yet so we have to specify it.
77
- new_creative[:xsi_type] = 'ImageCreative'
78
76
  new_creative
79
77
  end
80
78
 
@@ -56,8 +56,6 @@ def update_creatives()
56
56
  # Update each local creative object by changing its destination URL.
57
57
  creatives.each do |creative|
58
58
  creative[:destination_url] = 'http://news.google.com'
59
- # Savon doesn't get us xsi_type back yet so we have to specify it.
60
- creative[:xsi_type] = 'ImageCreative'
61
59
  end
62
60
 
63
61
  # Update the creatives on the server.
@@ -56,10 +56,17 @@ def create_line_items()
56
56
 
57
57
  # Create geographical targeting.
58
58
  geo_targeting = {
59
- # Include the US and Quebec, Canada.
60
- :targeted_locations => [{:id => 2840}, {:id => 20123}],
61
- # Exclude Chicago and the New York metro area.
62
- :excluded_locations => [{:id => 1016367}, {:id => 200501}]
59
+ # Include targets.
60
+ :targeted_locations => [
61
+ {:id => 2840}, # USA.
62
+ {:id => 20123}, # Quebec, Canada.
63
+ {:id => 9000093} # Postal code B3P (Canada).
64
+ ],
65
+ # Exclude targets.
66
+ :excluded_locations => [
67
+ {:id => 1016367}, # Chicago.
68
+ {:id => 200501} # New York.
69
+ ]
63
70
  }
64
71
 
65
72
  # Create user domain targeting. Exclude domains that are not under the
@@ -100,7 +107,7 @@ def create_line_items()
100
107
 
101
108
  # Create an array to store local line item objects.
102
109
  line_items = (1..ITEM_COUNT).map do |index|
103
- line_item = {:name => "Line item #%d" % index,
110
+ line_item = {:name => "Line item #%d-%d" % [Time.new.to_f * 1000, index],
104
111
  :order_id => order_id,
105
112
  :targeting => targeting,
106
113
  :line_item_type => 'STANDARD',
@@ -67,7 +67,6 @@ def update_line_items()
67
67
  line_item[:delivery_rate_type] = 'AS_FAST_AS_POSSIBLE'
68
68
  new_line_items << line_item
69
69
  end
70
- # TODO: We also have to specify xsi_types here, issue #10.
71
70
  new_line_items
72
71
  end
73
72
 
@@ -0,0 +1,85 @@
1
+ #!/usr/bin/ruby
2
+ #
3
+ # Author:: api.dklimkin@gmail.com (Danial Klimkin)
4
+ #
5
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
6
+ #
7
+ # License:: Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16
+ # implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ # This example gets all targetable postal codes.
21
+ #
22
+ # Tags: PublisherQueryLanguageService.select
23
+
24
+ require 'rubygems'
25
+ require 'dfp_api'
26
+
27
+ API_VERSION = :v201108
28
+ # A string to separate columns in output. Use "," to get CSV.
29
+ COLUMN_SEPARATOR = "\t"
30
+
31
+ def get_all_postal_codes()
32
+ # Get DfpApi instance and load configuration from ~/dfp_api.yml.
33
+ dfp = DfpApi::Api.new
34
+
35
+ # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
36
+ # the configuration file or provide your own logger:
37
+ # dfp.logger = Logger.new('dfp_xml.log')
38
+
39
+ # Get the PublisherQueryLanguageService.
40
+ pql_service = dfp.service(:PublisherQueryLanguageService, API_VERSION)
41
+
42
+ # Create statement to select all postal codes.
43
+ statement = {:query => 'SELECT * FROM Postal_Code WHERE targetable = true'}
44
+
45
+ # Get all postal codes.
46
+ result_set = pql_service.select(statement)
47
+
48
+ if result_set
49
+ # Print out columns header.
50
+ columns = result_set[:column_types].collect {|col| col[:label_name]}
51
+ puts columns.join(COLUMN_SEPARATOR)
52
+
53
+ # Print out every row.
54
+ result_set[:rows].each do |row_set|
55
+ row = row_set[:values].collect {|item| item[:value]}
56
+ puts row.join(COLUMN_SEPARATOR)
57
+ end
58
+ end
59
+
60
+ # Print a footer.
61
+ if result_set[:rows]
62
+ puts "Total number of rows found: %d" % result_set[:rows].size
63
+ end
64
+ end
65
+
66
+ if __FILE__ == $0
67
+ begin
68
+ get_all_postal_codes()
69
+
70
+ # HTTP errors.
71
+ rescue AdsCommon::Errors::HttpError => e
72
+ puts "HTTP Error: %s" % e
73
+
74
+ # API errors.
75
+ rescue DfpApi::Errors::ApiException => e
76
+ puts "Message: %s" % e.message
77
+ puts 'Errors:'
78
+ e.errors.each_with_index do |error, index|
79
+ puts "\tError [%d]:" % (index + 1)
80
+ error.each do |field, value|
81
+ puts "\t\t%s: %s" % [field, value]
82
+ end
83
+ end
84
+ end
85
+ end
@@ -20,7 +20,7 @@
20
20
  # Contains the main classes for the client library. Takes care of all
21
21
  # dependencies.
22
22
 
23
- gem 'google-ads-common', '~>0.5.1'
23
+ gem 'google-ads-common', '~>0.5.4'
24
24
 
25
25
  require 'ads_common/api'
26
26
  require 'ads_common/savon_service'
@@ -40,8 +40,7 @@ module DfpApi
40
40
 
41
41
  # Set other constants
42
42
  API_NAME = 'DfpApi'
43
- API_PATH = 'dfp_api'
44
- CLIENT_LIB_VERSION = '0.2.4'
43
+ CLIENT_LIB_VERSION = '0.2.5'
45
44
  DEFAULT_CONFIG_FILENAME = 'dfp_api.yml'
46
45
 
47
46
  # Configure the services available to each version
@@ -103,16 +102,6 @@ module DfpApi
103
102
 
104
103
  public
105
104
 
106
- def self.do_require(version, service)
107
- service_name = service.to_s.snakecase()
108
- filename = "%s/%s/%s" % [api_path, version, service_name]
109
- require filename
110
- end
111
-
112
- def self.interface_name(version, service)
113
- return module_name(version, service) + "::" + service.to_s
114
- end
115
-
116
105
  # Getters for constants and module variables.
117
106
  def self.default_version
118
107
  DEFAULT_VERSION
@@ -130,10 +119,6 @@ module DfpApi
130
119
  API_NAME
131
120
  end
132
121
 
133
- def self.api_path
134
- API_PATH
135
- end
136
-
137
122
  def self.service_config
138
123
  @@service_config
139
124
  end
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:05.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:27.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/company_service_registry'
@@ -15,28 +15,28 @@ module DfpApi; module V201103; module CompanyService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def update_companies(*args)
19
- return execute_action('update_companies', args)
18
+ def update_company(*args, &block)
19
+ return execute_action('update_company', args, &block)
20
20
  end
21
21
 
22
- def update_company(*args)
23
- return execute_action('update_company', args)
22
+ def create_companies(*args, &block)
23
+ return execute_action('create_companies', args, &block)
24
24
  end
25
25
 
26
- def create_companies(*args)
27
- return execute_action('create_companies', args)
26
+ def create_company(*args, &block)
27
+ return execute_action('create_company', args, &block)
28
28
  end
29
29
 
30
- def create_company(*args)
31
- return execute_action('create_company', args)
30
+ def get_companies_by_statement(*args, &block)
31
+ return execute_action('get_companies_by_statement', args, &block)
32
32
  end
33
33
 
34
- def get_companies_by_statement(*args)
35
- return execute_action('get_companies_by_statement', args)
34
+ def get_company(*args, &block)
35
+ return execute_action('get_company', args, &block)
36
36
  end
37
37
 
38
- def get_company(*args)
39
- return execute_action('get_company', args)
38
+ def update_companies(*args, &block)
39
+ return execute_action('update_companies', args, &block)
40
40
  end
41
41
 
42
42
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:05.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:27.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module CompanyService
9
11
  class CompanyServiceRegistry
10
- COMPANYSERVICE_METHODS = {:update_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :name=>:companies, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"update_companies_response"}}, :update_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :name=>:company, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"update_company_response"}}, :create_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :name=>:companies, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"create_companies_response"}}, :create_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :name=>:company, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"create_company_response"}}, :get_companies_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"CompanyPage", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_companies_by_statement_response"}}, :get_company=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:company_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_company_response"}}}
11
- COMPANYSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :Company=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"Company.Type", :min_occurs=>0, :name=>:type, :max_occurs=>1}]}, :OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:key, :max_occurs=>1}, {:type=>"Value", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :CompanyPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:total_result_set_size, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:start_index, :max_occurs=>1}, {:type=>"Company", :min_occurs=>0, :name=>:results, :max_occurs=>:unbounded}]}, :NumberValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :Authentication=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:authentication_type, :max_occurs=>1}]}, :Value=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value_type, :max_occurs=>1}]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:network_code, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:application_name, :max_occurs=>1}, {:type=>"Authentication", :min_occurs=>0, :name=>:authentication, :max_occurs=>1}]}, :ClientLogin=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:token, :max_occurs=>1}]}, :BooleanValue=>{:base=>"Value", :fields=>[{:type=>"boolean", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :TextValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:request_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:response_time, :max_occurs=>1}]}}
12
+ COMPANYSERVICE_METHODS = {:update_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_company_response"}}, :create_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_companies_response"}}, :create_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_company_response"}}, :get_companies_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CompanyPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_companies_by_statement_response"}}, :get_company=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:company_id}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_company_response"}}, :update_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_companies_response"}}}
13
+ COMPANYSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :Company=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Company.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :CompanyPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}}
12
14
  COMPANYSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:30.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:02.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/creative_service_registry'
@@ -15,28 +15,28 @@ module DfpApi; module V201103; module CreativeService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def update_creatives(*args)
19
- return execute_action('update_creatives', args)
18
+ def get_creative(*args, &block)
19
+ return execute_action('get_creative', args, &block)
20
20
  end
21
21
 
22
- def create_creative(*args)
23
- return execute_action('create_creative', args)
22
+ def get_creatives_by_statement(*args, &block)
23
+ return execute_action('get_creatives_by_statement', args, &block)
24
24
  end
25
25
 
26
- def create_creatives(*args)
27
- return execute_action('create_creatives', args)
26
+ def update_creative(*args, &block)
27
+ return execute_action('update_creative', args, &block)
28
28
  end
29
29
 
30
- def get_creative(*args)
31
- return execute_action('get_creative', args)
30
+ def update_creatives(*args, &block)
31
+ return execute_action('update_creatives', args, &block)
32
32
  end
33
33
 
34
- def get_creatives_by_statement(*args)
35
- return execute_action('get_creatives_by_statement', args)
34
+ def create_creative(*args, &block)
35
+ return execute_action('create_creative', args, &block)
36
36
  end
37
37
 
38
- def update_creative(*args)
39
- return execute_action('update_creative', args)
38
+ def create_creatives(*args, &block)
39
+ return execute_action('create_creatives', args, &block)
40
40
  end
41
41
 
42
42
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:30.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:02.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module CreativeService
9
11
  class CreativeServiceRegistry
10
- CREATIVESERVICE_METHODS = {:update_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :name=>:creatives, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"update_creatives_response"}}, :create_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :name=>:creative, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"create_creative_response"}}, :create_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :name=>:creatives, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"create_creatives_response"}}, :get_creative=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:creative_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_creative_response"}}, :get_creatives_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"CreativePage", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_creatives_by_statement_response"}}, :update_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :name=>:creative, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"update_creative_response"}}}
11
- CREATIVESERVICE_TYPES = {:Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:width, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:height, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_aspect_ratio, :max_occurs=>1}]}, :FlashRedirectCreative=>{:base=>"BaseFlashRedirectCreative", :fields=>[]}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :BaseImageCreative=>{:abstract=>true, :base=>"HasDestinationUrlCreative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:image_name, :max_occurs=>1}, {:type=>"base64Binary", :min_occurs=>0, :name=>:image_byte_array, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:override_size, :max_occurs=>1}, {:type=>"Size", :min_occurs=>0, :name=>:asset_size, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:image_url, :max_occurs=>1}]}, :OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :HasDestinationUrlCreative=>{:abstract=>true, :base=>"Creative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:destination_url, :max_occurs=>1}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:key, :max_occurs=>1}, {:type=>"Value", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :NumberValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :BaseImageRedirectCreative=>{:abstract=>true, :base=>"HasDestinationUrlCreative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:image_url, :max_occurs=>1}]}, :ImageCreative=>{:base=>"BaseImageCreative", :fields=>[]}, :Creative=>{:abstract=>true, :fields=>[{:type=>"long", :min_occurs=>0, :name=>:advertiser_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"Size", :min_occurs=>0, :name=>:size, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:preview_url, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:creative_type, :max_occurs=>1}]}, :Value=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value_type, :max_occurs=>1}]}, :ImageRedirectCreative=>{:base=>"BaseImageRedirectCreative", :fields=>[]}, :Authentication=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:authentication_type, :max_occurs=>1}]}, :CreativePage=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:total_result_set_size, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:start_index, :max_occurs=>1}, {:type=>"Creative", :min_occurs=>0, :name=>:results, :max_occurs=>:unbounded}]}, :ThirdPartyCreative=>{:base=>"Creative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:snippet, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:expanded_snippet, :max_occurs=>1}]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:network_code, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:application_name, :max_occurs=>1}, {:type=>"Authentication", :min_occurs=>0, :name=>:authentication, :max_occurs=>1}]}, :ClientLogin=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:token, :max_occurs=>1}]}, :BooleanValue=>{:base=>"Value", :fields=>[{:type=>"boolean", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :BaseFlashCreative=>{:abstract=>true, :base=>"HasDestinationUrlCreative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:flash_name, :max_occurs=>1}, {:type=>"base64Binary", :min_occurs=>0, :name=>:flash_byte_array, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:fallback_image_name, :max_occurs=>1}, {:type=>"base64Binary", :min_occurs=>0, :name=>:fallback_image_byte_array, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:override_size, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:click_tag_required, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:fallback_preview_url, :max_occurs=>1}, {:type=>"Size", :min_occurs=>0, :name=>:flash_asset_size, :max_occurs=>1}, {:type=>"Size", :min_occurs=>0, :name=>:fallback_asset_size, :max_occurs=>1}]}, :TextValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :FlashCreative=>{:base=>"BaseFlashCreative", :fields=>[]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:request_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:response_time, :max_occurs=>1}]}, :BaseFlashRedirectCreative=>{:abstract=>true, :base=>"HasDestinationUrlCreative", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:flash_url, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:fallback_url, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:fallback_preview_url, :max_occurs=>1}]}}
12
+ CREATIVESERVICE_METHODS = {:get_creative=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creative_response"}}, :get_creatives_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CreativePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creatives_by_statement_response"}}, :update_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_creative_response"}}, :update_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_creatives_response"}}, :create_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_creative_response"}}, :create_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_creatives_response"}}}
13
+ CREATIVESERVICE_TYPES = {:ThirdPartyCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:expanded_snippet}], :base=>"Creative"}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :FlashRedirectCreative=>{:fields=>[], :base=>"BaseFlashRedirectCreative"}, :HasDestinationUrlCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}], :abstract=>true, :base=>"Creative"}, :BaseFlashCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:flash_byte_array}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:click_tag_required}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:flash_asset_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_asset_size}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Creative=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preview_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creative_type}], :abstract=>true}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :ImageCreative=>{:fields=>[], :base=>"BaseImageCreative"}, :BaseFlashRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :CreativePage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :ImageRedirectCreative=>{:fields=>[], :base=>"BaseImageRedirectCreative"}, :BaseImageCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:asset_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_aspect_ratio}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BaseImageRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :FlashCreative=>{:fields=>[], :base=>"BaseFlashCreative"}}
12
14
  CREATIVESERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)