google-dfp-api 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. data/ChangeLog +3 -0
  2. data/examples/v201101/company_service/create_companies.rb +3 -4
  3. data/examples/v201101/company_service/update_companies.rb +2 -2
  4. data/examples/v201101/creative_service/create_creatives.rb +8 -11
  5. data/examples/v201101/inventory_service/create_ad_units.rb +7 -10
  6. data/examples/v201101/inventory_service/update_ad_units.rb +1 -1
  7. data/examples/v201101/line_item_service/create_line_items.rb +2 -3
  8. data/examples/v201101/line_item_service/update_line_items.rb +1 -1
  9. data/examples/v201101/order_service/create_orders.rb +5 -6
  10. data/examples/v201101/order_service/update_orders.rb +1 -1
  11. data/examples/v201101/placement_service/create_placements.rb +1 -1
  12. data/examples/v201101/placement_service/update_placements.rb +2 -1
  13. data/examples/v201101/user_service/update_users.rb +1 -1
  14. data/examples/v201103/company_service/create_companies.rb +3 -4
  15. data/examples/v201103/company_service/update_companies.rb +2 -2
  16. data/examples/v201103/creative_service/create_creatives.rb +8 -11
  17. data/examples/v201103/inventory_service/create_ad_units.rb +7 -10
  18. data/examples/v201103/inventory_service/update_ad_units.rb +1 -1
  19. data/examples/v201103/line_item_service/create_line_items.rb +2 -3
  20. data/examples/v201103/line_item_service/update_line_items.rb +1 -1
  21. data/examples/v201103/order_service/create_orders.rb +5 -6
  22. data/examples/v201103/order_service/update_orders.rb +1 -1
  23. data/examples/v201103/placement_service/create_placements.rb +1 -1
  24. data/examples/v201103/placement_service/update_placements.rb +2 -1
  25. data/examples/v201103/user_service/update_users.rb +1 -1
  26. data/examples/v201104/company_service/create_companies.rb +3 -4
  27. data/examples/v201104/company_service/update_companies.rb +2 -2
  28. data/examples/v201104/creative_service/create_creatives.rb +8 -11
  29. data/examples/v201104/inventory_service/create_ad_units.rb +7 -10
  30. data/examples/v201104/inventory_service/update_ad_units.rb +1 -1
  31. data/examples/v201104/line_item_service/create_line_items.rb +2 -3
  32. data/examples/v201104/line_item_service/update_line_items.rb +1 -1
  33. data/examples/v201104/order_service/create_orders.rb +5 -6
  34. data/examples/v201104/order_service/update_orders.rb +1 -1
  35. data/examples/v201104/placement_service/create_placements.rb +1 -1
  36. data/examples/v201104/placement_service/update_placements.rb +2 -1
  37. data/examples/v201104/user_service/update_users.rb +1 -1
  38. data/examples/v201107/common/error_handling.rb +76 -0
  39. data/examples/v201107/common/oauth_handling.rb +128 -0
  40. data/examples/v201107/company_service/create_companies.rb +81 -0
  41. data/examples/v201107/company_service/get_all_companies.rb +92 -0
  42. data/examples/v201107/company_service/get_companies_by_statement.rb +88 -0
  43. data/examples/v201107/company_service/get_company.rb +72 -0
  44. data/examples/v201107/company_service/update_companies.rb +95 -0
  45. data/examples/v201107/creative_service/copy_image_creatives.rb +117 -0
  46. data/examples/v201107/creative_service/create_creatives.rb +106 -0
  47. data/examples/v201107/creative_service/get_all_creatives.rb +93 -0
  48. data/examples/v201107/creative_service/get_creative.rb +72 -0
  49. data/examples/v201107/creative_service/get_creatives_by_statement.rb +87 -0
  50. data/examples/v201107/creative_service/update_creatives.rb +98 -0
  51. data/examples/v201107/custom_targeting_service/create_custom_targeting_keys_and_values.rb +118 -0
  52. data/examples/v201107/custom_targeting_service/delete_custom_targeting_keys.rb +121 -0
  53. data/examples/v201107/custom_targeting_service/delete_custom_targeting_values.rb +125 -0
  54. data/examples/v201107/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +148 -0
  55. data/examples/v201107/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +92 -0
  56. data/examples/v201107/custom_targeting_service/get_custom_targeting_values_by_statement.rb +98 -0
  57. data/examples/v201107/custom_targeting_service/update_custom_targeting_keys.rb +94 -0
  58. data/examples/v201107/custom_targeting_service/update_custom_targeting_values.rb +106 -0
  59. data/examples/v201107/forecast_service/get_forecast.rb +103 -0
  60. data/examples/v201107/forecast_service/get_forecast_by_id.rb +80 -0
  61. data/examples/v201107/inventory_service/create_ad_units.rb +95 -0
  62. data/examples/v201107/inventory_service/deactivate_ad_units.rb +119 -0
  63. data/examples/v201107/inventory_service/get_ad_unit.rb +72 -0
  64. data/examples/v201107/inventory_service/get_ad_unit_sizes.rb +73 -0
  65. data/examples/v201107/inventory_service/get_ad_units_by_statement.rb +96 -0
  66. data/examples/v201107/inventory_service/get_all_ad_units.rb +93 -0
  67. data/examples/v201107/inventory_service/update_ad_units.rb +94 -0
  68. data/examples/v201107/label_service/create_labels.rb +83 -0
  69. data/examples/v201107/label_service/deactivate_labels.rb +118 -0
  70. data/examples/v201107/label_service/get_all_labels.rb +94 -0
  71. data/examples/v201107/label_service/get_label.rb +76 -0
  72. data/examples/v201107/label_service/get_labels_by_statement.rb +91 -0
  73. data/examples/v201107/label_service/update_labels.rb +104 -0
  74. data/examples/v201107/line_item_creative_association_service/create_licas.rb +94 -0
  75. data/examples/v201107/line_item_creative_association_service/deactivate_licas.rb +127 -0
  76. data/examples/v201107/line_item_creative_association_service/get_all_licas.rb +95 -0
  77. data/examples/v201107/line_item_creative_association_service/get_lica.rb +77 -0
  78. data/examples/v201107/line_item_creative_association_service/get_licas_by_statement.rb +91 -0
  79. data/examples/v201107/line_item_creative_association_service/update_licas.rb +92 -0
  80. data/examples/v201107/line_item_service/activate_line_items.rb +131 -0
  81. data/examples/v201107/line_item_service/create_line_items.rb +167 -0
  82. data/examples/v201107/line_item_service/get_all_line_items.rb +94 -0
  83. data/examples/v201107/line_item_service/get_line_item.rb +74 -0
  84. data/examples/v201107/line_item_service/get_line_items_by_statement.rb +89 -0
  85. data/examples/v201107/line_item_service/target_custom_criteria.rb +129 -0
  86. data/examples/v201107/line_item_service/update_line_items.rb +110 -0
  87. data/examples/v201107/network_service/get_all_networks.rb +74 -0
  88. data/examples/v201107/network_service/get_current_network.rb +66 -0
  89. data/examples/v201107/order_service/approve_orders.rb +116 -0
  90. data/examples/v201107/order_service/create_orders.rb +92 -0
  91. data/examples/v201107/order_service/get_all_orders.rb +93 -0
  92. data/examples/v201107/order_service/get_order.rb +74 -0
  93. data/examples/v201107/order_service/get_orders_by_statement.rb +90 -0
  94. data/examples/v201107/order_service/update_orders.rb +95 -0
  95. data/examples/v201107/placement_service/create_placements.rb +128 -0
  96. data/examples/v201107/placement_service/deactivate_placements.rb +118 -0
  97. data/examples/v201107/placement_service/get_all_placements.rb +93 -0
  98. data/examples/v201107/placement_service/get_placement.rb +74 -0
  99. data/examples/v201107/placement_service/get_placements_by_statement.rb +86 -0
  100. data/examples/v201107/placement_service/update_placements.rb +97 -0
  101. data/examples/v201107/publisher_query_language_service/get_all_bandwidth_groups.rb +85 -0
  102. data/examples/v201107/publisher_query_language_service/get_all_browser_languages.rb +85 -0
  103. data/examples/v201107/publisher_query_language_service/get_all_browsers.rb +85 -0
  104. data/examples/v201107/publisher_query_language_service/get_all_cities.rb +85 -0
  105. data/examples/v201107/publisher_query_language_service/get_all_countries.rb +85 -0
  106. data/examples/v201107/publisher_query_language_service/get_all_metros.rb +85 -0
  107. data/examples/v201107/publisher_query_language_service/get_all_operating_systems.rb +85 -0
  108. data/examples/v201107/publisher_query_language_service/get_all_regions.rb +85 -0
  109. data/examples/v201107/report_service/download_report.rb +81 -0
  110. data/examples/v201107/report_service/run_delivery_report.rb +89 -0
  111. data/examples/v201107/report_service/run_inventory_report.rb +90 -0
  112. data/examples/v201107/report_service/run_sales_report.rb +89 -0
  113. data/examples/v201107/user_service/create_users.rb +89 -0
  114. data/examples/v201107/user_service/deactivate_users.rb +99 -0
  115. data/examples/v201107/user_service/get_all_roles.rb +73 -0
  116. data/examples/v201107/user_service/get_all_users.rb +92 -0
  117. data/examples/v201107/user_service/get_current_user.rb +66 -0
  118. data/examples/v201107/user_service/get_user.rb +73 -0
  119. data/examples/v201107/user_service/get_users_by_statement.rb +79 -0
  120. data/examples/v201107/user_service/update_users.rb +89 -0
  121. data/lib/dfp_api/api_config.rb +16 -7
  122. data/lib/dfp_api/v201107/company_service.rb +52 -0
  123. data/lib/dfp_api/v201107/company_service_registry.rb +42 -0
  124. data/lib/dfp_api/v201107/creative_service.rb +52 -0
  125. data/lib/dfp_api/v201107/creative_service_registry.rb +42 -0
  126. data/lib/dfp_api/v201107/custom_targeting_service.rb +60 -0
  127. data/lib/dfp_api/v201107/custom_targeting_service_registry.rb +42 -0
  128. data/lib/dfp_api/v201107/forecast_service.rb +36 -0
  129. data/lib/dfp_api/v201107/forecast_service_registry.rb +42 -0
  130. data/lib/dfp_api/v201107/inventory_service.rb +60 -0
  131. data/lib/dfp_api/v201107/inventory_service_registry.rb +42 -0
  132. data/lib/dfp_api/v201107/label_service.rb +56 -0
  133. data/lib/dfp_api/v201107/label_service_registry.rb +42 -0
  134. data/lib/dfp_api/v201107/line_item_creative_association_service.rb +56 -0
  135. data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +42 -0
  136. data/lib/dfp_api/v201107/line_item_service.rb +56 -0
  137. data/lib/dfp_api/v201107/line_item_service_registry.rb +42 -0
  138. data/lib/dfp_api/v201107/network_service.rb +40 -0
  139. data/lib/dfp_api/v201107/network_service_registry.rb +42 -0
  140. data/lib/dfp_api/v201107/order_service.rb +56 -0
  141. data/lib/dfp_api/v201107/order_service_registry.rb +42 -0
  142. data/lib/dfp_api/v201107/placement_service.rb +56 -0
  143. data/lib/dfp_api/v201107/placement_service_registry.rb +42 -0
  144. data/lib/dfp_api/v201107/publisher_query_language_service.rb +32 -0
  145. data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +42 -0
  146. data/lib/dfp_api/v201107/report_service.rb +40 -0
  147. data/lib/dfp_api/v201107/report_service_registry.rb +42 -0
  148. data/lib/dfp_api/v201107/user_service.rb +64 -0
  149. data/lib/dfp_api/v201107/user_service_registry.rb +42 -0
  150. metadata +115 -4
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:27:50.
7
+
8
+ module DfpApi; module V201107; module LineItemService
9
+ class LineItemServiceRegistry
10
+ LINEITEMSERVICE_METHODS = {:create_line_item=>{:input=>[{:type=>"LineItem", :max_occurs=>1, :name=>:line_item, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItem", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"create_line_item_response"}}, :update_line_items=>{:input=>[{:type=>"LineItem", :max_occurs=>:unbounded, :name=>:line_items, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItem", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"update_line_items_response"}}, :create_line_items=>{:input=>[{:type=>"LineItem", :max_occurs=>:unbounded, :name=>:line_items, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItem", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"create_line_items_response"}}, :get_line_item=>{:input=>[{:type=>"long", :max_occurs=>1, :name=>:line_item_id, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItem", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_line_item_response"}}, :get_line_items_by_statement=>{:input=>[{:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItemPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_line_items_by_statement_response"}}, :perform_line_item_action=>{:input=>[{:type=>"LineItemAction", :max_occurs=>1, :name=>:line_item_action, :min_occurs=>0}, {:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"UpdateResult", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"perform_line_item_action_response"}}, :update_line_item=>{:input=>[{:type=>"LineItem", :max_occurs=>1, :name=>:line_item, :min_occurs=>0}], :output=>{:fields=>[{:type=>"LineItem", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"update_line_item_response"}}}
11
+ LINEITEMSERVICE_TYPES = {:SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}]}, :ReserveAndOverbookLineItems=>{:fields=>[], :base=>"ReserveLineItems"}, :GeoTargeting=>{:fields=>[{:type=>"Location", :max_occurs=>:unbounded, :name=>:targeted_locations, :min_occurs=>0}, {:type=>"Location", :max_occurs=>:unbounded, :name=>:excluded_locations, :min_occurs=>0}]}, :BrowserTargeting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_targeted, :min_occurs=>0}, {:type=>"Technology", :max_occurs=>:unbounded, :name=>:browsers, :min_occurs=>0}]}, :ArchiveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :Targeting=>{:fields=>[{:type=>"GeoTargeting", :max_occurs=>1, :name=>:geo_targeting, :min_occurs=>0}, {:type=>"InventoryTargeting", :max_occurs=>1, :name=>:inventory_targeting, :min_occurs=>0}, {:type=>"DayPartTargeting", :max_occurs=>1, :name=>:day_part_targeting, :min_occurs=>0}, {:type=>"TechnologyTargeting", :max_occurs=>1, :name=>:technology_targeting, :min_occurs=>0}, {:type=>"CustomCriteriaSet", :max_occurs=>1, :name=>:custom_targeting, :min_occurs=>0}, {:type=>"UserDomainTargeting", :max_occurs=>1, :name=>:user_domain_targeting, :min_occurs=>0}]}, :Location=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:location_type, :min_occurs=>0}]}, :DayPart=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :name=>:day_of_week, :min_occurs=>0}, {:type=>"TimeOfDay", :max_occurs=>1, :name=>:start_time, :min_occurs=>0}, {:type=>"TimeOfDay", :max_occurs=>1, :name=>:end_time, :min_occurs=>0}]}, :BandwidthGroup=>{:fields=>[], :base=>"Technology"}, :Statement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:query, :min_occurs=>0}, {:type=>"String_ValueMapEntry", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :ReserveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :Money=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:currency_code, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}]}, :InventoryTargeting=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:excluded_ad_unit_ids, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:targeted_placement_ids, :min_occurs=>0}]}, :DeleteLineItems=>{:fields=>[], :base=>"LineItemAction"}, :CityLocation=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:region_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"Location"}, :UpdateResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_changes, :min_occurs=>0}]}, :TimeOfDay=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:hour, :min_occurs=>0}, {:type=>"MinuteOfHour", :max_occurs=>1, :name=>:minute, :min_occurs=>0}]}, :MetroLocation=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:metro_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"Location"}, :DayPartTargeting=>{:fields=>[{:type=>"DayPart", :max_occurs=>:unbounded, :name=>:day_parts, :min_occurs=>0}, {:type=>"DeliveryTimeZone", :max_occurs=>1, :name=>:time_zone, :min_occurs=>0}]}, :BandwidthGroupTargeting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_targeted, :min_occurs=>0}, {:type=>"Technology", :max_occurs=>:unbounded, :name=>:bandwidth_groups, :min_occurs=>0}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Value", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :ResumeAndOverbookLineItems=>{:fields=>[], :base=>"ResumeLineItems"}, :OperatingSystem=>{:fields=>[], :base=>"Technology"}, :NumberValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :LineItemAction=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:line_item_action_type, :min_occurs=>0}], :abstract=>true}, :CountryLocation=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"Location"}, :UnarchiveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :PauseLineItems=>{:fields=>[], :base=>"LineItemAction"}, :DeliveryData=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :name=>:units, :min_occurs=>0}]}, :Browser=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:major_version, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:minor_version, :min_occurs=>0}], :base=>"Technology"}, :Authentication=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authentication_type, :min_occurs=>0}], :abstract=>true}, :AppliedLabel=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:label_id, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_negated, :min_occurs=>0}]}, :ResumeLineItems=>{:fields=>[], :base=>"LineItemAction"}, :OperatingSystemTargeting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_targeted, :min_occurs=>0}, {:type=>"Technology", :max_occurs=>:unbounded, :name=>:operating_systems, :min_occurs=>0}]}, :OAuth=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:parameters, :min_occurs=>0}], :base=>"Authentication"}, :LineItem=>{:fields=>[{:type=>"Targeting", :max_occurs=>1, :name=>:targeting, :min_occurs=>0}], :base=>"LineItemSummary"}, :Date=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:year, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:month, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:day, :min_occurs=>0}]}, :CustomCriteria=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:key_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:value_ids, :min_occurs=>0}, {:type=>"CustomCriteria.ComparisonOperator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}], :base=>"CustomCriteriaNode"}, :UserDomainTargeting=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:domains, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:targeted, :min_occurs=>0}]}, :RegionLocation=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:region_code, :min_occurs=>0}], :base=>"Location"}, :DeliveryIndicator=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:expected_delivery_percentage, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:actual_delivery_percentage, :min_occurs=>0}]}, :BrowserLanguage=>{:fields=>[], :base=>"Technology"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :Value=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value_type, :min_occurs=>0}], :abstract=>true}, :Technology=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:technology_type, :min_occurs=>0}]}, :Size=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:width, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:height, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_aspect_ratio, :min_occurs=>0}]}, :LineItemPage=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_result_set_size, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"LineItem", :max_occurs=>:unbounded, :name=>:results, :min_occurs=>0}]}, :CustomCriteriaSet=>{:fields=>[{:type=>"CustomCriteriaSet.LogicalOperator", :max_occurs=>1, :name=>:logical_operator, :min_occurs=>0}, {:type=>"CustomCriteriaNode", :max_occurs=>:unbounded, :name=>:children, :min_occurs=>0}], :base=>"CustomCriteriaNode"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:application_name, :min_occurs=>0}, {:type=>"Authentication", :max_occurs=>1, :name=>:authentication, :min_occurs=>0}]}, :ReleaseLineItems=>{:fields=>[], :base=>"LineItemAction"}, :FrequencyCap=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:max_impressions, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_time_units, :min_occurs=>0}, {:type=>"TimeUnit", :max_occurs=>1, :name=>:time_unit, :min_occurs=>0}]}, :DateTime=>{:fields=>[{:type=>"Date", :max_occurs=>1, :name=>:date, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:hour, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:minute, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:second, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:time_zone_id, :min_occurs=>0}]}, :ClientLogin=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:token, :min_occurs=>0}], :base=>"Authentication"}, :BrowserLanguageTargeting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_targeted, :min_occurs=>0}, {:type=>"Technology", :max_occurs=>:unbounded, :name=>:browser_languages, :min_occurs=>0}]}, :ActivateLineItems=>{:fields=>[], :base=>"LineItemAction"}, :TextValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :Stats=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:impressions_delivered, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks_delivered, :min_occurs=>0}]}, :LineItemSummary=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:order_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:external_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:order_name, :min_occurs=>0}, {:type=>"DateTime", :max_occurs=>1, :name=>:start_date_time, :min_occurs=>0}, {:type=>"StartDateTimeType", :max_occurs=>1, :name=>:start_date_time_type, :min_occurs=>0}, {:type=>"DateTime", :max_occurs=>1, :name=>:end_date_time, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:unlimited_end_date_time, :min_occurs=>0}, {:type=>"CreativeRotationType", :max_occurs=>1, :name=>:creative_rotation_type, :min_occurs=>0}, {:type=>"DeliveryRateType", :max_occurs=>1, :name=>:delivery_rate_type, :min_occurs=>0}, {:type=>"RoadblockingType", :max_occurs=>1, :name=>:roadblocking_type, :min_occurs=>0}, {:type=>"FrequencyCap", :max_occurs=>:unbounded, :name=>:frequency_caps, :min_occurs=>0}, {:type=>"LineItemType", :max_occurs=>1, :name=>:line_item_type, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:priority, :min_occurs=>0}, {:type=>"UnitType", :max_occurs=>1, :name=>:unit_type, :min_occurs=>0}, {:type=>"LineItemSummary.Duration", :max_occurs=>1, :name=>:duration, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units_bought, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_unit, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:value_cost_per_unit, :min_occurs=>0}, {:type=>"CostType", :max_occurs=>1, :name=>:cost_type, :min_occurs=>0}, {:type=>"LineItemDiscountType", :max_occurs=>1, :name=>:discount_type, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:discount, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:contracted_units_bought, :min_occurs=>0}, {:type=>"Size", :max_occurs=>:unbounded, :name=>:creative_sizes, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:allow_overbook, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:reserve_at_creation, :min_occurs=>0}, {:type=>"Stats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}, {:type=>"DeliveryIndicator", :max_occurs=>1, :name=>:delivery_indicator, :min_occurs=>0}, {:type=>"DeliveryData", :max_occurs=>1, :name=>:delivery_data, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:budget, :min_occurs=>0}, {:type=>"ComputedStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"LineItemSummary.ReservationStatus", :max_occurs=>1, :name=>:reservation_status, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_archived, :min_occurs=>0}, {:type=>"AppliedLabel", :max_occurs=>:unbounded, :name=>:applied_labels, :min_occurs=>0}, {:type=>"AppliedLabel", :max_occurs=>:unbounded, :name=>:effective_applied_labels, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:disable_same_advertiser_competitive_exclusion, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:last_modified_by_app, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:notes, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:line_item_summary_type, :min_occurs=>0}]}, :CustomCriteriaNode=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:custom_criteria_node_type, :min_occurs=>0}], :abstract=>true}, :TechnologyTargeting=>{:fields=>[{:type=>"BandwidthGroupTargeting", :max_occurs=>1, :name=>:bandwidth_group_targeting, :min_occurs=>0}, {:type=>"BrowserTargeting", :max_occurs=>1, :name=>:browser_targeting, :min_occurs=>0}, {:type=>"BrowserLanguageTargeting", :max_occurs=>1, :name=>:browser_language_targeting, :min_occurs=>0}, {:type=>"OperatingSystemTargeting", :max_occurs=>1, :name=>:operating_system_targeting, :min_occurs=>0}]}}
12
+ LINEITEMSERVICE_NAMESPACES = []
13
+
14
+ def self.get_method_signature(method_name)
15
+ return LINEITEMSERVICE_METHODS[method_name.to_sym]
16
+ end
17
+
18
+ def self.get_type_signature(type_name)
19
+ return LINEITEMSERVICE_TYPES[type_name.to_sym]
20
+ end
21
+
22
+ def self.get_namespace(index)
23
+ return LINEITEMSERVICE_NAMESPACES[index]
24
+ end
25
+ end
26
+
27
+ # Base class for exceptions.
28
+ class ApplicationException < DfpApi::Errors::ApiException
29
+ attr_reader :message # string
30
+ attr_reader :application_exception_type # string
31
+ end
32
+
33
+ # Exception class for holding a list of service errors.
34
+ class ApiException < ApplicationException
35
+ attr_reader :errors # ApiError
36
+ def initialize(exception_fault)
37
+ @array_fields ||= []
38
+ @array_fields << 'errors'
39
+ super(exception_fault)
40
+ end
41
+ end
42
+ end; end; end
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:15.
7
+
8
+ require 'ads_common/savon_service'
9
+ require 'dfp_api/v201107/network_service_registry'
10
+
11
+ module DfpApi; module V201107; module NetworkService
12
+ class NetworkService < AdsCommon::SavonService
13
+ def initialize(api, endpoint)
14
+ namespace = 'https://www.google.com/apis/ads/publisher/v201107'
15
+ super(api, endpoint, namespace, :v201107)
16
+ end
17
+
18
+ def update_network(*args)
19
+ return execute_action('update_network', args)
20
+ end
21
+
22
+ def get_all_networks(*args)
23
+ return execute_action('get_all_networks', args)
24
+ end
25
+
26
+ def get_current_network(*args)
27
+ return execute_action('get_current_network', args)
28
+ end
29
+
30
+ private
31
+
32
+ def get_service_registry()
33
+ return NetworkServiceRegistry
34
+ end
35
+
36
+ def get_module()
37
+ return DfpApi::V201107::NetworkService
38
+ end
39
+ end
40
+ end; end; end
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:15.
7
+
8
+ module DfpApi; module V201107; module NetworkService
9
+ class NetworkServiceRegistry
10
+ NETWORKSERVICE_METHODS = {:update_network=>{:input=>[{:type=>"Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Network", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"update_network_response"}}, :get_all_networks=>{:input=>[], :output=>{:fields=>[{:type=>"Network", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"get_all_networks_response"}}, :get_current_network=>{:input=>[], :output=>{:fields=>[{:type=>"Network", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_current_network_response"}}}
11
+ NETWORKSERVICE_TYPES = {:SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}]}, :Authentication=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authentication_type, :min_occurs=>0}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:parameters, :min_occurs=>0}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:application_name, :min_occurs=>0}, {:type=>"Authentication", :max_occurs=>1, :name=>:authentication, :min_occurs=>0}]}, :ClientLogin=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:token, :min_occurs=>0}], :base=>"Authentication"}, :Network=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:display_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:property_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:time_zone, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:currency_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:effective_root_ad_unit_id, :min_occurs=>0}]}}
12
+ NETWORKSERVICE_NAMESPACES = []
13
+
14
+ def self.get_method_signature(method_name)
15
+ return NETWORKSERVICE_METHODS[method_name.to_sym]
16
+ end
17
+
18
+ def self.get_type_signature(type_name)
19
+ return NETWORKSERVICE_TYPES[type_name.to_sym]
20
+ end
21
+
22
+ def self.get_namespace(index)
23
+ return NETWORKSERVICE_NAMESPACES[index]
24
+ end
25
+ end
26
+
27
+ # Base class for exceptions.
28
+ class ApplicationException < DfpApi::Errors::ApiException
29
+ attr_reader :message # string
30
+ attr_reader :application_exception_type # string
31
+ end
32
+
33
+ # Exception class for holding a list of service errors.
34
+ class ApiException < ApplicationException
35
+ attr_reader :errors # ApiError
36
+ def initialize(exception_fault)
37
+ @array_fields ||= []
38
+ @array_fields << 'errors'
39
+ super(exception_fault)
40
+ end
41
+ end
42
+ end; end; end
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:27:28.
7
+
8
+ require 'ads_common/savon_service'
9
+ require 'dfp_api/v201107/order_service_registry'
10
+
11
+ module DfpApi; module V201107; module OrderService
12
+ class OrderService < AdsCommon::SavonService
13
+ def initialize(api, endpoint)
14
+ namespace = 'https://www.google.com/apis/ads/publisher/v201107'
15
+ super(api, endpoint, namespace, :v201107)
16
+ end
17
+
18
+ def update_orders(*args)
19
+ return execute_action('update_orders', args)
20
+ end
21
+
22
+ def create_orders(*args)
23
+ return execute_action('create_orders', args)
24
+ end
25
+
26
+ def get_order(*args)
27
+ return execute_action('get_order', args)
28
+ end
29
+
30
+ def get_orders_by_statement(*args)
31
+ return execute_action('get_orders_by_statement', args)
32
+ end
33
+
34
+ def perform_order_action(*args)
35
+ return execute_action('perform_order_action', args)
36
+ end
37
+
38
+ def update_order(*args)
39
+ return execute_action('update_order', args)
40
+ end
41
+
42
+ def create_order(*args)
43
+ return execute_action('create_order', args)
44
+ end
45
+
46
+ private
47
+
48
+ def get_service_registry()
49
+ return OrderServiceRegistry
50
+ end
51
+
52
+ def get_module()
53
+ return DfpApi::V201107::OrderService
54
+ end
55
+ end
56
+ end; end; end
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:27:28.
7
+
8
+ module DfpApi; module V201107; module OrderService
9
+ class OrderServiceRegistry
10
+ ORDERSERVICE_METHODS = {:update_orders=>{:input=>[{:type=>"Order", :max_occurs=>:unbounded, :name=>:orders, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Order", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"update_orders_response"}}, :create_orders=>{:input=>[{:type=>"Order", :max_occurs=>:unbounded, :name=>:orders, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Order", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"create_orders_response"}}, :get_order=>{:input=>[{:type=>"long", :max_occurs=>1, :name=>:order_id, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Order", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_order_response"}}, :get_orders_by_statement=>{:input=>[{:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"OrderPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_orders_by_statement_response"}}, :perform_order_action=>{:input=>[{:type=>"OrderAction", :max_occurs=>1, :name=>:order_action, :min_occurs=>0}, {:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"UpdateResult", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"perform_order_action_response"}}, :update_order=>{:input=>[{:type=>"Order", :max_occurs=>1, :name=>:order, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Order", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"update_order_response"}}, :create_order=>{:input=>[{:type=>"Order", :max_occurs=>1, :name=>:order, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Order", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"create_order_response"}}}
11
+ ORDERSERVICE_TYPES = {:SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}]}, :DisapproveOrdersWithoutReservationChanges=>{:fields=>[], :base=>"OrderAction"}, :DisapproveOrders=>{:fields=>[], :base=>"OrderAction"}, :UnarchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :PauseOrders=>{:fields=>[], :base=>"OrderAction"}, :ApproveOrders=>{:fields=>[], :base=>"OrderAction"}, :Statement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:query, :min_occurs=>0}, {:type=>"String_ValueMapEntry", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :RetractOrdersWithoutReservationChanges=>{:fields=>[], :base=>"OrderAction"}, :Money=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:currency_code, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}]}, :UpdateResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_changes, :min_occurs=>0}]}, :ResumeAndOverbookOrders=>{:fields=>[], :base=>"ResumeOrders"}, :ArchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :SubmitOrdersForApprovalWithoutReservationChanges=>{:fields=>[], :base=>"OrderAction"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Value", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :NumberValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :ResumeOrders=>{:fields=>[], :base=>"OrderAction"}, :Authentication=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authentication_type, :min_occurs=>0}], :abstract=>true}, :AppliedLabel=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:label_id, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_negated, :min_occurs=>0}]}, :SubmitOrdersForApproval=>{:fields=>[], :base=>"OrderAction"}, :OrderAction=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:order_action_type, :min_occurs=>0}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:parameters, :min_occurs=>0}], :base=>"Authentication"}, :Date=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:year, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:month, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:day, :min_occurs=>0}]}, :RetractOrders=>{:fields=>[], :base=>"OrderAction"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :ApproveOrdersWithoutReservationChanges=>{:fields=>[], :base=>"OrderAction"}, :Value=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value_type, :min_occurs=>0}], :abstract=>true}, :SubmitOrdersForApprovalAndOverbook=>{:fields=>[], :base=>"SubmitOrdersForApproval"}, :Order=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"DateTime", :max_occurs=>1, :name=>:start_date_time, :min_occurs=>0}, {:type=>"DateTime", :max_occurs=>1, :name=>:end_date_time, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:unlimited_end_date_time, :min_occurs=>0}, {:type=>"OrderStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_archived, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:notes, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:external_order_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:po_number, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:currency_code, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:advertiser_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:agency_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:creator_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:trafficker_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:secondary_trafficker_ids, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:salesperson_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:secondary_salesperson_ids, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_impressions_delivered, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_clicks_delivered, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:total_budget, :min_occurs=>0}, {:type=>"AppliedLabel", :max_occurs=>:unbounded, :name=>:applied_labels, :min_occurs=>0}, {:type=>"AppliedLabel", :max_occurs=>:unbounded, :name=>:effective_applied_labels, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:last_modified_by_app, :min_occurs=>0}]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:application_name, :min_occurs=>0}, {:type=>"Authentication", :max_occurs=>1, :name=>:authentication, :min_occurs=>0}]}, :DeleteOrders=>{:fields=>[], :base=>"OrderAction"}, :DateTime=>{:fields=>[{:type=>"Date", :max_occurs=>1, :name=>:date, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:hour, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:minute, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:second, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:time_zone_id, :min_occurs=>0}]}, :ClientLogin=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:token, :min_occurs=>0}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :OrderPage=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_result_set_size, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"Order", :max_occurs=>:unbounded, :name=>:results, :min_occurs=>0}]}, :ApproveAndOverbookOrders=>{:fields=>[], :base=>"ApproveOrders"}}
12
+ ORDERSERVICE_NAMESPACES = []
13
+
14
+ def self.get_method_signature(method_name)
15
+ return ORDERSERVICE_METHODS[method_name.to_sym]
16
+ end
17
+
18
+ def self.get_type_signature(type_name)
19
+ return ORDERSERVICE_TYPES[type_name.to_sym]
20
+ end
21
+
22
+ def self.get_namespace(index)
23
+ return ORDERSERVICE_NAMESPACES[index]
24
+ end
25
+ end
26
+
27
+ # Base class for exceptions.
28
+ class ApplicationException < DfpApi::Errors::ApiException
29
+ attr_reader :message # string
30
+ attr_reader :application_exception_type # string
31
+ end
32
+
33
+ # Exception class for holding a list of service errors.
34
+ class ApiException < ApplicationException
35
+ attr_reader :errors # ApiError
36
+ def initialize(exception_fault)
37
+ @array_fields ||= []
38
+ @array_fields << 'errors'
39
+ super(exception_fault)
40
+ end
41
+ end
42
+ end; end; end
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:06.
7
+
8
+ require 'ads_common/savon_service'
9
+ require 'dfp_api/v201107/placement_service_registry'
10
+
11
+ module DfpApi; module V201107; module PlacementService
12
+ class PlacementService < AdsCommon::SavonService
13
+ def initialize(api, endpoint)
14
+ namespace = 'https://www.google.com/apis/ads/publisher/v201107'
15
+ super(api, endpoint, namespace, :v201107)
16
+ end
17
+
18
+ def get_placements_by_statement(*args)
19
+ return execute_action('get_placements_by_statement', args)
20
+ end
21
+
22
+ def perform_placement_action(*args)
23
+ return execute_action('perform_placement_action', args)
24
+ end
25
+
26
+ def update_placement(*args)
27
+ return execute_action('update_placement', args)
28
+ end
29
+
30
+ def create_placement(*args)
31
+ return execute_action('create_placement', args)
32
+ end
33
+
34
+ def update_placements(*args)
35
+ return execute_action('update_placements', args)
36
+ end
37
+
38
+ def create_placements(*args)
39
+ return execute_action('create_placements', args)
40
+ end
41
+
42
+ def get_placement(*args)
43
+ return execute_action('get_placement', args)
44
+ end
45
+
46
+ private
47
+
48
+ def get_service_registry()
49
+ return PlacementServiceRegistry
50
+ end
51
+
52
+ def get_module()
53
+ return DfpApi::V201107::PlacementService
54
+ end
55
+ end
56
+ end; end; end
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:06.
7
+
8
+ module DfpApi; module V201107; module PlacementService
9
+ class PlacementServiceRegistry
10
+ PLACEMENTSERVICE_METHODS = {:get_placements_by_statement=>{:input=>[{:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"PlacementPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_placements_by_statement_response"}}, :perform_placement_action=>{:input=>[{:type=>"PlacementAction", :max_occurs=>1, :name=>:placement_action, :min_occurs=>0}, {:type=>"Statement", :max_occurs=>1, :name=>:filter_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"UpdateResult", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"perform_placement_action_response"}}, :update_placement=>{:input=>[{:type=>"Placement", :max_occurs=>1, :name=>:placement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Placement", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"update_placement_response"}}, :create_placement=>{:input=>[{:type=>"Placement", :max_occurs=>1, :name=>:placement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Placement", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"create_placement_response"}}, :update_placements=>{:input=>[{:type=>"Placement", :max_occurs=>:unbounded, :name=>:placements, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Placement", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"update_placements_response"}}, :create_placements=>{:input=>[{:type=>"Placement", :max_occurs=>:unbounded, :name=>:placements, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Placement", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"create_placements_response"}}, :get_placement=>{:input=>[{:type=>"long", :max_occurs=>1, :name=>:placement_id, :min_occurs=>0}], :output=>{:fields=>[{:type=>"Placement", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_placement_response"}}}
11
+ PLACEMENTSERVICE_TYPES = {:SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}]}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :PlacementPage=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_result_set_size, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"Placement", :max_occurs=>:unbounded, :name=>:results, :min_occurs=>0}]}, :Statement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:query, :min_occurs=>0}, {:type=>"String_ValueMapEntry", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :UpdateResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_changes, :min_occurs=>0}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Value", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :NumberValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Authentication=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authentication_type, :min_occurs=>0}], :abstract=>true}, :PlacementAction=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:placement_action_type, :min_occurs=>0}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:parameters, :min_occurs=>0}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :Placement=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:description, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:placement_code, :min_occurs=>0}, {:type=>"InventoryStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_ad_sense_targeting_enabled, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_ad_planner_targeting_enabled, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_sense_targeting_locale, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids, :min_occurs=>0}], :base=>"SiteTargetingInfo"}, :Value=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value_type, :min_occurs=>0}], :abstract=>true}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:application_name, :min_occurs=>0}, {:type=>"Authentication", :max_occurs=>1, :name=>:authentication, :min_occurs=>0}]}, :ClientLogin=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:token, :min_occurs=>0}], :base=>"Authentication"}, :SiteTargetingInfo=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:targeting_description, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:targeting_site_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:targeting_ad_location, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:site_targeting_info_type, :min_occurs=>0}]}, :TextValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}}
12
+ PLACEMENTSERVICE_NAMESPACES = []
13
+
14
+ def self.get_method_signature(method_name)
15
+ return PLACEMENTSERVICE_METHODS[method_name.to_sym]
16
+ end
17
+
18
+ def self.get_type_signature(type_name)
19
+ return PLACEMENTSERVICE_TYPES[type_name.to_sym]
20
+ end
21
+
22
+ def self.get_namespace(index)
23
+ return PLACEMENTSERVICE_NAMESPACES[index]
24
+ end
25
+ end
26
+
27
+ # Base class for exceptions.
28
+ class ApplicationException < DfpApi::Errors::ApiException
29
+ attr_reader :message # string
30
+ attr_reader :application_exception_type # string
31
+ end
32
+
33
+ # Exception class for holding a list of service errors.
34
+ class ApiException < ApplicationException
35
+ attr_reader :errors # ApiError
36
+ def initialize(exception_fault)
37
+ @array_fields ||= []
38
+ @array_fields << 'errors'
39
+ super(exception_fault)
40
+ end
41
+ end
42
+ end; end; end
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:10.
7
+
8
+ require 'ads_common/savon_service'
9
+ require 'dfp_api/v201107/publisher_query_language_service_registry'
10
+
11
+ module DfpApi; module V201107; module PublisherQueryLanguageService
12
+ class PublisherQueryLanguageService < AdsCommon::SavonService
13
+ def initialize(api, endpoint)
14
+ namespace = 'https://www.google.com/apis/ads/publisher/v201107'
15
+ super(api, endpoint, namespace, :v201107)
16
+ end
17
+
18
+ def select(*args)
19
+ return execute_action('select', args)
20
+ end
21
+
22
+ private
23
+
24
+ def get_service_registry()
25
+ return PublisherQueryLanguageServiceRegistry
26
+ end
27
+
28
+ def get_module()
29
+ return DfpApi::V201107::PublisherQueryLanguageService
30
+ end
31
+ end
32
+ end; end; end
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:28:10.
7
+
8
+ module DfpApi; module V201107; module PublisherQueryLanguageService
9
+ class PublisherQueryLanguageServiceRegistry
10
+ PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:input=>[{:type=>"Statement", :max_occurs=>1, :name=>:select_statement, :min_occurs=>0}], :output=>{:fields=>[{:type=>"ResultSet", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"select_response"}}}
11
+ PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:Row=>{:fields=>[{:type=>"Value", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}]}, :Statement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:query, :min_occurs=>0}, {:type=>"String_ValueMapEntry", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :max_occurs=>:unbounded, :name=>:column_types, :min_occurs=>0}, {:type=>"Row", :max_occurs=>:unbounded, :name=>:rows, :min_occurs=>0}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Value", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :NumberValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :Authentication=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authentication_type, :min_occurs=>0}], :abstract=>true}, :OAuth=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:parameters, :min_occurs=>0}], :base=>"Authentication"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}, :Value=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value_type, :min_occurs=>0}], :abstract=>true}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:network_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:application_name, :min_occurs=>0}, {:type=>"Authentication", :max_occurs=>1, :name=>:authentication, :min_occurs=>0}]}, :ColumnType=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:label_name, :min_occurs=>0}]}, :ClientLogin=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:token, :min_occurs=>0}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Value"}}
12
+ PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES = []
13
+
14
+ def self.get_method_signature(method_name)
15
+ return PUBLISHERQUERYLANGUAGESERVICE_METHODS[method_name.to_sym]
16
+ end
17
+
18
+ def self.get_type_signature(type_name)
19
+ return PUBLISHERQUERYLANGUAGESERVICE_TYPES[type_name.to_sym]
20
+ end
21
+
22
+ def self.get_namespace(index)
23
+ return PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES[index]
24
+ end
25
+ end
26
+
27
+ # Base class for exceptions.
28
+ class ApplicationException < DfpApi::Errors::ApiException
29
+ attr_reader :message # string
30
+ attr_reader :application_exception_type # string
31
+ end
32
+
33
+ # Exception class for holding a list of service errors.
34
+ class ApiException < ApplicationException
35
+ attr_reader :errors # ApiError
36
+ def initialize(exception_fault)
37
+ @array_fields ||= []
38
+ @array_fields << 'errors'
39
+ super(exception_fault)
40
+ end
41
+ end
42
+ end; end; end
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/ruby
2
+ # This is auto-generated code, changes will be overwritten.
3
+ # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
+ # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
+ #
6
+ # Code generated by AdsCommon library 0.5.0 on 2011-08-03 17:27:44.
7
+
8
+ require 'ads_common/savon_service'
9
+ require 'dfp_api/v201107/report_service_registry'
10
+
11
+ module DfpApi; module V201107; module ReportService
12
+ class ReportService < AdsCommon::SavonService
13
+ def initialize(api, endpoint)
14
+ namespace = 'https://www.google.com/apis/ads/publisher/v201107'
15
+ super(api, endpoint, namespace, :v201107)
16
+ end
17
+
18
+ def get_report_download_url(*args)
19
+ return execute_action('get_report_download_url', args)
20
+ end
21
+
22
+ def get_report_job(*args)
23
+ return execute_action('get_report_job', args)
24
+ end
25
+
26
+ def run_report_job(*args)
27
+ return execute_action('run_report_job', args)
28
+ end
29
+
30
+ private
31
+
32
+ def get_service_registry()
33
+ return ReportServiceRegistry
34
+ end
35
+
36
+ def get_module()
37
+ return DfpApi::V201107::ReportService
38
+ end
39
+ end
40
+ end; end; end