Sha256: 272a96183483213e27ee8d180bf021d5ec41c8ae755476a1abc77ffe954f84f7
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module AdwordsApi class Api def freeze(*_args) true end end end module AdwordsHelpers # This is a test account, i.e. no real ad spend API_CONFIG = { authentication: { method: 'OAuth2', oauth2_client_id: '191191759012-uflljs7ckudnq4pl14lrkogkej2rodvm' \ '.apps.googleusercontent.com', oauth2_client_secret: 'zDil4XMnvtjeQqBpbJVEbS7d', developer_token: 'rLHiiXnn-XSm4AwE8Ni6Tw', client_customer_id: '9919697176', user_agent: 'gladwords', oauth2_token: { refresh_token: '1/QEmJJudQcsw8CMfBU2VDZrhJaRVKQ8TjdVkvRYuZgFg', expires_in: 0 } }, service: { environment: 'PRODUCTION' } }.freeze def gimme_adwords @gimme_adwords ||= begin adwords = AdwordsApi::Api.new(API_CONFIG) if Dir.exist?('log') adwords.logger = Logger.new('log/test.log') end adwords end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gladwords-1.0.1 | spec/support/adwords_helpers.rb |