google-dfp-api 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/ChangeLog +4 -0
  2. data/README +1 -1
  3. data/Rakefile +2 -2
  4. data/examples/v201103/creative_service/copy_image_creatives.rb +0 -2
  5. data/examples/v201103/creative_service/update_creatives.rb +0 -2
  6. data/examples/v201103/line_item_service/update_line_items.rb +0 -1
  7. data/examples/v201104/creative_service/copy_image_creatives.rb +0 -2
  8. data/examples/v201104/creative_service/update_creatives.rb +0 -2
  9. data/examples/v201104/line_item_service/update_line_items.rb +0 -1
  10. data/examples/v201107/creative_service/copy_image_creatives.rb +0 -2
  11. data/examples/v201107/creative_service/update_creatives.rb +0 -2
  12. data/examples/v201107/line_item_service/update_line_items.rb +0 -1
  13. data/examples/v201108/creative_service/copy_image_creatives.rb +0 -2
  14. data/examples/v201108/creative_service/update_creatives.rb +0 -2
  15. data/examples/v201108/line_item_service/create_line_items.rb +12 -5
  16. data/examples/v201108/line_item_service/update_line_items.rb +0 -1
  17. data/examples/v201108/publisher_query_language_service/get_all_postal_codes.rb +85 -0
  18. data/lib/dfp_api.rb +1 -1
  19. data/lib/dfp_api/api_config.rb +1 -16
  20. data/lib/dfp_api/v201103/company_service.rb +13 -13
  21. data/lib/dfp_api/v201103/company_service_registry.rb +5 -3
  22. data/lib/dfp_api/v201103/creative_service.rb +13 -13
  23. data/lib/dfp_api/v201103/creative_service_registry.rb +5 -3
  24. data/lib/dfp_api/v201103/custom_targeting_service.rb +17 -17
  25. data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +5 -3
  26. data/lib/dfp_api/v201103/forecast_service.rb +5 -5
  27. data/lib/dfp_api/v201103/forecast_service_registry.rb +5 -3
  28. data/lib/dfp_api/v201103/inventory_service.rb +15 -15
  29. data/lib/dfp_api/v201103/inventory_service_registry.rb +5 -3
  30. data/lib/dfp_api/v201103/line_item_creative_association_service.rb +15 -15
  31. data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +5 -3
  32. data/lib/dfp_api/v201103/line_item_service.rb +15 -15
  33. data/lib/dfp_api/v201103/line_item_service_registry.rb +5 -3
  34. data/lib/dfp_api/v201103/network_service.rb +7 -7
  35. data/lib/dfp_api/v201103/network_service_registry.rb +5 -3
  36. data/lib/dfp_api/v201103/order_service.rb +15 -15
  37. data/lib/dfp_api/v201103/order_service_registry.rb +5 -3
  38. data/lib/dfp_api/v201103/placement_service.rb +15 -15
  39. data/lib/dfp_api/v201103/placement_service_registry.rb +5 -3
  40. data/lib/dfp_api/v201103/publisher_query_language_service.rb +3 -3
  41. data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +5 -3
  42. data/lib/dfp_api/v201103/report_service.rb +7 -7
  43. data/lib/dfp_api/v201103/report_service_registry.rb +5 -3
  44. data/lib/dfp_api/v201103/user_service.rb +17 -17
  45. data/lib/dfp_api/v201103/user_service_registry.rb +5 -3
  46. data/lib/dfp_api/v201104/company_service.rb +13 -13
  47. data/lib/dfp_api/v201104/company_service_registry.rb +3 -3
  48. data/lib/dfp_api/v201104/creative_service.rb +13 -13
  49. data/lib/dfp_api/v201104/creative_service_registry.rb +3 -3
  50. data/lib/dfp_api/v201104/custom_targeting_service.rb +17 -17
  51. data/lib/dfp_api/v201104/custom_targeting_service_registry.rb +3 -3
  52. data/lib/dfp_api/v201104/forecast_service.rb +5 -5
  53. data/lib/dfp_api/v201104/forecast_service_registry.rb +3 -3
  54. data/lib/dfp_api/v201104/inventory_service.rb +15 -15
  55. data/lib/dfp_api/v201104/inventory_service_registry.rb +3 -3
  56. data/lib/dfp_api/v201104/line_item_creative_association_service.rb +15 -15
  57. data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +3 -3
  58. data/lib/dfp_api/v201104/line_item_service.rb +15 -15
  59. data/lib/dfp_api/v201104/line_item_service_registry.rb +3 -3
  60. data/lib/dfp_api/v201104/network_service.rb +7 -7
  61. data/lib/dfp_api/v201104/network_service_registry.rb +3 -3
  62. data/lib/dfp_api/v201104/order_service.rb +15 -15
  63. data/lib/dfp_api/v201104/order_service_registry.rb +3 -3
  64. data/lib/dfp_api/v201104/placement_service.rb +15 -15
  65. data/lib/dfp_api/v201104/placement_service_registry.rb +3 -3
  66. data/lib/dfp_api/v201104/publisher_query_language_service.rb +3 -3
  67. data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +3 -3
  68. data/lib/dfp_api/v201104/report_service.rb +7 -7
  69. data/lib/dfp_api/v201104/report_service_registry.rb +3 -3
  70. data/lib/dfp_api/v201104/user_service.rb +17 -17
  71. data/lib/dfp_api/v201104/user_service_registry.rb +3 -3
  72. data/lib/dfp_api/v201107/company_service.rb +13 -13
  73. data/lib/dfp_api/v201107/company_service_registry.rb +3 -3
  74. data/lib/dfp_api/v201107/creative_service.rb +13 -13
  75. data/lib/dfp_api/v201107/creative_service_registry.rb +5 -3
  76. data/lib/dfp_api/v201107/custom_targeting_service.rb +17 -17
  77. data/lib/dfp_api/v201107/custom_targeting_service_registry.rb +3 -3
  78. data/lib/dfp_api/v201107/forecast_service.rb +5 -5
  79. data/lib/dfp_api/v201107/forecast_service_registry.rb +5 -3
  80. data/lib/dfp_api/v201107/inventory_service.rb +17 -17
  81. data/lib/dfp_api/v201107/inventory_service_registry.rb +5 -3
  82. data/lib/dfp_api/v201107/label_service.rb +15 -15
  83. data/lib/dfp_api/v201107/label_service_registry.rb +3 -3
  84. data/lib/dfp_api/v201107/line_item_creative_association_service.rb +15 -15
  85. data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +5 -3
  86. data/lib/dfp_api/v201107/line_item_service.rb +15 -15
  87. data/lib/dfp_api/v201107/line_item_service_registry.rb +5 -3
  88. data/lib/dfp_api/v201107/network_service.rb +7 -7
  89. data/lib/dfp_api/v201107/network_service_registry.rb +5 -3
  90. data/lib/dfp_api/v201107/order_service.rb +15 -15
  91. data/lib/dfp_api/v201107/order_service_registry.rb +3 -3
  92. data/lib/dfp_api/v201107/placement_service.rb +15 -15
  93. data/lib/dfp_api/v201107/placement_service_registry.rb +5 -3
  94. data/lib/dfp_api/v201107/publisher_query_language_service.rb +3 -3
  95. data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +5 -3
  96. data/lib/dfp_api/v201107/report_service.rb +7 -7
  97. data/lib/dfp_api/v201107/report_service_registry.rb +3 -3
  98. data/lib/dfp_api/v201107/user_service.rb +19 -19
  99. data/lib/dfp_api/v201107/user_service_registry.rb +3 -3
  100. data/lib/dfp_api/v201108/company_service.rb +13 -13
  101. data/lib/dfp_api/v201108/company_service_registry.rb +3 -3
  102. data/lib/dfp_api/v201108/creative_service.rb +13 -13
  103. data/lib/dfp_api/v201108/creative_service_registry.rb +3 -3
  104. data/lib/dfp_api/v201108/custom_targeting_service.rb +17 -17
  105. data/lib/dfp_api/v201108/custom_targeting_service_registry.rb +3 -3
  106. data/lib/dfp_api/v201108/forecast_service.rb +5 -5
  107. data/lib/dfp_api/v201108/forecast_service_registry.rb +3 -3
  108. data/lib/dfp_api/v201108/inventory_service.rb +17 -17
  109. data/lib/dfp_api/v201108/inventory_service_registry.rb +3 -3
  110. data/lib/dfp_api/v201108/label_service.rb +15 -15
  111. data/lib/dfp_api/v201108/label_service_registry.rb +3 -3
  112. data/lib/dfp_api/v201108/line_item_creative_association_service.rb +15 -15
  113. data/lib/dfp_api/v201108/line_item_creative_association_service_registry.rb +3 -3
  114. data/lib/dfp_api/v201108/line_item_service.rb +15 -15
  115. data/lib/dfp_api/v201108/line_item_service_registry.rb +3 -3
  116. data/lib/dfp_api/v201108/network_service.rb +7 -7
  117. data/lib/dfp_api/v201108/network_service_registry.rb +3 -3
  118. data/lib/dfp_api/v201108/order_service.rb +15 -15
  119. data/lib/dfp_api/v201108/order_service_registry.rb +3 -3
  120. data/lib/dfp_api/v201108/placement_service.rb +15 -15
  121. data/lib/dfp_api/v201108/placement_service_registry.rb +3 -3
  122. data/lib/dfp_api/v201108/publisher_query_language_service.rb +3 -3
  123. data/lib/dfp_api/v201108/publisher_query_language_service_registry.rb +3 -3
  124. data/lib/dfp_api/v201108/report_service.rb +7 -7
  125. data/lib/dfp_api/v201108/report_service_registry.rb +3 -3
  126. data/lib/dfp_api/v201108/third_party_slot_service.rb +9 -9
  127. data/lib/dfp_api/v201108/third_party_slot_service_registry.rb +3 -3
  128. data/lib/dfp_api/v201108/user_service.rb +19 -19
  129. data/lib/dfp_api/v201108/user_service_registry.rb +3 -3
  130. data/test/bugs/test_issue_00000016.rb +10 -10
  131. data/test/dfp_api/test_dfp_api.rb +1 -1
  132. metadata +362 -366
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:33:54.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:12.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module OrderService
9
11
  class OrderServiceRegistry
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_METHODS = {: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=>:unbounded, :name=>:orders}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_orders_response"}}, :create_orders=>{:input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:orders}], :output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :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"}}}
13
+ ORDERSERVICE_TYPES = {:UnarchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :ResumeOrders=>{:fields=>[], :base=>"OrderAction"}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :OrderAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:order_action_type}], :abstract=>true}, :ApproveOrders=>{:fields=>[], :base=>"OrderAction"}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :RetractOrders=>{:fields=>[], :base=>"OrderAction"}, :SubmitOrdersForApproval=>{:fields=>[], :base=>"OrderAction"}, :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}]}, :DisapproveOrders=>{:fields=>[], :base=>"OrderAction"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :SubmitOrdersForApprovalAndOverbook=>{:fields=>[], :base=>"SubmitOrdersForApproval"}, :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=>:unbounded, :name=>:results}]}, :ArchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :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}]}, :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}]}, :PauseOrders=>{:fields=>[], :base=>"OrderAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ResumeAndOverbookOrders=>{:fields=>[], :base=>"ResumeOrders"}, :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}]}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ApproveAndOverbookOrders=>{:fields=>[], :base=>"ApproveOrders"}}
12
14
  ORDERSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:25.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:54.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/placement_service_registry'
@@ -15,32 +15,32 @@ module DfpApi; module V201103; module PlacementService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def perform_placement_action(*args)
19
- return execute_action('perform_placement_action', args)
18
+ def create_placements(*args, &block)
19
+ return execute_action('create_placements', args, &block)
20
20
  end
21
21
 
22
- def update_placement(*args)
23
- return execute_action('update_placement', args)
22
+ def get_placement(*args, &block)
23
+ return execute_action('get_placement', args, &block)
24
24
  end
25
25
 
26
- def create_placement(*args)
27
- return execute_action('create_placement', args)
26
+ def get_placements_by_statement(*args, &block)
27
+ return execute_action('get_placements_by_statement', args, &block)
28
28
  end
29
29
 
30
- def update_placements(*args)
31
- return execute_action('update_placements', args)
30
+ def perform_placement_action(*args, &block)
31
+ return execute_action('perform_placement_action', args, &block)
32
32
  end
33
33
 
34
- def create_placements(*args)
35
- return execute_action('create_placements', args)
34
+ def update_placement(*args, &block)
35
+ return execute_action('update_placement', args, &block)
36
36
  end
37
37
 
38
- def get_placement(*args)
39
- return execute_action('get_placement', args)
38
+ def create_placement(*args, &block)
39
+ return execute_action('create_placement', args, &block)
40
40
  end
41
41
 
42
- def get_placements_by_statement(*args)
43
- return execute_action('get_placements_by_statement', args)
42
+ def update_placements(*args, &block)
43
+ return execute_action('update_placements', args, &block)
44
44
  end
45
45
 
46
46
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:25.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:54.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module PlacementService
9
11
  class PlacementServiceRegistry
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_METHODS = {:create_placements=>{:input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:placements}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :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"}}, :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=>:unbounded, :name=>:placements}], :output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_placements_response"}}}
13
+ PLACEMENTSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :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=>:unbounded, :name=>:targeted_ad_unit_ids}], :base=>"SiteTargetingInfo"}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :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=>:unbounded, :name=>:results}]}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :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}]}, :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}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :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"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}}
12
14
  PLACEMENTSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:28.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:59.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/publisher_query_language_service_registry'
@@ -15,8 +15,8 @@ module DfpApi; module V201103; module PublisherQueryLanguageService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def select(*args)
19
- return execute_action('select', args)
18
+ def select(*args, &block)
19
+ return execute_action('select', args, &block)
20
20
  end
21
21
 
22
22
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:28.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:59.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module PublisherQueryLanguageService
9
11
  class PublisherQueryLanguageServiceRegistry
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_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"}}}
13
+ PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :ColumnType=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:label_name}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:column_types}, {:type=>"Row", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rows}]}, :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}]}, :Row=>{:fields=>[{:type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}}
12
14
  PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:07.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:31.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/report_service_registry'
@@ -15,16 +15,16 @@ module DfpApi; module V201103; module ReportService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def get_report_download_url(*args)
19
- return execute_action('get_report_download_url', args)
18
+ def get_report_job(*args, &block)
19
+ return execute_action('get_report_job', args, &block)
20
20
  end
21
21
 
22
- def get_report_job(*args)
23
- return execute_action('get_report_job', args)
22
+ def run_report_job(*args, &block)
23
+ return execute_action('run_report_job', args, &block)
24
24
  end
25
25
 
26
- def run_report_job(*args)
27
- return execute_action('run_report_job', args)
26
+ def get_report_download_url(*args, &block)
27
+ return execute_action('get_report_download_url', args, &block)
28
28
  end
29
29
 
30
30
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:08.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:31.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module ReportService
9
11
  class ReportServiceRegistry
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_METHODS = {: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"}}, :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"}}}
13
+ REPORTSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :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}]}, :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}]}, :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}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ReportQuery=>{:fields=>[{:type=>"Dimension", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimensions}, {:type=>"Column", :min_occurs=>0, :max_occurs=>:unbounded, :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=>:unbounded, :name=>:dimension_filters}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}}
12
14
  REPORTSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:01.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:23.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201103/user_service_registry'
@@ -15,36 +15,36 @@ module DfpApi; module V201103; module UserService
15
15
  super(api, endpoint, namespace, :v201103)
16
16
  end
17
17
 
18
- def create_users(*args)
19
- return execute_action('create_users', args)
18
+ def get_user(*args, &block)
19
+ return execute_action('get_user', args, &block)
20
20
  end
21
21
 
22
- def update_users(*args)
23
- return execute_action('update_users', args)
22
+ def get_users_by_statement(*args, &block)
23
+ return execute_action('get_users_by_statement', args, &block)
24
24
  end
25
25
 
26
- def get_all_roles(*args)
27
- return execute_action('get_all_roles', args)
26
+ def create_user(*args, &block)
27
+ return execute_action('create_user', args, &block)
28
28
  end
29
29
 
30
- def get_user(*args)
31
- return execute_action('get_user', args)
30
+ def perform_user_action(*args, &block)
31
+ return execute_action('perform_user_action', args, &block)
32
32
  end
33
33
 
34
- def get_users_by_statement(*args)
35
- return execute_action('get_users_by_statement', args)
34
+ def create_users(*args, &block)
35
+ return execute_action('create_users', args, &block)
36
36
  end
37
37
 
38
- def perform_user_action(*args)
39
- return execute_action('perform_user_action', args)
38
+ def update_user(*args, &block)
39
+ return execute_action('update_user', args, &block)
40
40
  end
41
41
 
42
- def create_user(*args)
43
- return execute_action('create_user', args)
42
+ def get_all_roles(*args, &block)
43
+ return execute_action('get_all_roles', args, &block)
44
44
  end
45
45
 
46
- def update_user(*args)
47
- return execute_action('update_user', args)
46
+ def update_users(*args, &block)
47
+ return execute_action('update_users', args, &block)
48
48
  end
49
49
 
50
50
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-08-02 15:34:01.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:23.
7
+
8
+ require 'dfp_api/errors'
7
9
 
8
10
  module DfpApi; module V201103; module UserService
9
11
  class UserServiceRegistry
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_METHODS = {: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"}}, :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"}}, :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_users=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_users_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"}}, :get_all_roles=>{:input=>[], :output=>{:fields=>[{:type=>"Role", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"get_all_roles_response"}}, :update_users=>{:input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}], :output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_users_response"}}}
13
+ USERSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :ActivateUsers=>{:fields=>[], :base=>"UserAction"}, :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}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :DeactivateUsers=>{:fields=>[], :base=>"UserAction"}, :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}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UserAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_action_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}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :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}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :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=>:unbounded, :name=>:results}]}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}}
12
14
  USERSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.1 on 2011-09-23 16:12:05.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:28:14.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/company_service_registry'
@@ -15,28 +15,28 @@ module DfpApi; module V201104; module CompanyService
15
15
  super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
- def get_company(*args)
19
- return execute_action('get_company', args)
18
+ def update_company(*args, &block)
19
+ return execute_action('update_company', args, &block)
20
20
  end
21
21
 
22
- def update_companies(*args)
23
- return execute_action('update_companies', args)
22
+ def create_companies(*args, &block)
23
+ return execute_action('create_companies', args, &block)
24
24
  end
25
25
 
26
- def update_company(*args)
27
- return execute_action('update_company', args)
26
+ def create_company(*args, &block)
27
+ return execute_action('create_company', args, &block)
28
28
  end
29
29
 
30
- def create_companies(*args)
31
- return execute_action('create_companies', args)
30
+ def get_companies_by_statement(*args, &block)
31
+ return execute_action('get_companies_by_statement', args, &block)
32
32
  end
33
33
 
34
- def create_company(*args)
35
- return execute_action('create_company', args)
34
+ def get_company(*args, &block)
35
+ return execute_action('get_company', args, &block)
36
36
  end
37
37
 
38
- def get_companies_by_statement(*args)
39
- return execute_action('get_companies_by_statement', args)
38
+ def update_companies(*args, &block)
39
+ return execute_action('update_companies', args, &block)
40
40
  end
41
41
 
42
42
  private
@@ -3,14 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.1 on 2011-09-23 16:12:05.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:28:14.
7
7
 
8
8
  require 'dfp_api/errors'
9
9
 
10
10
  module DfpApi; module V201104; module CompanyService
11
11
  class CompanyServiceRegistry
12
- COMPANYSERVICE_METHODS = {:get_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_company_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:company_id}]}, :update_companies=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_companies_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}]}, :update_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_company_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}]}, :create_companies=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_companies_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}]}, :create_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_company_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}]}, :get_companies_by_statement=>{:output=>{:fields=>[{:type=>"CompanyPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_companies_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}}
13
- COMPANYSERVICE_TYPES = {:Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :Company=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Company.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}]}, :CompanyPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :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}]}}
12
+ COMPANYSERVICE_METHODS = {:update_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_company_response"}}, :create_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_companies_response"}}, :create_company=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_company_response"}}, :get_companies_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CompanyPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_companies_by_statement_response"}}, :get_company=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:company_id}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_company_response"}}, :update_companies=>{:input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}], :output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_companies_response"}}}
13
+ COMPANYSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :Company=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Company.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :CompanyPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}}
14
14
  COMPANYSERVICE_NAMESPACES = []
15
15
 
16
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.1 on 2011-09-23 16:12:39.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:28:48.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/creative_service_registry'
@@ -15,28 +15,28 @@ module DfpApi; module V201104; module CreativeService
15
15
  super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
- def update_creative(*args)
19
- return execute_action('update_creative', args)
18
+ def get_creative(*args, &block)
19
+ return execute_action('get_creative', args, &block)
20
20
  end
21
21
 
22
- def update_creatives(*args)
23
- return execute_action('update_creatives', args)
22
+ def get_creatives_by_statement(*args, &block)
23
+ return execute_action('get_creatives_by_statement', args, &block)
24
24
  end
25
25
 
26
- def create_creative(*args)
27
- return execute_action('create_creative', args)
26
+ def update_creative(*args, &block)
27
+ return execute_action('update_creative', args, &block)
28
28
  end
29
29
 
30
- def create_creatives(*args)
31
- return execute_action('create_creatives', args)
30
+ def update_creatives(*args, &block)
31
+ return execute_action('update_creatives', args, &block)
32
32
  end
33
33
 
34
- def get_creative(*args)
35
- return execute_action('get_creative', args)
34
+ def create_creative(*args, &block)
35
+ return execute_action('create_creative', args, &block)
36
36
  end
37
37
 
38
- def get_creatives_by_statement(*args)
39
- return execute_action('get_creatives_by_statement', args)
38
+ def create_creatives(*args, &block)
39
+ return execute_action('create_creatives', args, &block)
40
40
  end
41
41
 
42
42
  private
@@ -3,14 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.1 on 2011-09-23 16:12:39.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:28:48.
7
7
 
8
8
  require 'dfp_api/errors'
9
9
 
10
10
  module DfpApi; module V201104; module CreativeService
11
11
  class CreativeServiceRegistry
12
- CREATIVESERVICE_METHODS = {:update_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_creative_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}]}, :update_creatives=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_creatives_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}]}, :create_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_creative_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}]}, :create_creatives=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_creatives_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}]}, :get_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creative_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}]}, :get_creatives_by_statement=>{:output=>{:fields=>[{:type=>"CreativePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creatives_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}}
13
- CREATIVESERVICE_TYPES = {:ThirdPartyCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:expanded_snippet}], :base=>"Creative"}, :BaseFlashRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :FlashCreative=>{:fields=>[], :base=>"BaseFlashCreative"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_aspect_ratio}]}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BaseImageCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:asset_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :FlashRedirectCreative=>{:fields=>[], :base=>"BaseFlashRedirectCreative"}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BaseImageRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :HasDestinationUrlCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}], :abstract=>true, :base=>"Creative"}, :ImageCreative=>{:fields=>[], :base=>"BaseImageCreative"}, :Creative=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preview_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creative_type}], :abstract=>true}, :ImageRedirectCreative=>{:fields=>[], :base=>"BaseImageRedirectCreative"}, :BaseFlashCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:flash_byte_array}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:click_tag_required}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:flash_asset_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_asset_size}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :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}]}, :CreativePage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}}
12
+ CREATIVESERVICE_METHODS = {:get_creative=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creative_response"}}, :get_creatives_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CreativePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creatives_by_statement_response"}}, :update_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_creative_response"}}, :update_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_creatives_response"}}, :create_creative=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_creative_response"}}, :create_creatives=>{:input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}], :output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_creatives_response"}}}
13
+ CREATIVESERVICE_TYPES = {:ThirdPartyCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:expanded_snippet}], :base=>"Creative"}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :FlashRedirectCreative=>{:fields=>[], :base=>"BaseFlashRedirectCreative"}, :HasDestinationUrlCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}], :abstract=>true, :base=>"Creative"}, :BaseFlashCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:flash_byte_array}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:click_tag_required}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:flash_asset_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_asset_size}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Creative=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preview_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creative_type}], :abstract=>true}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :ImageCreative=>{:fields=>[], :base=>"BaseImageCreative"}, :BaseFlashRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :CreativePage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :ImageRedirectCreative=>{:fields=>[], :base=>"BaseImageRedirectCreative"}, :BaseImageCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:asset_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_aspect_ratio}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BaseImageRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :FlashCreative=>{:fields=>[], :base=>"BaseFlashCreative"}}
14
14
  CREATIVESERVICE_NAMESPACES = []
15
15
 
16
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.1 on 2011-09-23 16:11:55.
6
+ # Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:28:04.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'dfp_api/v201104/custom_targeting_service_registry'
@@ -15,36 +15,36 @@ module DfpApi; module V201104; module CustomTargetingService
15
15
  super(api, endpoint, namespace, :v201104)
16
16
  end
17
17
 
18
- def get_custom_targeting_keys_by_statement(*args)
19
- return execute_action('get_custom_targeting_keys_by_statement', args)
18
+ def perform_custom_targeting_key_action(*args, &block)
19
+ return execute_action('perform_custom_targeting_key_action', args, &block)
20
20
  end
21
21
 
22
- def get_custom_targeting_values_by_statement(*args)
23
- return execute_action('get_custom_targeting_values_by_statement', args)
22
+ def perform_custom_targeting_value_action(*args, &block)
23
+ return execute_action('perform_custom_targeting_value_action', args, &block)
24
24
  end
25
25
 
26
- def perform_custom_targeting_key_action(*args)
27
- return execute_action('perform_custom_targeting_key_action', args)
26
+ def create_custom_targeting_keys(*args, &block)
27
+ return execute_action('create_custom_targeting_keys', args, &block)
28
28
  end
29
29
 
30
- def perform_custom_targeting_value_action(*args)
31
- return execute_action('perform_custom_targeting_value_action', args)
30
+ def update_custom_targeting_keys(*args, &block)
31
+ return execute_action('update_custom_targeting_keys', args, &block)
32
32
  end
33
33
 
34
- def create_custom_targeting_keys(*args)
35
- return execute_action('create_custom_targeting_keys', args)
34
+ def create_custom_targeting_values(*args, &block)
35
+ return execute_action('create_custom_targeting_values', args, &block)
36
36
  end
37
37
 
38
- def update_custom_targeting_keys(*args)
39
- return execute_action('update_custom_targeting_keys', args)
38
+ def update_custom_targeting_values(*args, &block)
39
+ return execute_action('update_custom_targeting_values', args, &block)
40
40
  end
41
41
 
42
- def create_custom_targeting_values(*args)
43
- return execute_action('create_custom_targeting_values', args)
42
+ def get_custom_targeting_keys_by_statement(*args, &block)
43
+ return execute_action('get_custom_targeting_keys_by_statement', args, &block)
44
44
  end
45
45
 
46
- def update_custom_targeting_values(*args)
47
- return execute_action('update_custom_targeting_values', args)
46
+ def get_custom_targeting_values_by_statement(*args, &block)
47
+ return execute_action('get_custom_targeting_values_by_statement', args, &block)
48
48
  end
49
49
 
50
50
  private