Class: AdManagerApi::UtilsReporter
- Inherits:
-
Object
- Object
- AdManagerApi::UtilsReporter
- Defined in:
- lib/ad_manager_api/utils_reporter.rb
Instance Method Summary collapse
-
#ad_manager_date_time_used ⇒ Object
A callback method for AdManagerDateTime to indicate that it has been used, and that its usage should be recorded in the next user agent string.
-
#ad_manager_date_used ⇒ Object
A callback method for AdManagerDate 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.
-
#statement_builder_used ⇒ Object
A callback method for StatementBuilder 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
AdManagerApi instance.
30 31 32 |
# File 'lib/ad_manager_api/utils_reporter.rb', line 30 def initialize(credential_handler) @credential_handler = credential_handler end |
Instance Method Details
#ad_manager_date_time_used ⇒ Object
A callback method for AdManagerDateTime 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/ad_manager_api/utils_reporter.rb', line 48 def ad_manager_date_time_used() @credential_handler.include_in_user_agent("AdManagerDateTime") end |
#ad_manager_date_used ⇒ Object
A callback method for AdManagerDate 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/ad_manager_api/utils_reporter.rb', line 42 def ad_manager_date_used() @credential_handler.include_in_user_agent("AdManagerDate") end |
#statement_builder_used ⇒ Object
A callback method for StatementBuilder 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/ad_manager_api/utils_reporter.rb', line 36 def statement_builder_used() @credential_handler.include_in_user_agent("StatementBuilder") end |