google-dfp-api 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/README +13 -1
- data/Rakefile +7 -1
- data/examples/v201111/third_party_slot_service/archive_third_party_slots.rb +125 -0
- data/examples/v201111/third_party_slot_service/create_third_party_slot.rb +91 -0
- data/examples/v201111/third_party_slot_service/get_all_third_party_slots.rb +93 -0
- data/examples/v201111/third_party_slot_service/get_third_party_slot_by_statement.rb +86 -0
- data/examples/v201111/third_party_slot_service/update_third_party_slots.rb +95 -0
- data/lib/dfp_api/api_config.rb +1 -1
- data/lib/dfp_api/v201103/company_service.rb +13 -13
- data/lib/dfp_api/v201103/company_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/creative_service.rb +5 -5
- data/lib/dfp_api/v201103/creative_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/forecast_service.rb +5 -5
- data/lib/dfp_api/v201103/forecast_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/inventory_service.rb +13 -13
- data/lib/dfp_api/v201103/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/line_item_creative_association_service.rb +9 -9
- data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/line_item_service.rb +13 -13
- data/lib/dfp_api/v201103/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/network_service.rb +1 -1
- data/lib/dfp_api/v201103/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/order_service.rb +5 -5
- data/lib/dfp_api/v201103/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/placement_service.rb +13 -13
- data/lib/dfp_api/v201103/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/report_service.rb +1 -1
- data/lib/dfp_api/v201103/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201103/user_service.rb +9 -9
- data/lib/dfp_api/v201103/user_service_registry.rb +3 -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 +5 -5
- 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 +13 -13
- data/lib/dfp_api/v201104/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/line_item_creative_association_service.rb +9 -9
- data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/line_item_service.rb +13 -13
- data/lib/dfp_api/v201104/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/network_service.rb +1 -1
- data/lib/dfp_api/v201104/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/order_service.rb +5 -5
- data/lib/dfp_api/v201104/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/placement_service.rb +13 -13
- data/lib/dfp_api/v201104/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/report_service.rb +1 -1
- data/lib/dfp_api/v201104/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201104/user_service.rb +9 -9
- 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 +5 -5
- data/lib/dfp_api/v201107/creative_service_registry.rb +3 -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 +3 -3
- data/lib/dfp_api/v201107/inventory_service.rb +17 -17
- data/lib/dfp_api/v201107/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/label_service.rb +13 -13
- data/lib/dfp_api/v201107/label_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/line_item_creative_association_service.rb +9 -9
- data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/line_item_service.rb +13 -13
- data/lib/dfp_api/v201107/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/network_service.rb +1 -1
- data/lib/dfp_api/v201107/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/order_service.rb +5 -5
- data/lib/dfp_api/v201107/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/placement_service.rb +13 -13
- data/lib/dfp_api/v201107/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/report_service.rb +1 -1
- data/lib/dfp_api/v201107/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201107/user_service.rb +13 -13
- 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 +5 -5
- 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 +13 -13
- data/lib/dfp_api/v201108/label_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/line_item_creative_association_service.rb +9 -9
- data/lib/dfp_api/v201108/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/line_item_service.rb +13 -13
- data/lib/dfp_api/v201108/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/network_service.rb +1 -1
- data/lib/dfp_api/v201108/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/order_service.rb +5 -5
- data/lib/dfp_api/v201108/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/placement_service.rb +13 -13
- data/lib/dfp_api/v201108/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201108/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/report_service.rb +1 -1
- data/lib/dfp_api/v201108/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/third_party_slot_service.rb +1 -1
- data/lib/dfp_api/v201108/third_party_slot_service_registry.rb +3 -3
- data/lib/dfp_api/v201108/user_service.rb +13 -13
- data/lib/dfp_api/v201108/user_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/company_service.rb +13 -13
- data/lib/dfp_api/v201111/company_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/content_service.rb +1 -1
- data/lib/dfp_api/v201111/content_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/creative_service.rb +5 -5
- data/lib/dfp_api/v201111/creative_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201111/creative_template_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/custom_targeting_service.rb +17 -17
- data/lib/dfp_api/v201111/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/forecast_service.rb +5 -5
- data/lib/dfp_api/v201111/forecast_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/inventory_service.rb +17 -17
- data/lib/dfp_api/v201111/inventory_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/label_service.rb +13 -13
- data/lib/dfp_api/v201111/label_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/line_item_creative_association_service.rb +13 -13
- data/lib/dfp_api/v201111/line_item_creative_association_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/line_item_service.rb +13 -13
- data/lib/dfp_api/v201111/line_item_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/network_service.rb +1 -1
- data/lib/dfp_api/v201111/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/order_service.rb +5 -5
- data/lib/dfp_api/v201111/order_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/placement_service.rb +13 -13
- data/lib/dfp_api/v201111/placement_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201111/publisher_query_language_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/report_service.rb +1 -1
- data/lib/dfp_api/v201111/report_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201111/suggested_ad_unit_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/third_party_slot_service.rb +1 -1
- data/lib/dfp_api/v201111/third_party_slot_service_registry.rb +3 -3
- data/lib/dfp_api/v201111/user_service.rb +13 -13
- data/lib/dfp_api/v201111/user_service_registry.rb +3 -3
- data/lib/dfp_api.rb +1 -1
- metadata +17 -9
@@ -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.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:01:18.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201107/placement_service_registry'
|
@@ -15,10 +15,22 @@ module DfpApi; module V201107; module PlacementService
|
|
15
15
|
super(api, endpoint, namespace, :v201107)
|
16
16
|
end
|
17
17
|
|
18
|
+
def perform_placement_action(*args, &block)
|
19
|
+
return execute_action('perform_placement_action', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def update_placement(*args, &block)
|
23
|
+
return execute_action('update_placement', args, &block)
|
24
|
+
end
|
25
|
+
|
18
26
|
def create_placement(*args, &block)
|
19
27
|
return execute_action('create_placement', args, &block)
|
20
28
|
end
|
21
29
|
|
30
|
+
def update_placements(*args, &block)
|
31
|
+
return execute_action('update_placements', args, &block)
|
32
|
+
end
|
33
|
+
|
22
34
|
def create_placements(*args, &block)
|
23
35
|
return execute_action('create_placements', args, &block)
|
24
36
|
end
|
@@ -31,18 +43,6 @@ module DfpApi; module V201107; module PlacementService
|
|
31
43
|
return execute_action('get_placements_by_statement', args, &block)
|
32
44
|
end
|
33
45
|
|
34
|
-
def perform_placement_action(*args, &block)
|
35
|
-
return execute_action('perform_placement_action', args, &block)
|
36
|
-
end
|
37
|
-
|
38
|
-
def update_placement(*args, &block)
|
39
|
-
return execute_action('update_placement', args, &block)
|
40
|
-
end
|
41
|
-
|
42
|
-
def update_placements(*args, &block)
|
43
|
-
return execute_action('update_placements', args, &block)
|
44
|
-
end
|
45
|
-
|
46
46
|
private
|
47
47
|
|
48
48
|
def get_service_registry()
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:01:18.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201107; module PlacementService
|
11
11
|
class PlacementServiceRegistry
|
12
|
-
PLACEMENTSERVICE_METHODS = {:
|
13
|
-
PLACEMENTSERVICE_TYPES = {:
|
12
|
+
PLACEMENTSERVICE_METHODS = {:perform_placement_action=>{:output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_placement_action_response"}, :input=>[{:type=>"PlacementAction", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :update_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_placement_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}]}, :create_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_placement_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}]}, :update_placements=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_placements_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:placements}]}, :create_placements=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_placements_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:placements}]}, :get_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placement_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:placement_id}]}, :get_placements_by_statement=>{:output=>{:fields=>[{:type=>"PlacementPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placements_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}}
|
13
|
+
PLACEMENTSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :PlacementAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action_type}], :abstract=>true}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Placement=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_code}, {:type=>"InventoryStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_sense_targeting_enabled}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_planner_targeting_enabled}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_sense_targeting_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids}], :base=>"SiteTargetingInfo"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :InventoryStatus=>{:fields=>[]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :PlacementPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :SiteTargetingInfo=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_site_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_ad_location}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:site_targeting_info_type}]}}
|
14
14
|
PLACEMENTSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:01:23.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201107/publisher_query_language_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:01:23.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201107; module PublisherQueryLanguageService
|
11
11
|
class PublisherQueryLanguageServiceRegistry
|
12
|
-
PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:
|
13
|
-
PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:
|
12
|
+
PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:output=>{:fields=>[{:type=>"ResultSet", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"select_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:select_statement}]}}
|
13
|
+
PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Row=>{:fields=>[{:type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ColumnType=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:label_name}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:column_types}, {:type=>"Row", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rows}]}}
|
14
14
|
PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:00:51.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201107/report_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:00:51.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201107; module ReportService
|
11
11
|
class ReportServiceRegistry
|
12
|
-
REPORTSERVICE_METHODS = {:get_report_download_url=>{:
|
13
|
-
REPORTSERVICE_TYPES = {:
|
12
|
+
REPORTSERVICE_METHODS = {:get_report_download_url=>{:output=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_download_url_response"}, :original_name=>"getReportDownloadURL", :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}, {:type=>"ExportFormat", :min_occurs=>0, :max_occurs=>1, :name=>:export_format}]}, :get_report_job=>{:output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_job_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}]}, :run_report_job=>{:output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"run_report_job_response"}, :input=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:report_job}]}}
|
13
|
+
REPORTSERVICE_TYPES = {:ExportFormat=>{:fields=>[]}, :ReportQuery=>{:fields=>[{:type=>"Dimension", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimensions}, {:type=>"Column", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:columns}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"DateRangeType", :min_occurs=>0, :max_occurs=>1, :name=>:date_range_type}, {:type=>"DimensionFilter", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimension_filters}]}, :ReportJobStatus=>{:fields=>[]}, :Column=>{:fields=>[]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :DateRangeType=>{:fields=>[]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:year}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:month}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:day}]}, :Dimension=>{:fields=>[]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :DimensionFilter=>{:fields=>[]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ReportJob=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"ReportQuery", :min_occurs=>0, :max_occurs=>1, :name=>:report_query}, {:type=>"ReportJobStatus", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_status}]}}
|
14
14
|
REPORTSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:00:42.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201107/user_service_registry'
|
@@ -15,20 +15,24 @@ module DfpApi; module V201107; module UserService
|
|
15
15
|
super(api, endpoint, namespace, :v201107)
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
return execute_action('
|
18
|
+
def update_user(*args, &block)
|
19
|
+
return execute_action('update_user', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_current_user(*args, &block)
|
23
|
+
return execute_action('get_current_user', args, &block)
|
20
24
|
end
|
21
25
|
|
22
26
|
def create_users(*args, &block)
|
23
27
|
return execute_action('create_users', args, &block)
|
24
28
|
end
|
25
29
|
|
26
|
-
def
|
27
|
-
return execute_action('
|
30
|
+
def update_users(*args, &block)
|
31
|
+
return execute_action('update_users', args, &block)
|
28
32
|
end
|
29
33
|
|
30
|
-
def
|
31
|
-
return execute_action('
|
34
|
+
def get_all_roles(*args, &block)
|
35
|
+
return execute_action('get_all_roles', args, &block)
|
32
36
|
end
|
33
37
|
|
34
38
|
def get_user(*args, &block)
|
@@ -43,12 +47,8 @@ module DfpApi; module V201107; module UserService
|
|
43
47
|
return execute_action('perform_user_action', args, &block)
|
44
48
|
end
|
45
49
|
|
46
|
-
def
|
47
|
-
return execute_action('
|
48
|
-
end
|
49
|
-
|
50
|
-
def update_users(*args, &block)
|
51
|
-
return execute_action('update_users', args, &block)
|
50
|
+
def create_user(*args, &block)
|
51
|
+
return execute_action('create_user', args, &block)
|
52
52
|
end
|
53
53
|
|
54
54
|
private
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:00:42.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201107; module UserService
|
11
11
|
class UserServiceRegistry
|
12
|
-
USERSERVICE_METHODS = {:
|
13
|
-
USERSERVICE_TYPES = {:
|
12
|
+
USERSERVICE_METHODS = {:update_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_user_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}]}, :get_current_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_current_user_response"}, :input=>[]}, :create_users=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_users_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}]}, :update_users=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_users_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}]}, :get_all_roles=>{:output=>{:fields=>[{:type=>"Role", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"get_all_roles_response"}, :input=>[]}, :get_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_user_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_id}]}, :get_users_by_statement=>{:output=>{:fields=>[{:type=>"UserPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_users_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :perform_user_action=>{:output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_user_action_response"}, :input=>[{:type=>"UserAction", :min_occurs=>0, :max_occurs=>1, :name=>:user_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :create_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_user_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}]}}
|
13
|
+
USERSERVICE_TYPES = {:User=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_active}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_email_notification_allowed}], :base=>"UserRecord"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :UserPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :ActivateUsers=>{:fields=>[], :base=>"UserAction"}, :UserRecord=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:role_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:role_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preferred_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_record_type}]}, :DeactivateUsers=>{:fields=>[], :base=>"UserAction"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :Role=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :UserAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_action_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}]}}
|
14
14
|
USERSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:02:52.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201108/company_service_registry'
|
@@ -15,18 +15,6 @@ module DfpApi; module V201108; module CompanyService
|
|
15
15
|
super(api, endpoint, namespace, :v201108)
|
16
16
|
end
|
17
17
|
|
18
|
-
def create_companies(*args, &block)
|
19
|
-
return execute_action('create_companies', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_company(*args, &block)
|
23
|
-
return execute_action('create_company', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def get_companies_by_statement(*args, &block)
|
27
|
-
return execute_action('get_companies_by_statement', args, &block)
|
28
|
-
end
|
29
|
-
|
30
18
|
def get_company(*args, &block)
|
31
19
|
return execute_action('get_company', args, &block)
|
32
20
|
end
|
@@ -39,6 +27,18 @@ module DfpApi; module V201108; module CompanyService
|
|
39
27
|
return execute_action('update_company', args, &block)
|
40
28
|
end
|
41
29
|
|
30
|
+
def create_companies(*args, &block)
|
31
|
+
return execute_action('create_companies', args, &block)
|
32
|
+
end
|
33
|
+
|
34
|
+
def create_company(*args, &block)
|
35
|
+
return execute_action('create_company', args, &block)
|
36
|
+
end
|
37
|
+
|
38
|
+
def get_companies_by_statement(*args, &block)
|
39
|
+
return execute_action('get_companies_by_statement', args, &block)
|
40
|
+
end
|
41
|
+
|
42
42
|
private
|
43
43
|
|
44
44
|
def get_service_registry()
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:02:52.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201108; module CompanyService
|
11
11
|
class CompanyServiceRegistry
|
12
|
-
COMPANYSERVICE_METHODS = {:
|
13
|
-
COMPANYSERVICE_TYPES = {:
|
12
|
+
COMPANYSERVICE_METHODS = {:get_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_company_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:company_id}]}, :update_companies=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_companies_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}]}, :update_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_company_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}]}, :create_companies=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_companies_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companies}]}, :create_company=>{:output=>{:fields=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_company_response"}, :input=>[{:type=>"Company", :min_occurs=>0, :max_occurs=>1, :name=>:company}]}, :get_companies_by_statement=>{:output=>{:fields=>[{:type=>"CompanyPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_companies_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}}
|
13
|
+
COMPANYSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :AppliedLabel=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:label_id}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_negated}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :CreativePlaceholder=>{:fields=>[{:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"CreativePlaceholder", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}]}, :CompanyPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Company", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :AdUnitSize=>{:fields=>[{:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"EnvironmentType", :min_occurs=>0, :max_occurs=>1, :name=>:environment_type}, {:type=>"AdUnitSize", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companions}]}, :CustomCriteria=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:key_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value_ids}, {: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}, :"Company.Type"=>{:fields=>[]}, :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"}, :"CustomCriteria.ComparisonOperator"=>{:fields=>[]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :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"}, :"CustomCriteriaSet.LogicalOperator"=>{:fields=>[]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_aspect_ratio}]}, :EnvironmentType=>{:fields=>[]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :Company=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Company.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:address}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fax_phone}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:primary_phone}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:external_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comment}, {:type=>"AppliedLabel", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:applied_labels}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enable_same_advertiser_competitive_exclusion}]}}
|
14
14
|
COMPANYSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:03:33.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201108/creative_service_registry'
|
@@ -15,6 +15,10 @@ module DfpApi; module V201108; module CreativeService
|
|
15
15
|
super(api, endpoint, namespace, :v201108)
|
16
16
|
end
|
17
17
|
|
18
|
+
def update_creatives(*args, &block)
|
19
|
+
return execute_action('update_creatives', args, &block)
|
20
|
+
end
|
21
|
+
|
18
22
|
def create_creative(*args, &block)
|
19
23
|
return execute_action('create_creative', args, &block)
|
20
24
|
end
|
@@ -35,10 +39,6 @@ module DfpApi; module V201108; module CreativeService
|
|
35
39
|
return execute_action('update_creative', args, &block)
|
36
40
|
end
|
37
41
|
|
38
|
-
def update_creatives(*args, &block)
|
39
|
-
return execute_action('update_creatives', args, &block)
|
40
|
-
end
|
41
|
-
|
42
42
|
private
|
43
43
|
|
44
44
|
def get_service_registry()
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:03:33.
|
7
7
|
|
8
8
|
require 'dfp_api/errors'
|
9
9
|
|
10
10
|
module DfpApi; module V201108; module CreativeService
|
11
11
|
class CreativeServiceRegistry
|
12
|
-
CREATIVESERVICE_METHODS = {:
|
13
|
-
CREATIVESERVICE_TYPES = {:
|
12
|
+
CREATIVESERVICE_METHODS = {:update_creatives=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_creatives_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}]}, :create_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_creative_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}]}, :create_creatives=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_creatives_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:creatives}]}, :get_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creative_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creative_id}]}, :get_creatives_by_statement=>{:output=>{:fields=>[{:type=>"CreativePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_creatives_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :update_creative=>{:output=>{:fields=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_creative_response"}, :input=>[{:type=>"Creative", :min_occurs=>0, :max_occurs=>1, :name=>:creative}]}}
|
13
|
+
CREATIVESERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :InternalRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:internal_redirect_url}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_interstitial}], :base=>"Creative"}, :Creative=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preview_url}, {:type=>"AppliedLabel", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:applied_labels}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creative_type}], :abstract=>true}, :AppliedLabel=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:label_id}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_negated}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :ImageRedirectCreative=>{:fields=>[], :base=>"BaseImageRedirectCreative"}, :CreativePlaceholder=>{:fields=>[{:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:size}, {:type=>"CreativePlaceholder", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:companions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :CreativePage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Creative", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :ThirdPartyCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:expanded_snippet}], :base=>"Creative"}, :BaseFlashCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:flash_byte_array}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:click_tag_required}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:flash_asset_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_asset_size}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :FlashCreative=>{:fields=>[], :base=>"BaseFlashCreative"}, :ClickTrackingCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:click_tracking_url}], :base=>"Creative"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :BaseFlashRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:flash_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:fallback_preview_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :FlashRedirectCreative=>{:fields=>[], :base=>"BaseFlashRedirectCreative"}, :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}]}, :CustomCreativeAsset=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:macro_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:asset_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:file_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:file_size}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :BaseImageCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_name}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:image_byte_array}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:override_size}, {:type=>"Size", :min_occurs=>0, :max_occurs=>1, :name=>:asset_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Size=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_aspect_ratio}]}, :HasDestinationUrlCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}], :abstract=>true, :base=>"Creative"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :CustomCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:html_snippet}, {:type=>"CustomCreativeAsset", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:custom_creative_assets}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_interstitial}], :base=>"HasDestinationUrlCreative"}, :BaseImageRedirectCreative=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:image_url}], :abstract=>true, :base=>"HasDestinationUrlCreative"}, :ImageCreative=>{:fields=>[], :base=>"BaseImageCreative"}}
|
14
14
|
CREATIVESERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.6.
|
6
|
+
# Code generated by AdsCommon library 0.6.1 on 2011-12-20 18:02:42.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'dfp_api/v201108/custom_targeting_service_registry'
|
@@ -15,22 +15,6 @@ module DfpApi; module V201108; module CustomTargetingService
|
|
15
15
|
super(api, endpoint, namespace, :v201108)
|
16
16
|
end
|
17
17
|
|
18
|
-
def create_custom_targeting_keys(*args, &block)
|
19
|
-
return execute_action('create_custom_targeting_keys', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_custom_targeting_values(*args, &block)
|
23
|
-
return execute_action('create_custom_targeting_values', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def get_custom_targeting_keys_by_statement(*args, &block)
|
27
|
-
return execute_action('get_custom_targeting_keys_by_statement', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
def get_custom_targeting_values_by_statement(*args, &block)
|
31
|
-
return execute_action('get_custom_targeting_values_by_statement', args, &block)
|
32
|
-
end
|
33
|
-
|
34
18
|
def perform_custom_targeting_key_action(*args, &block)
|
35
19
|
return execute_action('perform_custom_targeting_key_action', args, &block)
|
36
20
|
end
|
@@ -39,14 +23,30 @@ module DfpApi; module V201108; module CustomTargetingService
|
|
39
23
|
return execute_action('perform_custom_targeting_value_action', args, &block)
|
40
24
|
end
|
41
25
|
|
26
|
+
def create_custom_targeting_keys(*args, &block)
|
27
|
+
return execute_action('create_custom_targeting_keys', args, &block)
|
28
|
+
end
|
29
|
+
|
42
30
|
def update_custom_targeting_keys(*args, &block)
|
43
31
|
return execute_action('update_custom_targeting_keys', args, &block)
|
44
32
|
end
|
45
33
|
|
34
|
+
def create_custom_targeting_values(*args, &block)
|
35
|
+
return execute_action('create_custom_targeting_values', args, &block)
|
36
|
+
end
|
37
|
+
|
46
38
|
def update_custom_targeting_values(*args, &block)
|
47
39
|
return execute_action('update_custom_targeting_values', args, &block)
|
48
40
|
end
|
49
41
|
|
42
|
+
def get_custom_targeting_keys_by_statement(*args, &block)
|
43
|
+
return execute_action('get_custom_targeting_keys_by_statement', args, &block)
|
44
|
+
end
|
45
|
+
|
46
|
+
def get_custom_targeting_values_by_statement(*args, &block)
|
47
|
+
return execute_action('get_custom_targeting_values_by_statement', args, &block)
|
48
|
+
end
|
49
|
+
|
50
50
|
private
|
51
51
|
|
52
52
|
def get_service_registry()
|