Class: AdopsReportScrapper::AdsenseClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- AdopsReportScrapper::AdsenseClient
- Defined in:
- lib/adops_report_scrapper/adsense_client.rb
Overview
require option with network_id to be passed into constructor
Constant Summary collapse
- API_NAME =
'adsense'
- API_VERSION =
'v1.4'
- CREDENTIAL_STORE_FILE =
"#{API_NAME}-oauth2.json"
- API_SCOPE =
'https://www.googleapis.com/auth/adsense.readonly'
Instance Method Summary collapse
Methods inherited from BaseClient
#before_quit_with_error, #get_data, #initialize, #login, #logout
Constructor Details
This class inherits a constructor from AdopsReportScrapper::BaseClient
Instance Method Details
#date_supported?(date = nil) ⇒ Boolean
17 18 19 20 21 |
# File 'lib/adops_report_scrapper/adsense_client.rb', line 17 def date_supported?(date = nil) _date = date || @date return true if _date < Date.today false end |