Class: DfpApi::V201211::OrderService::OrderService
- Inherits:
-
AdsCommon::SavonService
- Object
- AdsCommon::SavonService
- DfpApi::V201211::OrderService::OrderService
- Defined in:
- lib/dfp_api/v201211/order_service.rb
Instance Method Summary collapse
- #create_order(*args, &block) ⇒ Object
- #create_orders(*args, &block) ⇒ Object
- #get_order(*args, &block) ⇒ Object
- #get_orders_by_statement(*args, &block) ⇒ Object
-
#initialize(config, endpoint) ⇒ OrderService
constructor
A new instance of OrderService.
- #perform_order_action(*args, &block) ⇒ Object
- #update_order(*args, &block) ⇒ Object
- #update_orders(*args, &block) ⇒ Object
Constructor Details
#initialize(config, endpoint) ⇒ OrderService
Returns a new instance of OrderService.
15 16 17 18 |
# File 'lib/dfp_api/v201211/order_service.rb', line 15 def initialize(config, endpoint) namespace = 'https://www.google.com/apis/ads/publisher/v201211' super(config, endpoint, namespace, :v201211) end |
Instance Method Details
#create_order(*args, &block) ⇒ Object
20 21 22 |
# File 'lib/dfp_api/v201211/order_service.rb', line 20 def create_order(*args, &block) return execute_action('create_order', args, &block) end |
#create_orders(*args, &block) ⇒ Object
24 25 26 |
# File 'lib/dfp_api/v201211/order_service.rb', line 24 def create_orders(*args, &block) return execute_action('create_orders', args, &block) end |
#get_order(*args, &block) ⇒ Object
28 29 30 |
# File 'lib/dfp_api/v201211/order_service.rb', line 28 def get_order(*args, &block) return execute_action('get_order', args, &block) end |
#get_orders_by_statement(*args, &block) ⇒ Object
32 33 34 |
# File 'lib/dfp_api/v201211/order_service.rb', line 32 def get_orders_by_statement(*args, &block) return execute_action('get_orders_by_statement', args, &block) end |
#perform_order_action(*args, &block) ⇒ Object
36 37 38 |
# File 'lib/dfp_api/v201211/order_service.rb', line 36 def perform_order_action(*args, &block) return execute_action('perform_order_action', args, &block) end |
#update_order(*args, &block) ⇒ Object
40 41 42 |
# File 'lib/dfp_api/v201211/order_service.rb', line 40 def update_order(*args, &block) return execute_action('update_order', args, &block) end |
#update_orders(*args, &block) ⇒ Object
44 45 46 |
# File 'lib/dfp_api/v201211/order_service.rb', line 44 def update_orders(*args, &block) return execute_action('update_orders', args, &block) end |