Class: AdManagerApi::UtilsReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/ad_manager_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

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_usedObject

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_usedObject

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_usedObject

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