Wrapper class for the v200906 AdGroupAd service. This class is automatically generated.
[R] | api | Holds the AdWords::API object to which the wrapper belongs |
Constructor for AdGroupAdServiceWrapper.
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/v200906/AdGroupAdServiceWrapper.rb, line 25 def initialize(driver, api) @driver = driver @api = api end
Calls the get method of the AdGroupAd service. Check the online documentation for this method.
Args:
Returns:
Raises: Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
Source: show
# File lib/adwords4r/v200906/AdGroupAdServiceWrapper.rb, line 42 def get(selector) begin AdWords::Service.validate_param('selector', selector, AdWords::V200906::AdGroupAdService::AdGroupAdSelector) # Construct request object and make API call obj = AdWords::V200906::AdGroupAdService::Get.new(selector) return @driver.get(obj) rescue SOAP::FaultError => fault raise(AdWords::Error::create_specific_api_error(fault), "get Call Failed: " + fault.faultstring.to_s, caller) end end
Calls the mutate method of the AdGroupAd service. Check the online documentation for this method.
Args:
- operations: SOAP::SOAPArray of AdWords::V200906::AdGroupAdService::AdGroupAdOperation
Returns:
Raises: Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
Source: show
# File lib/adwords4r/v200906/AdGroupAdServiceWrapper.rb, line 67 def mutate(operations) begin AdWords::Service.validate_param('operations', operations, SOAP::SOAPArray) # Construct request object and make API call obj = AdWords::V200906::AdGroupAdService::Mutate.new(operations) return @driver.mutate(obj) rescue SOAP::FaultError => fault raise(AdWords::Error::create_specific_api_error(fault), "mutate Call Failed: " + fault.faultstring.to_s, caller) end end