Module: Google::Shopping::Css
- Defined in:
- lib/google/shopping/css.rb,
lib/google/shopping/css/version.rb
Constant Summary collapse
- VERSION =
"1.0.0"
Class Method Summary collapse
-
.account_labels_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountLabelsService.
-
.accounts_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountsService.
-
.css_product_inputs_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CssProductInputsService.
-
.css_products_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CssProductsService.
Class Method Details
.account_labels_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountLabelsService.
By default, this returns an instance of
Google::Shopping::Css::V1::AccountLabelsService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the AccountLabelsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About AccountLabelsService
Manages Merchant Center and CSS accounts labels.
86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/shopping/css.rb', line 86 def self.account_labels_service version: :v1, transport: :grpc, &block require "google/shopping/css/#{version.to_s.downcase}" package_name = Google::Shopping::Css .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Css.const_get(package_name).const_get(:AccountLabelsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.accounts_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountsService.
By default, this returns an instance of
Google::Shopping::Css::V1::AccountsService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the AccountsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About AccountsService
Service for managing CSS/MC account information.
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/google/shopping/css.rb', line 52 def self.accounts_service version: :v1, transport: :grpc, &block require "google/shopping/css/#{version.to_s.downcase}" package_name = Google::Shopping::Css .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Css.const_get(package_name).const_get(:AccountsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.css_product_inputs_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CssProductInputsService.
By default, this returns an instance of
Google::Shopping::Css::V1::CssProductInputsService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the CssProductInputsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About CssProductInputsService
Service to use CssProductInput resource. This service helps to insert/update/delete CSS Products.
121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/google/shopping/css.rb', line 121 def self.css_product_inputs_service version: :v1, transport: :grpc, &block require "google/shopping/css/#{version.to_s.downcase}" package_name = Google::Shopping::Css .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Css.const_get(package_name).const_get(:CssProductInputsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.css_products_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CssProductsService.
By default, this returns an instance of
Google::Shopping::Css::V1::CssProductsService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the CssProductsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About CssProductsService
Service for doing get and list on Css Products(a.k.a Aggregate Offers internally).
156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/google/shopping/css.rb', line 156 def self.css_products_service version: :v1, transport: :grpc, &block require "google/shopping/css/#{version.to_s.downcase}" package_name = Google::Shopping::Css .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Css.const_get(package_name).const_get(:CssProductsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |