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.
- data/ChangeLog +4 -0
- data/README +1 -1
- data/Rakefile +2 -2
- data/examples/v201103/creative_service/copy_image_creatives.rb +0 -2
- data/examples/v201103/creative_service/update_creatives.rb +0 -2
- data/examples/v201103/line_item_service/update_line_items.rb +0 -1
- data/examples/v201104/creative_service/copy_image_creatives.rb +0 -2
- data/examples/v201104/creative_service/update_creatives.rb +0 -2
- data/examples/v201104/line_item_service/update_line_items.rb +0 -1
- data/examples/v201107/creative_service/copy_image_creatives.rb +0 -2
- data/examples/v201107/creative_service/update_creatives.rb +0 -2
- data/examples/v201107/line_item_service/update_line_items.rb +0 -1
- data/examples/v201108/creative_service/copy_image_creatives.rb +0 -2
- data/examples/v201108/creative_service/update_creatives.rb +0 -2
- data/examples/v201108/line_item_service/create_line_items.rb +12 -5
- data/examples/v201108/line_item_service/update_line_items.rb +0 -1
- data/examples/v201108/publisher_query_language_service/get_all_postal_codes.rb +85 -0
- data/lib/dfp_api.rb +1 -1
- data/lib/dfp_api/api_config.rb +1 -16
- data/lib/dfp_api/v201103/company_service.rb +13 -13
- data/lib/dfp_api/v201103/company_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/creative_service.rb +13 -13
- data/lib/dfp_api/v201103/creative_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/forecast_service.rb +5 -5
- data/lib/dfp_api/v201103/forecast_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/inventory_service.rb +15 -15
- data/lib/dfp_api/v201103/inventory_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/line_item_creative_association_service.rb +15 -15
- data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/line_item_service.rb +15 -15
- data/lib/dfp_api/v201103/line_item_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/network_service.rb +7 -7
- data/lib/dfp_api/v201103/network_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/order_service.rb +15 -15
- data/lib/dfp_api/v201103/order_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/placement_service.rb +15 -15
- data/lib/dfp_api/v201103/placement_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/publisher_query_language_service.rb +3 -3
- data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/report_service.rb +7 -7
- data/lib/dfp_api/v201103/report_service_registry.rb +5 -3
- data/lib/dfp_api/v201103/user_service.rb +17 -17
- data/lib/dfp_api/v201103/user_service_registry.rb +5 -3
- data/lib/dfp_api/v201104/company_service.rb +13 -13
- data/lib/dfp_api/v201104/company_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/creative_service.rb +13 -13
- data/lib/dfp_api/v201104/creative_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201104/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/forecast_service.rb +5 -5
- data/lib/dfp_api/v201104/forecast_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/inventory_service.rb +15 -15
- data/lib/dfp_api/v201104/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/line_item_creative_association_service.rb +15 -15
- data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/line_item_service.rb +15 -15
- data/lib/dfp_api/v201104/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/network_service.rb +7 -7
- data/lib/dfp_api/v201104/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/order_service.rb +15 -15
- data/lib/dfp_api/v201104/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/placement_service.rb +15 -15
- data/lib/dfp_api/v201104/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/publisher_query_language_service.rb +3 -3
- data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/report_service.rb +7 -7
- data/lib/dfp_api/v201104/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/user_service.rb +17 -17
- data/lib/dfp_api/v201104/user_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/company_service.rb +13 -13
- data/lib/dfp_api/v201107/company_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/creative_service.rb +13 -13
- data/lib/dfp_api/v201107/creative_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201107/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/forecast_service.rb +5 -5
- data/lib/dfp_api/v201107/forecast_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/inventory_service.rb +17 -17
- data/lib/dfp_api/v201107/inventory_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/label_service.rb +15 -15
- data/lib/dfp_api/v201107/label_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/line_item_creative_association_service.rb +15 -15
- data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/line_item_service.rb +15 -15
- data/lib/dfp_api/v201107/line_item_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/network_service.rb +7 -7
- data/lib/dfp_api/v201107/network_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/order_service.rb +15 -15
- data/lib/dfp_api/v201107/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/placement_service.rb +15 -15
- data/lib/dfp_api/v201107/placement_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/publisher_query_language_service.rb +3 -3
- data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +5 -3
- data/lib/dfp_api/v201107/report_service.rb +7 -7
- data/lib/dfp_api/v201107/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/user_service.rb +19 -19
- data/lib/dfp_api/v201107/user_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/company_service.rb +13 -13
- data/lib/dfp_api/v201108/company_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/creative_service.rb +13 -13
- data/lib/dfp_api/v201108/creative_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201108/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/forecast_service.rb +5 -5
- data/lib/dfp_api/v201108/forecast_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/inventory_service.rb +17 -17
- data/lib/dfp_api/v201108/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/label_service.rb +15 -15
- data/lib/dfp_api/v201108/label_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/line_item_creative_association_service.rb +15 -15
- data/lib/dfp_api/v201108/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/line_item_service.rb +15 -15
- data/lib/dfp_api/v201108/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/network_service.rb +7 -7
- data/lib/dfp_api/v201108/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/order_service.rb +15 -15
- data/lib/dfp_api/v201108/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/placement_service.rb +15 -15
- data/lib/dfp_api/v201108/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/publisher_query_language_service.rb +3 -3
- data/lib/dfp_api/v201108/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/report_service.rb +7 -7
- data/lib/dfp_api/v201108/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/third_party_slot_service.rb +9 -9
- data/lib/dfp_api/v201108/third_party_slot_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/user_service.rb +19 -19
- data/lib/dfp_api/v201108/user_service_registry.rb +3 -3
- data/test/bugs/test_issue_00000016.rb +10 -10
- data/test/dfp_api/test_dfp_api.rb +1 -1
- metadata +362 -366
@@ -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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:17.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/custom_targeting_service_registry'
|
@@ -15,36 +15,36 @@ module DfpApi; module V201103; module CustomTargetingService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def perform_custom_targeting_key_action(*args)
|
19
|
-
return execute_action('perform_custom_targeting_key_action', 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 perform_custom_targeting_value_action(*args)
|
23
|
-
return execute_action('perform_custom_targeting_value_action', 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 create_custom_targeting_keys(*args)
|
27
|
-
return execute_action('create_custom_targeting_keys', 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 update_custom_targeting_keys(*args)
|
31
|
-
return execute_action('update_custom_targeting_keys', 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_values(*args)
|
35
|
-
return execute_action('create_custom_targeting_values', 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_values(*args)
|
39
|
-
return execute_action('update_custom_targeting_values', 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 get_custom_targeting_keys_by_statement(*args)
|
43
|
-
return execute_action('get_custom_targeting_keys_by_statement', 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 get_custom_targeting_values_by_statement(*args)
|
47
|
-
return execute_action('get_custom_targeting_values_by_statement', 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
|
@@ -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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:17.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module CustomTargetingService
|
9
11
|
class CustomTargetingServiceRegistry
|
10
|
-
CUSTOMTARGETINGSERVICE_METHODS = {:perform_custom_targeting_key_action=>{:input=>[{:type=>"CustomTargetingKeyAction", :min_occurs=>0, :name=>:custom_targeting_key_action
|
11
|
-
CUSTOMTARGETINGSERVICE_TYPES = {:
|
12
|
+
CUSTOMTARGETINGSERVICE_METHODS = {:perform_custom_targeting_key_action=>{:input=>[{:type=>"CustomTargetingKeyAction", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_key_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_custom_targeting_key_action_response"}}, :perform_custom_targeting_value_action=>{:input=>[{:type=>"CustomTargetingValueAction", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_value_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_custom_targeting_value_action_response"}}, :create_custom_targeting_keys=>{:input=>[{:type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:keys}], :output=>{:fields=>[{:type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_custom_targeting_keys_response"}}, :update_custom_targeting_keys=>{:input=>[{:type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:keys}], :output=>{:fields=>[{:type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_custom_targeting_keys_response"}}, :create_custom_targeting_values=>{:input=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}], :output=>{:fields=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_custom_targeting_values_response"}}, :update_custom_targeting_values=>{:input=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}], :output=>{:fields=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_custom_targeting_values_response"}}, :get_custom_targeting_keys_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CustomTargetingKeyPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_custom_targeting_keys_by_statement_response"}}, :get_custom_targeting_values_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"CustomTargetingValuePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_custom_targeting_values_by_statement_response"}}}
|
13
|
+
CUSTOMTARGETINGSERVICE_TYPES = {:CustomTargetingValuePage=>{: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=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :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}]}, :CustomTargetingKeyAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_key_action_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :DeleteCustomTargetingKeys=>{:fields=>[], :base=>"CustomTargetingKeyAction"}, :CustomTargetingKey=>{: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=>:display_name}, {:type=>"CustomTargetingKey.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}]}, :DeleteCustomTargetingValues=>{:fields=>[], :base=>"CustomTargetingValueAction"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :CustomTargetingKeyPage=>{: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=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :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}]}, :CustomTargetingValueAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_value_action_type}], :abstract=>true}, :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"}, :CustomTargetingValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_key_id}, {: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=>:display_name}, {:type=>"CustomTargetingValue.MatchType", :min_occurs=>0, :max_occurs=>1, :name=>:match_type}]}, :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
|
CUSTOMTARGETINGSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:50.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/forecast_service_registry'
|
@@ -15,12 +15,12 @@ module DfpApi; module V201103; module ForecastService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def get_forecast(*args, &block)
|
19
|
+
return execute_action('get_forecast', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
23
|
-
return execute_action('
|
22
|
+
def get_forecast_by_id(*args, &block)
|
23
|
+
return execute_action('get_forecast_by_id', args, &block)
|
24
24
|
end
|
25
25
|
|
26
26
|
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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:50.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module ForecastService
|
9
11
|
class ForecastServiceRegistry
|
10
|
-
FORECASTSERVICE_METHODS = {:
|
11
|
-
FORECASTSERVICE_TYPES = {:
|
12
|
+
FORECASTSERVICE_METHODS = {:get_forecast=>{:input=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:line_item}], :output=>{:fields=>[{:type=>"Forecast", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_forecast_response"}}, :get_forecast_by_id=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_id}], :output=>{:fields=>[{:type=>"Forecast", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_forecast_by_id_response"}}}
|
13
|
+
FORECASTSERVICE_TYPES = {:LineItem=>{:fields=>[{:type=>"Targeting", :min_occurs=>0, :max_occurs=>1, :name=>:targeting}], :base=>"LineItemSummary"}, :CustomCriteriaNode=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:custom_criteria_node_type}], :abstract=>true}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :Targeting=>{:fields=>[{:type=>"GeoTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:geo_targeting}, {:type=>"InventoryTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:inventory_targeting}, {:type=>"DayPartTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:day_part_targeting}, {:type=>"CustomCriteriaSet", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting}, {:type=>"UserDomainTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:user_domain_targeting}]}, :FrequencyCap=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:max_impressions}, {:type=>"TimeUnit", :min_occurs=>0, :max_occurs=>1, :name=>:time_unit}]}, :CityLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:city_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:region_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :DayPart=>{:fields=>[{:type=>"DayOfWeek", :min_occurs=>0, :max_occurs=>1, :name=>:day_of_week}, {:type=>"TimeOfDay", :min_occurs=>0, :max_occurs=>1, :name=>:start_time}, {:type=>"TimeOfDay", :min_occurs=>0, :max_occurs=>1, :name=>:end_time}]}, :GeoTargeting=>{:fields=>[{:type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_locations}, {:type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:excluded_locations}]}, :FreeFormCustomCriteria=>{:fields=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}], :base=>"CustomCriteria"}, :CountryLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :LineItemSummary=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:order_id}, {: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=>:order_name}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time}, {:type=>"StartDateTimeType", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time_type}, {: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=>"CreativeRotationType", :min_occurs=>0, :max_occurs=>1, :name=>:creative_rotation_type}, {:type=>"DeliveryRateType", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_rate_type}, {:type=>"RoadblockingType", :min_occurs=>0, :max_occurs=>1, :name=>:roadblocking_type}, {:type=>"FrequencyCap", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:frequency_caps}, {:type=>"LineItemType", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_type}, {:type=>"UnitType", :min_occurs=>0, :max_occurs=>1, :name=>:unit_type}, {:type=>"LineItemSummary.Duration", :min_occurs=>0, :max_occurs=>1, :name=>:duration}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units_bought}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_unit}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:value_cost_per_unit}, {:type=>"CostType", :min_occurs=>0, :max_occurs=>1, :name=>:cost_type}, {:type=>"LineItemDiscountType", :min_occurs=>0, :max_occurs=>1, :name=>:discount_type}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:discount}, {:type=>"Size", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creative_sizes}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:allow_overbook}, {:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}, {:type=>"DeliveryIndicator", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_indicator}, {:type=>"DeliveryData", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_data}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:budget}, {:type=>"ComputedStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"LineItemSummary.ReservationStatus", :min_occurs=>0, :max_occurs=>1, :name=>:reservation_status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_archived}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_summary_type}]}, :DayPartTargeting=>{:fields=>[{:type=>"DayPart", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:day_parts}, {:type=>"DeliveryTimeZone", :min_occurs=>0, :max_occurs=>1, :name=>:time_zone}]}, :TimeOfDay=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:hour}, {:type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1, :name=>:minute}]}, :PredefinedCustomCriteria=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value_ids}], :base=>"CustomCriteria"}, :InventoryTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:excluded_ad_unit_ids}, {:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_placement_ids}]}, :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}]}, :Location=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:location_type}]}, :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}]}, :RegionLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:region_code}], :base=>"Location"}, :CustomCriteria=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:key_id}, {:type=>"CustomCriteria.ComparisonOperator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}], :base=>"CustomCriteriaNode"}, :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}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :MetroLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:metro_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :Forecast=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:order_id}, {:type=>"UnitType", :min_occurs=>0, :max_occurs=>1, :name=>:unit_type}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:available_units}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:delivered_units}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:matched_units}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:possible_units}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:reserved_units}]}, :DeliveryData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:units}]}, :UserDomainTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:domains}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:targeted}]}, :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}]}, :CustomTargetingValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_key_id}, {: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=>:display_name}, {:type=>"CustomTargetingValue.MatchType", :min_occurs=>0, :max_occurs=>1, :name=>:match_type}]}, :CustomCriteriaSet=>{:fields=>[{:type=>"CustomCriteriaSet.LogicalOperator", :min_occurs=>0, :max_occurs=>1, :name=>:logical_operator}, {:type=>"CustomCriteriaNode", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:children}], :base=>"CustomCriteriaNode"}, :Stats=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions_delivered}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks_delivered}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :DeliveryIndicator=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:expected_delivery_percentage}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:actual_delivery_percentage}]}}
|
12
14
|
FORECASTSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:44.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/inventory_service_registry'
|
@@ -15,32 +15,32 @@ module DfpApi; module V201103; module InventoryService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def update_ad_unit(*args, &block)
|
19
|
+
return execute_action('update_ad_unit', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
23
|
-
return execute_action('
|
22
|
+
def create_ad_units(*args, &block)
|
23
|
+
return execute_action('create_ad_units', args, &block)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
27
|
-
return execute_action('
|
26
|
+
def update_ad_units(*args, &block)
|
27
|
+
return execute_action('update_ad_units', args, &block)
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
31
|
-
return execute_action('
|
30
|
+
def get_ad_unit(*args, &block)
|
31
|
+
return execute_action('get_ad_unit', args, &block)
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
35
|
-
return execute_action('
|
34
|
+
def get_ad_units_by_statement(*args, &block)
|
35
|
+
return execute_action('get_ad_units_by_statement', args, &block)
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
return execute_action('
|
38
|
+
def perform_ad_unit_action(*args, &block)
|
39
|
+
return execute_action('perform_ad_unit_action', args, &block)
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
43
|
-
return execute_action('
|
42
|
+
def create_ad_unit(*args, &block)
|
43
|
+
return execute_action('create_ad_unit', 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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:44.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module InventoryService
|
9
11
|
class InventoryServiceRegistry
|
10
|
-
INVENTORYSERVICE_METHODS = {:
|
11
|
-
INVENTORYSERVICE_TYPES = {:
|
12
|
+
INVENTORYSERVICE_METHODS = {:update_ad_unit=>{:input=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit}], :output=>{:fields=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_ad_unit_response"}}, :create_ad_units=>{:input=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ad_units}], :output=>{:fields=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_ad_units_response"}}, :update_ad_units=>{:input=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ad_units}], :output=>{:fields=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_ad_units_response"}}, :get_ad_unit=>{:input=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit_id}], :output=>{:fields=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_ad_unit_response"}}, :get_ad_units_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"AdUnitPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_ad_units_by_statement_response"}}, :perform_ad_unit_action=>{:input=>[{:type=>"AdUnitAction", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit_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_ad_unit_action_response"}}, :create_ad_unit=>{:input=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit}], :output=>{:fields=>[{:type=>"AdUnit", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_ad_unit_response"}}}
|
13
|
+
INVENTORYSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :AdSenseSettingsInheritedProperty=>{:fields=>[{:type=>"AdSenseSettings", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :DeactivateAdUnits=>{:fields=>[], :base=>"AdUnitAction"}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :AdUnitAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit_action_type}], :abstract=>true}, :Size_StringMapEntry=>{:fields=>[{:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :AdUnit=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parent_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"AdUnit.TargetWindow", :min_occurs=>0, :max_occurs=>1, :name=>:target_window}, {:type=>"InventoryStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_unit_code}, {:type=>"Size", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:sizes}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:explicitly_targeted}, {:type=>"AdSenseSettingsInheritedProperty", :min_occurs=>0, :max_occurs=>1, :name=>:inherited_ad_sense_settings}]}, :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}]}, :AdUnitPage=>{: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=>"AdUnit", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :ActivateAdUnits=>{:fields=>[], :base=>"AdUnitAction"}, :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}]}, :ArchiveAdUnits=>{:fields=>[], :base=>"AdUnitAction"}, :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"}, :AdSenseSettings=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:ad_sense_enabled}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:border_color}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:title_color}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:background_color}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:text_color}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:url_color}, {:type=>"AdSenseSettings.AdType", :min_occurs=>0, :max_occurs=>1, :name=>:ad_type}, {:type=>"AdSenseSettings.BorderStyle", :min_occurs=>0, :max_occurs=>1, :name=>:border_style}, {:type=>"AdSenseSettings.FontFamily", :min_occurs=>0, :max_occurs=>1, :name=>:font_family}, {:type=>"AdSenseSettings.FontSize", :min_occurs=>0, :max_occurs=>1, :name=>:font_size}, {:type=>"Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:afc_formats}]}, :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"}, :AssignAdUnitsToPlacement=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:placement_id}], :base=>"AdUnitAction"}}
|
12
14
|
INVENTORYSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:09.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/line_item_creative_association_service_registry'
|
@@ -15,32 +15,32 @@ module DfpApi; module V201103; module LineItemCreativeAssociationService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def perform_line_item_creative_association_action(*args)
|
19
|
-
return execute_action('perform_line_item_creative_association_action', args)
|
18
|
+
def perform_line_item_creative_association_action(*args, &block)
|
19
|
+
return execute_action('perform_line_item_creative_association_action', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def update_line_item_creative_association(*args)
|
23
|
-
return execute_action('update_line_item_creative_association', args)
|
22
|
+
def update_line_item_creative_association(*args, &block)
|
23
|
+
return execute_action('update_line_item_creative_association', args, &block)
|
24
24
|
end
|
25
25
|
|
26
|
-
def create_line_item_creative_association(*args)
|
27
|
-
return execute_action('create_line_item_creative_association', args)
|
26
|
+
def create_line_item_creative_association(*args, &block)
|
27
|
+
return execute_action('create_line_item_creative_association', args, &block)
|
28
28
|
end
|
29
29
|
|
30
|
-
def update_line_item_creative_associations(*args)
|
31
|
-
return execute_action('update_line_item_creative_associations', args)
|
30
|
+
def update_line_item_creative_associations(*args, &block)
|
31
|
+
return execute_action('update_line_item_creative_associations', args, &block)
|
32
32
|
end
|
33
33
|
|
34
|
-
def create_line_item_creative_associations(*args)
|
35
|
-
return execute_action('create_line_item_creative_associations', args)
|
34
|
+
def create_line_item_creative_associations(*args, &block)
|
35
|
+
return execute_action('create_line_item_creative_associations', args, &block)
|
36
36
|
end
|
37
37
|
|
38
|
-
def get_line_item_creative_association(*args)
|
39
|
-
return execute_action('get_line_item_creative_association', args)
|
38
|
+
def get_line_item_creative_association(*args, &block)
|
39
|
+
return execute_action('get_line_item_creative_association', args, &block)
|
40
40
|
end
|
41
41
|
|
42
|
-
def get_line_item_creative_associations_by_statement(*args)
|
43
|
-
return execute_action('get_line_item_creative_associations_by_statement', args)
|
42
|
+
def get_line_item_creative_associations_by_statement(*args, &block)
|
43
|
+
return execute_action('get_line_item_creative_associations_by_statement', 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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:09.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module LineItemCreativeAssociationService
|
9
11
|
class LineItemCreativeAssociationServiceRegistry
|
10
|
-
LINEITEMCREATIVEASSOCIATIONSERVICE_METHODS = {:perform_line_item_creative_association_action=>{:input=>[{:type=>"LineItemCreativeAssociationAction", :min_occurs=>0, :name=>:line_item_creative_association_action
|
11
|
-
LINEITEMCREATIVEASSOCIATIONSERVICE_TYPES = {:
|
12
|
+
LINEITEMCREATIVEASSOCIATIONSERVICE_METHODS = {:perform_line_item_creative_association_action=>{:input=>[{:type=>"LineItemCreativeAssociationAction", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_creative_association_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_line_item_creative_association_action_response"}}, :update_line_item_creative_association=>{:input=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_creative_association}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_line_item_creative_association_response"}}, :create_line_item_creative_association=>{:input=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_creative_association}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_line_item_creative_association_response"}}, :update_line_item_creative_associations=>{:input=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:line_item_creative_associations}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_line_item_creative_associations_response"}}, :create_line_item_creative_associations=>{:input=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:line_item_creative_associations}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_line_item_creative_associations_response"}}, :get_line_item_creative_association=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_line_item_creative_association_response"}}, :get_line_item_creative_associations_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"LineItemCreativeAssociationPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_line_item_creative_associations_by_statement_response"}}}
|
13
|
+
LINEITEMCREATIVEASSOCIATIONSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :ActivateLineItemCreativeAssociations=>{:fields=>[], :base=>"LineItemCreativeAssociationAction"}, :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}]}, :DeactivateLineItemCreativeAssociations=>{:fields=>[], :base=>"LineItemCreativeAssociationAction"}, :LineItemCreativeAssociationAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_creative_association_action_type}], :abstract=>true}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :LineItemCreativeAssociation=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:manual_creative_rotation_weight}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time}, {:type=>"StartDateTimeType", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time_type}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:end_date_time}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}, {:type=>"Size", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:sizes}, {:type=>"LineItemCreativeAssociation.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"LineItemCreativeAssociationStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :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}]}, :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}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :LineItemCreativeAssociationPage=>{: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=>"LineItemCreativeAssociation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :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"}, :Stats=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions_delivered}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks_delivered}]}, :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"}, :LineItemCreativeAssociationStats=>{:fields=>[{:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_in_order_currency}]}}
|
12
14
|
LINEITEMCREATIVEASSOCIATIONSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:35.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/line_item_service_registry'
|
@@ -15,32 +15,32 @@ module DfpApi; module V201103; module LineItemService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def create_line_items(*args, &block)
|
19
|
+
return execute_action('create_line_items', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
23
|
-
return execute_action('
|
22
|
+
def get_line_item(*args, &block)
|
23
|
+
return execute_action('get_line_item', args, &block)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
27
|
-
return execute_action('
|
26
|
+
def get_line_items_by_statement(*args, &block)
|
27
|
+
return execute_action('get_line_items_by_statement', args, &block)
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
31
|
-
return execute_action('
|
30
|
+
def perform_line_item_action(*args, &block)
|
31
|
+
return execute_action('perform_line_item_action', args, &block)
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
35
|
-
return execute_action('
|
34
|
+
def update_line_item(*args, &block)
|
35
|
+
return execute_action('update_line_item', args, &block)
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
return execute_action('
|
38
|
+
def create_line_item(*args, &block)
|
39
|
+
return execute_action('create_line_item', args, &block)
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
43
|
-
return execute_action('
|
42
|
+
def update_line_items(*args, &block)
|
43
|
+
return execute_action('update_line_items', 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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:35.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module LineItemService
|
9
11
|
class LineItemServiceRegistry
|
10
|
-
LINEITEMSERVICE_METHODS = {:
|
11
|
-
LINEITEMSERVICE_TYPES = {:Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:width, :max_occurs=>1}, {:type=>"int", :min_occurs=>0, :name=>:height, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_aspect_ratio, :max_occurs=>1}]}, :LineItemSummary=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:order_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:order_name, :max_occurs=>1}, {:type=>"DateTime", :min_occurs=>0, :name=>:start_date_time, :max_occurs=>1}, {:type=>"StartDateTimeType", :min_occurs=>0, :name=>:start_date_time_type, :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=>"CreativeRotationType", :min_occurs=>0, :name=>:creative_rotation_type, :max_occurs=>1}, {:type=>"DeliveryRateType", :min_occurs=>0, :name=>:delivery_rate_type, :max_occurs=>1}, {:type=>"RoadblockingType", :min_occurs=>0, :name=>:roadblocking_type, :max_occurs=>1}, {:type=>"FrequencyCap", :min_occurs=>0, :name=>:frequency_caps, :max_occurs=>:unbounded}, {:type=>"LineItemType", :min_occurs=>0, :name=>:line_item_type, :max_occurs=>1}, {:type=>"UnitType", :min_occurs=>0, :name=>:unit_type, :max_occurs=>1}, {:type=>"LineItemSummary.Duration", :min_occurs=>0, :name=>:duration, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:units_bought, :max_occurs=>1}, {:type=>"Money", :min_occurs=>0, :name=>:cost_per_unit, :max_occurs=>1}, {:type=>"Money", :min_occurs=>0, :name=>:value_cost_per_unit, :max_occurs=>1}, {:type=>"CostType", :min_occurs=>0, :name=>:cost_type, :max_occurs=>1}, {:type=>"LineItemDiscountType", :min_occurs=>0, :name=>:discount_type, :max_occurs=>1}, {:type=>"double", :min_occurs=>0, :name=>:discount, :max_occurs=>1}, {:type=>"Size", :min_occurs=>0, :name=>:creative_sizes, :max_occurs=>:unbounded}, {:type=>"boolean", :min_occurs=>0, :name=>:allow_overbook, :max_occurs=>1}, {:type=>"Stats", :min_occurs=>0, :name=>:stats, :max_occurs=>1}, {:type=>"DeliveryIndicator", :min_occurs=>0, :name=>:delivery_indicator, :max_occurs=>1}, {:type=>"DeliveryData", :min_occurs=>0, :name=>:delivery_data, :max_occurs=>1}, {:type=>"Money", :min_occurs=>0, :name=>:budget, :max_occurs=>1}, {:type=>"ComputedStatus", :min_occurs=>0, :name=>:status, :max_occurs=>1}, {:type=>"LineItemSummary.ReservationStatus", :min_occurs=>0, :name=>:reservation_status, :max_occurs=>1}, {:type=>"boolean", :min_occurs=>0, :name=>:is_archived, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:line_item_summary_type, :max_occurs=>1}]}, :CustomCriteriaSet=>{:base=>"CustomCriteriaNode", :fields=>[{:type=>"CustomCriteriaSet.LogicalOperator", :min_occurs=>0, :name=>:logical_operator, :max_occurs=>1}, {:type=>"CustomCriteriaNode", :min_occurs=>0, :name=>:children, :max_occurs=>:unbounded}]}, :TimeOfDay=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:hour, :max_occurs=>1}, {:type=>"MinuteOfHour", :min_occurs=>0, :name=>:minute, :max_occurs=>1}]}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:query, :max_occurs=>1}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :ReleaseLineItems=>{:base=>"LineItemAction", :fields=>[]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:currency_code, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:micro_amount, :max_occurs=>1}]}, :GeoTargeting=>{:fields=>[{:type=>"Location", :min_occurs=>0, :name=>:targeted_locations, :max_occurs=>:unbounded}, {:type=>"Location", :min_occurs=>0, :name=>:excluded_locations, :max_occurs=>:unbounded}]}, :ActivateLineItems=>{:base=>"LineItemAction", :fields=>[]}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:num_changes, :max_occurs=>1}]}, :Stats=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:impressions_delivered, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:clicks_delivered, :max_occurs=>1}]}, :OAuth=>{:base=>"Authentication", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:parameters, :max_occurs=>1}]}, :Location=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:location_type, :max_occurs=>1}]}, :CustomCriteriaNode=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:custom_criteria_node_type, :max_occurs=>1}]}, :UserDomainTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:domains, :max_occurs=>:unbounded}, {:type=>"boolean", :min_occurs=>0, :name=>:targeted, :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}]}, :ReserveAndOverbookLineItems=>{:base=>"ReserveLineItems", :fields=>[]}, :NumberValue=>{:base=>"Value", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value, :max_occurs=>1}]}, :InventoryTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :name=>:targeted_ad_unit_ids, :max_occurs=>:unbounded}, {:type=>"string", :min_occurs=>0, :name=>:excluded_ad_unit_ids, :max_occurs=>:unbounded}, {:type=>"long", :min_occurs=>0, :name=>:targeted_placement_ids, :max_occurs=>:unbounded}]}, :ArchiveLineItems=>{:base=>"LineItemAction", :fields=>[]}, :Targeting=>{:fields=>[{:type=>"GeoTargeting", :min_occurs=>0, :name=>:geo_targeting, :max_occurs=>1}, {:type=>"InventoryTargeting", :min_occurs=>0, :name=>:inventory_targeting, :max_occurs=>1}, {:type=>"DayPartTargeting", :min_occurs=>0, :name=>:day_part_targeting, :max_occurs=>1}, {:type=>"CustomCriteriaSet", :min_occurs=>0, :name=>:custom_targeting, :max_occurs=>1}, {:type=>"UserDomainTargeting", :min_occurs=>0, :name=>:user_domain_targeting, :max_occurs=>1}]}, :MetroLocation=>{:base=>"Location", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:metro_code, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:country_code, :max_occurs=>1}]}, :DeliveryData=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:units, :max_occurs=>:unbounded}]}, :ReserveLineItems=>{:base=>"LineItemAction", :fields=>[]}, :LineItemAction=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:line_item_action_type, :max_occurs=>1}]}, :CustomTargetingValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :name=>:custom_targeting_key_id, :max_occurs=>1}, {:type=>"long", :min_occurs=>0, :name=>:id, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:display_name, :max_occurs=>1}, {:type=>"CustomTargetingValue.MatchType", :min_occurs=>0, :name=>:match_type, :max_occurs=>1}]}, :CityLocation=>{:base=>"Location", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:city_name, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:region_code, :max_occurs=>1}, {:type=>"string", :min_occurs=>0, :name=>:country_code, :max_occurs=>1}]}, :Value=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:value_type, :max_occurs=>1}]}, :UnarchiveLineItems=>{:base=>"LineItemAction", :fields=>[]}, :PauseLineItems=>{:base=>"LineItemAction", :fields=>[]}, :DeliveryIndicator=>{:fields=>[{:type=>"double", :min_occurs=>0, :name=>:expected_delivery_percentage, :max_occurs=>1}, {:type=>"double", :min_occurs=>0, :name=>:actual_delivery_percentage, :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}]}, :Authentication=>{:abstract=>true, :fields=>[{:type=>"string", :min_occurs=>0, :name=>:authentication_type, :max_occurs=>1}]}, :ResumeAndOverbookLineItems=>{:base=>"ResumeLineItems", :fields=>[]}, :LineItem=>{:base=>"LineItemSummary", :fields=>[{:type=>"Targeting", :min_occurs=>0, :name=>:targeting, :max_occurs=>1}]}, :CountryLocation=>{:base=>"Location", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:country_code, :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}]}, :PredefinedCustomCriteria=>{:base=>"CustomCriteria", :fields=>[{:type=>"long", :min_occurs=>0, :name=>:value_ids, :max_occurs=>:unbounded}]}, :FreeFormCustomCriteria=>{:base=>"CustomCriteria", :fields=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :name=>:values, :max_occurs=>:unbounded}]}, :DayPart=>{:fields=>[{:type=>"DayOfWeek", :min_occurs=>0, :name=>:day_of_week, :max_occurs=>1}, {:type=>"TimeOfDay", :min_occurs=>0, :name=>:start_time, :max_occurs=>1}, {:type=>"TimeOfDay", :min_occurs=>0, :name=>:end_time, :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}]}, :ResumeLineItems=>{:base=>"LineItemAction", :fields=>[]}, :LineItemPage=>{: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=>"LineItem", :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}]}, :CustomCriteria=>{:base=>"CustomCriteriaNode", :fields=>[{:type=>"long", :min_occurs=>0, :name=>:key_id, :max_occurs=>1}, {:type=>"CustomCriteria.ComparisonOperator", :min_occurs=>0, :name=>:operator, :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}]}, :RegionLocation=>{:base=>"Location", :fields=>[{:type=>"string", :min_occurs=>0, :name=>:region_code, :max_occurs=>1}]}, :FrequencyCap=>{:fields=>[{:type=>"int", :min_occurs=>0, :name=>:max_impressions, :max_occurs=>1}, {:type=>"TimeUnit", :min_occurs=>0, :name=>:time_unit, :max_occurs=>1}]}, :DayPartTargeting=>{:fields=>[{:type=>"DayPart", :min_occurs=>0, :name=>:day_parts, :max_occurs=>:unbounded}, {:type=>"DeliveryTimeZone", :min_occurs=>0, :name=>:time_zone, :max_occurs=>1}]}}
|
12
|
+
LINEITEMSERVICE_METHODS = {:create_line_items=>{:input=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:line_items}], :output=>{:fields=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_line_items_response"}}, :get_line_item=>{:input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_id}], :output=>{:fields=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_line_item_response"}}, :get_line_items_by_statement=>{:input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}], :output=>{:fields=>[{:type=>"LineItemPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_line_items_by_statement_response"}}, :perform_line_item_action=>{:input=>[{:type=>"LineItemAction", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_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_line_item_action_response"}}, :update_line_item=>{:input=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:line_item}], :output=>{:fields=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_line_item_response"}}, :create_line_item=>{:input=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:line_item}], :output=>{:fields=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_line_item_response"}}, :update_line_items=>{:input=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:line_items}], :output=>{:fields=>[{:type=>"LineItem", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_line_items_response"}}}
|
13
|
+
LINEITEMSERVICE_TYPES = {:ReserveAndOverbookLineItems=>{:fields=>[], :base=>"ReserveLineItems"}, :LineItem=>{:fields=>[{:type=>"Targeting", :min_occurs=>0, :max_occurs=>1, :name=>:targeting}], :base=>"LineItemSummary"}, :CustomCriteriaNode=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:custom_criteria_node_type}], :abstract=>true}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :Targeting=>{:fields=>[{:type=>"GeoTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:geo_targeting}, {:type=>"InventoryTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:inventory_targeting}, {:type=>"DayPartTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:day_part_targeting}, {:type=>"CustomCriteriaSet", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting}, {:type=>"UserDomainTargeting", :min_occurs=>0, :max_occurs=>1, :name=>:user_domain_targeting}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :FrequencyCap=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:max_impressions}, {:type=>"TimeUnit", :min_occurs=>0, :max_occurs=>1, :name=>:time_unit}]}, :CityLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:city_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:region_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :ReserveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :LineItemPage=>{: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=>"LineItem", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :DayPart=>{:fields=>[{:type=>"DayOfWeek", :min_occurs=>0, :max_occurs=>1, :name=>:day_of_week}, {:type=>"TimeOfDay", :min_occurs=>0, :max_occurs=>1, :name=>:start_time}, {:type=>"TimeOfDay", :min_occurs=>0, :max_occurs=>1, :name=>:end_time}]}, :PauseLineItems=>{:fields=>[], :base=>"LineItemAction"}, :GeoTargeting=>{:fields=>[{:type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_locations}, {:type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:excluded_locations}]}, :FreeFormCustomCriteria=>{:fields=>[{:type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}], :base=>"CustomCriteria"}, :CountryLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :ResumeAndOverbookLineItems=>{:fields=>[], :base=>"ResumeLineItems"}, :LineItemSummary=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:order_id}, {: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=>:order_name}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time}, {:type=>"StartDateTimeType", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time_type}, {: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=>"CreativeRotationType", :min_occurs=>0, :max_occurs=>1, :name=>:creative_rotation_type}, {:type=>"DeliveryRateType", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_rate_type}, {:type=>"RoadblockingType", :min_occurs=>0, :max_occurs=>1, :name=>:roadblocking_type}, {:type=>"FrequencyCap", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:frequency_caps}, {:type=>"LineItemType", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_type}, {:type=>"UnitType", :min_occurs=>0, :max_occurs=>1, :name=>:unit_type}, {:type=>"LineItemSummary.Duration", :min_occurs=>0, :max_occurs=>1, :name=>:duration}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units_bought}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_unit}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:value_cost_per_unit}, {:type=>"CostType", :min_occurs=>0, :max_occurs=>1, :name=>:cost_type}, {:type=>"LineItemDiscountType", :min_occurs=>0, :max_occurs=>1, :name=>:discount_type}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:discount}, {:type=>"Size", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creative_sizes}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:allow_overbook}, {:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}, {:type=>"DeliveryIndicator", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_indicator}, {:type=>"DeliveryData", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_data}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:budget}, {:type=>"ComputedStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"LineItemSummary.ReservationStatus", :min_occurs=>0, :max_occurs=>1, :name=>:reservation_status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_archived}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_summary_type}]}, :DayPartTargeting=>{:fields=>[{:type=>"DayPart", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:day_parts}, {:type=>"DeliveryTimeZone", :min_occurs=>0, :max_occurs=>1, :name=>:time_zone}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :TimeOfDay=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:hour}, {:type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1, :name=>:minute}]}, :PredefinedCustomCriteria=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value_ids}], :base=>"CustomCriteria"}, :InventoryTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:excluded_ad_unit_ids}, {:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_placement_ids}]}, :ActivateLineItems=>{:fields=>[], :base=>"LineItemAction"}, :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}]}, :ResumeLineItems=>{:fields=>[], :base=>"LineItemAction"}, :Location=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:location_type}]}, :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}]}, :UnarchiveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :RegionLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:region_code}], :base=>"Location"}, :CustomCriteria=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:key_id}, {:type=>"CustomCriteria.ComparisonOperator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}], :base=>"CustomCriteriaNode"}, :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}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :MetroLocation=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:metro_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Location"}, :DeliveryData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:units}]}, :UserDomainTargeting=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:domains}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:targeted}]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ReleaseLineItems=>{:fields=>[], :base=>"LineItemAction"}, :LineItemAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:line_item_action_type}], :abstract=>true}, :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}]}, :CustomTargetingValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:custom_targeting_key_id}, {: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=>:display_name}, {:type=>"CustomTargetingValue.MatchType", :min_occurs=>0, :max_occurs=>1, :name=>:match_type}]}, :CustomCriteriaSet=>{:fields=>[{:type=>"CustomCriteriaSet.LogicalOperator", :min_occurs=>0, :max_occurs=>1, :name=>:logical_operator}, {:type=>"CustomCriteriaNode", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:children}], :base=>"CustomCriteriaNode"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :ArchiveLineItems=>{:fields=>[], :base=>"LineItemAction"}, :Stats=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions_delivered}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks_delivered}]}, :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"}, :DeliveryIndicator=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:expected_delivery_percentage}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:actual_delivery_percentage}]}}
|
12
14
|
LINEITEMSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:06.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/network_service_registry'
|
@@ -15,16 +15,16 @@ module DfpApi; module V201103; module NetworkService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def get_all_networks(*args, &block)
|
19
|
+
return execute_action('get_all_networks', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
23
|
-
return execute_action('
|
22
|
+
def get_current_network(*args, &block)
|
23
|
+
return execute_action('get_current_network', args, &block)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
27
|
-
return execute_action('
|
26
|
+
def update_network(*args, &block)
|
27
|
+
return execute_action('update_network', 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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:31:06.
|
7
|
+
|
8
|
+
require 'dfp_api/errors'
|
7
9
|
|
8
10
|
module DfpApi; module V201103; module NetworkService
|
9
11
|
class NetworkServiceRegistry
|
10
|
-
NETWORKSERVICE_METHODS = {:
|
11
|
-
NETWORKSERVICE_TYPES = {:
|
12
|
+
NETWORKSERVICE_METHODS = {:get_all_networks=>{:input=>[], :output=>{:fields=>[{:type=>"Network", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"get_all_networks_response"}}, :get_current_network=>{:input=>[], :output=>{:fields=>[{:type=>"Network", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_current_network_response"}}, :update_network=>{:input=>[{:type=>"Network", :min_occurs=>0, :max_occurs=>1, :name=>:network}], :output=>{:fields=>[{:type=>"Network", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_network_response"}}}
|
13
|
+
NETWORKSERVICE_TYPES = {:ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :Network=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:property_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:time_zone}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:effective_root_ad_unit_id}]}, :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}, :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"}}
|
12
14
|
NETWORKSERVICE_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.
|
6
|
+
# Code generated by AdsCommon library 0.5.3 on 2011-10-24 17:30:12.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201103/order_service_registry'
|
@@ -15,32 +15,32 @@ module DfpApi; module V201103; module OrderService
|
|
15
15
|
super(api, endpoint, namespace, :v201103)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def perform_order_action(*args, &block)
|
19
|
+
return execute_action('perform_order_action', args, &block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
23
|
-
return execute_action('
|
22
|
+
def update_order(*args, &block)
|
23
|
+
return execute_action('update_order', args, &block)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
27
|
-
return execute_action('
|
26
|
+
def create_order(*args, &block)
|
27
|
+
return execute_action('create_order', args, &block)
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
31
|
-
return execute_action('
|
30
|
+
def update_orders(*args, &block)
|
31
|
+
return execute_action('update_orders', args, &block)
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
35
|
-
return execute_action('
|
34
|
+
def create_orders(*args, &block)
|
35
|
+
return execute_action('create_orders', args, &block)
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
return execute_action('
|
38
|
+
def get_order(*args, &block)
|
39
|
+
return execute_action('get_order', args, &block)
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
43
|
-
return execute_action('
|
42
|
+
def get_orders_by_statement(*args, &block)
|
43
|
+
return execute_action('get_orders_by_statement', args, &block)
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|