Class: DfpApi::V201611::ProductService::ProductService
- Inherits:
-
AdsCommon::SavonService
- Object
- AdsCommon::SavonService
- DfpApi::V201611::ProductService::ProductService
- Defined in:
- lib/dfp_api/v201611/product_service.rb
Instance Method Summary collapse
- #create_products(*args, &block) ⇒ Object
- #create_products_to_xml(*args) ⇒ Object
- #get_products_by_statement(*args, &block) ⇒ Object
- #get_products_by_statement_to_xml(*args) ⇒ Object
-
#initialize(config, endpoint) ⇒ ProductService
constructor
A new instance of ProductService.
- #perform_product_action(*args, &block) ⇒ Object
- #perform_product_action_to_xml(*args) ⇒ Object
- #update_products(*args, &block) ⇒ Object
- #update_products_to_xml(*args) ⇒ Object
Constructor Details
#initialize(config, endpoint) ⇒ ProductService
Returns a new instance of ProductService.
15 16 17 18 |
# File 'lib/dfp_api/v201611/product_service.rb', line 15 def initialize(config, endpoint) namespace = 'https://www.google.com/apis/ads/publisher/v201611' super(config, endpoint, namespace, :v201611) end |
Instance Method Details
#create_products(*args, &block) ⇒ Object
20 21 22 |
# File 'lib/dfp_api/v201611/product_service.rb', line 20 def create_products(*args, &block) return execute_action('create_products', args, &block) end |
#create_products_to_xml(*args) ⇒ Object
24 25 26 |
# File 'lib/dfp_api/v201611/product_service.rb', line 24 def create_products_to_xml(*args) return get_soap_xml('create_products', args) end |
#get_products_by_statement(*args, &block) ⇒ Object
28 29 30 |
# File 'lib/dfp_api/v201611/product_service.rb', line 28 def get_products_by_statement(*args, &block) return execute_action('get_products_by_statement', args, &block) end |
#get_products_by_statement_to_xml(*args) ⇒ Object
32 33 34 |
# File 'lib/dfp_api/v201611/product_service.rb', line 32 def get_products_by_statement_to_xml(*args) return get_soap_xml('get_products_by_statement', args) end |
#perform_product_action(*args, &block) ⇒ Object
36 37 38 |
# File 'lib/dfp_api/v201611/product_service.rb', line 36 def perform_product_action(*args, &block) return execute_action('perform_product_action', args, &block) end |
#perform_product_action_to_xml(*args) ⇒ Object
40 41 42 |
# File 'lib/dfp_api/v201611/product_service.rb', line 40 def perform_product_action_to_xml(*args) return get_soap_xml('perform_product_action', args) end |
#update_products(*args, &block) ⇒ Object
44 45 46 |
# File 'lib/dfp_api/v201611/product_service.rb', line 44 def update_products(*args, &block) return execute_action('update_products', args, &block) end |
#update_products_to_xml(*args) ⇒ Object
48 49 50 |
# File 'lib/dfp_api/v201611/product_service.rb', line 48 def update_products_to_xml(*args) return get_soap_xml('update_products', args) end |