google-dfp-api 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/ChangeLog +4 -0
  2. data/README +17 -2
  3. data/Rakefile +3 -5
  4. data/examples/v201101/common/oauth_handling.rb +128 -0
  5. data/examples/v201101/company_service/create_companies.rb +1 -1
  6. data/examples/v201101/company_service/get_all_companies.rb +1 -1
  7. data/examples/v201101/creative_service/create_creatives.rb +1 -1
  8. data/examples/v201101/creative_service/get_all_creatives.rb +1 -1
  9. data/examples/v201101/custom_targeting_service/delete_custom_targeting_keys.rb +2 -2
  10. data/examples/v201101/custom_targeting_service/delete_custom_targeting_values.rb +2 -2
  11. data/examples/v201101/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +2 -2
  12. data/examples/v201101/inventory_service/create_ad_units.rb +1 -1
  13. data/examples/v201101/inventory_service/deactivate_ad_units.rb +2 -2
  14. data/examples/v201101/inventory_service/get_ad_units_by_statement.rb +1 -1
  15. data/examples/v201101/inventory_service/get_all_ad_units.rb +1 -1
  16. data/examples/v201101/line_item_creative_association_service/deactivate_licas.rb +2 -2
  17. data/examples/v201101/line_item_creative_association_service/get_all_licas.rb +1 -1
  18. data/examples/v201101/line_item_service/activate_line_items.rb +2 -2
  19. data/examples/v201101/line_item_service/create_line_items.rb +2 -2
  20. data/examples/v201101/line_item_service/get_all_line_items.rb +1 -1
  21. data/examples/v201101/order_service/approve_orders.rb +2 -2
  22. data/examples/v201101/order_service/create_orders.rb +1 -1
  23. data/examples/v201101/order_service/get_all_orders.rb +1 -1
  24. data/examples/v201101/placement_service/create_placements.rb +3 -3
  25. data/examples/v201101/placement_service/deactivate_placements.rb +2 -2
  26. data/examples/v201101/placement_service/get_all_placements.rb +1 -1
  27. data/examples/v201101/user_service/get_all_users.rb +1 -1
  28. data/examples/v201103/common/oauth_handling.rb +128 -0
  29. data/examples/v201103/company_service/create_companies.rb +1 -1
  30. data/examples/v201103/company_service/get_all_companies.rb +1 -1
  31. data/examples/v201103/creative_service/create_creatives.rb +1 -1
  32. data/examples/v201103/creative_service/get_all_creatives.rb +1 -1
  33. data/examples/v201103/custom_targeting_service/delete_custom_targeting_keys.rb +2 -2
  34. data/examples/v201103/custom_targeting_service/delete_custom_targeting_values.rb +2 -2
  35. data/examples/v201103/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +2 -2
  36. data/examples/v201103/inventory_service/create_ad_units.rb +1 -1
  37. data/examples/v201103/inventory_service/deactivate_ad_units.rb +2 -2
  38. data/examples/v201103/inventory_service/get_ad_units_by_statement.rb +1 -1
  39. data/examples/v201103/inventory_service/get_all_ad_units.rb +1 -1
  40. data/examples/v201103/line_item_creative_association_service/deactivate_licas.rb +2 -2
  41. data/examples/v201103/line_item_creative_association_service/get_all_licas.rb +1 -1
  42. data/examples/v201103/line_item_service/activate_line_items.rb +2 -2
  43. data/examples/v201103/line_item_service/create_line_items.rb +2 -2
  44. data/examples/v201103/line_item_service/get_all_line_items.rb +1 -1
  45. data/examples/v201103/order_service/approve_orders.rb +2 -2
  46. data/examples/v201103/order_service/create_orders.rb +1 -1
  47. data/examples/v201103/order_service/get_all_orders.rb +1 -1
  48. data/examples/v201103/placement_service/create_placements.rb +3 -3
  49. data/examples/v201103/placement_service/deactivate_placements.rb +2 -2
  50. data/examples/v201103/placement_service/get_all_placements.rb +1 -1
  51. data/examples/v201103/user_service/get_all_users.rb +1 -1
  52. data/examples/v201104/common/oauth_handling.rb +128 -0
  53. data/examples/v201104/company_service/create_companies.rb +1 -1
  54. data/examples/v201104/company_service/get_all_companies.rb +1 -1
  55. data/examples/v201104/creative_service/create_creatives.rb +1 -1
  56. data/examples/v201104/creative_service/get_all_creatives.rb +1 -1
  57. data/examples/v201104/custom_targeting_service/delete_custom_targeting_keys.rb +2 -2
  58. data/examples/v201104/custom_targeting_service/delete_custom_targeting_values.rb +2 -2
  59. data/examples/v201104/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +2 -2
  60. data/examples/v201104/inventory_service/create_ad_units.rb +1 -1
  61. data/examples/v201104/inventory_service/deactivate_ad_units.rb +2 -2
  62. data/examples/v201104/inventory_service/get_ad_units_by_statement.rb +1 -1
  63. data/examples/v201104/inventory_service/get_all_ad_units.rb +1 -1
  64. data/examples/v201104/line_item_creative_association_service/deactivate_licas.rb +2 -2
  65. data/examples/v201104/line_item_creative_association_service/get_all_licas.rb +1 -1
  66. data/examples/v201104/line_item_service/activate_line_items.rb +2 -2
  67. data/examples/v201104/line_item_service/create_line_items.rb +1 -1
  68. data/examples/v201104/line_item_service/get_all_line_items.rb +1 -1
  69. data/examples/v201104/order_service/approve_orders.rb +2 -2
  70. data/examples/v201104/order_service/create_orders.rb +1 -1
  71. data/examples/v201104/order_service/get_all_orders.rb +1 -1
  72. data/examples/v201104/placement_service/create_placements.rb +3 -3
  73. data/examples/v201104/placement_service/deactivate_placements.rb +2 -2
  74. data/examples/v201104/placement_service/get_all_placements.rb +1 -1
  75. data/examples/v201104/user_service/get_all_users.rb +1 -1
  76. data/lib/dfp_api.rb +24 -70
  77. data/lib/dfp_api/api_config.rb +3 -1
  78. data/lib/dfp_api/client_login_header_handler.rb +56 -0
  79. data/lib/dfp_api/credential_handler.rb +19 -14
  80. data/lib/dfp_api/errors.rb +1 -1
  81. data/lib/dfp_api/v201101/company_service.rb +3 -3
  82. data/lib/dfp_api/v201101/company_service_registry.rb +9 -4
  83. data/lib/dfp_api/v201101/creative_service.rb +3 -3
  84. data/lib/dfp_api/v201101/creative_service_registry.rb +9 -4
  85. data/lib/dfp_api/v201101/custom_targeting_service.rb +7 -7
  86. data/lib/dfp_api/v201101/custom_targeting_service_registry.rb +9 -4
  87. data/lib/dfp_api/v201101/forecast_service.rb +3 -3
  88. data/lib/dfp_api/v201101/forecast_service_registry.rb +9 -4
  89. data/lib/dfp_api/v201101/inventory_service.rb +7 -7
  90. data/lib/dfp_api/v201101/inventory_service_registry.rb +9 -4
  91. data/lib/dfp_api/v201101/line_item_creative_association_service.rb +7 -7
  92. data/lib/dfp_api/v201101/line_item_creative_association_service_registry.rb +9 -4
  93. data/lib/dfp_api/v201101/line_item_service.rb +7 -7
  94. data/lib/dfp_api/v201101/line_item_service_registry.rb +9 -4
  95. data/lib/dfp_api/v201101/network_service.rb +7 -7
  96. data/lib/dfp_api/v201101/network_service_registry.rb +9 -4
  97. data/lib/dfp_api/v201101/order_service.rb +11 -11
  98. data/lib/dfp_api/v201101/order_service_registry.rb +9 -4
  99. data/lib/dfp_api/v201101/placement_service.rb +3 -3
  100. data/lib/dfp_api/v201101/placement_service_registry.rb +9 -4
  101. data/lib/dfp_api/v201101/publisher_query_language_service.rb +3 -3
  102. data/lib/dfp_api/v201101/publisher_query_language_service_registry.rb +9 -4
  103. data/lib/dfp_api/v201101/report_service.rb +3 -3
  104. data/lib/dfp_api/v201101/report_service_registry.rb +9 -4
  105. data/lib/dfp_api/v201101/user_service.rb +7 -7
  106. data/lib/dfp_api/v201101/user_service_registry.rb +9 -4
  107. data/lib/dfp_api/v201103/company_service.rb +3 -3
  108. data/lib/dfp_api/v201103/company_service_registry.rb +9 -4
  109. data/lib/dfp_api/v201103/creative_service.rb +3 -3
  110. data/lib/dfp_api/v201103/creative_service_registry.rb +9 -4
  111. data/lib/dfp_api/v201103/custom_targeting_service.rb +7 -7
  112. data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +9 -4
  113. data/lib/dfp_api/v201103/forecast_service.rb +3 -3
  114. data/lib/dfp_api/v201103/forecast_service_registry.rb +9 -4
  115. data/lib/dfp_api/v201103/inventory_service.rb +7 -7
  116. data/lib/dfp_api/v201103/inventory_service_registry.rb +9 -4
  117. data/lib/dfp_api/v201103/line_item_creative_association_service.rb +7 -7
  118. data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +9 -4
  119. data/lib/dfp_api/v201103/line_item_service.rb +7 -7
  120. data/lib/dfp_api/v201103/line_item_service_registry.rb +9 -4
  121. data/lib/dfp_api/v201103/network_service.rb +7 -7
  122. data/lib/dfp_api/v201103/network_service_registry.rb +9 -4
  123. data/lib/dfp_api/v201103/order_service.rb +11 -11
  124. data/lib/dfp_api/v201103/order_service_registry.rb +9 -4
  125. data/lib/dfp_api/v201103/placement_service.rb +3 -3
  126. data/lib/dfp_api/v201103/placement_service_registry.rb +9 -4
  127. data/lib/dfp_api/v201103/publisher_query_language_service.rb +3 -3
  128. data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +9 -4
  129. data/lib/dfp_api/v201103/report_service.rb +3 -3
  130. data/lib/dfp_api/v201103/report_service_registry.rb +9 -4
  131. data/lib/dfp_api/v201103/user_service.rb +7 -7
  132. data/lib/dfp_api/v201103/user_service_registry.rb +9 -4
  133. data/lib/dfp_api/v201104/company_service.rb +3 -3
  134. data/lib/dfp_api/v201104/company_service_registry.rb +9 -4
  135. data/lib/dfp_api/v201104/creative_service.rb +3 -3
  136. data/lib/dfp_api/v201104/creative_service_registry.rb +9 -4
  137. data/lib/dfp_api/v201104/custom_targeting_service.rb +7 -7
  138. data/lib/dfp_api/v201104/custom_targeting_service_registry.rb +9 -4
  139. data/lib/dfp_api/v201104/forecast_service.rb +3 -3
  140. data/lib/dfp_api/v201104/forecast_service_registry.rb +9 -4
  141. data/lib/dfp_api/v201104/inventory_service.rb +7 -7
  142. data/lib/dfp_api/v201104/inventory_service_registry.rb +9 -4
  143. data/lib/dfp_api/v201104/line_item_creative_association_service.rb +7 -7
  144. data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +9 -4
  145. data/lib/dfp_api/v201104/line_item_service.rb +7 -7
  146. data/lib/dfp_api/v201104/line_item_service_registry.rb +9 -4
  147. data/lib/dfp_api/v201104/network_service.rb +7 -7
  148. data/lib/dfp_api/v201104/network_service_registry.rb +9 -4
  149. data/lib/dfp_api/v201104/order_service.rb +11 -11
  150. data/lib/dfp_api/v201104/order_service_registry.rb +9 -4
  151. data/lib/dfp_api/v201104/placement_service.rb +3 -3
  152. data/lib/dfp_api/v201104/placement_service_registry.rb +9 -4
  153. data/lib/dfp_api/v201104/publisher_query_language_service.rb +3 -3
  154. data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +9 -4
  155. data/lib/dfp_api/v201104/report_service.rb +3 -3
  156. data/lib/dfp_api/v201104/report_service_registry.rb +9 -4
  157. data/lib/dfp_api/v201104/user_service.rb +7 -7
  158. data/lib/dfp_api/v201104/user_service_registry.rb +9 -4
  159. data/test/bugs/test_issue_00000016.rb +6 -5
  160. data/test/dfp_api/test_dfp_api.rb +29 -7
  161. metadata +257 -253
@@ -3,24 +3,16 @@
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.4.0 on 2011-06-17 15:27:06.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:10.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/order_service_registry'
10
10
 
11
11
  module DfpApi; module V201104; module OrderService
12
12
  class OrderService < AdsCommon::SavonService
13
- def initialize(endpoint)
13
+ def initialize(api, endpoint)
14
14
  namespace = 'https://www.google.com/apis/ads/publisher/v201104'
15
- super(endpoint, namespace)
16
- end
17
-
18
- def create_orders(*args)
19
- return execute_action('create_orders', args)
20
- end
21
-
22
- def get_order(*args)
23
- return execute_action('get_order', args)
15
+ super(api, endpoint, namespace, :v201104)
24
16
  end
25
17
 
26
18
  def get_orders_by_statement(*args)
@@ -43,6 +35,14 @@ module DfpApi; module V201104; module OrderService
43
35
  return execute_action('update_orders', args)
44
36
  end
45
37
 
38
+ def create_orders(*args)
39
+ return execute_action('create_orders', args)
40
+ end
41
+
42
+ def get_order(*args)
43
+ return execute_action('get_order', args)
44
+ end
45
+
46
46
  private
47
47
 
48
48
  def get_service_registry()
@@ -3,12 +3,13 @@
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.4.0 on 2011-06-17 15:27:06.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:10.
7
7
 
8
8
  module DfpApi; module V201104; module OrderService
9
9
  class OrderServiceRegistry
10
- ORDERSERVICE_METHODS = {:create_orders=>{:input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>nil, :name=>:orders}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"create_orders_response"}}, :get_order=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:order_id}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_order_response"}}, :get_orders_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"OrderPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_orders_by_statement_response"}}, :perform_order_action=>{:input=>[{:type=>"OrderAction", :min_occurs=>0, :max_occurs=>1, :name=>:order_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_order_action_response"}}, :update_order=>{:input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:order}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_order_response"}}, :create_order=>{:input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:order}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_order_response"}}, :update_orders=>{:input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>nil, :name=>:orders}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"update_orders_response"}}}
11
- ORDERSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>nil, :name=>:values}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :ResumeAndOverbookOrders=>{:fields=>[], :base=>"ResumeOrders"}, :ApproveAndOverbookOrders=>{:fields=>[], :base=>"ApproveOrders"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ResumeOrders=>{:fields=>[], :base=>"OrderAction"}, :ApproveOrders=>{:fields=>[], :base=>"OrderAction"}, :SubmitOrdersForApproval=>{:fields=>[], :base=>"OrderAction"}, :OrderAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:order_action_type}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :RetractOrders=>{:fields=>[], :base=>"OrderAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :ArchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :SubmitOrdersForApprovalAndOverbook=>{:fields=>[], :base=>"SubmitOrdersForApproval"}, :Order=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:end_date_time}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:unlimited_end_date_time}, {:type=>"OrderStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_archived}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:notes}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:external_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:agency_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creator_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:trafficker_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:salesperson_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_impressions_delivered}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_clicks_delivered}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:total_budget}]}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:year}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:month}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:day}]}, :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}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OrderPage=>{: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=>"Order", :min_occurs=>0, :max_occurs=>nil, :name=>:results}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :DisapproveOrders=>{:fields=>[], :base=>"OrderAction"}, :DateTime=>{:fields=>[{:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:date}, {:type=>"int", :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=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:time_zone_id}]}, :UnarchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :PauseOrders=>{:fields=>[], :base=>"OrderAction"}}
10
+ ORDERSERVICE_METHODS = {:get_orders_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"OrderPage", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_orders_by_statement_response"}}, :perform_order_action=>{:input=>[{:type=>"OrderAction", :min_occurs=>0, :name=>:order_action, :max_occurs=>1}, {:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"perform_order_action_response"}}, :update_order=>{:input=>[{:type=>"Order", :min_occurs=>0, :name=>:order, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"update_order_response"}}, :create_order=>{:input=>[{:type=>"Order", :min_occurs=>0, :name=>:order, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"create_order_response"}}, :update_orders=>{:input=>[{:type=>"Order", :min_occurs=>0, :name=>:orders, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"update_orders_response"}}, :create_orders=>{:input=>[{:type=>"Order", :min_occurs=>0, :name=>:orders, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"create_orders_response"}}, :get_order=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:order_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_order_response"}}}
11
+ ORDERSERVICE_TYPES = {:UnarchiveOrders=>{:base=>"OrderAction", :fields=>[]}, :PauseOrders=>{:base=>"OrderAction", :fields=>[]}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:currency_code, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:micro_amount, :max_occurs=>1}]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:num_changes, :max_occurs=>1}]}, :ResumeAndOverbookOrders=>{:base=>"ResumeOrders", :fields=>[]}, :OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :ApproveAndOverbookOrders=>{:base=>"ApproveOrders", :fields=>[]}, :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}]}, :ResumeOrders=>{:base=>"OrderAction", :fields=>[]}, :ApproveOrders=>{:base=>"OrderAction", :fields=>[]}, :SubmitOrdersForApproval=>{:base=>"OrderAction", :fields=>[]}, :OrderAction=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:order_action_type, :max_occurs=>1}]}, :Value=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value_type, :max_occurs=>1}]}, :RetractOrders=>{:base=>"OrderAction", :fields=>[]}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:year, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:month, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:day, :max_occurs=>1}]}, :Authentication=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:authentication_type, :max_occurs=>1}]}, :ArchiveOrders=>{:base=>"OrderAction", :fields=>[]}, :SubmitOrdersForApprovalAndOverbook=>{:base=>"SubmitOrdersForApproval", :fields=>[]}, :Order=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"DateTime", :min_occurs=>0, :name=>:start_date_time, :max_occurs=>1}, {:type=>"DateTime", :min_occurs=>0, :name=>:end_date_time, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:unlimited_end_date_time, :max_occurs=>1}, {:type=>"OrderStatus", :min_occurs=>0, :name=>:status, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_archived, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:notes, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:external_id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:currency_code, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:advertiser_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:agency_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:creator_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:trafficker_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:salesperson_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:total_impressions_delivered, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:total_clicks_delivered, :max_occurs=>1}, {:type=>"Money", :min_occurs=>0, :name=>:total_budget, :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}]}, :OrderPage=>{: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=>"Order", :min_occurs=>0, :name=>:results, :max_occurs=>:unbounded}]}, :DateTime=>{:fields=>[{:type=>"Date", :min_occurs=>0, :name=>:date, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:hour, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:minute, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:second, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:time_zone_id, :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}]}, :DisapproveOrders=>{:base=>"OrderAction", :fields=>[]}}
12
+ ORDERSERVICE_NAMESPACES = []
12
13
 
13
14
  def self.get_method_signature(method_name)
14
15
  return ORDERSERVICE_METHODS[method_name.to_sym]
@@ -17,6 +18,10 @@ module DfpApi; module V201104; module OrderService
17
18
  def self.get_type_signature(type_name)
18
19
  return ORDERSERVICE_TYPES[type_name.to_sym]
19
20
  end
21
+
22
+ def self.get_namespace(index)
23
+ return ORDERSERVICE_NAMESPACES[index]
24
+ end
20
25
  end
21
26
 
22
27
  # Base class for exceptions.
@@ -29,7 +34,7 @@ module DfpApi; module V201104; module OrderService
29
34
  class ApiException < ApplicationException
30
35
  attr_reader :errors # ApiError
31
36
  def initialize(exception_fault)
32
- @array_fields = [] if !defined?(@array_fields)
37
+ @array_fields ||= []
33
38
  @array_fields << 'errors'
34
39
  super(exception_fault)
35
40
  end
@@ -3,16 +3,16 @@
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.4.0 on 2011-06-17 15:27:33.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:39.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/placement_service_registry'
10
10
 
11
11
  module DfpApi; module V201104; module PlacementService
12
12
  class PlacementService < AdsCommon::SavonService
13
- def initialize(endpoint)
13
+ def initialize(api, endpoint)
14
14
  namespace = 'https://www.google.com/apis/ads/publisher/v201104'
15
- super(endpoint, namespace)
15
+ super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
18
  def perform_placement_action(*args)
@@ -3,12 +3,13 @@
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.4.0 on 2011-06-17 15:27:33.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:39.
7
7
 
8
8
  module DfpApi; module V201104; module PlacementService
9
9
  class PlacementServiceRegistry
10
- PLACEMENTSERVICE_METHODS = {:perform_placement_action=>{:input=>[{:type=>"PlacementAction", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_placement_action_response"}}, :update_placement=>{:input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_placement_response"}}, :create_placement=>{:input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_placement_response"}}, :update_placements=>{:input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>nil, :name=>:placements}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"update_placements_response"}}, :create_placements=>{:input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>nil, :name=>:placements}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"create_placements_response"}}, :get_placement=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:placement_id}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placement_response"}}, :get_placements_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"PlacementPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placements_by_statement_response"}}}
11
- PLACEMENTSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>nil, :name=>:values}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :PlacementAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action_type}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :Placement=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_code}, {:type=>"InventoryStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_sense_targeting_enabled}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_planner_targeting_enabled}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_sense_targeting_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>nil, :name=>:targeted_ad_unit_ids}], :base=>"SiteTargetingInfo"}, :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}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :SiteTargetingInfo=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_site_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_ad_location}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:site_targeting_info_type}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :PlacementPage=>{: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=>"Placement", :min_occurs=>0, :max_occurs=>nil, :name=>:results}]}}
10
+ PLACEMENTSERVICE_METHODS = {:perform_placement_action=>{:input=>[{:type=>"PlacementAction", :min_occurs=>0, :name=>:placement_action, :max_occurs=>1}, {:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"perform_placement_action_response"}}, :update_placement=>{:input=>[{:type=>"Placement", :min_occurs=>0, :name=>:placement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"update_placement_response"}}, :create_placement=>{:input=>[{:type=>"Placement", :min_occurs=>0, :name=>:placement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"create_placement_response"}}, :update_placements=>{:input=>[{:type=>"Placement", :min_occurs=>0, :name=>:placements, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"update_placements_response"}}, :create_placements=>{:input=>[{:type=>"Placement", :min_occurs=>0, :name=>:placements, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"create_placements_response"}}, :get_placement=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:placement_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_placement_response"}}, :get_placements_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"PlacementPage", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_placements_by_statement_response"}}}
11
+ PLACEMENTSERVICE_TYPES = {:PlacementPage=>{: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=>"Placement", :min_occurs=>0, :name=>:results, :max_occurs=>:unbounded}]}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :ArchivePlacements=>{:base=>"PlacementAction", :fields=>[]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:num_changes, :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}]}, :NumberValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :DeactivatePlacements=>{:base=>"PlacementAction", :fields=>[]}, :PlacementAction=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:placement_action_type, :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}]}, :Placement=>{:base=>"SiteTargetingInfo", :fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:description, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:placement_code, :max_occurs=>1}, {:type=>"InventoryStatus", :min_occurs=>0, :name=>:status, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_ad_sense_targeting_enabled, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_ad_planner_targeting_enabled, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:ad_sense_targeting_locale, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:targeted_ad_unit_ids, :max_occurs=>:unbounded}]}, :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}]}, :SiteTargetingInfo=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:targeting_description, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:targeting_site_name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:targeting_ad_location, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:site_targeting_info_type, :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}]}, :ActivatePlacements=>{:base=>"PlacementAction", :fields=>[]}}
12
+ PLACEMENTSERVICE_NAMESPACES = []
12
13
 
13
14
  def self.get_method_signature(method_name)
14
15
  return PLACEMENTSERVICE_METHODS[method_name.to_sym]
@@ -17,6 +18,10 @@ module DfpApi; module V201104; module PlacementService
17
18
  def self.get_type_signature(type_name)
18
19
  return PLACEMENTSERVICE_TYPES[type_name.to_sym]
19
20
  end
21
+
22
+ def self.get_namespace(index)
23
+ return PLACEMENTSERVICE_NAMESPACES[index]
24
+ end
20
25
  end
21
26
 
22
27
  # Base class for exceptions.
@@ -29,7 +34,7 @@ module DfpApi; module V201104; module PlacementService
29
34
  class ApiException < ApplicationException
30
35
  attr_reader :errors # ApiError
31
36
  def initialize(exception_fault)
32
- @array_fields = [] if !defined?(@array_fields)
37
+ @array_fields ||= []
33
38
  @array_fields << 'errors'
34
39
  super(exception_fault)
35
40
  end
@@ -3,16 +3,16 @@
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.4.0 on 2011-06-17 15:27:36.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:42.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/publisher_query_language_service_registry'
10
10
 
11
11
  module DfpApi; module V201104; module PublisherQueryLanguageService
12
12
  class PublisherQueryLanguageService < AdsCommon::SavonService
13
- def initialize(endpoint)
13
+ def initialize(api, endpoint)
14
14
  namespace = 'https://www.google.com/apis/ads/publisher/v201104'
15
- super(endpoint, namespace)
15
+ super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
18
  def select(*args)
@@ -3,12 +3,13 @@
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.4.0 on 2011-06-17 15:27:36.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:42.
7
7
 
8
8
  module DfpApi; module V201104; module PublisherQueryLanguageService
9
9
  class PublisherQueryLanguageServiceRegistry
10
- PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:select_statement}], :output=>{:fields=>[{:type=>"ResultSet", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"select_response"}}}
11
- PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>nil, :name=>:values}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :min_occurs=>0, :max_occurs=>nil, :name=>:column_types}, {:type=>"Row", :min_occurs=>0, :max_occurs=>nil, :name=>:rows}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :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}]}, :ColumnType=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:label_name}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Row=>{:fields=>[{:type=>"Value", :min_occurs=>0, :max_occurs=>nil, :name=>:values}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}}
10
+ PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:select_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"ResultSet", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"select_response"}}}
11
+ PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :min_occurs=>0, :name=>:column_types, :max_occurs=>:unbounded}, {:type=>"Row", :min_occurs=>0, :name=>:rows, :max_occurs=>:unbounded}]}, :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}]}, :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}]}, :ColumnType=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:label_name, :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}]}, :Row=>{:fields=>[{:type=>"Value", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :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
+ PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES = []
12
13
 
13
14
  def self.get_method_signature(method_name)
14
15
  return PUBLISHERQUERYLANGUAGESERVICE_METHODS[method_name.to_sym]
@@ -17,6 +18,10 @@ module DfpApi; module V201104; module PublisherQueryLanguageService
17
18
  def self.get_type_signature(type_name)
18
19
  return PUBLISHERQUERYLANGUAGESERVICE_TYPES[type_name.to_sym]
19
20
  end
21
+
22
+ def self.get_namespace(index)
23
+ return PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES[index]
24
+ end
20
25
  end
21
26
 
22
27
  # Base class for exceptions.
@@ -29,7 +34,7 @@ module DfpApi; module V201104; module PublisherQueryLanguageService
29
34
  class ApiException < ApplicationException
30
35
  attr_reader :errors # ApiError
31
36
  def initialize(exception_fault)
32
- @array_fields = [] if !defined?(@array_fields)
37
+ @array_fields ||= []
33
38
  @array_fields << 'errors'
34
39
  super(exception_fault)
35
40
  end
@@ -3,16 +3,16 @@
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.4.0 on 2011-06-17 15:27:19.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:23.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/report_service_registry'
10
10
 
11
11
  module DfpApi; module V201104; module ReportService
12
12
  class ReportService < AdsCommon::SavonService
13
- def initialize(endpoint)
13
+ def initialize(api, endpoint)
14
14
  namespace = 'https://www.google.com/apis/ads/publisher/v201104'
15
- super(endpoint, namespace)
15
+ super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
18
  def get_report_download_url(*args)
@@ -3,12 +3,13 @@
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.4.0 on 2011-06-17 15:27:19.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:23.
7
7
 
8
8
  module DfpApi; module V201104; module ReportService
9
9
  class ReportServiceRegistry
10
- REPORTSERVICE_METHODS = {:get_report_download_url=>{:original_name=>"getReportDownloadURL", :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}, {:type=>"ExportFormat", :min_occurs=>0, :max_occurs=>1, :name=>:export_format}], :output=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_download_url_response"}}, :get_report_job=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}], :output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_job_response"}}, :run_report_job=>{:input=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:report_job}], :output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"run_report_job_response"}}}
11
- REPORTSERVICE_TYPES = {:OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :ReportQuery=>{:fields=>[{:type=>"Dimension", :min_occurs=>0, :max_occurs=>nil, :name=>:dimensions}, {:type=>"Column", :min_occurs=>0, :max_occurs=>nil, :name=>:columns}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"DateRangeType", :min_occurs=>0, :max_occurs=>1, :name=>:date_range_type}, {:type=>"DimensionFilter", :min_occurs=>0, :max_occurs=>nil, :name=>:dimension_filters}]}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:year}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:month}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:day}]}, :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}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :ReportJob=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"ReportQuery", :min_occurs=>0, :max_occurs=>1, :name=>:report_query}, {:type=>"ReportJobStatus", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_status}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}}
10
+ REPORTSERVICE_METHODS = {:get_report_download_url=>{:original_name=>"getReportDownloadURL", :input=>[{:type=>"long", :min_occurs=>0, :name=>:report_job_id, :max_occurs=>1}, {:type=>"ExportFormat", :min_occurs=>0, :name=>:export_format, :max_occurs=>1}], :output=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_report_download_url_response"}}, :get_report_job=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:report_job_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_report_job_response"}}, :run_report_job=>{:input=>[{:type=>"ReportJob", :min_occurs=>0, :name=>:report_job, :max_occurs=>1}], :output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"run_report_job_response"}}}
11
+ REPORTSERVICE_TYPES = {:OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :Authentication=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:authentication_type, :max_occurs=>1}]}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:year, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:month, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:day, :max_occurs=>1}]}, :ReportQuery=>{:fields=>[{:type=>"Dimension", :min_occurs=>0, :name=>:dimensions, :max_occurs=>:unbounded}, {:type=>"Column", :min_occurs=>0, :name=>:columns, :max_occurs=>:unbounded}, {:type=>"Date", :min_occurs=>0, :name=>:start_date, :max_occurs=>1}, {:type=>"Date", :min_occurs=>0, :name=>:end_date, :max_occurs=>1}, {:type=>"DateRangeType", :min_occurs=>0, :name=>:date_range_type, :max_occurs=>1}, {:type=>"DimensionFilter", :min_occurs=>0, :name=>:dimension_filters, :max_occurs=>:unbounded}]}, :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}]}, :ReportJob=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"ReportQuery", :min_occurs=>0, :name=>:report_query, :max_occurs=>1}, {:type=>"ReportJobStatus", :min_occurs=>0, :name=>:report_job_status, :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
+ REPORTSERVICE_NAMESPACES = []
12
13
 
13
14
  def self.get_method_signature(method_name)
14
15
  return REPORTSERVICE_METHODS[method_name.to_sym]
@@ -17,6 +18,10 @@ module DfpApi; module V201104; module ReportService
17
18
  def self.get_type_signature(type_name)
18
19
  return REPORTSERVICE_TYPES[type_name.to_sym]
19
20
  end
21
+
22
+ def self.get_namespace(index)
23
+ return REPORTSERVICE_NAMESPACES[index]
24
+ end
20
25
  end
21
26
 
22
27
  # Base class for exceptions.
@@ -29,7 +34,7 @@ module DfpApi; module V201104; module ReportService
29
34
  class ApiException < ApplicationException
30
35
  attr_reader :errors # ApiError
31
36
  def initialize(exception_fault)
32
- @array_fields = [] if !defined?(@array_fields)
37
+ @array_fields ||= []
33
38
  @array_fields << 'errors'
34
39
  super(exception_fault)
35
40
  end
@@ -3,16 +3,20 @@
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.4.0 on 2011-06-17 15:27:14.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:17.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/user_service_registry'
10
10
 
11
11
  module DfpApi; module V201104; module UserService
12
12
  class UserService < AdsCommon::SavonService
13
- def initialize(endpoint)
13
+ def initialize(api, endpoint)
14
14
  namespace = 'https://www.google.com/apis/ads/publisher/v201104'
15
- super(endpoint, namespace)
15
+ super(api, endpoint, namespace, :v201104)
16
+ end
17
+
18
+ def create_users(*args)
19
+ return execute_action('create_users', args)
16
20
  end
17
21
 
18
22
  def update_users(*args)
@@ -43,10 +47,6 @@ module DfpApi; module V201104; module UserService
43
47
  return execute_action('update_user', args)
44
48
  end
45
49
 
46
- def create_users(*args)
47
- return execute_action('create_users', args)
48
- end
49
-
50
50
  private
51
51
 
52
52
  def get_service_registry()
@@ -3,12 +3,13 @@
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.4.0 on 2011-06-17 15:27:14.
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:17.
7
7
 
8
8
  module DfpApi; module V201104; module UserService
9
9
  class UserServiceRegistry
10
- USERSERVICE_METHODS = {:update_users=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>nil, :name=>:users}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"update_users_response"}}, :get_all_roles=>{:input=>[], :output=>{:fields=>[{:type=>"Role", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"get_all_roles_response"}}, :get_user=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_id}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_user_response"}}, :get_users_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"UserPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_users_by_statement_response"}}, :perform_user_action=>{:input=>[{:type=>"UserAction", :min_occurs=>0, :max_occurs=>1, :name=>:user_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_user_action_response"}}, :create_user=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_user_response"}}, :update_user=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_user_response"}}, :create_users=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>nil, :name=>:users}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>nil, :name=>:rval}], :name=>"create_users_response"}}}
11
- USERSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>nil, :name=>:values}]}, :UserRecord=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:role_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:role_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preferred_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_record_type}]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :ActivateUsers=>{:fields=>[], :base=>"UserAction"}, :UserPage=>{: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=>"User", :min_occurs=>0, :max_occurs=>nil, :name=>:results}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :DeactivateUsers=>{:fields=>[], :base=>"UserAction"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :Role=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}]}, :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}]}, :UserAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_action_type}], :abstract=>true}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :User=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_active}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_email_notification_allowed}], :base=>"UserRecord"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}}
10
+ USERSERVICE_METHODS = {:create_users=>{:input=>[{:type=>"User", :min_occurs=>0, :name=>:users, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"create_users_response"}}, :update_users=>{:input=>[{:type=>"User", :min_occurs=>0, :name=>:users, :max_occurs=>:unbounded}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"update_users_response"}}, :get_all_roles=>{:input=>[], :output=>{:fields=>[{:type=>"Role", :min_occurs=>0, :name=>:rval, :max_occurs=>:unbounded}], :name=>"get_all_roles_response"}}, :get_user=>{:input=>[{:type=>"long", :min_occurs=>0, :name=>:user_id, :max_occurs=>1}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_user_response"}}, :get_users_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"UserPage", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"get_users_by_statement_response"}}, :perform_user_action=>{:input=>[{:type=>"UserAction", :min_occurs=>0, :name=>:user_action, :max_occurs=>1}, {:type=>"Statement", :min_occurs=>0, :name=>:filter_statement, :max_occurs=>1}], :output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"perform_user_action_response"}}, :create_user=>{:input=>[{:type=>"User", :min_occurs=>0, :name=>:user, :max_occurs=>1}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"create_user_response"}}, :update_user=>{:input=>[{:type=>"User", :min_occurs=>0, :name=>:user, :max_occurs=>1}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :name=>:rval, :max_occurs=>1}], :name=>"update_user_response"}}}
11
+ USERSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :UserRecord=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:email, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:role_id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:role_name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:preferred_locale, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:user_record_type, :max_occurs=>1}]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:num_changes, :max_occurs=>1}]}, :OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :ActivateUsers=>{:base=>"UserAction", :fields=>[]}, :UserPage=>{: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=>"User", :min_occurs=>0, :name=>:results, :max_occurs=>:unbounded}]}, :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}]}, :DeactivateUsers=>{:base=>"UserAction", :fields=>[]}, :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}]}, :Role=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:description, :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}]}, :UserAction=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:user_action_type, :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}]}, :User=>{:base=>"UserRecord", :fields=>[{:type=>"boolean", :min_occurs=>0, :name=>:is_active, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_email_notification_allowed, :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
+ USERSERVICE_NAMESPACES = []
12
13
 
13
14
  def self.get_method_signature(method_name)
14
15
  return USERSERVICE_METHODS[method_name.to_sym]
@@ -17,6 +18,10 @@ module DfpApi; module V201104; module UserService
17
18
  def self.get_type_signature(type_name)
18
19
  return USERSERVICE_TYPES[type_name.to_sym]
19
20
  end
21
+
22
+ def self.get_namespace(index)
23
+ return USERSERVICE_NAMESPACES[index]
24
+ end
20
25
  end
21
26
 
22
27
  # Base class for exceptions.
@@ -29,7 +34,7 @@ module DfpApi; module V201104; module UserService
29
34
  class ApiException < ApplicationException
30
35
  attr_reader :errors # ApiError
31
36
  def initialize(exception_fault)
32
- @array_fields = [] if !defined?(@array_fields)
37
+ @array_fields ||= []
33
38
  @array_fields << 'errors'
34
39
  super(exception_fault)
35
40
  end
@@ -36,7 +36,8 @@ class TestDfpApi < Test::Unit::TestCase
36
36
  def test_issue_16
37
37
  assert_nothing_raised do
38
38
  service = StubService.new(
39
- 'https://www.google.com/apis/ads/publisher/v201101/LineItemService')
39
+ 'https://www.google.com/apis/ads/publisher/v201104/LineItemService',
40
+ :v201104)
40
41
  result = service.stub_get_line_items_by_statement(get_xml_text)
41
42
  targeting = result[:results][0][:targeting][:inventory_targeting]
42
43
  assert_equal([1234567, 23456], targeting[:targeted_placement_ids])
@@ -44,7 +45,10 @@ class TestDfpApi < Test::Unit::TestCase
44
45
  end
45
46
 
46
47
  def get_xml_text
47
- return <<EOT
48
+ return DATA.read
49
+ end
50
+ end
51
+ __END__
48
52
  <?xml version="1.0"?>
49
53
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
50
54
  <soap:Header>
@@ -149,6 +153,3 @@ class TestDfpApi < Test::Unit::TestCase
149
153
  </getLineItemsByStatementResponse>
150
154
  </soap:Body>
151
155
  </soap:Envelope>
152
- EOT
153
- end
154
- end
@@ -25,10 +25,16 @@ require 'dfp_api'
25
25
 
26
26
  class TestDfpApi < Test::Unit::TestCase
27
27
  DEFAULT_CONFIG_HASH = {
28
- :service => {:use_ruby_names => false,
29
- :environment => 'sandbox'},
30
- :authentication => {:method => 'ClientLogin',
31
- :email => 'root@example.com'}
28
+ :service => {
29
+ :environment => 'sandbox'
30
+ },
31
+ :authentication => {
32
+ :method => 'ClientLogin',
33
+ :email => 'root@example.com',
34
+ :password => 'mySecretPassword',
35
+ :application_name => 'ruby_test_suit',
36
+ :network_code => 1234567
37
+ }
32
38
  }
33
39
 
34
40
  DEFAULT_CONFIG_FILENAME = File.expand_path('../test_config.yml', __FILE__)
@@ -44,21 +50,37 @@ class TestDfpApi < Test::Unit::TestCase
44
50
  # Test initializer with hash argument.
45
51
  def test_initialize_hash
46
52
  assert_nothing_raised do
47
- config = DfpApi::Api.new(DEFAULT_CONFIG_HASH)
53
+ dfp_api = DfpApi::Api.new(DEFAULT_CONFIG_HASH)
54
+ check_config_data(dfp_api.config)
48
55
  end
49
56
  end
50
57
 
51
58
  # Test initializer with filename argument.
52
59
  def test_initialize_filename
53
60
  assert_nothing_raised do
54
- config = DfpApi::Api.new(DEFAULT_CONFIG_FILENAME)
61
+ dfp_api = DfpApi::Api.new(DEFAULT_CONFIG_FILENAME)
62
+ check_config_data(dfp_api.config)
55
63
  end
56
64
  end
57
65
 
58
66
  # Test initializer with bad filename argument.
59
67
  def test_initialize_filename_not_exists
60
68
  assert_raises(Errno::ENOENT) do
61
- config = DfpApi::Api.new(DEFAULT_FAILURE_FILENAME)
69
+ dfp_api = DfpApi::Api.new(DEFAULT_FAILURE_FILENAME)
70
+ check_config_data(dfp_api.config)
62
71
  end
63
72
  end
73
+
74
+ # Utility method to check the actual data.
75
+ def check_config_data(config)
76
+ assert_equal('ClientLogin', config.read('authentication.method'))
77
+ assert_equal('ruby_test_suit',
78
+ config.read('authentication.application_name'))
79
+ assert_equal('mySecretPassword', config.read('authentication.password'))
80
+ assert_equal('root@example.com', config.read('authentication.email'))
81
+ assert_equal(1234567, config.read('authentication.network_code'))
82
+ assert_equal(:SANDBOX, config.read('service.environment'))
83
+ assert_nil(config.read('item.not.exists'))
84
+ assert_equal(:default, config.read('item.not.exists', :default))
85
+ end
64
86
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-dfp-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Danial Klimkin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-20 00:00:00 +04:00
18
+ date: 2011-08-02 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 15
29
+ hash: 11
30
30
  segments:
31
31
  - 0
32
- - 4
32
+ - 5
33
33
  - 0
34
- version: 0.4.0
34
+ version: 0.5.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -40,14 +40,14 @@ dependencies:
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ~>
43
+ - - "="
44
44
  - !ruby/object:Gem::Version
45
- hash: 57
45
+ hash: 55
46
46
  segments:
47
47
  - 0
48
48
  - 9
49
- - 1
50
- version: 0.9.1
49
+ - 6
50
+ version: 0.9.6
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  description: google-dfp-api is a DFP API client library for Ruby
@@ -61,302 +61,306 @@ extra_rdoc_files:
61
61
  - COPYING
62
62
  - ChangeLog
63
63
  files:
64
- - lib/dfp_api/v201101/order_service_registry.rb
65
- - lib/dfp_api/v201101/order_service.rb
66
- - lib/dfp_api/v201101/custom_targeting_service_registry.rb
67
- - lib/dfp_api/v201101/user_service.rb
68
- - lib/dfp_api/v201101/user_service_registry.rb
69
- - lib/dfp_api/v201101/company_service_registry.rb
70
- - lib/dfp_api/v201101/report_service.rb
71
- - lib/dfp_api/v201101/report_service_registry.rb
72
- - lib/dfp_api/v201101/line_item_service.rb
73
- - lib/dfp_api/v201101/line_item_service_registry.rb
74
- - lib/dfp_api/v201101/inventory_service.rb
64
+ - lib/dfp_api.rb
65
+ - lib/dfp_api/client_login_header_handler.rb
66
+ - lib/dfp_api/extensions.rb
67
+ - lib/dfp_api/api_config.rb
75
68
  - lib/dfp_api/v201101/inventory_service_registry.rb
76
- - lib/dfp_api/v201101/forecast_service.rb
69
+ - lib/dfp_api/v201101/report_service.rb
77
70
  - lib/dfp_api/v201101/forecast_service_registry.rb
78
- - lib/dfp_api/v201101/placement_service.rb
79
- - lib/dfp_api/v201101/placement_service_registry.rb
80
- - lib/dfp_api/v201101/publisher_query_language_service.rb
81
- - lib/dfp_api/v201101/publisher_query_language_service_registry.rb
82
- - lib/dfp_api/v201101/creative_service.rb
83
- - lib/dfp_api/v201101/creative_service_registry.rb
84
- - lib/dfp_api/v201101/network_service.rb
71
+ - lib/dfp_api/v201101/line_item_service_registry.rb
72
+ - lib/dfp_api/v201101/report_service_registry.rb
85
73
  - lib/dfp_api/v201101/network_service_registry.rb
86
74
  - lib/dfp_api/v201101/line_item_creative_association_service.rb
75
+ - lib/dfp_api/v201101/publisher_query_language_service.rb
76
+ - lib/dfp_api/v201101/forecast_service.rb
87
77
  - lib/dfp_api/v201101/line_item_creative_association_service_registry.rb
78
+ - lib/dfp_api/v201101/company_service_registry.rb
79
+ - lib/dfp_api/v201101/creative_service_registry.rb
80
+ - lib/dfp_api/v201101/network_service.rb
88
81
  - lib/dfp_api/v201101/company_service.rb
82
+ - lib/dfp_api/v201101/order_service.rb
89
83
  - lib/dfp_api/v201101/custom_targeting_service.rb
90
- - lib/dfp_api/v201104/order_service_registry.rb
91
- - lib/dfp_api/v201104/order_service.rb
92
- - lib/dfp_api/v201104/custom_targeting_service_registry.rb
93
- - lib/dfp_api/v201104/user_service.rb
94
- - lib/dfp_api/v201104/user_service_registry.rb
95
- - lib/dfp_api/v201104/company_service_registry.rb
96
- - lib/dfp_api/v201104/report_service.rb
97
- - lib/dfp_api/v201104/report_service_registry.rb
98
- - lib/dfp_api/v201104/line_item_service.rb
99
- - lib/dfp_api/v201104/line_item_service_registry.rb
100
- - lib/dfp_api/v201104/inventory_service.rb
84
+ - lib/dfp_api/v201101/user_service_registry.rb
85
+ - lib/dfp_api/v201101/creative_service.rb
86
+ - lib/dfp_api/v201101/line_item_service.rb
87
+ - lib/dfp_api/v201101/user_service.rb
88
+ - lib/dfp_api/v201101/publisher_query_language_service_registry.rb
89
+ - lib/dfp_api/v201101/placement_service.rb
90
+ - lib/dfp_api/v201101/inventory_service.rb
91
+ - lib/dfp_api/v201101/placement_service_registry.rb
92
+ - lib/dfp_api/v201101/order_service_registry.rb
93
+ - lib/dfp_api/v201101/custom_targeting_service_registry.rb
101
94
  - lib/dfp_api/v201104/inventory_service_registry.rb
102
- - lib/dfp_api/v201104/forecast_service.rb
95
+ - lib/dfp_api/v201104/report_service.rb
103
96
  - lib/dfp_api/v201104/forecast_service_registry.rb
104
- - lib/dfp_api/v201104/placement_service.rb
105
- - lib/dfp_api/v201104/placement_service_registry.rb
106
- - lib/dfp_api/v201104/publisher_query_language_service.rb
107
- - lib/dfp_api/v201104/publisher_query_language_service_registry.rb
108
- - lib/dfp_api/v201104/creative_service.rb
109
- - lib/dfp_api/v201104/creative_service_registry.rb
110
- - lib/dfp_api/v201104/network_service.rb
97
+ - lib/dfp_api/v201104/line_item_service_registry.rb
98
+ - lib/dfp_api/v201104/report_service_registry.rb
111
99
  - lib/dfp_api/v201104/network_service_registry.rb
112
100
  - lib/dfp_api/v201104/line_item_creative_association_service.rb
101
+ - lib/dfp_api/v201104/publisher_query_language_service.rb
102
+ - lib/dfp_api/v201104/forecast_service.rb
113
103
  - lib/dfp_api/v201104/line_item_creative_association_service_registry.rb
104
+ - lib/dfp_api/v201104/company_service_registry.rb
105
+ - lib/dfp_api/v201104/creative_service_registry.rb
106
+ - lib/dfp_api/v201104/network_service.rb
114
107
  - lib/dfp_api/v201104/company_service.rb
108
+ - lib/dfp_api/v201104/order_service.rb
115
109
  - lib/dfp_api/v201104/custom_targeting_service.rb
116
- - lib/dfp_api/credential_handler.rb
117
- - lib/dfp_api/errors.rb
118
- - lib/dfp_api/extensions.rb
119
- - lib/dfp_api/v201103/order_service_registry.rb
120
- - lib/dfp_api/v201103/order_service.rb
121
- - lib/dfp_api/v201103/custom_targeting_service_registry.rb
122
- - lib/dfp_api/v201103/user_service.rb
123
- - lib/dfp_api/v201103/user_service_registry.rb
124
- - lib/dfp_api/v201103/company_service_registry.rb
125
- - lib/dfp_api/v201103/report_service.rb
126
- - lib/dfp_api/v201103/report_service_registry.rb
127
- - lib/dfp_api/v201103/line_item_service.rb
128
- - lib/dfp_api/v201103/line_item_service_registry.rb
129
- - lib/dfp_api/v201103/inventory_service.rb
110
+ - lib/dfp_api/v201104/user_service_registry.rb
111
+ - lib/dfp_api/v201104/creative_service.rb
112
+ - lib/dfp_api/v201104/line_item_service.rb
113
+ - lib/dfp_api/v201104/user_service.rb
114
+ - lib/dfp_api/v201104/publisher_query_language_service_registry.rb
115
+ - lib/dfp_api/v201104/placement_service.rb
116
+ - lib/dfp_api/v201104/inventory_service.rb
117
+ - lib/dfp_api/v201104/placement_service_registry.rb
118
+ - lib/dfp_api/v201104/order_service_registry.rb
119
+ - lib/dfp_api/v201104/custom_targeting_service_registry.rb
130
120
  - lib/dfp_api/v201103/inventory_service_registry.rb
131
- - lib/dfp_api/v201103/forecast_service.rb
121
+ - lib/dfp_api/v201103/report_service.rb
132
122
  - lib/dfp_api/v201103/forecast_service_registry.rb
133
- - lib/dfp_api/v201103/placement_service.rb
134
- - lib/dfp_api/v201103/placement_service_registry.rb
135
- - lib/dfp_api/v201103/publisher_query_language_service.rb
136
- - lib/dfp_api/v201103/publisher_query_language_service_registry.rb
137
- - lib/dfp_api/v201103/creative_service.rb
138
- - lib/dfp_api/v201103/creative_service_registry.rb
139
- - lib/dfp_api/v201103/network_service.rb
123
+ - lib/dfp_api/v201103/line_item_service_registry.rb
124
+ - lib/dfp_api/v201103/report_service_registry.rb
140
125
  - lib/dfp_api/v201103/network_service_registry.rb
141
126
  - lib/dfp_api/v201103/line_item_creative_association_service.rb
127
+ - lib/dfp_api/v201103/publisher_query_language_service.rb
128
+ - lib/dfp_api/v201103/forecast_service.rb
142
129
  - lib/dfp_api/v201103/line_item_creative_association_service_registry.rb
130
+ - lib/dfp_api/v201103/company_service_registry.rb
131
+ - lib/dfp_api/v201103/creative_service_registry.rb
132
+ - lib/dfp_api/v201103/network_service.rb
143
133
  - lib/dfp_api/v201103/company_service.rb
134
+ - lib/dfp_api/v201103/order_service.rb
144
135
  - lib/dfp_api/v201103/custom_targeting_service.rb
145
- - lib/dfp_api/api_config.rb
146
- - lib/dfp_api.rb
136
+ - lib/dfp_api/v201103/user_service_registry.rb
137
+ - lib/dfp_api/v201103/creative_service.rb
138
+ - lib/dfp_api/v201103/line_item_service.rb
139
+ - lib/dfp_api/v201103/user_service.rb
140
+ - lib/dfp_api/v201103/publisher_query_language_service_registry.rb
141
+ - lib/dfp_api/v201103/placement_service.rb
142
+ - lib/dfp_api/v201103/inventory_service.rb
143
+ - lib/dfp_api/v201103/placement_service_registry.rb
144
+ - lib/dfp_api/v201103/order_service_registry.rb
145
+ - lib/dfp_api/v201103/custom_targeting_service_registry.rb
146
+ - lib/dfp_api/errors.rb
147
+ - lib/dfp_api/credential_handler.rb
148
+ - examples/v201101/order_service/approve_orders.rb
149
+ - examples/v201101/order_service/create_orders.rb
150
+ - examples/v201101/order_service/update_orders.rb
151
+ - examples/v201101/order_service/get_order.rb
152
+ - examples/v201101/order_service/get_orders_by_statement.rb
153
+ - examples/v201101/order_service/get_all_orders.rb
154
+ - examples/v201101/network_service/get_all_networks.rb
155
+ - examples/v201101/network_service/get_current_network.rb
156
+ - examples/v201101/creative_service/get_all_creatives.rb
157
+ - examples/v201101/creative_service/update_creatives.rb
158
+ - examples/v201101/creative_service/copy_image_creatives.rb
159
+ - examples/v201101/creative_service/get_creative.rb
160
+ - examples/v201101/creative_service/get_creatives_by_statement.rb
161
+ - examples/v201101/creative_service/create_creatives.rb
162
+ - examples/v201101/company_service/get_company.rb
147
163
  - examples/v201101/company_service/create_companies.rb
148
- - examples/v201101/company_service/get_all_companies.rb
149
164
  - examples/v201101/company_service/get_companies_by_statement.rb
150
- - examples/v201101/company_service/get_company.rb
165
+ - examples/v201101/company_service/get_all_companies.rb
151
166
  - examples/v201101/company_service/update_companies.rb
167
+ - examples/v201101/line_item_service/activate_line_items.rb
168
+ - examples/v201101/line_item_service/update_line_items.rb
169
+ - examples/v201101/line_item_service/get_all_line_items.rb
170
+ - examples/v201101/line_item_service/target_custom_criteria.rb
171
+ - examples/v201101/line_item_service/get_line_item.rb
172
+ - examples/v201101/line_item_service/create_line_items.rb
173
+ - examples/v201101/line_item_service/get_line_items_by_statement.rb
174
+ - examples/v201101/custom_targeting_service/update_custom_targeting_keys.rb
175
+ - examples/v201101/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
152
176
  - examples/v201101/custom_targeting_service/create_custom_targeting_keys_and_values.rb
177
+ - examples/v201101/custom_targeting_service/get_custom_targeting_values_by_statement.rb
178
+ - examples/v201101/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
153
179
  - examples/v201101/custom_targeting_service/delete_custom_targeting_keys.rb
154
180
  - examples/v201101/custom_targeting_service/delete_custom_targeting_values.rb
155
- - examples/v201101/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
156
- - examples/v201101/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
157
- - examples/v201101/custom_targeting_service/get_custom_targeting_values_by_statement.rb
158
- - examples/v201101/custom_targeting_service/update_custom_targeting_keys.rb
159
181
  - examples/v201101/custom_targeting_service/update_custom_targeting_values.rb
160
- - examples/v201101/line_item_service/create_line_items.rb
161
- - examples/v201101/line_item_service/get_line_items_by_statement.rb
162
- - examples/v201101/line_item_service/activate_line_items.rb
163
- - examples/v201101/line_item_service/get_all_line_items.rb
164
- - examples/v201101/line_item_service/get_line_item.rb
165
- - examples/v201101/line_item_service/target_custom_criteria.rb
166
- - examples/v201101/line_item_service/update_line_items.rb
167
- - examples/v201101/network_service/get_all_networks.rb
168
- - examples/v201101/network_service/get_current_network.rb
169
- - examples/v201101/order_service/create_orders.rb
170
- - examples/v201101/order_service/get_all_orders.rb
171
- - examples/v201101/order_service/approve_orders.rb
172
- - examples/v201101/order_service/get_order.rb
173
- - examples/v201101/order_service/get_orders_by_statement.rb
174
- - examples/v201101/order_service/update_orders.rb
175
- - examples/v201101/placement_service/create_placements.rb
176
- - examples/v201101/placement_service/deactivate_placements.rb
177
- - examples/v201101/placement_service/get_all_placements.rb
182
+ - examples/v201101/report_service/run_sales_report.rb
183
+ - examples/v201101/report_service/download_report.rb
184
+ - examples/v201101/report_service/run_delivery_report.rb
185
+ - examples/v201101/report_service/run_inventory_report.rb
186
+ - examples/v201101/placement_service/update_placements.rb
178
187
  - examples/v201101/placement_service/get_placement.rb
188
+ - examples/v201101/placement_service/get_all_placements.rb
179
189
  - examples/v201101/placement_service/get_placements_by_statement.rb
180
- - examples/v201101/placement_service/update_placements.rb
181
- - examples/v201101/publisher_query_language_service/get_all_cities.rb
182
- - examples/v201101/publisher_query_language_service/get_all_countries.rb
183
- - examples/v201101/publisher_query_language_service/get_all_metros.rb
184
- - examples/v201101/publisher_query_language_service/get_all_regions.rb
190
+ - examples/v201101/placement_service/deactivate_placements.rb
191
+ - examples/v201101/placement_service/create_placements.rb
192
+ - examples/v201101/inventory_service/create_ad_units.rb
193
+ - examples/v201101/inventory_service/update_ad_units.rb
194
+ - examples/v201101/inventory_service/get_ad_unit.rb
195
+ - examples/v201101/inventory_service/deactivate_ad_units.rb
196
+ - examples/v201101/inventory_service/get_ad_units_by_statement.rb
197
+ - examples/v201101/inventory_service/get_all_ad_units.rb
198
+ - examples/v201101/user_service/get_all_roles.rb
199
+ - examples/v201101/user_service/get_users_by_statement.rb
185
200
  - examples/v201101/user_service/create_users.rb
186
201
  - examples/v201101/user_service/get_all_users.rb
187
202
  - examples/v201101/user_service/deactivate_users.rb
188
- - examples/v201101/user_service/get_all_roles.rb
189
- - examples/v201101/user_service/get_user.rb
190
- - examples/v201101/user_service/get_users_by_statement.rb
191
203
  - examples/v201101/user_service/update_users.rb
204
+ - examples/v201101/user_service/get_user.rb
205
+ - examples/v201101/common/oauth_handling.rb
192
206
  - examples/v201101/common/error_handling.rb
193
- - examples/v201101/creative_service/copy_image_creatives.rb
194
- - examples/v201101/creative_service/create_creatives.rb
195
- - examples/v201101/creative_service/get_all_creatives.rb
196
- - examples/v201101/creative_service/get_creative.rb
197
- - examples/v201101/creative_service/get_creatives_by_statement.rb
198
- - examples/v201101/creative_service/update_creatives.rb
199
- - examples/v201101/forecast_service/get_forecast.rb
200
- - examples/v201101/forecast_service/get_forecast_by_id.rb
201
- - examples/v201101/inventory_service/create_ad_units.rb
202
- - examples/v201101/inventory_service/deactivate_ad_units.rb
203
- - examples/v201101/inventory_service/get_ad_unit.rb
204
- - examples/v201101/inventory_service/get_ad_units_by_statement.rb
205
- - examples/v201101/inventory_service/get_all_ad_units.rb
206
- - examples/v201101/inventory_service/update_ad_units.rb
207
- - examples/v201101/line_item_creative_association_service/create_licas.rb
208
- - examples/v201101/line_item_creative_association_service/deactivate_licas.rb
209
- - examples/v201101/line_item_creative_association_service/get_all_licas.rb
207
+ - examples/v201101/line_item_creative_association_service/update_licas.rb
210
208
  - examples/v201101/line_item_creative_association_service/get_lica.rb
211
209
  - examples/v201101/line_item_creative_association_service/get_licas_by_statement.rb
212
- - examples/v201101/line_item_creative_association_service/update_licas.rb
213
- - examples/v201101/report_service/download_report.rb
214
- - examples/v201101/report_service/run_delivery_report.rb
215
- - examples/v201101/report_service/run_inventory_report.rb
216
- - examples/v201101/report_service/run_sales_report.rb
217
- - examples/v201103/common/error_handling.rb
218
- - examples/v201103/company_service/create_companies.rb
219
- - examples/v201103/company_service/get_all_companies.rb
220
- - examples/v201103/company_service/get_companies_by_statement.rb
221
- - examples/v201103/company_service/get_company.rb
222
- - examples/v201103/company_service/update_companies.rb
223
- - examples/v201103/creative_service/copy_image_creatives.rb
224
- - examples/v201103/creative_service/create_creatives.rb
225
- - examples/v201103/creative_service/get_all_creatives.rb
226
- - examples/v201103/creative_service/get_creative.rb
227
- - examples/v201103/creative_service/get_creatives_by_statement.rb
228
- - examples/v201103/creative_service/update_creatives.rb
229
- - examples/v201103/custom_targeting_service/create_custom_targeting_keys_and_values.rb
230
- - examples/v201103/custom_targeting_service/delete_custom_targeting_keys.rb
231
- - examples/v201103/custom_targeting_service/delete_custom_targeting_values.rb
232
- - examples/v201103/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
233
- - examples/v201103/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
234
- - examples/v201103/custom_targeting_service/get_custom_targeting_values_by_statement.rb
235
- - examples/v201103/custom_targeting_service/update_custom_targeting_keys.rb
236
- - examples/v201103/custom_targeting_service/update_custom_targeting_values.rb
237
- - examples/v201103/forecast_service/get_forecast.rb
238
- - examples/v201103/forecast_service/get_forecast_by_id.rb
239
- - examples/v201103/inventory_service/create_ad_units.rb
240
- - examples/v201103/inventory_service/deactivate_ad_units.rb
241
- - examples/v201103/inventory_service/get_ad_unit.rb
242
- - examples/v201103/inventory_service/get_ad_units_by_statement.rb
243
- - examples/v201103/inventory_service/get_all_ad_units.rb
244
- - examples/v201103/inventory_service/update_ad_units.rb
245
- - examples/v201103/line_item_creative_association_service/create_licas.rb
246
- - examples/v201103/line_item_creative_association_service/deactivate_licas.rb
247
- - examples/v201103/line_item_creative_association_service/get_all_licas.rb
248
- - examples/v201103/line_item_creative_association_service/get_lica.rb
249
- - examples/v201103/line_item_creative_association_service/get_licas_by_statement.rb
250
- - examples/v201103/line_item_creative_association_service/update_licas.rb
251
- - examples/v201103/line_item_service/activate_line_items.rb
252
- - examples/v201103/line_item_service/create_line_items.rb
253
- - examples/v201103/line_item_service/get_all_line_items.rb
254
- - examples/v201103/line_item_service/get_line_item.rb
255
- - examples/v201103/line_item_service/get_line_items_by_statement.rb
256
- - examples/v201103/line_item_service/target_custom_criteria.rb
257
- - examples/v201103/line_item_service/update_line_items.rb
258
- - examples/v201103/network_service/get_all_networks.rb
259
- - examples/v201103/network_service/get_current_network.rb
260
- - examples/v201103/order_service/approve_orders.rb
261
- - examples/v201103/order_service/create_orders.rb
262
- - examples/v201103/order_service/get_all_orders.rb
263
- - examples/v201103/order_service/get_order.rb
264
- - examples/v201103/order_service/get_orders_by_statement.rb
265
- - examples/v201103/order_service/update_orders.rb
266
- - examples/v201103/placement_service/create_placements.rb
267
- - examples/v201103/placement_service/deactivate_placements.rb
268
- - examples/v201103/placement_service/get_all_placements.rb
269
- - examples/v201103/placement_service/get_placement.rb
270
- - examples/v201103/placement_service/get_placements_by_statement.rb
271
- - examples/v201103/placement_service/update_placements.rb
272
- - examples/v201103/publisher_query_language_service/get_all_cities.rb
273
- - examples/v201103/publisher_query_language_service/get_all_countries.rb
274
- - examples/v201103/publisher_query_language_service/get_all_metros.rb
275
- - examples/v201103/publisher_query_language_service/get_all_regions.rb
276
- - examples/v201103/report_service/download_report.rb
277
- - examples/v201103/report_service/run_delivery_report.rb
278
- - examples/v201103/report_service/run_inventory_report.rb
279
- - examples/v201103/report_service/run_sales_report.rb
280
- - examples/v201103/user_service/create_users.rb
281
- - examples/v201103/user_service/deactivate_users.rb
282
- - examples/v201103/user_service/get_all_roles.rb
283
- - examples/v201103/user_service/get_all_users.rb
284
- - examples/v201103/user_service/get_user.rb
285
- - examples/v201103/user_service/get_users_by_statement.rb
286
- - examples/v201103/user_service/update_users.rb
287
- - examples/v201104/common/error_handling.rb
288
- - examples/v201104/company_service/create_companies.rb
289
- - examples/v201104/company_service/get_all_companies.rb
290
- - examples/v201104/company_service/get_companies_by_statement.rb
291
- - examples/v201104/company_service/get_company.rb
292
- - examples/v201104/company_service/update_companies.rb
293
- - examples/v201104/creative_service/copy_image_creatives.rb
294
- - examples/v201104/creative_service/create_creatives.rb
210
+ - examples/v201101/line_item_creative_association_service/create_licas.rb
211
+ - examples/v201101/line_item_creative_association_service/get_all_licas.rb
212
+ - examples/v201101/line_item_creative_association_service/deactivate_licas.rb
213
+ - examples/v201101/forecast_service/get_forecast.rb
214
+ - examples/v201101/forecast_service/get_forecast_by_id.rb
215
+ - examples/v201101/publisher_query_language_service/get_all_countries.rb
216
+ - examples/v201101/publisher_query_language_service/get_all_metros.rb
217
+ - examples/v201101/publisher_query_language_service/get_all_cities.rb
218
+ - examples/v201101/publisher_query_language_service/get_all_regions.rb
219
+ - examples/v201104/order_service/approve_orders.rb
220
+ - examples/v201104/order_service/create_orders.rb
221
+ - examples/v201104/order_service/update_orders.rb
222
+ - examples/v201104/order_service/get_order.rb
223
+ - examples/v201104/order_service/get_orders_by_statement.rb
224
+ - examples/v201104/order_service/get_all_orders.rb
225
+ - examples/v201104/network_service/get_all_networks.rb
226
+ - examples/v201104/network_service/get_current_network.rb
295
227
  - examples/v201104/creative_service/get_all_creatives.rb
228
+ - examples/v201104/creative_service/update_creatives.rb
229
+ - examples/v201104/creative_service/copy_image_creatives.rb
296
230
  - examples/v201104/creative_service/get_creative.rb
297
231
  - examples/v201104/creative_service/get_creatives_by_statement.rb
298
- - examples/v201104/creative_service/update_creatives.rb
232
+ - examples/v201104/creative_service/create_creatives.rb
233
+ - examples/v201104/company_service/get_company.rb
234
+ - examples/v201104/company_service/create_companies.rb
235
+ - examples/v201104/company_service/get_companies_by_statement.rb
236
+ - examples/v201104/company_service/get_all_companies.rb
237
+ - examples/v201104/company_service/update_companies.rb
238
+ - examples/v201104/line_item_service/activate_line_items.rb
239
+ - examples/v201104/line_item_service/update_line_items.rb
240
+ - examples/v201104/line_item_service/get_all_line_items.rb
241
+ - examples/v201104/line_item_service/target_custom_criteria.rb
242
+ - examples/v201104/line_item_service/get_line_item.rb
243
+ - examples/v201104/line_item_service/create_line_items.rb
244
+ - examples/v201104/line_item_service/get_line_items_by_statement.rb
245
+ - examples/v201104/custom_targeting_service/update_custom_targeting_keys.rb
246
+ - examples/v201104/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
299
247
  - examples/v201104/custom_targeting_service/create_custom_targeting_keys_and_values.rb
248
+ - examples/v201104/custom_targeting_service/get_custom_targeting_values_by_statement.rb
249
+ - examples/v201104/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
300
250
  - examples/v201104/custom_targeting_service/delete_custom_targeting_keys.rb
301
251
  - examples/v201104/custom_targeting_service/delete_custom_targeting_values.rb
302
- - examples/v201104/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
303
- - examples/v201104/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
304
- - examples/v201104/custom_targeting_service/get_custom_targeting_values_by_statement.rb
305
- - examples/v201104/custom_targeting_service/update_custom_targeting_keys.rb
306
252
  - examples/v201104/custom_targeting_service/update_custom_targeting_values.rb
307
- - examples/v201104/forecast_service/get_forecast.rb
308
- - examples/v201104/forecast_service/get_forecast_by_id.rb
253
+ - examples/v201104/report_service/run_sales_report.rb
254
+ - examples/v201104/report_service/download_report.rb
255
+ - examples/v201104/report_service/run_delivery_report.rb
256
+ - examples/v201104/report_service/run_inventory_report.rb
257
+ - examples/v201104/placement_service/update_placements.rb
258
+ - examples/v201104/placement_service/get_placement.rb
259
+ - examples/v201104/placement_service/get_all_placements.rb
260
+ - examples/v201104/placement_service/get_placements_by_statement.rb
261
+ - examples/v201104/placement_service/deactivate_placements.rb
262
+ - examples/v201104/placement_service/create_placements.rb
309
263
  - examples/v201104/inventory_service/create_ad_units.rb
310
- - examples/v201104/inventory_service/deactivate_ad_units.rb
264
+ - examples/v201104/inventory_service/update_ad_units.rb
311
265
  - examples/v201104/inventory_service/get_ad_unit.rb
266
+ - examples/v201104/inventory_service/deactivate_ad_units.rb
312
267
  - examples/v201104/inventory_service/get_ad_units_by_statement.rb
313
268
  - examples/v201104/inventory_service/get_all_ad_units.rb
314
- - examples/v201104/inventory_service/update_ad_units.rb
315
- - examples/v201104/line_item_creative_association_service/create_licas.rb
316
- - examples/v201104/line_item_creative_association_service/deactivate_licas.rb
317
- - examples/v201104/line_item_creative_association_service/get_all_licas.rb
269
+ - examples/v201104/user_service/get_all_roles.rb
270
+ - examples/v201104/user_service/get_users_by_statement.rb
271
+ - examples/v201104/user_service/create_users.rb
272
+ - examples/v201104/user_service/get_all_users.rb
273
+ - examples/v201104/user_service/deactivate_users.rb
274
+ - examples/v201104/user_service/update_users.rb
275
+ - examples/v201104/user_service/get_user.rb
276
+ - examples/v201104/common/oauth_handling.rb
277
+ - examples/v201104/common/error_handling.rb
278
+ - examples/v201104/line_item_creative_association_service/update_licas.rb
318
279
  - examples/v201104/line_item_creative_association_service/get_lica.rb
319
280
  - examples/v201104/line_item_creative_association_service/get_licas_by_statement.rb
320
- - examples/v201104/line_item_creative_association_service/update_licas.rb
321
- - examples/v201104/line_item_service/activate_line_items.rb
322
- - examples/v201104/line_item_service/create_line_items.rb
323
- - examples/v201104/line_item_service/get_all_line_items.rb
324
- - examples/v201104/line_item_service/get_line_item.rb
325
- - examples/v201104/line_item_service/get_line_items_by_statement.rb
326
- - examples/v201104/line_item_service/target_custom_criteria.rb
327
- - examples/v201104/line_item_service/update_line_items.rb
328
- - examples/v201104/network_service/get_all_networks.rb
329
- - examples/v201104/network_service/get_current_network.rb
330
- - examples/v201104/order_service/approve_orders.rb
331
- - examples/v201104/order_service/create_orders.rb
332
- - examples/v201104/order_service/get_all_orders.rb
333
- - examples/v201104/order_service/get_order.rb
334
- - examples/v201104/order_service/get_orders_by_statement.rb
335
- - examples/v201104/order_service/update_orders.rb
336
- - examples/v201104/placement_service/create_placements.rb
337
- - examples/v201104/placement_service/deactivate_placements.rb
338
- - examples/v201104/placement_service/get_all_placements.rb
339
- - examples/v201104/placement_service/get_placement.rb
340
- - examples/v201104/placement_service/get_placements_by_statement.rb
341
- - examples/v201104/placement_service/update_placements.rb
342
- - examples/v201104/publisher_query_language_service/get_all_cities.rb
281
+ - examples/v201104/line_item_creative_association_service/create_licas.rb
282
+ - examples/v201104/line_item_creative_association_service/get_all_licas.rb
283
+ - examples/v201104/line_item_creative_association_service/deactivate_licas.rb
284
+ - examples/v201104/forecast_service/get_forecast.rb
285
+ - examples/v201104/forecast_service/get_forecast_by_id.rb
343
286
  - examples/v201104/publisher_query_language_service/get_all_countries.rb
344
287
  - examples/v201104/publisher_query_language_service/get_all_metros.rb
288
+ - examples/v201104/publisher_query_language_service/get_all_cities.rb
345
289
  - examples/v201104/publisher_query_language_service/get_all_regions.rb
346
- - examples/v201104/report_service/download_report.rb
347
- - examples/v201104/report_service/run_delivery_report.rb
348
- - examples/v201104/report_service/run_inventory_report.rb
349
- - examples/v201104/report_service/run_sales_report.rb
350
- - examples/v201104/user_service/create_users.rb
351
- - examples/v201104/user_service/deactivate_users.rb
352
- - examples/v201104/user_service/get_all_roles.rb
353
- - examples/v201104/user_service/get_all_users.rb
354
- - examples/v201104/user_service/get_user.rb
355
- - examples/v201104/user_service/get_users_by_statement.rb
356
- - examples/v201104/user_service/update_users.rb
290
+ - examples/v201103/order_service/approve_orders.rb
291
+ - examples/v201103/order_service/create_orders.rb
292
+ - examples/v201103/order_service/update_orders.rb
293
+ - examples/v201103/order_service/get_order.rb
294
+ - examples/v201103/order_service/get_orders_by_statement.rb
295
+ - examples/v201103/order_service/get_all_orders.rb
296
+ - examples/v201103/network_service/get_all_networks.rb
297
+ - examples/v201103/network_service/get_current_network.rb
298
+ - examples/v201103/creative_service/get_all_creatives.rb
299
+ - examples/v201103/creative_service/update_creatives.rb
300
+ - examples/v201103/creative_service/copy_image_creatives.rb
301
+ - examples/v201103/creative_service/get_creative.rb
302
+ - examples/v201103/creative_service/get_creatives_by_statement.rb
303
+ - examples/v201103/creative_service/create_creatives.rb
304
+ - examples/v201103/company_service/get_company.rb
305
+ - examples/v201103/company_service/create_companies.rb
306
+ - examples/v201103/company_service/get_companies_by_statement.rb
307
+ - examples/v201103/company_service/get_all_companies.rb
308
+ - examples/v201103/company_service/update_companies.rb
309
+ - examples/v201103/line_item_service/activate_line_items.rb
310
+ - examples/v201103/line_item_service/update_line_items.rb
311
+ - examples/v201103/line_item_service/get_all_line_items.rb
312
+ - examples/v201103/line_item_service/target_custom_criteria.rb
313
+ - examples/v201103/line_item_service/get_line_item.rb
314
+ - examples/v201103/line_item_service/create_line_items.rb
315
+ - examples/v201103/line_item_service/get_line_items_by_statement.rb
316
+ - examples/v201103/custom_targeting_service/update_custom_targeting_keys.rb
317
+ - examples/v201103/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb
318
+ - examples/v201103/custom_targeting_service/create_custom_targeting_keys_and_values.rb
319
+ - examples/v201103/custom_targeting_service/get_custom_targeting_values_by_statement.rb
320
+ - examples/v201103/custom_targeting_service/get_custom_targeting_keys_by_statement.rb
321
+ - examples/v201103/custom_targeting_service/delete_custom_targeting_keys.rb
322
+ - examples/v201103/custom_targeting_service/delete_custom_targeting_values.rb
323
+ - examples/v201103/custom_targeting_service/update_custom_targeting_values.rb
324
+ - examples/v201103/report_service/run_sales_report.rb
325
+ - examples/v201103/report_service/download_report.rb
326
+ - examples/v201103/report_service/run_delivery_report.rb
327
+ - examples/v201103/report_service/run_inventory_report.rb
328
+ - examples/v201103/placement_service/update_placements.rb
329
+ - examples/v201103/placement_service/get_placement.rb
330
+ - examples/v201103/placement_service/get_all_placements.rb
331
+ - examples/v201103/placement_service/get_placements_by_statement.rb
332
+ - examples/v201103/placement_service/deactivate_placements.rb
333
+ - examples/v201103/placement_service/create_placements.rb
334
+ - examples/v201103/inventory_service/create_ad_units.rb
335
+ - examples/v201103/inventory_service/update_ad_units.rb
336
+ - examples/v201103/inventory_service/get_ad_unit.rb
337
+ - examples/v201103/inventory_service/deactivate_ad_units.rb
338
+ - examples/v201103/inventory_service/get_ad_units_by_statement.rb
339
+ - examples/v201103/inventory_service/get_all_ad_units.rb
340
+ - examples/v201103/user_service/get_all_roles.rb
341
+ - examples/v201103/user_service/get_users_by_statement.rb
342
+ - examples/v201103/user_service/create_users.rb
343
+ - examples/v201103/user_service/get_all_users.rb
344
+ - examples/v201103/user_service/deactivate_users.rb
345
+ - examples/v201103/user_service/update_users.rb
346
+ - examples/v201103/user_service/get_user.rb
347
+ - examples/v201103/common/oauth_handling.rb
348
+ - examples/v201103/common/error_handling.rb
349
+ - examples/v201103/line_item_creative_association_service/update_licas.rb
350
+ - examples/v201103/line_item_creative_association_service/get_lica.rb
351
+ - examples/v201103/line_item_creative_association_service/get_licas_by_statement.rb
352
+ - examples/v201103/line_item_creative_association_service/create_licas.rb
353
+ - examples/v201103/line_item_creative_association_service/get_all_licas.rb
354
+ - examples/v201103/line_item_creative_association_service/deactivate_licas.rb
355
+ - examples/v201103/forecast_service/get_forecast.rb
356
+ - examples/v201103/forecast_service/get_forecast_by_id.rb
357
+ - examples/v201103/publisher_query_language_service/get_all_countries.rb
358
+ - examples/v201103/publisher_query_language_service/get_all_metros.rb
359
+ - examples/v201103/publisher_query_language_service/get_all_cities.rb
360
+ - examples/v201103/publisher_query_language_service/get_all_regions.rb
357
361
  - Rakefile
358
- - test/dfp_api/test_dfp_api.rb
359
362
  - test/bugs/test_issue_00000016.rb
363
+ - test/dfp_api/test_dfp_api.rb
360
364
  - README
361
365
  - COPYING
362
366
  - ChangeLog
@@ -395,5 +399,5 @@ signing_key:
395
399
  specification_version: 3
396
400
  summary: Ruby Client libraries for DFP API
397
401
  test_files:
398
- - test/dfp_api/test_dfp_api.rb
399
402
  - test/bugs/test_issue_00000016.rb
403
+ - test/dfp_api/test_dfp_api.rb