Module: AdManagerApi::ApiConfig
- Extended by:
- AdsCommon::ApiConfig
- Defined in:
- lib/ad_manager_api/api_config.rb,
lib/ad_manager_api/version.rb
Overview
Contains helper methods for loading and managing the available services.
Constant Summary collapse
- CLIENT_LIB_VERSION =
'3.3.0'
- DEFAULT_VERSION =
Set defaults
:v202411
- LATEST_VERSION =
:v202411
- API_NAME =
Set other constants
'AdManagerApi'
- DEFAULT_CONFIG_FILENAME =
'ad_manager_api.yml'
- @@service_config =
Configure the services available to each version
{ :v202402 => [:ActivityGroupService, :ActivityService, :AdjustmentService, :AdRuleService, :AudienceSegmentService, :CompanyService, :CdnConfigurationService, :CmsMetadataService, :ContactService, :ContentBundleService, :ContentService, :CreativeService, :CreativeSetService, :CreativeTemplateService, :CreativeWrapperService, :CustomFieldService, :CustomTargetingService, :DaiAuthenticationKeyService, :DaiEncodingProfileService, :ForecastService, :InventoryService, :LabelService, :LineItemCreativeAssociationService, :LineItemService, :LineItemTemplateService, :LiveStreamEventService, :MobileApplicationService, :NativeStyleService, :NetworkService, :OrderService, :PlacementService, :ProposalLineItemService, :ProposalService, :PublisherQueryLanguageService, :ReportService, :SegmentPopulationService, :SiteService, :StreamActivityMonitorService, :SuggestedAdUnitService, :TargetingPresetService, :TeamService, :UserService, :UserTeamAssociationService, :YieldGroupService], :v202405 => [:AdjustmentService, :AdRuleService, :AudienceSegmentService, :CompanyService, :CdnConfigurationService, :CmsMetadataService, :ContactService, :ContentBundleService, :ContentService, :CreativeService, :CreativeSetService, :CreativeTemplateService, :CreativeWrapperService, :CustomFieldService, :CustomTargetingService, :DaiAuthenticationKeyService, :DaiEncodingProfileService, :ForecastService, :InventoryService, :LabelService, :LineItemCreativeAssociationService, :LineItemService, :LineItemTemplateService, :LiveStreamEventService, :MobileApplicationService, :NativeStyleService, :NetworkService, :OrderService, :PlacementService, :ProposalLineItemService, :ProposalService, :PublisherQueryLanguageService, :ReportService, :SegmentPopulationService, :SiteService, :StreamActivityMonitorService, :SuggestedAdUnitService, :TargetingPresetService, :TeamService, :UserService, :UserTeamAssociationService, :YieldGroupService], :v202408 => [:AdjustmentService, :AdRuleService, :AdsTxtService, :AudienceSegmentService, :CompanyService, :CdnConfigurationService, :CmsMetadataService, :ContactService, :ContentBundleService, :ContentService, :CreativeService, :CreativeSetService, :CreativeTemplateService, :CreativeWrapperService, :CustomFieldService, :CustomTargetingService, :DaiAuthenticationKeyService, :DaiEncodingProfileService, :ForecastService, :InventoryService, :LabelService, :LineItemCreativeAssociationService, :LineItemService, :LineItemTemplateService, :LiveStreamEventService, :MobileApplicationService, :NativeStyleService, :NetworkService, :OrderService, :PlacementService, :ProposalLineItemService, :ProposalService, :PublisherQueryLanguageService, :ReportService, :SegmentPopulationService, :SiteService, :StreamActivityMonitorService, :SuggestedAdUnitService, :TargetingPresetService, :TeamService, :UserService, :UserTeamAssociationService, :YieldGroupService], :v202411 => [:AdjustmentService, :AdRuleService, :AdsTxtService, :AudienceSegmentService, :CompanyService, :CdnConfigurationService, :CmsMetadataService, :ContactService, :ContentBundleService, :ContentService, :CreativeService, :CreativeSetService, :CreativeTemplateService, :CreativeWrapperService, :CustomFieldService, :CustomTargetingService, :DaiAuthenticationKeyService, :DaiEncodingProfileService, :ForecastService, :InventoryService, :LabelService, :LineItemCreativeAssociationService, :LineItemService, :LineItemTemplateService, :LiveStreamEventService, :MobileApplicationService, :NativeStyleService, :NetworkService, :OrderService, :PlacementService, :ProposalLineItemService, :ProposalService, :PublisherQueryLanguageService, :ReportService, :SegmentPopulationService, :SiteService, :StreamActivityMonitorService, :SuggestedAdUnitService, :TargetingPresetService, :TeamService, :UserService, :UserTeamAssociationService, :YieldGroupService] }
- @@config =
Configure the base URL for each version and scope.
{ :oauth_scope => 'https://www.googleapis.com/auth/dfp', :header_ns => 'https://www.google.com/apis/ads/publisher/', :v202402 => 'https://ads.google.com/apis/ads/publisher/', :v202405 => 'https://ads.google.com/apis/ads/publisher/', :v202408 => 'https://ads.google.com/apis/ads/publisher/', :v202411 => 'https://ads.google.com/apis/ads/publisher/', }
Class Method Summary collapse
- .api_name ⇒ Object
- .config(key) ⇒ Object
- .default_config_filename ⇒ Object
-
.default_version ⇒ Object
Getters for constants and module variables.
- .latest_version ⇒ Object
- .service_config ⇒ Object
- .subdir_config ⇒ Object
Class Method Details
.api_name ⇒ Object
143 144 145 |
# File 'lib/ad_manager_api/api_config.rb', line 143 def self.api_name API_NAME end |
.config(key) ⇒ Object
151 152 153 |
# File 'lib/ad_manager_api/api_config.rb', line 151 def self.config(key) @@config[key] end |
.default_config_filename ⇒ Object
159 160 161 |
# File 'lib/ad_manager_api/api_config.rb', line 159 def self.default_config_filename DEFAULT_CONFIG_FILENAME end |
.default_version ⇒ Object
Getters for constants and module variables.
135 136 137 |
# File 'lib/ad_manager_api/api_config.rb', line 135 def self.default_version DEFAULT_VERSION end |
.latest_version ⇒ Object
139 140 141 |
# File 'lib/ad_manager_api/api_config.rb', line 139 def self.latest_version LATEST_VERSION end |
.service_config ⇒ Object
147 148 149 |
# File 'lib/ad_manager_api/api_config.rb', line 147 def self.service_config @@service_config end |
.subdir_config ⇒ Object
155 156 157 |
# File 'lib/ad_manager_api/api_config.rb', line 155 def self.subdir_config nil end |