Wrapper class for the v200909 TargetingIdea service. This class is automatically generated.

Methods
G
N
Attributes
[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::V200909::TargetingIdeaService::ClassName

This will make it easier to migrate your code between API versions.

Class Public methods
new(driver, api)

Constructor for TargetingIdeaServiceWrapper.

Args:

  • driver: SOAP::RPC::Driver object with the remote SOAP methods for this service
  • api: the AdWords::API object to which the wrapper belongs
# File lib/adwords4r/v200909/TargetingIdeaServiceWrapper.rb, line 34
        def initialize(driver, api)
          @driver = driver
          @api = api
          @module = AdWords::V200909::TargetingIdeaService
        end
Instance Public methods
get(selector)

Calls the get method of the TargetingIdea service. Check the online documentation for this method.

Args:

Returns:

Raises: Error::ApiError (or a subclass thereof) if a SOAP fault occurs.

# File lib/adwords4r/v200909/TargetingIdeaServiceWrapper.rb, line 52
        def get(selector)
          begin
            AdWords::Service.validate_param('selector',
                selector, AdWords::V200909::TargetingIdeaService::TargetingIdeaSelector)
            # Construct request object and make API call
            obj = AdWords::V200909::TargetingIdeaService::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
getBulkKeywordIdeas(selector)
# File lib/adwords4r/v200909/TargetingIdeaServiceWrapper.rb, line 77
        def getBulkKeywordIdeas(selector)
          begin
            AdWords::Service.validate_param('selector',
                selector, AdWords::V200909::TargetingIdeaService::TargetingIdeaSelector)
            # Construct request object and make API call
            obj = AdWords::V200909::TargetingIdeaService::GetBulkKeywordIdeas.new(selector)
            return @driver.getBulkKeywordIdeas(obj)
          rescue SOAP::FaultError => fault
            raise(AdWords::Error::create_specific_api_error(fault),
                "getBulkKeywordIdeas Call Failed: " + fault.faultstring.to_s, caller)
          end
        end