Class: AdwordsApi::UtilsReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/adwords_api/utils_reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(credential_handler) ⇒ UtilsReporter

Default constructor.

Args:

  • credential_handler: The CredentialHandler being used by the current

AdwordsApi instance.



30
31
32
# File 'lib/adwords_api/utils_reporter.rb', line 30

def initialize(credential_handler)
  @credential_handler = credential_handler
end

Instance Method Details

#batch_job_utils_usedObject

A callback method from batch job utils to indicate that it has been used, and that its usage should be recorded in the next user agent string.



42
43
44
# File 'lib/adwords_api/utils_reporter.rb', line 42

def batch_job_utils_used()
  @credential_handler.include_in_user_agent("BatchJobHelper")
end

#report_query_builder_usedObject

A callback method from report query builder to indicate that it has been used, and that its usage should be recorded in the next user agent string.



48
49
50
# File 'lib/adwords_api/utils_reporter.rb', line 48

def report_query_builder_used()
  @credential_handler.include_in_user_agent("ReportQueryBuilder")
end

#report_utils_usedObject

A callback method from report utils to indicate that it has been used, and that its usage should be recorded in the next user agent string.



36
37
38
# File 'lib/adwords_api/utils_reporter.rb', line 36

def report_utils_used()
  @credential_handler.include_in_user_agent("ReportDownloader")
end

#service_query_builder_usedObject

A callback method from service query builder to indicate that it has been used, and that its usage should be recorded in the next user agent string.



54
55
56
# File 'lib/adwords_api/utils_reporter.rb', line 54

def service_query_builder_used()
  @credential_handler.include_in_user_agent("ServiceQueryBuilder")
end