google-dfp-api 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/examples/v201602/forecast_service/get_availability_forecast.rb +0 -2
- data/examples/v201602/forecast_service/get_availability_forecast_for_line_item.rb +0 -4
- data/examples/v201602/forecast_service/get_delivery_forecast_for_line_items.rb +0 -4
- data/examples/v201605/forecast_service/get_availability_forecast.rb +0 -2
- data/examples/v201605/forecast_service/get_availability_forecast_for_line_item.rb +0 -4
- data/examples/v201605/forecast_service/get_delivery_forecast_for_line_items.rb +0 -4
- data/lib/dfp_api/version.rb +1 -1
- data/test/bugs/test_issue_00000081.rb +3 -0
- metadata +3 -189
- data/lib/dfp_api/v201411/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201411/activity_group_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/activity_service.rb +0 -54
- data/lib/dfp_api/v201411/activity_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201411/ad_exclusion_rule_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201411/ad_rule_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201411/audience_segment_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201411/base_rate_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/company_service.rb +0 -54
- data/lib/dfp_api/v201411/company_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/contact_service.rb +0 -54
- data/lib/dfp_api/v201411/contact_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201411/content_bundle_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201411/content_metadata_key_hierarchy_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/content_service.rb +0 -46
- data/lib/dfp_api/v201411/content_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/creative_service.rb +0 -54
- data/lib/dfp_api/v201411/creative_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201411/creative_set_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201411/creative_template_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201411/creative_wrapper_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201411/custom_field_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201411/custom_targeting_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201411/exchange_rate_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/forecast_service.rb +0 -46
- data/lib/dfp_api/v201411/forecast_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/inventory_service.rb +0 -70
- data/lib/dfp_api/v201411/inventory_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/label_service.rb +0 -62
- data/lib/dfp_api/v201411/label_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/line_item_creative_association_service.rb +0 -70
- data/lib/dfp_api/v201411/line_item_creative_association_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/line_item_service.rb +0 -62
- data/lib/dfp_api/v201411/line_item_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201411/line_item_template_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/live_stream_event_service.rb +0 -62
- data/lib/dfp_api/v201411/live_stream_event_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/network_service.rb +0 -62
- data/lib/dfp_api/v201411/network_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/order_service.rb +0 -62
- data/lib/dfp_api/v201411/order_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/placement_service.rb +0 -62
- data/lib/dfp_api/v201411/placement_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201411/premium_rate_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/product_service.rb +0 -54
- data/lib/dfp_api/v201411/product_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/product_template_service.rb +0 -62
- data/lib/dfp_api/v201411/product_template_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201411/proposal_line_item_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/proposal_service.rb +0 -62
- data/lib/dfp_api/v201411/proposal_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201411/publisher_query_language_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201411/rate_card_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_order_report_service.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_order_report_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_report_row_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201411/reconciliation_report_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/report_service.rb +0 -62
- data/lib/dfp_api/v201411/report_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201411/shared_ad_unit_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201411/suggested_ad_unit_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/team_service.rb +0 -54
- data/lib/dfp_api/v201411/team_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/user_service.rb +0 -78
- data/lib/dfp_api/v201411/user_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201411/user_team_association_service_registry.rb +0 -46
- data/lib/dfp_api/v201411/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201411/workflow_request_service_registry.rb +0 -46
- data/lib/dfp_api/v201502/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201502/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/activity_service.rb +0 -54
- data/lib/dfp_api/v201502/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201502/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201502/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201502/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201502/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/company_service.rb +0 -54
- data/lib/dfp_api/v201502/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/contact_service.rb +0 -54
- data/lib/dfp_api/v201502/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201502/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201502/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/content_service.rb +0 -46
- data/lib/dfp_api/v201502/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/creative_service.rb +0 -54
- data/lib/dfp_api/v201502/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201502/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201502/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201502/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201502/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201502/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201502/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/forecast_service.rb +0 -62
- data/lib/dfp_api/v201502/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/inventory_service.rb +0 -70
- data/lib/dfp_api/v201502/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/label_service.rb +0 -62
- data/lib/dfp_api/v201502/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/line_item_creative_association_service.rb +0 -70
- data/lib/dfp_api/v201502/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/line_item_service.rb +0 -62
- data/lib/dfp_api/v201502/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201502/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/live_stream_event_service.rb +0 -62
- data/lib/dfp_api/v201502/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/network_service.rb +0 -62
- data/lib/dfp_api/v201502/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/order_service.rb +0 -62
- data/lib/dfp_api/v201502/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/package_service.rb +0 -62
- data/lib/dfp_api/v201502/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/placement_service.rb +0 -62
- data/lib/dfp_api/v201502/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201502/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201502/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/product_package_service.rb +0 -62
- data/lib/dfp_api/v201502/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/product_service.rb +0 -54
- data/lib/dfp_api/v201502/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/product_template_service.rb +0 -62
- data/lib/dfp_api/v201502/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201502/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/proposal_service.rb +0 -62
- data/lib/dfp_api/v201502/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201502/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201502/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/reconciliation_order_report_service.rb +0 -46
- data/lib/dfp_api/v201502/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201502/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201502/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/report_service.rb +0 -62
- data/lib/dfp_api/v201502/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201502/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201502/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/team_service.rb +0 -54
- data/lib/dfp_api/v201502/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/user_service.rb +0 -78
- data/lib/dfp_api/v201502/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201502/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201502/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201502/workflow_request_service_registry.rb +0 -45
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:35.
|
9
|
-
|
10
|
-
require 'dfp_api/errors'
|
11
|
-
|
12
|
-
module DfpApi; module V201411; module CreativeWrapperService
|
13
|
-
class CreativeWrapperServiceRegistry
|
14
|
-
CREATIVEWRAPPERSERVICE_METHODS = {:create_creative_wrappers=>{:input=>[{:name=>:creative_wrappers, :type=>"CreativeWrapper", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_creative_wrappers_response", :fields=>[{:name=>:rval, :type=>"CreativeWrapper", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_creative_wrappers_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_creative_wrappers_by_statement_response", :fields=>[{:name=>:rval, :type=>"CreativeWrapperPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_creative_wrapper_action=>{:input=>[{:name=>:creative_wrapper_action, :type=>"CreativeWrapperAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_creative_wrapper_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_creative_wrappers=>{:input=>[{:name=>:creative_wrappers, :type=>"CreativeWrapper", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_creative_wrappers_response", :fields=>[{:name=>:rval, :type=>"CreativeWrapper", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
-
CREATIVEWRAPPERSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateCreativeWrappers=>{:fields=>[], :base=>"CreativeWrapperAction"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :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}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :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"}, :CreativeWrapperAction=>{:fields=>[{:name=>:creative_wrapper_action_type, :original_name=>"CreativeWrapperAction.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :CreativeWrapper=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:label_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:header, :type=>"CreativeWrapperHtmlSnippet", :min_occurs=>0, :max_occurs=>1}, {:name=>:footer, :type=>"CreativeWrapperHtmlSnippet", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"CreativeWrapperOrdering", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CreativeWrapperStatus", :min_occurs=>0, :max_occurs=>1}]}, :CreativeWrapperError=>{:fields=>[{:name=>:reason, :type=>"CreativeWrapperError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CreativeWrapperPage=>{: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=>"CreativeWrapper", :min_occurs=>0, :max_occurs=>:unbounded}]}, :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, :original_name=>"timeZoneID", :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"}, :DeactivateCreativeWrappers=>{:fields=>[], :base=>"CreativeWrapperAction"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CreativeWrapperHtmlSnippet=>{:fields=>[{:name=>:html_snippet, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :LabelError=>{:fields=>[{:name=>:reason, :type=>"LabelError.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"}, :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"}, :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"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[{:name=>:value_type, :original_name=>"Value.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"CreativeWrapperError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :CreativeWrapperOrdering=>{:fields=>[]}, :CreativeWrapperStatus=>{:fields=>[]}, :"LabelError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
-
CREATIVEWRAPPERSERVICE_NAMESPACES = []
|
17
|
-
|
18
|
-
def self.get_method_signature(method_name)
|
19
|
-
return CREATIVEWRAPPERSERVICE_METHODS[method_name.to_sym]
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.get_type_signature(type_name)
|
23
|
-
return CREATIVEWRAPPERSERVICE_TYPES[type_name.to_sym]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_namespace(index)
|
27
|
-
return CREATIVEWRAPPERSERVICE_NAMESPACES[index]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Base class for exceptions.
|
32
|
-
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
-
attr_reader :message # string
|
34
|
-
attr_reader :application_exception_type # string
|
35
|
-
end
|
36
|
-
|
37
|
-
# Exception class for holding a list of service errors.
|
38
|
-
class ApiException < ApplicationException
|
39
|
-
attr_reader :errors # ApiError
|
40
|
-
def initialize(exception_fault)
|
41
|
-
@array_fields ||= []
|
42
|
-
@array_fields << 'errors'
|
43
|
-
super(exception_fault, CreativeWrapperServiceRegistry)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:35.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'dfp_api/v201411/custom_field_service_registry'
|
12
|
-
|
13
|
-
module DfpApi; module V201411; module CustomFieldService
|
14
|
-
class CustomFieldService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201411'
|
17
|
-
super(config, endpoint, namespace, :v201411)
|
18
|
-
end
|
19
|
-
|
20
|
-
def create_custom_field_options(*args, &block)
|
21
|
-
return execute_action('create_custom_field_options', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def create_custom_field_options_to_xml(*args)
|
25
|
-
return get_soap_xml('create_custom_field_options', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def create_custom_fields(*args, &block)
|
29
|
-
return execute_action('create_custom_fields', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def create_custom_fields_to_xml(*args)
|
33
|
-
return get_soap_xml('create_custom_fields', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
def get_custom_field_option(*args, &block)
|
37
|
-
return execute_action('get_custom_field_option', args, &block)
|
38
|
-
end
|
39
|
-
|
40
|
-
def get_custom_field_option_to_xml(*args)
|
41
|
-
return get_soap_xml('get_custom_field_option', args)
|
42
|
-
end
|
43
|
-
|
44
|
-
def get_custom_fields_by_statement(*args, &block)
|
45
|
-
return execute_action('get_custom_fields_by_statement', args, &block)
|
46
|
-
end
|
47
|
-
|
48
|
-
def get_custom_fields_by_statement_to_xml(*args)
|
49
|
-
return get_soap_xml('get_custom_fields_by_statement', args)
|
50
|
-
end
|
51
|
-
|
52
|
-
def perform_custom_field_action(*args, &block)
|
53
|
-
return execute_action('perform_custom_field_action', args, &block)
|
54
|
-
end
|
55
|
-
|
56
|
-
def perform_custom_field_action_to_xml(*args)
|
57
|
-
return get_soap_xml('perform_custom_field_action', args)
|
58
|
-
end
|
59
|
-
|
60
|
-
def update_custom_field_options(*args, &block)
|
61
|
-
return execute_action('update_custom_field_options', args, &block)
|
62
|
-
end
|
63
|
-
|
64
|
-
def update_custom_field_options_to_xml(*args)
|
65
|
-
return get_soap_xml('update_custom_field_options', args)
|
66
|
-
end
|
67
|
-
|
68
|
-
def update_custom_fields(*args, &block)
|
69
|
-
return execute_action('update_custom_fields', args, &block)
|
70
|
-
end
|
71
|
-
|
72
|
-
def update_custom_fields_to_xml(*args)
|
73
|
-
return get_soap_xml('update_custom_fields', args)
|
74
|
-
end
|
75
|
-
|
76
|
-
private
|
77
|
-
|
78
|
-
def get_service_registry()
|
79
|
-
return CustomFieldServiceRegistry
|
80
|
-
end
|
81
|
-
|
82
|
-
def get_module()
|
83
|
-
return DfpApi::V201411::CustomFieldService
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:35.
|
9
|
-
|
10
|
-
require 'dfp_api/errors'
|
11
|
-
|
12
|
-
module DfpApi; module V201411; module CustomFieldService
|
13
|
-
class CustomFieldServiceRegistry
|
14
|
-
CUSTOMFIELDSERVICE_METHODS = {:create_custom_field_options=>{:input=>[{:name=>:custom_field_options, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_custom_field_options_response", :fields=>[{:name=>:rval, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :create_custom_fields=>{:input=>[{:name=>:custom_fields, :type=>"CustomField", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_custom_fields_response", :fields=>[{:name=>:rval, :type=>"CustomField", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_custom_field_option=>{:input=>[{:name=>:custom_field_option_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_custom_field_option_response", :fields=>[{:name=>:rval, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>1}]}}, :get_custom_fields_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_custom_fields_by_statement_response", :fields=>[{:name=>:rval, :type=>"CustomFieldPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_custom_field_action=>{:input=>[{:name=>:custom_field_action, :type=>"CustomFieldAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_custom_field_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_custom_field_options=>{:input=>[{:name=>:custom_field_options, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_custom_field_options_response", :fields=>[{:name=>:rval, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :update_custom_fields=>{:input=>[{:name=>:custom_fields, :type=>"CustomField", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_custom_fields_response", :fields=>[{:name=>:rval, :type=>"CustomField", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
-
CUSTOMFIELDSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateCustomFields=>{:fields=>[], :base=>"CustomFieldAction"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :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}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :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"}, :CustomFieldAction=>{:fields=>[{:name=>:custom_field_action_type, :original_name=>"CustomFieldAction.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CustomField=>{: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=>:is_active, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:entity_type, :type=>"CustomFieldEntityType", :min_occurs=>0, :max_occurs=>1}, {:name=>:data_type, :type=>"CustomFieldDataType", :min_occurs=>0, :max_occurs=>1}, {:name=>:visibility, :type=>"CustomFieldVisibility", :min_occurs=>0, :max_occurs=>1}, {:name=>:custom_field_type, :original_name=>"CustomField.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CustomFieldError=>{:fields=>[{:name=>:reason, :type=>"CustomFieldError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CustomFieldOption=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:custom_field_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CustomFieldPage=>{: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=>"CustomField", :min_occurs=>0, :max_occurs=>:unbounded}]}, :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, :original_name=>"timeZoneID", :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"}, :DeactivateCustomFields=>{:fields=>[], :base=>"CustomFieldAction"}, :DropDownCustomField=>{:fields=>[{:name=>:options, :type=>"CustomFieldOption", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"CustomField"}, :EntityLimitReachedError=>{:fields=>[], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :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"}, :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"}, :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"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[{:name=>:value_type, :original_name=>"Value.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :CustomFieldDataType=>{:fields=>[]}, :CustomFieldEntityType=>{:fields=>[]}, :"CustomFieldError.Reason"=>{:fields=>[]}, :CustomFieldVisibility=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}}
|
16
|
-
CUSTOMFIELDSERVICE_NAMESPACES = []
|
17
|
-
|
18
|
-
def self.get_method_signature(method_name)
|
19
|
-
return CUSTOMFIELDSERVICE_METHODS[method_name.to_sym]
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.get_type_signature(type_name)
|
23
|
-
return CUSTOMFIELDSERVICE_TYPES[type_name.to_sym]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_namespace(index)
|
27
|
-
return CUSTOMFIELDSERVICE_NAMESPACES[index]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Base class for exceptions.
|
32
|
-
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
-
attr_reader :message # string
|
34
|
-
attr_reader :application_exception_type # string
|
35
|
-
end
|
36
|
-
|
37
|
-
# Exception class for holding a list of service errors.
|
38
|
-
class ApiException < ApplicationException
|
39
|
-
attr_reader :errors # ApiError
|
40
|
-
def initialize(exception_fault)
|
41
|
-
@array_fields ||= []
|
42
|
-
@array_fields << 'errors'
|
43
|
-
super(exception_fault, CustomFieldServiceRegistry)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:36.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'dfp_api/v201411/custom_targeting_service_registry'
|
12
|
-
|
13
|
-
module DfpApi; module V201411; module CustomTargetingService
|
14
|
-
class CustomTargetingService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201411'
|
17
|
-
super(config, endpoint, namespace, :v201411)
|
18
|
-
end
|
19
|
-
|
20
|
-
def create_custom_targeting_keys(*args, &block)
|
21
|
-
return execute_action('create_custom_targeting_keys', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def create_custom_targeting_keys_to_xml(*args)
|
25
|
-
return get_soap_xml('create_custom_targeting_keys', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def create_custom_targeting_values(*args, &block)
|
29
|
-
return execute_action('create_custom_targeting_values', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def create_custom_targeting_values_to_xml(*args)
|
33
|
-
return get_soap_xml('create_custom_targeting_values', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
def get_custom_targeting_keys_by_statement(*args, &block)
|
37
|
-
return execute_action('get_custom_targeting_keys_by_statement', args, &block)
|
38
|
-
end
|
39
|
-
|
40
|
-
def get_custom_targeting_keys_by_statement_to_xml(*args)
|
41
|
-
return get_soap_xml('get_custom_targeting_keys_by_statement', args)
|
42
|
-
end
|
43
|
-
|
44
|
-
def get_custom_targeting_values_by_statement(*args, &block)
|
45
|
-
return execute_action('get_custom_targeting_values_by_statement', args, &block)
|
46
|
-
end
|
47
|
-
|
48
|
-
def get_custom_targeting_values_by_statement_to_xml(*args)
|
49
|
-
return get_soap_xml('get_custom_targeting_values_by_statement', args)
|
50
|
-
end
|
51
|
-
|
52
|
-
def perform_custom_targeting_key_action(*args, &block)
|
53
|
-
return execute_action('perform_custom_targeting_key_action', args, &block)
|
54
|
-
end
|
55
|
-
|
56
|
-
def perform_custom_targeting_key_action_to_xml(*args)
|
57
|
-
return get_soap_xml('perform_custom_targeting_key_action', args)
|
58
|
-
end
|
59
|
-
|
60
|
-
def perform_custom_targeting_value_action(*args, &block)
|
61
|
-
return execute_action('perform_custom_targeting_value_action', args, &block)
|
62
|
-
end
|
63
|
-
|
64
|
-
def perform_custom_targeting_value_action_to_xml(*args)
|
65
|
-
return get_soap_xml('perform_custom_targeting_value_action', args)
|
66
|
-
end
|
67
|
-
|
68
|
-
def update_custom_targeting_keys(*args, &block)
|
69
|
-
return execute_action('update_custom_targeting_keys', args, &block)
|
70
|
-
end
|
71
|
-
|
72
|
-
def update_custom_targeting_keys_to_xml(*args)
|
73
|
-
return get_soap_xml('update_custom_targeting_keys', args)
|
74
|
-
end
|
75
|
-
|
76
|
-
def update_custom_targeting_values(*args, &block)
|
77
|
-
return execute_action('update_custom_targeting_values', args, &block)
|
78
|
-
end
|
79
|
-
|
80
|
-
def update_custom_targeting_values_to_xml(*args)
|
81
|
-
return get_soap_xml('update_custom_targeting_values', args)
|
82
|
-
end
|
83
|
-
|
84
|
-
private
|
85
|
-
|
86
|
-
def get_service_registry()
|
87
|
-
return CustomTargetingServiceRegistry
|
88
|
-
end
|
89
|
-
|
90
|
-
def get_module()
|
91
|
-
return DfpApi::V201411::CustomTargetingService
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:36.
|
9
|
-
|
10
|
-
require 'dfp_api/errors'
|
11
|
-
|
12
|
-
module DfpApi; module V201411; module CustomTargetingService
|
13
|
-
class CustomTargetingServiceRegistry
|
14
|
-
CUSTOMTARGETINGSERVICE_METHODS = {:create_custom_targeting_keys=>{:input=>[{:name=>:keys, :type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_custom_targeting_keys_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :create_custom_targeting_values=>{:input=>[{:name=>:values, :type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_custom_targeting_values_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_custom_targeting_keys_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_custom_targeting_keys_by_statement_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingKeyPage", :min_occurs=>0, :max_occurs=>1}]}}, :get_custom_targeting_values_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_custom_targeting_values_by_statement_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingValuePage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_custom_targeting_key_action=>{:input=>[{:name=>:custom_targeting_key_action, :type=>"CustomTargetingKeyAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_custom_targeting_key_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :perform_custom_targeting_value_action=>{:input=>[{:name=>:custom_targeting_value_action, :type=>"CustomTargetingValueAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_custom_targeting_value_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_custom_targeting_keys=>{:input=>[{:name=>:keys, :type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_custom_targeting_keys_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :update_custom_targeting_values=>{:input=>[{:name=>:values, :type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_custom_targeting_values_response", :fields=>[{:name=>:rval, :type=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
-
CUSTOMTARGETINGSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivateCustomTargetingKeys=>{:fields=>[], :base=>"CustomTargetingKeyAction"}, :ActivateCustomTargetingValues=>{:fields=>[], :base=>"CustomTargetingValueAction"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :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}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :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"}, :CustomTargetingError=>{:fields=>[{:name=>:reason, :type=>"CustomTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CustomTargetingKeyAction=>{:fields=>[{:name=>:custom_targeting_key_action_type, :original_name=>"CustomTargetingKeyAction.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :CustomTargetingKey=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"CustomTargetingKey.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CustomTargetingKey.Status", :min_occurs=>0, :max_occurs=>1}]}, :CustomTargetingKeyPage=>{: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=>"CustomTargetingKey", :min_occurs=>0, :max_occurs=>:unbounded}]}, :CustomTargetingValueAction=>{:fields=>[{:name=>:custom_targeting_value_action_type, :original_name=>"CustomTargetingValueAction.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :CustomTargetingValue=>{:fields=>[{:name=>:custom_targeting_key_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"CustomTargetingValue.MatchType", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CustomTargetingValue.Status", :min_occurs=>0, :max_occurs=>1}]}, :CustomTargetingValuePage=>{: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=>"CustomTargetingValue", :min_occurs=>0, :max_occurs=>:unbounded}]}, :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, :original_name=>"timeZoneID", :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"}, :DeleteCustomTargetingKeys=>{:fields=>[], :base=>"CustomTargetingKeyAction"}, :DeleteCustomTargetingValues=>{:fields=>[], :base=>"CustomTargetingValueAction"}, :EntityChildrenLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityChildrenLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityLimitReachedError=>{:fields=>[], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :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"}, :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"}, :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"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[{:name=>:value_type, :original_name=>"Value.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"CustomTargetingError.Reason"=>{:fields=>[]}, :"CustomTargetingKey.Status"=>{:fields=>[]}, :"CustomTargetingKey.Type"=>{:fields=>[]}, :"CustomTargetingValue.MatchType"=>{:fields=>[]}, :"CustomTargetingValue.Status"=>{:fields=>[]}, :"EntityChildrenLimitReachedError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}}
|
16
|
-
CUSTOMTARGETINGSERVICE_NAMESPACES = []
|
17
|
-
|
18
|
-
def self.get_method_signature(method_name)
|
19
|
-
return CUSTOMTARGETINGSERVICE_METHODS[method_name.to_sym]
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.get_type_signature(type_name)
|
23
|
-
return CUSTOMTARGETINGSERVICE_TYPES[type_name.to_sym]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_namespace(index)
|
27
|
-
return CUSTOMTARGETINGSERVICE_NAMESPACES[index]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Base class for exceptions.
|
32
|
-
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
-
attr_reader :message # string
|
34
|
-
attr_reader :application_exception_type # string
|
35
|
-
end
|
36
|
-
|
37
|
-
# Exception class for holding a list of service errors.
|
38
|
-
class ApiException < ApplicationException
|
39
|
-
attr_reader :errors # ApiError
|
40
|
-
def initialize(exception_fault)
|
41
|
-
@array_fields ||= []
|
42
|
-
@array_fields << 'errors'
|
43
|
-
super(exception_fault, CustomTargetingServiceRegistry)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:38.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'dfp_api/v201411/exchange_rate_service_registry'
|
12
|
-
|
13
|
-
module DfpApi; module V201411; module ExchangeRateService
|
14
|
-
class ExchangeRateService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201411'
|
17
|
-
super(config, endpoint, namespace, :v201411)
|
18
|
-
end
|
19
|
-
|
20
|
-
def create_exchange_rates(*args, &block)
|
21
|
-
return execute_action('create_exchange_rates', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def create_exchange_rates_to_xml(*args)
|
25
|
-
return get_soap_xml('create_exchange_rates', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def get_exchange_rates_by_statement(*args, &block)
|
29
|
-
return execute_action('get_exchange_rates_by_statement', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def get_exchange_rates_by_statement_to_xml(*args)
|
33
|
-
return get_soap_xml('get_exchange_rates_by_statement', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
def perform_exchange_rate_action(*args, &block)
|
37
|
-
return execute_action('perform_exchange_rate_action', args, &block)
|
38
|
-
end
|
39
|
-
|
40
|
-
def perform_exchange_rate_action_to_xml(*args)
|
41
|
-
return get_soap_xml('perform_exchange_rate_action', args)
|
42
|
-
end
|
43
|
-
|
44
|
-
def update_exchange_rates(*args, &block)
|
45
|
-
return execute_action('update_exchange_rates', args, &block)
|
46
|
-
end
|
47
|
-
|
48
|
-
def update_exchange_rates_to_xml(*args)
|
49
|
-
return get_soap_xml('update_exchange_rates', args)
|
50
|
-
end
|
51
|
-
|
52
|
-
private
|
53
|
-
|
54
|
-
def get_service_registry()
|
55
|
-
return ExchangeRateServiceRegistry
|
56
|
-
end
|
57
|
-
|
58
|
-
def get_module()
|
59
|
-
return DfpApi::V201411::ExchangeRateService
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:38.
|
9
|
-
|
10
|
-
require 'dfp_api/errors'
|
11
|
-
|
12
|
-
module DfpApi; module V201411; module ExchangeRateService
|
13
|
-
class ExchangeRateServiceRegistry
|
14
|
-
EXCHANGERATESERVICE_METHODS = {:create_exchange_rates=>{:input=>[{:name=>:exchange_rates, :type=>"ExchangeRate", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_exchange_rates_response", :fields=>[{:name=>:rval, :type=>"ExchangeRate", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_exchange_rates_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_exchange_rates_by_statement_response", :fields=>[{:name=>:rval, :type=>"ExchangeRatePage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_exchange_rate_action=>{:input=>[{:name=>:exchange_rate_action, :type=>"ExchangeRateAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_exchange_rate_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_exchange_rates=>{:input=>[{:name=>:exchange_rates, :type=>"ExchangeRate", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_exchange_rates_response", :fields=>[{:name=>:rval, :type=>"ExchangeRate", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
-
EXCHANGERATESERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :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}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :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, :original_name=>"timeZoneID", :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"}, :DeleteExchangeRates=>{:fields=>[], :base=>"ExchangeRateAction"}, :ExchangeRateAction=>{:fields=>[{:name=>:exchange_rate_action_type, :original_name=>"ExchangeRateAction.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ExchangeRate=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:currency_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:refresh_rate, :type=>"ExchangeRateRefreshRate", :min_occurs=>0, :max_occurs=>1}, {:name=>:direction, :type=>"ExchangeRateDirection", :min_occurs=>0, :max_occurs=>1}, {:name=>:exchange_rate, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :ExchangeRateError=>{:fields=>[{:name=>:reason, :type=>"ExchangeRateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ExchangeRatePage=>{:fields=>[{:name=>:results, :type=>"ExchangeRate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :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"}, :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"}, :RequiredNumberError=>{:fields=>[{:name=>:reason, :type=>"RequiredNumberError.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"}, :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"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[{:name=>:value_type, :original_name=>"Value.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :ExchangeRateDirection=>{:fields=>[]}, :"ExchangeRateError.Reason"=>{:fields=>[]}, :ExchangeRateRefreshRate=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"RequiredNumberError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}}
|
16
|
-
EXCHANGERATESERVICE_NAMESPACES = []
|
17
|
-
|
18
|
-
def self.get_method_signature(method_name)
|
19
|
-
return EXCHANGERATESERVICE_METHODS[method_name.to_sym]
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.get_type_signature(type_name)
|
23
|
-
return EXCHANGERATESERVICE_TYPES[type_name.to_sym]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_namespace(index)
|
27
|
-
return EXCHANGERATESERVICE_NAMESPACES[index]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Base class for exceptions.
|
32
|
-
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
-
attr_reader :message # string
|
34
|
-
attr_reader :application_exception_type # string
|
35
|
-
end
|
36
|
-
|
37
|
-
# Exception class for holding a list of service errors.
|
38
|
-
class ApiException < ApplicationException
|
39
|
-
attr_reader :errors # ApiError
|
40
|
-
def initialize(exception_fault)
|
41
|
-
@array_fields ||= []
|
42
|
-
@array_fields << 'errors'
|
43
|
-
super(exception_fault, ExchangeRateServiceRegistry)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:13:38.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'dfp_api/v201411/forecast_service_registry'
|
12
|
-
|
13
|
-
module DfpApi; module V201411; module ForecastService
|
14
|
-
class ForecastService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201411'
|
17
|
-
super(config, endpoint, namespace, :v201411)
|
18
|
-
end
|
19
|
-
|
20
|
-
def get_forecast(*args, &block)
|
21
|
-
return execute_action('get_forecast', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def get_forecast_to_xml(*args)
|
25
|
-
return get_soap_xml('get_forecast', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def get_forecast_by_id(*args, &block)
|
29
|
-
return execute_action('get_forecast_by_id', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def get_forecast_by_id_to_xml(*args)
|
33
|
-
return get_soap_xml('get_forecast_by_id', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def get_service_registry()
|
39
|
-
return ForecastServiceRegistry
|
40
|
-
end
|
41
|
-
|
42
|
-
def get_module()
|
43
|
-
return DfpApi::V201411::ForecastService
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|