google-dfp-api 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ChangeLog +6 -0
- data/lib/ad_manager_api/api_config.rb +26 -26
- data/lib/ad_manager_api/pql_statement_utils.rb +6 -7
- data/lib/ad_manager_api/v201811/activity_group_service.rb +54 -0
- data/lib/ad_manager_api/v201811/activity_group_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/activity_service.rb +54 -0
- data/lib/ad_manager_api/v201811/activity_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/ad_exclusion_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201811/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/ad_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201811/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/audience_segment_service.rb +62 -0
- data/lib/ad_manager_api/v201811/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/base_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201811/base_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/cdn_configuration_service.rb +62 -0
- data/lib/ad_manager_api/v201811/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/company_service.rb +54 -0
- data/lib/ad_manager_api/v201811/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/contact_service.rb +54 -0
- data/lib/ad_manager_api/v201811/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/content_bundle_service.rb +62 -0
- data/lib/ad_manager_api/v201811/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/content_service.rb +46 -0
- data/lib/ad_manager_api/v201811/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/creative_service.rb +54 -0
- data/lib/ad_manager_api/v201811/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/creative_set_service.rb +54 -0
- data/lib/ad_manager_api/v201811/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/creative_template_service.rb +38 -0
- data/lib/ad_manager_api/v201811/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/creative_wrapper_service.rb +62 -0
- data/lib/ad_manager_api/v201811/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/custom_field_service.rb +86 -0
- data/lib/ad_manager_api/v201811/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/custom_targeting_service.rb +94 -0
- data/lib/ad_manager_api/v201811/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/dai_authentication_key_service.rb +62 -0
- data/lib/ad_manager_api/v201811/dai_authentication_key_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/exchange_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201811/exchange_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/forecast_service.rb +62 -0
- data/lib/ad_manager_api/v201811/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/inventory_service.rb +70 -0
- data/lib/ad_manager_api/v201811/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/label_service.rb +62 -0
- data/lib/ad_manager_api/v201811/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/line_item_creative_association_service.rb +78 -0
- data/lib/ad_manager_api/v201811/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201811/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/line_item_template_service.rb +38 -0
- data/lib/ad_manager_api/v201811/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/live_stream_event_service.rb +70 -0
- data/lib/ad_manager_api/v201811/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/mobile_application_service.rb +62 -0
- data/lib/ad_manager_api/v201811/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/native_style_service.rb +62 -0
- data/lib/ad_manager_api/v201811/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/network_service.rb +62 -0
- data/lib/ad_manager_api/v201811/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/order_service.rb +62 -0
- data/lib/ad_manager_api/v201811/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/package_service.rb +62 -0
- data/lib/ad_manager_api/v201811/package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/placement_service.rb +62 -0
- data/lib/ad_manager_api/v201811/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/premium_rate_service.rb +54 -0
- data/lib/ad_manager_api/v201811/premium_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/product_package_item_service.rb +62 -0
- data/lib/ad_manager_api/v201811/product_package_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/product_package_service.rb +62 -0
- data/lib/ad_manager_api/v201811/product_package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/product_service.rb +54 -0
- data/lib/ad_manager_api/v201811/product_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/product_template_service.rb +62 -0
- data/lib/ad_manager_api/v201811/product_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/proposal_line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201811/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/proposal_service.rb +70 -0
- data/lib/ad_manager_api/v201811/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/publisher_query_language_service.rb +38 -0
- data/lib/ad_manager_api/v201811/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/rate_card_service.rb +62 -0
- data/lib/ad_manager_api/v201811/rate_card_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/reconciliation_line_item_report_service.rb +46 -0
- data/lib/ad_manager_api/v201811/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/reconciliation_order_report_service.rb +54 -0
- data/lib/ad_manager_api/v201811/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/reconciliation_report_row_service.rb +46 -0
- data/lib/ad_manager_api/v201811/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/reconciliation_report_service.rb +46 -0
- data/lib/ad_manager_api/v201811/reconciliation_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/report_service.rb +70 -0
- data/lib/ad_manager_api/v201811/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/suggested_ad_unit_service.rb +46 -0
- data/lib/ad_manager_api/v201811/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/team_service.rb +62 -0
- data/lib/ad_manager_api/v201811/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/user_service.rb +78 -0
- data/lib/ad_manager_api/v201811/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/user_team_association_service.rb +62 -0
- data/lib/ad_manager_api/v201811/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201811/workflow_request_service.rb +46 -0
- data/lib/ad_manager_api/v201811/workflow_request_service_registry.rb +45 -0
- data/lib/ad_manager_api/version.rb +1 -1
- metadata +105 -3
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:14.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v201811/reconciliation_report_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V201811; module ReconciliationReportService
|
14
|
+
class ReconciliationReportService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201811'
|
17
|
+
super(config, endpoint, namespace, :v201811)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_reconciliation_reports_by_statement(*args, &block)
|
21
|
+
return execute_action('get_reconciliation_reports_by_statement', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_reconciliation_reports_by_statement_to_xml(*args)
|
25
|
+
return get_soap_xml('get_reconciliation_reports_by_statement', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def update_reconciliation_reports(*args, &block)
|
29
|
+
return execute_action('update_reconciliation_reports', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def update_reconciliation_reports_to_xml(*args)
|
33
|
+
return get_soap_xml('update_reconciliation_reports', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def get_service_registry()
|
39
|
+
return ReconciliationReportServiceRegistry
|
40
|
+
end
|
41
|
+
|
42
|
+
def get_module()
|
43
|
+
return AdManagerApi::V201811::ReconciliationReportService
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:14.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V201811; module ReconciliationReportService
|
13
|
+
class ReconciliationReportServiceRegistry
|
14
|
+
RECONCILIATIONREPORTSERVICE_METHODS = {:get_reconciliation_reports_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_reconciliation_reports_by_statement_response", :fields=>[{:name=>:rval, :type=>"ReconciliationReportPage", :min_occurs=>0, :max_occurs=>1}]}}, :update_reconciliation_reports=>{:input=>[{:name=>:reconciliation_reports, :type=>"ReconciliationReport", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_reconciliation_reports_response", :fields=>[{:name=>:rval, :type=>"ReconciliationReport", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
RECONCILIATIONREPORTSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReconciliationError=>{:fields=>[{:name=>:reason, :type=>"ReconciliationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReconciliationImportError=>{:fields=>[{:name=>:reason, :type=>"ReconciliationImportError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReconciliationReport=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"ReconciliationReportStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:notes, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ReconciliationReportPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"ReconciliationReport", :min_occurs=>0, :max_occurs=>:unbounded}]}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :Value=>{:fields=>[], :abstract=>true}, :"ApiVersionError.Reason"=>{:type=>"string", :enumerations=>["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, :"AuthenticationError.Reason"=>{:type=>"string", :enumerations=>["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NOT_WHITELISTED_FOR_API_ACCESS", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, :"CollectionSizeError.Reason"=>{:type=>"string", :enumerations=>["TOO_LARGE", "UNKNOWN"]}, :"CommonError.Reason"=>{:type=>"string", :enumerations=>["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :"FeatureError.Reason"=>{:type=>"string", :enumerations=>["MISSING_FEATURE", "UNKNOWN"]}, :"InternalApiError.Reason"=>{:type=>"string", :enumerations=>["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, :"NotNullError.Reason"=>{:type=>"string", :enumerations=>["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, :"NullError.Reason"=>{:type=>"string", :enumerations=>["NULL_CONTENT"]}, :"ParseError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"PermissionError.Reason"=>{:type=>"string", :enumerations=>["PERMISSION_DENIED", "UNKNOWN"]}, :"PublisherQueryLanguageContextError.Reason"=>{:type=>"string", :enumerations=>["UNEXECUTABLE", "UNKNOWN"]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"QuotaError.Reason"=>{:type=>"string", :enumerations=>["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT"]}, :"RangeError.Reason"=>{:type=>"string", :enumerations=>["TOO_HIGH", "TOO_LOW", "UNKNOWN"]}, :"ReconciliationError.Reason"=>{:type=>"string", :enumerations=>["CANNOT_CREATE_RECONCILIATION_REPORT_VERSION", "INVALID_RECONCILIATION_REPORT_STATE_TRANSITION", "INVALID_RECONCILIATION_PROPOSAL_SUBMISSION_SEQUENCE", "USER_CANNOT_RECONCILE_RECONCILIATION_REPORT", "CONTRACTED_VOLUME_CANNOT_BE_NULL", "DFP_VOLUME_CANNOT_BE_NULL", "MANUAL_VOLUME_CANNOT_BE_NULL", "THIRD_PARTY_VOLUME_CANNOT_BE_NULL", "DUPLICATE_LINE_ITEM_AND_CREATIVE", "CANNOT_RECONCILE_LINE_ITEM_CREATIVE", "LINE_ITEM_DAYS_MISMATCH", "LINE_ITEM_BILL_OFF_OF_MISMATCH", "CANNOT_MODIFY_RECONCILED_ORDER", "CANNOT_MODIFY_ACROSS_MULTIPLE_RECONCILIATION_REPORTS", "CANNOT_QUERY_ACROSS_MULTIPLE_RECONCILIATION_REPORTS", "CANNOT_UPDATE_VOLUME_WHEN_BILLABLE_REVENUE_OVERRIDDEN", "UNKNOWN"]}, :"ReconciliationImportError.Reason"=>{:type=>"string", :enumerations=>["MISSING_EDITABLE_COLUMN", "INCONSISTENT_IMPORT_COLUMNS", "COLUMN_CONVERSION_TYPE_ERROR", "INCONSISTENT_COLUMNS_COUNT", "IMPORT_INTERNAL_ERROR", "UNKNOWN"]}, :ReconciliationReportStatus=>{:type=>"string", :enumerations=>["DRAFT", "RECONCILED", "REVERTED", "PENDING", "UNKNOWN"]}, :"RequiredCollectionError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, :"RequiredError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED"]}, :"ServerError.Reason"=>{:type=>"string", :enumerations=>["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, :"StatementError.Reason"=>{:type=>"string", :enumerations=>["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, :"StringFormatError.Reason"=>{:type=>"string", :enumerations=>["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, :"StringLengthError.Reason"=>{:type=>"string", :enumerations=>["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}}
|
16
|
+
RECONCILIATIONREPORTSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return RECONCILIATIONREPORTSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return RECONCILIATIONREPORTSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return RECONCILIATIONREPORTSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, ReconciliationReportServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:15.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v201811/report_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V201811; module ReportService
|
14
|
+
class ReportService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201811'
|
17
|
+
super(config, endpoint, namespace, :v201811)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_report_download_url(*args, &block)
|
21
|
+
return execute_action('get_report_download_url', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_report_download_url_to_xml(*args)
|
25
|
+
return get_soap_xml('get_report_download_url', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_report_download_url_with_options(*args, &block)
|
29
|
+
return execute_action('get_report_download_url_with_options', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_report_download_url_with_options_to_xml(*args)
|
33
|
+
return get_soap_xml('get_report_download_url_with_options', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def get_report_job_status(*args, &block)
|
37
|
+
return execute_action('get_report_job_status', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def get_report_job_status_to_xml(*args)
|
41
|
+
return get_soap_xml('get_report_job_status', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def get_saved_queries_by_statement(*args, &block)
|
45
|
+
return execute_action('get_saved_queries_by_statement', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def get_saved_queries_by_statement_to_xml(*args)
|
49
|
+
return get_soap_xml('get_saved_queries_by_statement', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
def run_report_job(*args, &block)
|
53
|
+
return execute_action('run_report_job', args, &block)
|
54
|
+
end
|
55
|
+
|
56
|
+
def run_report_job_to_xml(*args)
|
57
|
+
return get_soap_xml('run_report_job', args)
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def get_service_registry()
|
63
|
+
return ReportServiceRegistry
|
64
|
+
end
|
65
|
+
|
66
|
+
def get_module()
|
67
|
+
return AdManagerApi::V201811::ReportService
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:15.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V201811; module ReportService
|
13
|
+
class ReportServiceRegistry
|
14
|
+
REPORTSERVICE_METHODS = {:get_report_download_url=>{:input=>[{:name=>:report_job_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:export_format, :type=>"ExportFormat", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_report_download_url_response", :fields=>[{:name=>:rval, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :original_name=>"getReportDownloadURL"}, :get_report_download_url_with_options=>{:input=>[{:name=>:report_job_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:report_download_options, :type=>"ReportDownloadOptions", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_report_download_url_with_options_response", :fields=>[{:name=>:rval, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}}, :get_report_job_status=>{:input=>[{:name=>:report_job_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_report_job_status_response", :fields=>[{:name=>:rval, :type=>"ReportJobStatus", :min_occurs=>0, :max_occurs=>1}]}}, :get_saved_queries_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_saved_queries_by_statement_response", :fields=>[{:name=>:rval, :type=>"SavedQueryPage", :min_occurs=>0, :max_occurs=>1}]}}, :run_report_job=>{:input=>[{:name=>:report_job, :type=>"ReportJob", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"run_report_job_response", :fields=>[{:name=>:rval, :type=>"ReportJob", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
REPORTSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReportDownloadOptions=>{:fields=>[{:name=>:export_format, :type=>"ExportFormat", :min_occurs=>0, :max_occurs=>1}, {:name=>:include_report_properties, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:include_totals_row, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:use_gzip_compression, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :ReportError=>{:fields=>[{:name=>:reason, :type=>"ReportError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReportJob=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:report_query, :type=>"ReportQuery", :min_occurs=>0, :max_occurs=>1}]}, :ReportQuery=>{:fields=>[{:name=>:dimensions, :type=>"Dimension", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_unit_view, :type=>"ReportQuery.AdUnitView", :min_occurs=>0, :max_occurs=>1}, {:name=>:columns, :type=>"Column", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:dimension_attributes, :type=>"DimensionAttribute", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:custom_field_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:content_metadata_key_hierarchy_custom_targeting_key_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:start_date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:date_range_type, :type=>"DateRangeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}, {:name=>:include_zero_sales_rows, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:adx_report_currency, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_type, :type=>"TimeZoneType", :min_occurs=>0, :max_occurs=>1}]}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SavedQuery=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:report_query, :type=>"ReportQuery", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_compatible_with_api_version, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SavedQueryPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"SavedQuery", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :Value=>{:fields=>[], :abstract=>true}, :"ReportQuery.AdUnitView"=>{:type=>"string", :enumerations=>["TOP_LEVEL", "FLAT", "HIERARCHICAL"]}, :"ApiVersionError.Reason"=>{:type=>"string", :enumerations=>["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, :"AuthenticationError.Reason"=>{:type=>"string", :enumerations=>["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NOT_WHITELISTED_FOR_API_ACCESS", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, :"CollectionSizeError.Reason"=>{:type=>"string", :enumerations=>["TOO_LARGE", "UNKNOWN"]}, :Column=>{:type=>"string", :enumerations=>["AD_SERVER_IMPRESSIONS", "AD_SERVER_TARGETED_IMPRESSIONS", "AD_SERVER_CLICKS", "AD_SERVER_TARGETED_CLICKS", "AD_SERVER_CTR", "AD_SERVER_CPM_AND_CPC_REVENUE", "AD_SERVER_CPD_REVENUE", "AD_SERVER_CPA_REVENUE", "AD_SERVER_ALL_REVENUE", "AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM", "AD_SERVER_WITH_CPD_AVERAGE_ECPM", "AD_SERVER_INVENTORY_LEVEL_PERCENT_IMPRESSIONS", "AD_SERVER_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS", "AD_SERVER_INVENTORY_LEVEL_PERCENT_CLICKS", "AD_SERVER_LINE_ITEM_LEVEL_PERCENT_CLICKS", "AD_SERVER_INVENTORY_LEVEL_WITHOUT_CPD_PERCENT_REVENUE", "AD_SERVER_INVENTORY_LEVEL_WITH_CPD_PERCENT_REVENUE", "AD_SERVER_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE", "AD_SERVER_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE", "AD_SERVER_UNFILTERED_IMPRESSIONS", "AD_SERVER_UNFILTERED_CLICKS", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS", "ADSENSE_LINE_ITEM_LEVEL_IMPRESSIONS", "ADSENSE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS", "ADSENSE_LINE_ITEM_LEVEL_CLICKS", "ADSENSE_LINE_ITEM_LEVEL_TARGETED_CLICKS", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CTR", "ADSENSE_LINE_ITEM_LEVEL_CTR", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_REVENUE", "ADSENSE_LINE_ITEM_LEVEL_REVENUE", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_AVERAGE_ECPM", "ADSENSE_LINE_ITEM_LEVEL_AVERAGE_ECPM", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_PERCENT_IMPRESSIONS", "ADSENSE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_PERCENT_CLICKS", "ADSENSE_LINE_ITEM_LEVEL_PERCENT_CLICKS", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_WITHOUT_CPD_PERCENT_REVENUE", "DYNAMIC_ALLOCATION_INVENTORY_LEVEL_WITH_CPD_PERCENT_REVENUE", "ADSENSE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE", "ADSENSE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE", "AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS", "AD_EXCHANGE_IMPRESSIONS", "AD_EXCHANGE_MATCHED_REQUESTS", "AD_EXCHANGE_AD_ECPM", "AD_EXCHANGE_CLICKS", "AD_EXCHANGE_ESTIMATED_REVENUE", "AD_EXCHANGE_COVERAGE", "AD_EXCHANGE_CTR", "AD_EXCHANGE_LIFT", "AD_EXCHANGE_CPC", "AD_EXCHANGE_AD_REQUESTS", "AD_EXCHANGE_AD_REQUEST_ECPM", "AD_EXCHANGE_AD_REQUEST_CTR", "AD_EXCHANGE_AD_CTR", "AD_EXCHANGE_VIDEO_DROPOFF_RATE", "AD_EXCHANGE_VIDEO_ABANDONMENT_RATE", "AD_EXCHANGE_MATCHED_ECPM", "AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE", "AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE", "AD_EXCHANGE_AVERAGE_VIEWABLE_TIME", "AD_EXCHANGE_ACTIVE_VIEW_ENABLED_IMPRESSIONS", "AD_EXCHANGE_ACTIVE_VIEW_MEASURED_IMPRESSIONS", "AD_EXCHANGE_ACTIVE_VIEW_VIEWED_IMPRESSIONS", "AD_EXCHANGE_DEALS_BID_RESPONSES", "AD_EXCHANGE_DEALS_MATCHED_REQUESTS", "AD_EXCHANGE_DEALS_AD_REQUESTS", "AD_EXCHANGE_DEALS_MATCH_RATE", "AD_EXCHANGE_VIDEO_QUARTILE_1", "AD_EXCHANGE_VIDEO_QUARTILE_3", "AD_EXCHANGE_VIDEO_TRUEVIEW_SKIP_RATE", "AD_EXCHANGE_VIDEO_TRUEVIEW_VIEWS", "AD_EXCHANGE_VIDEO_TRUEVIEW_VTR", "MEDIATION_THIRD_PARTY_ECPM", "AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS", "AD_EXCHANGE_LINE_ITEM_LEVEL_CLICKS", "AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_CLICKS", "AD_EXCHANGE_LINE_ITEM_LEVEL_CTR", "AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS", "AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_CLICKS", "AD_EXCHANGE_LINE_ITEM_LEVEL_REVENUE", "AD_EXCHANGE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE", "AD_EXCHANGE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE", "AD_EXCHANGE_LINE_ITEM_LEVEL_AVERAGE_ECPM", "TOTAL_INVENTORY_LEVEL_IMPRESSIONS", "TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS", "TOTAL_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS", "TOTAL_INVENTORY_LEVEL_CLICKS", "TOTAL_LINE_ITEM_LEVEL_CLICKS", "TOTAL_LINE_ITEM_LEVEL_TARGETED_CLICKS", "TOTAL_INVENTORY_LEVEL_CTR", "TOTAL_LINE_ITEM_LEVEL_CTR", "TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE", "TOTAL_INVENTORY_LEVEL_ALL_REVENUE", "TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE", "TOTAL_LINE_ITEM_LEVEL_ALL_REVENUE", "TOTAL_INVENTORY_LEVEL_WITHOUT_CPD_AVERAGE_ECPM", "TOTAL_INVENTORY_LEVEL_WITH_CPD_AVERAGE_ECPM", "TOTAL_LINE_ITEM_LEVEL_WITHOUT_CPD_AVERAGE_ECPM", "TOTAL_LINE_ITEM_LEVEL_WITH_CPD_AVERAGE_ECPM", "TOTAL_CODE_SERVED_COUNT", "TOTAL_INVENTORY_LEVEL_UNFILLED_IMPRESSIONS", "OPTIMIZATION_CONTROL_IMPRESSIONS", "OPTIMIZATION_CONTROL_CLICKS", "OPTIMIZATION_CONTROL_CTR", "OPTIMIZATION_OPTIMIZED_IMPRESSIONS", "OPTIMIZATION_OPTIMIZED_CLICKS", "OPTIMIZATION_NON_OPTIMIZED_IMPRESSIONS", "OPTIMIZATION_NON_OPTIMIZED_CLICKS", "OPTIMIZATION_EXTRA_CLICKS", "OPTIMIZATION_OPTIMIZED_CTR", "OPTIMIZATION_LIFT", "OPTIMIZATION_COVERAGE", "OPTIMIZATION_BEHIND_SCHEDULE_IMPRESSIONS", "OPTIMIZATION_NO_CLICKS_RECORDED_IMPRESSIONS", "OPTIMIZATION_SPONSORSHIP_IMPRESSIONS", "OPTIMIZATION_AS_FAST_AS_POSSIBLE_IMPRESSIONS", "OPTIMIZATION_NO_ABSOLUTE_LIFETIME_GOAL_IMPRESSIONS", "OPTIMIZATION_CONTROL_REVENUE", "OPTIMIZATION_OPTIMIZED_REVENUE", "OPTIMIZATION_CONTROL_ECPM", "OPTIMIZATION_OPTIMIZED_ECPM", "OPTIMIZATION_FREED_UP_IMPRESSIONS", "OPTIMIZATION_ECPM_LIFT", "REACH_FREQUENCY", "REACH_AVERAGE_REVENUE", "REACH", "GRP_POPULATION", "GRP_UNIQUE_AUDIENCE", "GRP_UNIQUE_AUDIENCE_SHARE", "GRP_AUDIENCE_IMPRESSIONS", "GRP_AUDIENCE_IMPRESSIONS_SHARE", "GRP_AUDIENCE_REACH", "GRP_AUDIENCE_AVERAGE_FREQUENCY", "GRP_GROSS_RATING_POINTS", "SDK_MEDIATION_CREATIVE_IMPRESSIONS", "SDK_MEDIATION_CREATIVE_CLICKS", "SELL_THROUGH_FORECASTED_IMPRESSIONS", "SELL_THROUGH_AVAILABLE_IMPRESSIONS", "SELL_THROUGH_RESERVED_IMPRESSIONS", "SELL_THROUGH_SELL_THROUGH_RATE", "RICH_MEDIA_BACKUP_IMAGES", "RICH_MEDIA_DISPLAY_TIME", "RICH_MEDIA_AVERAGE_DISPLAY_TIME", "RICH_MEDIA_EXPANSIONS", "RICH_MEDIA_EXPANDING_TIME", "RICH_MEDIA_INTERACTION_TIME", "RICH_MEDIA_INTERACTION_COUNT", "RICH_MEDIA_INTERACTION_RATE", "RICH_MEDIA_AVERAGE_INTERACTION_TIME", "RICH_MEDIA_INTERACTION_IMPRESSIONS", "RICH_MEDIA_MANUAL_CLOSES", "RICH_MEDIA_FULL_SCREEN_IMPRESSIONS", "RICH_MEDIA_VIDEO_INTERACTIONS", "RICH_MEDIA_VIDEO_INTERACTION_RATE", "RICH_MEDIA_VIDEO_MUTES", "RICH_MEDIA_VIDEO_PAUSES", "RICH_MEDIA_VIDEO_PLAYES", "RICH_MEDIA_VIDEO_MIDPOINTS", "RICH_MEDIA_VIDEO_COMPLETES", "RICH_MEDIA_VIDEO_REPLAYS", "RICH_MEDIA_VIDEO_STOPS", "RICH_MEDIA_VIDEO_UNMUTES", "RICH_MEDIA_VIDEO_VIEW_TIME", "RICH_MEDIA_VIDEO_VIEW_RATE", "RICH_MEDIA_CUSTOM_EVENT_TIME", "RICH_MEDIA_CUSTOM_EVENT_COUNT", "VIDEO_VIEWERSHIP_START", "VIDEO_VIEWERSHIP_FIRST_QUARTILE", "VIDEO_VIEWERSHIP_MIDPOINT", "VIDEO_VIEWERSHIP_THIRD_QUARTILE", "VIDEO_VIEWERSHIP_COMPLETE", "VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE", "VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME", "VIDEO_VIEWERSHIP_COMPLETION_RATE", "VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT", "VIDEO_VIEWERSHIP_VIDEO_LENGTH", "VIDEO_VIEWERSHIP_SKIP_BUTTON_SHOWN", "VIDEO_VIEWERSHIP_ENGAGED_VIEW", "VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE", "VIDEO_VIEWERSHIP_AUTO_PLAYS", "VIDEO_VIEWERSHIP_CLICK_TO_PLAYS", "VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE", "VIDEO_ERRORS_VAST_ERROR_100_COUNT", "VIDEO_ERRORS_VAST_ERROR_101_COUNT", "VIDEO_ERRORS_VAST_ERROR_102_COUNT", "VIDEO_ERRORS_VAST_ERROR_200_COUNT", "VIDEO_ERRORS_VAST_ERROR_201_COUNT", "VIDEO_ERRORS_VAST_ERROR_202_COUNT", "VIDEO_ERRORS_VAST_ERROR_203_COUNT", "VIDEO_ERRORS_VAST_ERROR_300_COUNT", "VIDEO_ERRORS_VAST_ERROR_301_COUNT", "VIDEO_ERRORS_VAST_ERROR_302_COUNT", "VIDEO_ERRORS_VAST_ERROR_303_COUNT", "VIDEO_ERRORS_VAST_ERROR_400_COUNT", "VIDEO_ERRORS_VAST_ERROR_401_COUNT", "VIDEO_ERRORS_VAST_ERROR_402_COUNT", "VIDEO_ERRORS_VAST_ERROR_403_COUNT", "VIDEO_ERRORS_VAST_ERROR_405_COUNT", "VIDEO_ERRORS_VAST_ERROR_500_COUNT", "VIDEO_ERRORS_VAST_ERROR_501_COUNT", "VIDEO_ERRORS_VAST_ERROR_502_COUNT", "VIDEO_ERRORS_VAST_ERROR_503_COUNT", "VIDEO_ERRORS_VAST_ERROR_600_COUNT", "VIDEO_ERRORS_VAST_ERROR_601_COUNT", "VIDEO_ERRORS_VAST_ERROR_602_COUNT", "VIDEO_ERRORS_VAST_ERROR_603_COUNT", "VIDEO_ERRORS_VAST_ERROR_604_COUNT", "VIDEO_ERRORS_VAST_ERROR_900_COUNT", "VIDEO_ERRORS_VAST_ERROR_901_COUNT", "VIDEO_INTERACTION_PAUSE", "VIDEO_INTERACTION_RESUME", "VIDEO_INTERACTION_REWIND", "VIDEO_INTERACTION_MUTE", "VIDEO_INTERACTION_UNMUTE", "VIDEO_INTERACTION_COLLAPSE", "VIDEO_INTERACTION_EXPAND", "VIDEO_INTERACTION_FULL_SCREEN", "VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE", "VIDEO_INTERACTION_VIDEO_SKIPS", "VIDEO_OPTIMIZATION_CONTROL_STARTS", "VIDEO_OPTIMIZATION_OPTIMIZED_STARTS", "VIDEO_OPTIMIZATION_CONTROL_COMPLETES", "VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETES", "VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE", "VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE", "VIDEO_OPTIMIZATION_COMPLETION_RATE_LIFT", "VIDEO_OPTIMIZATION_CONTROL_SKIP_BUTTON_SHOWN", "VIDEO_OPTIMIZATION_OPTIMIZED_SKIP_BUTTON_SHOWN", "VIDEO_OPTIMIZATION_CONTROL_ENGAGED_VIEW", "VIDEO_OPTIMIZATION_OPTIMIZED_ENGAGED_VIEW", "VIDEO_OPTIMIZATION_CONTROL_VIEW_THROUGH_RATE", "VIDEO_OPTIMIZATION_OPTIMIZED_VIEW_THROUGH_RATE", "VIDEO_OPTIMIZATION_VIEW_THROUGH_RATE_LIFT", "TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS", "TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS", "TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE", "TOTAL_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS", "TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE", "TOTAL_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME", "AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS", "AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS", "AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE", "AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS", "AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE", "AD_SERVER_ACTIVE_VIEW_REVENUE", "AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME", "ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS", "ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS", "ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE", "ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS", "ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE", "ADSENSE_ACTIVE_VIEW_REVENUE", "ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME", "AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS", "AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS", "AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE", "AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS", "AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE", "AD_EXCHANGE_ACTIVE_VIEW_REVENUE", "AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME", "TOTAL_ACTIVE_VIEW_REVENUE", "VIEW_THROUGH_CONVERSIONS", "CONVERSIONS_PER_THOUSAND_IMPRESSIONS", "CLICK_THROUGH_CONVERSIONS", "CONVERSIONS_PER_CLICK", "VIEW_THROUGH_REVENUE", "CLICK_THROUGH_REVENUE", "TOTAL_CONVERSIONS", "TOTAL_CONVERSION_REVENUE", "DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_COMPETING_TOTAL", "DYNAMIC_ALLOCATION_OPPORTUNITY_UNFILLED_IMPRESSIONS_COMPETING", "DYNAMIC_ALLOCATION_OPPORTUNITY_ELIGIBLE_IMPRESSIONS_TOTAL", "DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_TOTAL", "DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_PERCENT_TOTAL", "DYNAMIC_ALLOCATION_OPPORTUNITY_SATURATION_RATE_TOTAL", "DYNAMIC_ALLOCATION_OPPORTUNITY_MATCH_RATE_TOTAL", "CONTRACTED_REVENUE_CONTRACTED_NET_REVENUE", "CONTRACTED_REVENUE_LOCAL_CONTRACTED_NET_REVENUE", "CONTRACTED_REVENUE_CONTRACTED_GROSS_REVENUE", "CONTRACTED_REVENUE_LOCAL_CONTRACTED_GROSS_REVENUE", "CONTRACTED_REVENUE_CONTRACTED_VAT", "CONTRACTED_REVENUE_LOCAL_CONTRACTED_VAT", "CONTRACTED_REVENUE_CONTRACTED_AGENCY_COMMISSION", "CONTRACTED_REVENUE_LOCAL_CONTRACTED_AGENCY_COMMISSION", "SALES_CONTRACT_CONTRACTED_IMPRESSIONS", "SALES_CONTRACT_CONTRACTED_CLICKS", "SALES_CONTRACT_CONTRACTED_VOLUME", "SALES_CONTRACT_BUDGET", "SALES_CONTRACT_REMAINING_BUDGET", "SALES_CONTRACT_BUFFERED_IMPRESSIONS", "SALES_CONTRACT_BUFFERED_CLICKS", "SCHEDULED_SCHEDULED_IMPRESSIONS", "SCHEDULED_SCHEDULED_CLICKS", "SCHEDULED_SCHEDULED_VOLUME", "SCHEDULED_SCHEDULED_NET_REVENUE", "SCHEDULED_LOCAL_SCHEDULED_NET_REVENUE", "SCHEDULED_SCHEDULED_GROSS_REVENUE", "SCHEDULED_LOCAL_SCHEDULED_GROSS_REVENUE", "SALES_TOTAL_TOTAL_BUDGET", "SALES_TOTAL_TOTAL_REMAINING_BUDGET", "SALES_TOTAL_TOTAL_CONTRACTED_VOLUME", "SALES_TOTAL_TOTAL_CONTRACTED_NET_REVENUE", "SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_NET_REVENUE", "SALES_TOTAL_TOTAL_CONTRACTED_GROSS_REVENUE", "SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_GROSS_REVENUE", "SALES_TOTAL_TOTAL_CONTRACTED_AGENCY_COMMISSION", "SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_AGENCY_COMMISSION", "SALES_TOTAL_TOTAL_CONTRACTED_NET_REVENUE_WITH_VAT", "SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_NET_REVENUE_WITH_VAT", "SALES_TOTAL_TOTAL_SCHEDULED_VOLUME", "SALES_TOTAL_TOTAL_SCHEDULED_NET_REVENUE", "SALES_TOTAL_LOCAL_TOTAL_SCHEDULED_NET_REVENUE", "SALES_TOTAL_TOTAL_SCHEDULED_GROSS_REVENUE", "SALES_TOTAL_LOCAL_TOTAL_SCHEDULED_GROSS_REVENUE", "UNIFIED_REVENUE_UNRECONCILED_NET_REVENUE", "UNIFIED_REVENUE_LOCAL_UNRECONCILED_NET_REVENUE", "UNIFIED_REVENUE_UNRECONCILED_GROSS_REVENUE", "UNIFIED_REVENUE_LOCAL_UNRECONCILED_GROSS_REVENUE", "UNIFIED_REVENUE_FORECASTED_NET_REVENUE", "UNIFIED_REVENUE_LOCAL_FORECASTED_NET_REVENUE", "UNIFIED_REVENUE_FORECASTED_GROSS_REVENUE", "UNIFIED_REVENUE_LOCAL_FORECASTED_GROSS_REVENUE", "UNIFIED_REVENUE_UNIFIED_NET_REVENUE", "UNIFIED_REVENUE_LOCAL_UNIFIED_NET_REVENUE", "UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE", "UNIFIED_REVENUE_LOCAL_UNIFIED_GROSS_REVENUE", "UNIFIED_REVENUE_UNIFIED_AGENCY_COMMISSION", "UNIFIED_REVENUE_LOCAL_UNIFIED_AGENCY_COMMISSION", "UNIFIED_REVENUE_UNRECONCILED_VOLUME", "UNIFIED_REVENUE_FORECASTED_VOLUME", "UNIFIED_REVENUE_UNIFIED_VOLUME", "EXPECTED_REVENUE_EXPECTED_NET_REVENUE", "EXPECTED_REVENUE_LOCAL_EXPECTED_NET_REVENUE", "EXPECTED_REVENUE_EXPECTED_GROSS_REVENUE", "EXPECTED_REVENUE_LOCAL_EXPECTED_GROSS_REVENUE", "SALES_PIPELINE_PIPELINE_NET_REVENUE", "SALES_PIPELINE_LOCAL_PIPELINE_NET_REVENUE", "SALES_PIPELINE_PIPELINE_GROSS_REVENUE", "SALES_PIPELINE_LOCAL_PIPELINE_GROSS_REVENUE", "SALES_PIPELINE_PIPELINE_AGENCY_COMMISSION", "SALES_PIPELINE_LOCAL_PIPELINE_AGENCY_COMMISSION", "RECONCILIATION_DFP_VOLUME", "RECONCILIATION_THIRD_PARTY_VOLUME", "RECONCILIATION_RECONCILED_VOLUME", "RECONCILIATION_DISCREPANCY_PERCENTAGE", "RECONCILIATION_RECONCILED_REVENUE", "RECONCILIATION_IMPRESSION_DISCREPANCY", "RECONCILIATION_CLICK_DISCREPANCY", "RECONCILIATION_REVENUE_DISCREPANCY", "BILLING_BILLABLE_NET_REVENUE", "BILLING_LOCAL_BILLABLE_NET_REVENUE", "BILLING_BILLABLE_GROSS_REVENUE", "BILLING_LOCAL_BILLABLE_GROSS_REVENUE", "BILLING_BILLABLE_NET_REVENUE_BEFORE_MANUAL_ADJUSTMENT", "BILLING_LOCAL_BILLABLE_NET_REVENUE_BEFORE_MANUAL_ADJUSTMENT", "BILLING_BILLABLE_GROSS_REVENUE_BEFORE_MANUAL_ADJUSTMENT", "BILLING_LOCAL_BILLABLE_GROSS_REVENUE_BEFORE_MANUAL_ADJUSTMENT", "BILLING_BILLABLE_VAT", "BILLING_LOCAL_BILLABLE_VAT", "BILLING_BILLABLE_AGENCY_COMMISSION", "BILLING_LOCAL_BILLABLE_AGENCY_COMMISSION", "BILLING_CAP_QUANTITY", "BILLING_BILLABLE_VOLUME", "BILLING_DELIVERY_ROLLOVER", "BILLING_REALIZED_CPM", "BILLING_REALIZED_RATE", "DISCOUNTS_BREAKDOWN_CONTRACTED_NET_OVERALL_DISCOUNT", "DISCOUNTS_BREAKDOWN_BILLABLE_NET_OVERALL_DISCOUNT", "DISCOUNTS_BREAKDOWN_CONTRACTED_NET_NON_BILLABLE", "INVOICED_IMPRESSIONS", "INVOICED_UNFILLED_IMPRESSIONS", "NIELSEN_IMPRESSIONS", "NIELSEN_IN_TARGET_IMPRESSIONS", "NIELSEN_POPULATION_BASE", "NIELSEN_IN_TARGET_POPULATION_BASE", "NIELSEN_UNIQUE_AUDIENCE", "NIELSEN_IN_TARGET_UNIQUE_AUDIENCE", "NIELSEN_PERCENT_AUDIENCE_REACH", "NIELSEN_IN_TARGET_PERCENT_AUDIENCE_REACH", "NIELSEN_AVERAGE_FREQUENCY", "NIELSEN_IN_TARGET_AVERAGE_FREQUENCY", "NIELSEN_GROSS_RATING_POINTS", "NIELSEN_IN_TARGET_GROSS_RATING_POINTS", "NIELSEN_PERCENT_IMPRESSIONS_SHARE", "NIELSEN_IN_TARGET_PERCENT_IMPRESSIONS_SHARE", "NIELSEN_PERCENT_POPULATION_SHARE", "NIELSEN_IN_TARGET_PERCENT_POPULATION_SHARE", "NIELSEN_PERCENT_AUDIENCE_SHARE", "NIELSEN_IN_TARGET_PERCENT_AUDIENCE_SHARE", "NIELSEN_AUDIENCE_INDEX", "NIELSEN_IN_TARGET_AUDIENCE_INDEX", "NIELSEN_IMPRESSIONS_INDEX", "NIELSEN_IN_TARGET_IMPRESSIONS_INDEX", "DP_IMPRESSIONS", "DP_QUERIES", "DP_MATCHED_QUERIES", "DP_COST", "PARTNER_MANAGEMENT_HOST_IMPRESSIONS", "PARTNER_MANAGEMENT_HOST_CLICKS", "PARTNER_MANAGEMENT_HOST_CTR", "PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS", "PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS", "PARTNER_MANAGEMENT_PARTNER_CLICKS", "PARTNER_MANAGEMENT_PARTNER_CTR", "PARTNER_MANAGEMENT_GROSS_REVENUE", "PARTNER_FINANCE_HOST_IMPRESSIONS", "PARTNER_FINANCE_HOST_REVENUE", "PARTNER_FINANCE_HOST_ECPM", "PARTNER_FINANCE_PARTNER_REVENUE", "PARTNER_FINANCE_PARTNER_ECPM", "PARTNER_FINANCE_GROSS_REVENUE"]}, :"CommonError.Reason"=>{:type=>"string", :enumerations=>["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :"CurrencyCodeError.Reason"=>{:type=>"string", :enumerations=>["INVALID", "UNSUPPORTED"]}, :DateRangeType=>{:type=>"string", :enumerations=>["TODAY", "YESTERDAY", "LAST_WEEK", "LAST_MONTH", "LAST_3_MONTHS", "REACH_LIFETIME", "CUSTOM_DATE", "NEXT_DAY", "NEXT_90_DAYS", "NEXT_WEEK", "NEXT_MONTH", "CURRENT_AND_NEXT_MONTH", "NEXT_QUARTER", "NEXT_3_MONTHS", "NEXT_12_MONTHS"]}, :Dimension=>{:type=>"string", :enumerations=>["MONTH_AND_YEAR", "WEEK", "DATE", "DAY", "HOUR", "LINE_ITEM_ID", "LINE_ITEM_NAME", "LINE_ITEM_TYPE", "ORDER_ID", "ORDER_NAME", "ORDER_DELIVERY_STATUS", "ADVERTISER_ID", "ADVERTISER_NAME", "AD_NETWORK_ID", "AD_NETWORK_NAME", "SALESPERSON_ID", "SALESPERSON_NAME", "CREATIVE_ID", "CREATIVE_NAME", "CREATIVE_TYPE", "CREATIVE_BILLING_TYPE", "CUSTOM_EVENT_ID", "CUSTOM_EVENT_NAME", "CUSTOM_EVENT_TYPE", "CREATIVE_SIZE", "AD_UNIT_ID", "AD_UNIT_NAME", "PARENT_AD_UNIT_ID", "PARENT_AD_UNIT_NAME", "PLACEMENT_ID", "PLACEMENT_NAME", "PLACEMENT_STATUS", "TARGETING", "DEVICE_CATEGORY_ID", "DEVICE_CATEGORY_NAME", "COUNTRY_CRITERIA_ID", "COUNTRY_NAME", "REGION_CRITERIA_ID", "REGION_NAME", "CITY_CRITERIA_ID", "CITY_NAME", "METRO_CRITERIA_ID", "METRO_NAME", "POSTAL_CODE_CRITERIA_ID", "POSTAL_CODE", "CUSTOM_TARGETING_VALUE_ID", "CUSTOM_CRITERIA", "ACTIVITY_ID", "ACTIVITY_NAME", "ACTIVITY_GROUP_ID", "ACTIVITY_GROUP_NAME", "CONTENT_ID", "CONTENT_NAME", "CONTENT_BUNDLE_ID", "CONTENT_BUNDLE_NAME", "VIDEO_METADATA_KEY_ID", "VIDEO_METADATA_KEY_NAME", "CONTENT_HIERARCHY", "VIDEO_FALLBACK_POSITION", "POSITION_OF_POD", "POSITION_IN_POD", "VIDEO_REDIRECT_THIRD_PARTY", "VIDEO_VAST_VERSION", "PARTNER_MANAGEMENT_PARTNER_ID", "PARTNER_MANAGEMENT_PARTNER_NAME", "PARTNER_MANAGEMENT_PARTNER_LABEL_ID", "PARTNER_MANAGEMENT_PARTNER_LABEL_NAME", "PARTNER_MANAGEMENT_ASSIGNMENT_ID", "PARTNER_MANAGEMENT_ASSIGNMENT_NAME", "GRP_DEMOGRAPHICS", "AD_REQUEST_AD_UNIT_SIZES", "AD_REQUEST_CUSTOM_CRITERIA", "BUYER_ID", "BUYER_NAME", "IS_FIRST_LOOK_DEAL", "YIELD_GROUP_ID", "YIELD_GROUP_NAME", "YIELD_PARTNER", "YIELD_PARTNER_TAG", "MEDIATION_TYPE", "NATIVE_TEMPLATE_ID", "NATIVE_TEMPLATE_NAME", "NATIVE_STYLE_ID", "NATIVE_STYLE_NAME", "MOBILE_APP_NAME", "MOBILE_DEVICE_NAME", "MOBILE_INVENTORY_TYPE", "REQUEST_TYPE", "AD_UNIT_STATUS", "MASTER_COMPANION_CREATIVE_ID", "MASTER_COMPANION_CREATIVE_NAME", "PROPOSAL_LINE_ITEM_ID", "PROPOSAL_LINE_ITEM_NAME", "PROPOSAL_ID", "PROPOSAL_NAME", "ALL_SALESPEOPLE_ID", "ALL_SALESPEOPLE_NAME", "SALES_TEAM_ID", "SALES_TEAM_NAME", "PROPOSAL_AGENCY_ID", "PROPOSAL_AGENCY_NAME", "PRODUCT_ID", "PRODUCT_NAME", "PRODUCT_TEMPLATE_ID", "PRODUCT_TEMPLATE_NAME", "RATE_CARD_ID", "RATE_CARD_NAME", "WORKFLOW_ID", "WORKFLOW_NAME", "PACKAGE_ID", "PACKAGE_NAME", "PRODUCT_PACKAGE_ID", "PRODUCT_PACKAGE_NAME", "AUDIENCE_SEGMENT_ID", "AUDIENCE_SEGMENT_NAME", "AUDIENCE_SEGMENT_DATA_PROVIDER_NAME", "AD_EXCHANGE_INVENTORY_SIZE", "AD_EXCHANGE_INVENTORY_SIZE_CODE", "AD_EXCHANGE_DEVICE_CATEGORY", "AD_EXCHANGE_PRICING_RULE_ID", "AD_EXCHANGE_PRICING_RULE_NAME", "AD_EXCHANGE_TAG_NAME", "AD_EXCHANGE_URL", "AD_EXCHANGE_WEB_PROPERTY_CODE", "AD_EXCHANGE_CREATIVE_SIZES", "AD_EXCHANGE_AD_TYPE", "AD_EXCHANGE_CHANNEL_NAME", "AD_EXCHANGE_PRODUCT_NAME", "AD_EXCHANGE_PRODUCT_CODE", "AD_EXCHANGE_SITE_NAME", "AD_EXCHANGE_REQUEST_SOURCES", "AD_EXCHANGE_ADVERTISER_NAME", "AD_EXCHANGE_BRAND_NAME", "AD_EXCHANGE_AGENCY", "AD_EXCHANGE_BID_TYPE_CODE", "AD_EXCHANGE_BRANDING_TYPE_CODE", "AD_EXCHANGE_BRANDING_TYPE", "AD_EXCHANGE_BUYER_NETWORK_NAME", "AD_EXCHANGE_BUYER_NETWORK_ID", "AD_EXCHANGE_CUSTOM_CHANNEL_CODE", "AD_EXCHANGE_CUSTOM_CHANNEL_ID", "AD_EXCHANGE_DATE", "AD_EXCHANGE_DEAL_ID", "AD_EXCHANGE_DEAL_NAME", "AD_EXCHANGE_TRANSACTION_TYPE", "AD_EXCHANGE_DSP_BUYER_NETWORK_NAME", "AD_EXCHANGE_EXPANSION_TYPE", "AD_EXCHANGE_COUNTRY_CODE", "AD_EXCHANGE_COUNTRY_NAME", "AD_EXCHANGE_DFP_AD_UNIT_ID", "AD_EXCHANGE_DFP_AD_UNIT", "AD_EXCHANGE_INVENTORY_OWNERSHIP", "AD_EXCHANGE_ADVERTISER_DOMAIN", "AD_EXCHANGE_MOBILE_APP_NAME", "AD_EXCHANGE_MOBILE_CARRIER_NAME", "AD_EXCHANGE_MOBILE_DEVICE_NAME", "AD_EXCHANGE_MOBILE_INVENTORY_TYPE", "AD_EXCHANGE_MONTH", "AD_EXCHANGE_NETWORK_PARTNER_NAME", "AD_EXCHANGE_OPERATING_SYSTEM", "AD_EXCHANGE_TAG_CODE", "AD_EXCHANGE_TARGETING_TYPE_CODE", "AD_EXCHANGE_TARGETING_TYPE", "AD_EXCHANGE_TRANSACTION_TYPE_CODE", "AD_EXCHANGE_URL_ID", "AD_EXCHANGE_USER_BANDWIDTH_NAME", "AD_EXCHANGE_VIDEO_AD_DURATION", "AD_EXCHANGE_VIDEO_AD_DURATION_RAW", "AD_EXCHANGE_VIDEO_AD_TYPE", "AD_EXCHANGE_WEEK", "AD_EXCHANGE_AD_LOCATION", "AD_EXCHANGE_ADVERTISER_VERTICAL", "NIELSEN_SEGMENT", "NIELSEN_DEMOGRAPHICS", "NIELSEN_RESTATEMENT_DATE", "PROGRAMMATIC_BUYER_ID", "PROGRAMMATIC_BUYER_NAME", "REQUESTED_AD_SIZES", "CREATIVE_SIZE_DELIVERED", "DP_DATE", "DP_WEEK", "DP_MONTH_YEAR", "DP_COUNTRY_CRITERIA_ID", "DP_COUNTRY_NAME", "DP_INVENTORY_TYPE", "DP_CREATIVE_SIZE", "DP_BRAND_NAME", "DP_ADVERTISER_NAME", "DP_ADX_BUYER_NETWORK_NAME", "DP_MOBILE_DEVICE_NAME", "DP_DEVICE_CATEGORY_NAME", "DP_TAG_ID", "DEMAND_CHANNEL_ID", "DEMAND_CHANNEL_NAME"]}, :DimensionAttribute=>{:type=>"string", :enumerations=>["LINE_ITEM_LABELS", "LINE_ITEM_LABEL_IDS", "LINE_ITEM_OPTIMIZABLE", "LINE_ITEM_DELIVERY_INDICATOR", "LINE_ITEM_DELIVERY_PACING", "LINE_ITEM_FREQUENCY_CAP", "LINE_ITEM_RECONCILIATION_STATUS", "LINE_ITEM_LAST_RECONCILIATION_DATE_TIME", "ADVERTISER_EXTERNAL_ID", "ADVERTISER_TYPE", "ADVERTISER_CREDIT_STATUS", "ADVERTISER_PRIMARY_CONTACT", "ORDER_START_DATE_TIME", "ORDER_END_DATE_TIME", "ORDER_EXTERNAL_ID", "ORDER_PO_NUMBER", "ORDER_IS_PROGRAMMATIC", "ORDER_AGENCY", "ORDER_AGENCY_ID", "ORDER_LABELS", "ORDER_LABEL_IDS", "ORDER_TRAFFICKER", "ORDER_TRAFFICKER_ID", "ORDER_SECONDARY_TRAFFICKERS", "ORDER_SALESPERSON", "ORDER_SECONDARY_SALESPEOPLE", "ORDER_LIFETIME_IMPRESSIONS", "ORDER_LIFETIME_CLICKS", "ORDER_BOOKED_CPM", "ORDER_BOOKED_CPC", "LINE_ITEM_START_DATE_TIME", "LINE_ITEM_END_DATE_TIME", "LINE_ITEM_EXTERNAL_ID", "LINE_ITEM_COST_TYPE", "LINE_ITEM_COST_PER_UNIT", "LINE_ITEM_CURRENCY_CODE", "LINE_ITEM_GOAL_QUANTITY", "LINE_ITEM_SPONSORSHIP_GOAL_PERCENTAGE", "LINE_ITEM_LIFETIME_IMPRESSIONS", "LINE_ITEM_LIFETIME_CLICKS", "LINE_ITEM_PRIORITY", "CREATIVE_OR_CREATIVE_SET", "MASTER_COMPANION_TYPE", "LINE_ITEM_CONTRACTED_QUANTITY", "LINE_ITEM_DISCOUNT", "LINE_ITEM_NON_CPD_BOOKED_REVENUE", "ADVERTISER_LABELS", "ADVERTISER_LABEL_IDS", "CREATIVE_CLICK_THROUGH_URL", "CREATIVE_SSL_SCAN_RESULT", "CREATIVE_SSL_COMPLIANCE_OVERRIDE", "LINE_ITEM_CREATIVE_START_DATE", "LINE_ITEM_CREATIVE_END_DATE", "PROPOSAL_START_DATE_TIME", "PROPOSAL_END_DATE_TIME", "PROPOSAL_CREATION_DATE_TIME", "PROPOSAL_SOLD_DATE_TIME", "PROPOSAL_IS_SOLD", "PROPOSAL_PROBABILITY_OF_CLOSE", "PROPOSAL_STATUS", "PROPOSAL_ARCHIVAL_STATUS", "PROPOSAL_CURRENCY", "PROPOSAL_EXCHANGE_RATE", "PROPOSAL_AGENCY_COMMISSION_RATE", "PROPOSAL_VAT_RATE", "PROPOSAL_DISCOUNT", "PROPOSAL_ADVERTISER_DISCOUNT", "PROPOSAL_ADVERTISER", "PROPOSAL_ADVERTISER_ID", "PROPOSAL_AGENCIES", "PROPOSAL_AGENCY_IDS", "PROPOSAL_PO_NUMBER", "PROPOSAL_PRIMARY_SALESPERSON", "PROPOSAL_SECONDARY_SALESPEOPLE", "PROPOSAL_CREATOR", "PROPOSAL_SALES_PLANNERS", "PROPOSAL_PRICING_MODEL", "PROPOSAL_BILLING_SOURCE", "PROPOSAL_BILLING_CAP", "PROPOSAL_BILLING_SCHEDULE", "PROPOSAL_APPLIED_TEAM_NAMES", "PROPOSAL_APPROVAL_STAGE", "PROPOSAL_INVENTORY_RELEASE_DATE_TIME", "PROPOSAL_LOCAL_BUDGET", "PROPOSAL_LOCAL_REMAINING_BUDGET", "PROPOSAL_FLAT_FEE", "PROPOSAL_IS_PROGRAMMATIC", "PROPOSAL_LINE_ITEM_START_DATE_TIME", "PROPOSAL_LINE_ITEM_END_DATE_TIME", "PROPOSAL_LINE_ITEM_RATE_TYPE", "PROPOSAL_LINE_ITEM_RESERVATION_STATUS", "PROPOSAL_LINE_ITEM_COST_PER_UNIT", "PROPOSAL_LINE_ITEM_LOCAL_COST_PER_UNIT", "PROPOSAL_LINE_ITEM_COST_PER_UNIT_GROSS", "PROPOSAL_LINE_ITEM_LOCAL_COST_PER_UNIT_GROSS", "PROPOSAL_LINE_ITEM_TYPE_AND_PRIORITY", "PROPOSAL_LINE_ITEM_SIZE", "PROPOSAL_LINE_ITEM_ARCHIVAL_STATUS", "PROPOSAL_LINE_ITEM_PRODUCT_ADJUSTMENT", "PROPOSAL_LINE_ITEM_BUFFER", "PROPOSAL_LINE_ITEM_LISTING_RATE_NET", "PROPOSAL_LINE_ITEM_BILLING_SOURCE", "PROPOSAL_LINE_ITEM_BILLING_CAP", "PROPOSAL_LINE_ITEM_BILLING_SCHEDULE", "PROPOSAL_LINE_ITEM_GOAL_PERCENTAGE", "PROPOSAL_LINE_ITEM_COST_ADJUSTMENT", "PROPOSAL_LINE_ITEM_COMMENTS", "PROPOSAL_LINE_ITEM_RECONCILIATION_STATUS", "PROPOSAL_LINE_ITEM_LAST_RECONCILIATION_DATE_TIME", "PROPOSAL_LINE_ITEM_FLAT_FEE", "PRODUCT_PACKAGE_ITEM_ARCHIVAL_STATUS", "PROPOSAL_LINE_ITEM_TYPE", "PRODUCT_TEMPLATE_RATE_TYPE", "PRODUCT_TEMPLATE_STATUS", "PRODUCT_TEMPLATE_TYPE_AND_PRIORITY", "PRODUCT_TEMPLATE_PRODUCT_TYPE", "PRODUCT_TEMPLATE_DESCRIPTION", "PRODUCT_PRODUCT_TEMPLATE_NAME", "PRODUCT_RATE_TYPE", "PRODUCT_STATUS", "PRODUCT_TYPE_AND_PRIORITY", "PRODUCT_PRODUCT_TYPE", "PRODUCT_NOTES", "PRODUCT_INVENTORY_SIZES", "PRODUCT_RATE", "PACKAGED_PRODUCT_RATE", "PROPOSAL_AGENCY_TYPE", "PROPOSAL_AGENCY_CREDIT_STATUS", "PROPOSAL_AGENCY_EXTERNAL_ID", "PROPOSAL_AGENCY_COMMENT", "SALESPEOPLE_PROPOSAL_CONTRIBUTION", "SALESPERSON_PROPOSAL_CONTRIBUTION", "PRODUCT_PACKAGE_NOTES", "PRODUCT_PACKAGE_ITEMS", "PRODUCT_PACKAGE_STATUS", "PACKAGE_COMMENTS", "PACKAGE_START_DATE_TIME", "PACKAGE_END_DATE_TIME", "CONTENT_CMS_NAME", "CONTENT_CMS_VIDEO_ID", "AD_UNIT_CODE"]}, :ExportFormat=>{:type=>"string", :enumerations=>["TSV", "TSV_EXCEL", "CSV_DUMP", "XML", "XLSX"]}, :"FeatureError.Reason"=>{:type=>"string", :enumerations=>["MISSING_FEATURE", "UNKNOWN"]}, :"InternalApiError.Reason"=>{:type=>"string", :enumerations=>["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, :"NotNullError.Reason"=>{:type=>"string", :enumerations=>["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, :"ParseError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"PermissionError.Reason"=>{:type=>"string", :enumerations=>["PERMISSION_DENIED", "UNKNOWN"]}, :"PublisherQueryLanguageContextError.Reason"=>{:type=>"string", :enumerations=>["UNEXECUTABLE", "UNKNOWN"]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"QuotaError.Reason"=>{:type=>"string", :enumerations=>["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT"]}, :"ReportError.Reason"=>{:type=>"string", :enumerations=>["DEFAULT", "REPORT_ACCESS_NOT_ALLOWED", "DIMENSION_VIEW_NOT_ALLOWED", "ATTRIBUTE_VIEW_NOT_ALLOWED", "COLUMN_VIEW_NOT_ALLOWED", "TOO_MANY_CONCURRENT_REPORTS", "REPORT_QUERY_TOO_LONG", "INVALID_OPERATION_FOR_REPORT_STATE", "INVALID_DIMENSIONS", "INVALID_ATTRIBUTES", "INVALID_CONTENT_HIERARCHY_DIMENSIONS", "INVALID_COLUMNS", "INVALID_DIMENSION_FILTERS", "INVALID_DATE", "END_DATE_TIME_NOT_AFTER_START_TIME", "START_DATE_MORE_THAN_THREE_YEARS_AGO", "NOT_NULL", "ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST", "REPORT_CONSTRAINT_VIOLATION", "FAILED_TO_STORE_REPORT", "REPORT_NOT_FOUND", "SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK", "UNKNOWN"]}, :ReportJobStatus=>{:type=>"string", :enumerations=>["COMPLETED", "IN_PROGRESS", "FAILED"]}, :"RequiredCollectionError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, :"RequiredError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED"]}, :"ServerError.Reason"=>{:type=>"string", :enumerations=>["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, :"StatementError.Reason"=>{:type=>"string", :enumerations=>["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, :"StringFormatError.Reason"=>{:type=>"string", :enumerations=>["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, :"StringLengthError.Reason"=>{:type=>"string", :enumerations=>["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, :TimeZoneType=>{:type=>"string", :enumerations=>["UNKNOWN", "PROPOSAL_LOCAL", "PUBLISHER", "AD_EXCHANGE"]}}
|
16
|
+
REPORTSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return REPORTSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return REPORTSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return REPORTSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, ReportServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:16.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v201811/suggested_ad_unit_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V201811; module SuggestedAdUnitService
|
14
|
+
class SuggestedAdUnitService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201811'
|
17
|
+
super(config, endpoint, namespace, :v201811)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_suggested_ad_units_by_statement(*args, &block)
|
21
|
+
return execute_action('get_suggested_ad_units_by_statement', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_suggested_ad_units_by_statement_to_xml(*args)
|
25
|
+
return get_soap_xml('get_suggested_ad_units_by_statement', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def perform_suggested_ad_unit_action(*args, &block)
|
29
|
+
return execute_action('perform_suggested_ad_unit_action', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def perform_suggested_ad_unit_action_to_xml(*args)
|
33
|
+
return get_soap_xml('perform_suggested_ad_unit_action', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def get_service_registry()
|
39
|
+
return SuggestedAdUnitServiceRegistry
|
40
|
+
end
|
41
|
+
|
42
|
+
def get_module()
|
43
|
+
return AdManagerApi::V201811::SuggestedAdUnitService
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:16.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V201811; module SuggestedAdUnitService
|
13
|
+
class SuggestedAdUnitServiceRegistry
|
14
|
+
SUGGESTEDADUNITSERVICE_METHODS = {:get_suggested_ad_units_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_suggested_ad_units_by_statement_response", :fields=>[{:name=>:rval, :type=>"SuggestedAdUnitPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_suggested_ad_unit_action=>{:input=>[{:name=>:suggested_ad_unit_action, :type=>"SuggestedAdUnitAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_suggested_ad_unit_action_response", :fields=>[{:name=>:rval, :type=>"SuggestedAdUnitUpdateResult", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
+
SUGGESTEDADUNITSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :AdUnitParent=>{:fields=>[{:name=>:id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_unit_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ApproveSuggestedAdUnits=>{:fields=>[], :base=>"SuggestedAdUnitAction"}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AdUnitSize=>{:fields=>[{:name=>:size, :type=>"Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:environment_type, :type=>"EnvironmentType", :min_occurs=>0, :max_occurs=>1}, {:name=>:companions, :type=>"AdUnitSize", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:full_display_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :InventoryUnitSizesError=>{:fields=>[{:name=>:reason, :type=>"InventoryUnitSizesError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :LabelEntityAssociationError=>{:fields=>[{:name=>:reason, :type=>"LabelEntityAssociationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :Size=>{:fields=>[{:name=>:width, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:height, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_aspect_ratio, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :SuggestedAdUnitAction=>{:fields=>[], :abstract=>true}, :SuggestedAdUnit=>{:fields=>[{:name=>:id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_requests, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:parent_path, :type=>"AdUnitParent", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:target_window, :type=>"AdUnit.TargetWindow", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_platform, :type=>"TargetPlatform", :min_occurs=>0, :max_occurs=>1}, {:name=>:suggested_ad_unit_sizes, :type=>"AdUnitSize", :min_occurs=>0, :max_occurs=>:unbounded}]}, :SuggestedAdUnitPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"SuggestedAdUnit", :min_occurs=>0, :max_occurs=>:unbounded}]}, :SuggestedAdUnitUpdateResult=>{:fields=>[{:name=>:new_ad_unit_ids, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :Value=>{:fields=>[], :abstract=>true}, :"AdUnit.TargetWindow"=>{:type=>"string", :enumerations=>["TOP", "BLANK"]}, :"ApiVersionError.Reason"=>{:type=>"string", :enumerations=>["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, :"AuthenticationError.Reason"=>{:type=>"string", :enumerations=>["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NOT_WHITELISTED_FOR_API_ACCESS", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, :"CollectionSizeError.Reason"=>{:type=>"string", :enumerations=>["TOO_LARGE", "UNKNOWN"]}, :"CommonError.Reason"=>{:type=>"string", :enumerations=>["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :EnvironmentType=>{:type=>"string", :enumerations=>["BROWSER", "VIDEO_PLAYER"]}, :"FeatureError.Reason"=>{:type=>"string", :enumerations=>["MISSING_FEATURE", "UNKNOWN"]}, :"InternalApiError.Reason"=>{:type=>"string", :enumerations=>["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, :"InventoryUnitSizesError.Reason"=>{:type=>"string", :enumerations=>["INVALID_SIZES", "INVALID_SIZE_FOR_PLATFORM", "VIDEO_FEATURE_MISSING", "VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING", "INVALID_SIZE_FOR_MASTER", "INVALID_SIZE_FOR_COMPANION", "DUPLICATE_MASTER_SIZES", "ASPECT_RATIO_NOT_SUPPORTED", "VIDEO_COMPANIONS_NOT_SUPPORTED", "UNKNOWN"]}, :"LabelEntityAssociationError.Reason"=>{:type=>"string", :enumerations=>["DUPLICATE_ASSOCIATION", "INVALID_ASSOCIATION", "DUPLICATE_ASSOCIATION_WITH_NEGATION", "UNKNOWN"]}, :"NotNullError.Reason"=>{:type=>"string", :enumerations=>["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, :"ParseError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"PermissionError.Reason"=>{:type=>"string", :enumerations=>["PERMISSION_DENIED", "UNKNOWN"]}, :"PublisherQueryLanguageContextError.Reason"=>{:type=>"string", :enumerations=>["UNEXECUTABLE", "UNKNOWN"]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"QuotaError.Reason"=>{:type=>"string", :enumerations=>["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT"]}, :"RequiredCollectionError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, :"RequiredError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED"]}, :"ServerError.Reason"=>{:type=>"string", :enumerations=>["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, :"StatementError.Reason"=>{:type=>"string", :enumerations=>["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, :"StringFormatError.Reason"=>{:type=>"string", :enumerations=>["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, :"StringLengthError.Reason"=>{:type=>"string", :enumerations=>["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, :TargetPlatform=>{:type=>"string", :enumerations=>["WEB", "MOBILE", "ANY"]}}
|
16
|
+
SUGGESTEDADUNITSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return SUGGESTEDADUNITSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return SUGGESTEDADUNITSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return SUGGESTEDADUNITSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, SuggestedAdUnitServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:16.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v201811/team_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V201811; module TeamService
|
14
|
+
class TeamService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201811'
|
17
|
+
super(config, endpoint, namespace, :v201811)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_teams(*args, &block)
|
21
|
+
return execute_action('create_teams', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_teams_to_xml(*args)
|
25
|
+
return get_soap_xml('create_teams', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_teams_by_statement(*args, &block)
|
29
|
+
return execute_action('get_teams_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_teams_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_teams_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_team_action(*args, &block)
|
37
|
+
return execute_action('perform_team_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_team_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_team_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_teams(*args, &block)
|
45
|
+
return execute_action('update_teams', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_teams_to_xml(*args)
|
49
|
+
return get_soap_xml('update_teams', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return TeamServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return AdManagerApi::V201811::TeamService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:16.
|
9
|
+
|
10
|
+
require 'ad_manager_api/errors'
|
11
|
+
|
12
|
+
module AdManagerApi; module V201811; module TeamService
|
13
|
+
class TeamServiceRegistry
|
14
|
+
TEAMSERVICE_METHODS = {:create_teams=>{:input=>[{:name=>:teams, :type=>"Team", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_teams_response", :fields=>[{:name=>:rval, :type=>"Team", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_teams_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_teams_by_statement_response", :fields=>[{:name=>:rval, :type=>"TeamPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_team_action=>{:input=>[{:name=>:team_action, :type=>"TeamAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_team_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_teams=>{:input=>[{:name=>:teams, :type=>"Team", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_teams_response", :fields=>[{:name=>:rval, :type=>"Team", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
TEAMSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateTeams=>{:fields=>[], :base=>"TeamAction"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_path_elements, :type=>"FieldPathElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DeactivateTeams=>{:fields=>[], :base=>"TeamAction"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FieldPathElement=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :OrderError=>{:fields=>[{:name=>:reason, :type=>"OrderError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TeamAction=>{:fields=>[], :abstract=>true}, :Team=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"TeamStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:has_all_companies, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:has_all_inventory, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:team_access_type, :type=>"TeamAccessType", :min_occurs=>0, :max_occurs=>1}]}, :TeamError=>{:fields=>[{:name=>:reason, :type=>"TeamError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :TeamPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"Team", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[], :abstract=>true}, :"ApiVersionError.Reason"=>{:type=>"string", :enumerations=>["UPDATE_TO_NEWER_VERSION", "UNKNOWN"]}, :"AuthenticationError.Reason"=>{:type=>"string", :enumerations=>["AMBIGUOUS_SOAP_REQUEST_HEADER", "INVALID_EMAIL", "AUTHENTICATION_FAILED", "INVALID_OAUTH_SIGNATURE", "INVALID_SERVICE", "MISSING_SOAP_REQUEST_HEADER", "MISSING_AUTHENTICATION_HTTP_HEADER", "MISSING_AUTHENTICATION", "NOT_WHITELISTED_FOR_API_ACCESS", "NO_NETWORKS_TO_ACCESS", "NETWORK_NOT_FOUND", "NETWORK_CODE_REQUIRED", "CONNECTION_ERROR", "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK", "UNDER_INVESTIGATION", "UNKNOWN"]}, :"CollectionSizeError.Reason"=>{:type=>"string", :enumerations=>["TOO_LARGE", "UNKNOWN"]}, :"CommonError.Reason"=>{:type=>"string", :enumerations=>["NOT_FOUND", "ALREADY_EXISTS", "NOT_APPLICABLE", "DUPLICATE_OBJECT", "CANNOT_UPDATE", "CONCURRENT_MODIFICATION", "UNKNOWN"]}, :"FeatureError.Reason"=>{:type=>"string", :enumerations=>["MISSING_FEATURE", "UNKNOWN"]}, :"InternalApiError.Reason"=>{:type=>"string", :enumerations=>["UNEXPECTED_INTERNAL_API_ERROR", "TRANSIENT_ERROR", "UNKNOWN", "DOWNTIME", "ERROR_GENERATING_RESPONSE"]}, :"NotNullError.Reason"=>{:type=>"string", :enumerations=>["ARG1_NULL", "ARG2_NULL", "ARG3_NULL", "NULL", "UNKNOWN"]}, :"NullError.Reason"=>{:type=>"string", :enumerations=>["NULL_CONTENT"]}, :"OrderError.Reason"=>{:type=>"string", :enumerations=>["UPDATE_CANCELED_ORDER_NOT_ALLOWED", "UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED", "UPDATE_ARCHIVED_ORDER_NOT_ALLOWED", "CANNOT_MODIFY_PROPOSAL_ID", "PRIMARY_USER_REQUIRED", "PRIMARY_USER_CANNOT_BE_SECONDARY", "ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER", "USER_NOT_ON_ORDERS_TEAMS", "AGENCY_NOT_ON_ORDERS_TEAMS", "INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER", "UNKNOWN"]}, :"ParseError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"PermissionError.Reason"=>{:type=>"string", :enumerations=>["PERMISSION_DENIED", "UNKNOWN"]}, :"PublisherQueryLanguageContextError.Reason"=>{:type=>"string", :enumerations=>["UNEXECUTABLE", "UNKNOWN"]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:type=>"string", :enumerations=>["UNPARSABLE", "UNKNOWN"]}, :"QuotaError.Reason"=>{:type=>"string", :enumerations=>["EXCEEDED_QUOTA", "UNKNOWN", "REPORT_JOB_LIMIT"]}, :"RequiredCollectionError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED", "TOO_LARGE", "TOO_SMALL", "UNKNOWN"]}, :"RequiredError.Reason"=>{:type=>"string", :enumerations=>["REQUIRED"]}, :"ServerError.Reason"=>{:type=>"string", :enumerations=>["SERVER_ERROR", "SERVER_BUSY", "UNKNOWN"]}, :"StatementError.Reason"=>{:type=>"string", :enumerations=>["VARIABLE_NOT_BOUND_TO_VALUE", "UNKNOWN"]}, :"StringFormatError.Reason"=>{:type=>"string", :enumerations=>["UNKNOWN", "ILLEGAL_CHARS", "INVALID_FORMAT"]}, :"StringLengthError.Reason"=>{:type=>"string", :enumerations=>["TOO_LONG", "TOO_SHORT", "UNKNOWN"]}, :TeamAccessType=>{:type=>"string", :enumerations=>["NONE", "READ_ONLY", "READ_WRITE"]}, :"TeamError.Reason"=>{:type=>"string", :enumerations=>["ENTITY_NOT_ON_USERS_TEAMS", "AD_UNITS_NOT_ON_ORDER_TEAMS", "PLACEMENTS_NOT_ON_ORDER_TEAMS", "MISSING_USERS_TEAM", "ALL_TEAM_ASSOCIATION_NOT_ALLOWED", "INVALID_TEAM_ASSIGNMENT", "ALL_TEAM_ACCESS_OVERRIDE_NOT_ALLOWED", "CANNOT_UPDATE_INACTIVE_TEAM", "UNKNOWN"]}, :TeamStatus=>{:type=>"string", :enumerations=>["ACTIVE", "INACTIVE", "UNKNOWN"]}}
|
16
|
+
TEAMSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return TEAMSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return TEAMSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return TEAMSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < AdManagerApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, TeamServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 1.0.2 on 2018-11-08 13:43:17.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'ad_manager_api/v201811/user_service_registry'
|
12
|
+
|
13
|
+
module AdManagerApi; module V201811; module UserService
|
14
|
+
class UserService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201811'
|
17
|
+
super(config, endpoint, namespace, :v201811)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_users(*args, &block)
|
21
|
+
return execute_action('create_users', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_users_to_xml(*args)
|
25
|
+
return get_soap_xml('create_users', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_all_roles(*args, &block)
|
29
|
+
return execute_action('get_all_roles', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_all_roles_to_xml(*args)
|
33
|
+
return get_soap_xml('get_all_roles', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def get_current_user(*args, &block)
|
37
|
+
return execute_action('get_current_user', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def get_current_user_to_xml(*args)
|
41
|
+
return get_soap_xml('get_current_user', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def get_users_by_statement(*args, &block)
|
45
|
+
return execute_action('get_users_by_statement', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def get_users_by_statement_to_xml(*args)
|
49
|
+
return get_soap_xml('get_users_by_statement', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
def perform_user_action(*args, &block)
|
53
|
+
return execute_action('perform_user_action', args, &block)
|
54
|
+
end
|
55
|
+
|
56
|
+
def perform_user_action_to_xml(*args)
|
57
|
+
return get_soap_xml('perform_user_action', args)
|
58
|
+
end
|
59
|
+
|
60
|
+
def update_users(*args, &block)
|
61
|
+
return execute_action('update_users', args, &block)
|
62
|
+
end
|
63
|
+
|
64
|
+
def update_users_to_xml(*args)
|
65
|
+
return get_soap_xml('update_users', args)
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def get_service_registry()
|
71
|
+
return UserServiceRegistry
|
72
|
+
end
|
73
|
+
|
74
|
+
def get_module()
|
75
|
+
return AdManagerApi::V201811::UserService
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end; end; end
|