Wrapper class for the v201008 BidLandscape service. This class is automatically generated.
- G
- N
[R] | api | Holds the AdWords::API object to which the wrapper belongs. |
[R] | module | Holds a shortcut to the parent module. Use this to avoid typing the full class name when creating classes belonging to this service, e.g. service_object.module::ClassName instead of AdWords::V201008::BidLandscapeService::ClassName This will make it easier to migrate your code between API versions. |
Constructor for BidLandscapeServiceWrapper.
Args:
- driver: SOAP::RPC::Driver object with the remote SOAP methods for this service
- api: the AdWords::API object to which the wrapper belongs
Source: show
# File lib/adwords4r/v201008/BidLandscapeServiceWrapper.rb, line 34 def initialize(driver, api) @driver = driver @api = api @module = AdWords::V201008::BidLandscapeService end
Calls the getBidLandscape method of the BidLandscape service. Check the online documentation for this method.
Args:
Returns:
- rval: SOAP::SOAPArray of AdWords::V201008::BidLandscapeService::BidLandscape
Raises: Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
Source: show
# File lib/adwords4r/v201008/BidLandscapeServiceWrapper.rb, line 52 def getBidLandscape(selector) begin AdWords::Service.validate_param('selector', selector, AdWords::V201008::BidLandscapeService::BidLandscapeSelector) # Construct request object and make API call obj = AdWords::V201008::BidLandscapeService::GetBidLandscape.new(selector) return @driver.getBidLandscape(obj) rescue SOAP::FaultError => fault raise(AdWords::Error::create_specific_api_error(fault), "getBidLandscape Call Failed: " + fault.faultstring.to_s, caller) end end