Class: AdwordsApi::UtilsReporter
- Inherits:
-
Object
- Object
- AdwordsApi::UtilsReporter
- Defined in:
- lib/adwords_api/utils_reporter.rb
Instance Method Summary collapse
-
#batch_job_utils_used ⇒ Object
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.
-
#initialize(credential_handler) ⇒ UtilsReporter
constructor
Default constructor.
-
#report_utils_used ⇒ Object
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.
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_used ⇒ Object
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_utils_used ⇒ Object
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 |