google-adwords-api 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +8 -0
- data/README +22 -20
- data/adwords_api.yml +40 -0
- data/examples/v201109/account_management/create_account.rb +0 -1
- data/examples/v201109/account_management/get_account_alerts.rb +0 -1
- data/examples/v201109/account_management/get_account_changes.rb +0 -1
- data/examples/v201109/account_management/get_account_hierarchy.rb +0 -1
- data/examples/v201109/account_management/get_client_customer_id.rb +0 -1
- data/examples/v201109/account_management/get_client_unit_usage.rb +0 -1
- data/examples/v201109/basic_operations/add_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/add_campaign.rb +0 -1
- data/examples/v201109/basic_operations/add_keywords.rb +0 -1
- data/examples/v201109/basic_operations/add_text_ads.rb +0 -1
- data/examples/v201109/basic_operations/delete_ad.rb +0 -1
- data/examples/v201109/basic_operations/delete_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/delete_campaign.rb +0 -1
- data/examples/v201109/basic_operations/delete_keyword.rb +0 -1
- data/examples/v201109/basic_operations/get_ad_groups.rb +0 -1
- data/examples/v201109/basic_operations/get_campaigns.rb +0 -1
- data/examples/v201109/basic_operations/get_keywords.rb +0 -1
- data/examples/v201109/basic_operations/get_text_ads.rb +0 -1
- data/examples/v201109/basic_operations/pause_ad.rb +0 -1
- data/examples/v201109/basic_operations/update_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/update_campaign.rb +0 -1
- data/examples/v201109/basic_operations/update_keyword.rb +0 -1
- data/examples/v201109/campaign_management/add_experiment.rb +0 -1
- data/examples/v201109/campaign_management/add_keywords_in_bulk.rb +0 -1
- data/examples/v201109/campaign_management/add_location_extension.rb +0 -1
- data/examples/v201109/campaign_management/add_location_extension_override.rb +0 -1
- data/examples/v201109/campaign_management/get_all_disapproved_ads.rb +0 -1
- data/examples/v201109/campaign_management/promote_experiment.rb +0 -1
- data/examples/v201109/campaign_management/set_ad_parameters.rb +0 -1
- data/examples/v201109/campaign_management/validate_text_ad.rb +0 -1
- data/examples/v201109/error_handling/handle_captcha_challenge.rb +94 -0
- data/examples/v201109/error_handling/handle_partial_failures.rb +0 -1
- data/examples/v201109/error_handling/handle_policy_violation_error.rb +0 -1
- data/examples/v201109/error_handling/handle_two_factor_authorization_error.rb +0 -1
- data/examples/v201109/misc/get_all_images_and_videos.rb +0 -1
- data/examples/v201109/misc/upload_image.rb +0 -1
- data/examples/v201109/misc/use_oauth.rb +0 -1
- data/examples/v201109/optimization/estimate_keyword_traffic.rb +0 -1
- data/examples/v201109/optimization/get_keyword_bid_simulations.rb +0 -1
- data/examples/v201109/optimization/get_keyword_ideas.rb +0 -1
- data/examples/v201109/optimization/get_placement_ideas.rb +0 -1
- data/examples/v201109/remarketing/add_audience.rb +0 -1
- data/examples/v201109/remarketing/add_conversion_tracker.rb +0 -1
- data/examples/v201109/reporting/download_criteria_report.rb +0 -1
- data/examples/v201109/reporting/download_defined_report.rb +0 -1
- data/examples/v201109/reporting/get_defined_reports.rb +0 -1
- data/examples/v201109/reporting/get_report_fields.rb +0 -1
- data/examples/v201109/reporting/parallel_report_download.rb +0 -1
- data/examples/v201109/targeting/add_campaign_targeting_criteria.rb +0 -1
- data/examples/v201109/targeting/get_campaign_targeting_criteria.rb +0 -1
- data/examples/v201109/targeting/get_targetable_languages_and_carriers.rb +0 -1
- data/examples/v201109/targeting/lookup_location.rb +0 -1
- data/lib/adwords_api.rb +1 -1
- data/lib/adwords_api/api_config.rb +36 -20
- data/lib/adwords_api/credential_handler.rb +5 -2
- data/lib/adwords_api/report_utils.rb +7 -5
- data/lib/adwords_api/v201109/ad_extension_override_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_ad_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_criterion_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_param_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_param_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/alert_service.rb +4 -6
- data/lib/adwords_api/v201109/alert_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +8 -10
- data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_criterion_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_target_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_target_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/constant_data_service.rb +4 -6
- data/lib/adwords_api/v201109/constant_data_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/conversion_tracker_service.rb +8 -10
- data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/create_account_service.rb +4 -6
- data/lib/adwords_api/v201109/create_account_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/customer_sync_service.rb +4 -6
- data/lib/adwords_api/v201109/customer_sync_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/data_service.rb +8 -10
- data/lib/adwords_api/v201109/data_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/experiment_service.rb +8 -10
- data/lib/adwords_api/v201109/experiment_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/geo_location_service.rb +4 -6
- data/lib/adwords_api/v201109/geo_location_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/info_service.rb +4 -6
- data/lib/adwords_api/v201109/info_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/location_criterion_service.rb +4 -6
- data/lib/adwords_api/v201109/location_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/media_service.rb +8 -10
- data/lib/adwords_api/v201109/media_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/mutate_job_service.rb +8 -10
- data/lib/adwords_api/v201109/mutate_job_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/report_definition_service.rb +8 -10
- data/lib/adwords_api/v201109/report_definition_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/serviced_account_service.rb +4 -6
- data/lib/adwords_api/v201109/serviced_account_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/targeting_idea_service.rb +8 -10
- data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/traffic_estimator_service.rb +4 -6
- data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/user_list_service.rb +8 -10
- data/lib/adwords_api/v201109/user_list_service_registry.rb +6 -8
- data/lib/adwords_api/version.rb +26 -0
- data/test/adwords_api/test_api_config.rb +2 -2
- data/test/adwords_api/test_report_utils.rb +1 -1
- data/test/adwords_api/test_utils.rb +1 -1
- data/test/bugs/test_issue_00000031.rb +0 -1
- data/test/suite_unittests.rb +32 -0
- metadata +130 -132
- data/Rakefile +0 -92
- data/examples/v201109/optimization/get_keyword_opportunities.rb +0 -96
- data/lib/adwords_api/v201109/bulk_opportunity_service.rb +0 -34
- data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +0 -46
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:05:26.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:19.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module AdGroupAdService
|
13
11
|
class AdGroupAdServiceRegistry
|
14
|
-
ADGROUPADSERVICE_METHODS = {:
|
15
|
-
ADGROUPADSERVICE_TYPES = {:VideoType=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :"DeprecatedAd.Type"=>{:fields=>[]}, :AdGroupAdReturnValue=>{:fields=>[{:type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value}, {:type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:partial_failure_errors}], :base=>"ListReturnValue"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:service_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:method_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:operations}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units}]}, :Predicate=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:policy_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:violating_text}]}, :Paging=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:number_results}]}, :"Media.MediaType"=>{:fields=>[]}, :ThirdPartyRedirectAd=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_cookie_targeted}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_user_interest_targeted}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_tagged}, {:type=>"VideoType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:video_types}], :base=>"RichMediaAd"}, :ProductAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:promotion_line}], :base=>"Ad"}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :DeprecatedAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"DeprecatedAd.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}], :base=>"Ad"}, :"TemplateElementField.Type"=>{:fields=>[]}, :"Ad.ApprovalStatus"=>{:fields=>[]}, :Operation=>{:fields=>[{:type=>"Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operation_type}], :abstract=>true}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :Image=>{:fields=>[{:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:data}], :base=>"Media"}, :Audio=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:duration_millis}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:streaming_url}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:ready_to_play_on_the_web}], :base=>"Media"}, :"Media.MimeType"=>{:fields=>[]}, :AdGroupAd=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_id}, {:type=>"Ad", :min_occurs=>0, :max_occurs=>1, :name=>:ad}, {:type=>"AdGroupAdExperimentData", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data}, {:type=>"AdGroupAd.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"AdStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :NumberValue=>{:fields=>[], :base=>"ComparableValue", :abstract=>true}, :MobileAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:headline}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:markup_languages}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:mobile_carriers}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:business_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}], :base=>"Ad"}, :Dimensions=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}]}, :Operator=>{:fields=>[]}, :MarkupLanguageType=>{:fields=>[]}, :Ad=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_url}, {:type=>"Ad.ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:disapproval_reasons}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:trademark_disapproved}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_type}]}, :TemplateAd=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:template_id}, {:type=>"AdUnionId", :min_occurs=>0, :max_occurs=>1, :name=>:ad_union_id}, {:type=>"TemplateElement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:template_elements}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:dimensions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:duration}], :base=>"Ad"}, :ImageAd=>{:fields=>[{:type=>"Image", :min_occurs=>0, :max_occurs=>1, :name=>:image}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_to_copy_image_from}], :base=>"Ad"}, :ComparableValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comparable_value_type}], :abstract=>true}, :Selector=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:fields}, {:type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:predicates}, {:type=>"DateRange", :min_occurs=>0, :max_occurs=>1, :name=>:date_range}, {:type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ordering}, {:type=>"Paging", :min_occurs=>0, :max_occurs=>1, :name=>:paging}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:length}]}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:enclosing_id}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:limit}], :base=>"ApiError"}, :"Media.Size"=>{:fields=>[]}, :MobileImageAd=>{:fields=>[{:type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:markup_languages}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:mobile_carriers}, {:type=>"Image", :min_occurs=>0, :max_occurs=>1, :name=>:image}], :base=>"Ad"}, :Video=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:duration_millis}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:streaming_url}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:ready_to_play_on_the_web}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:industry_standard_commercial_identifier}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:advertising_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:you_tube_video_id_string}], :base=>"Media"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :SortOrder=>{:fields=>[]}, :TemplateElement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:unique_name}, {:type=>"TemplateElementField", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:fields}]}, :DoubleValue=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :RichMediaAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:dimensions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:impression_beacon_url}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:certified_vendor_format_id}], :base=>"Ad", :abstract=>true}, :AdGroupAdExperimentData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data_status}]}, :OrderBy=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"SortOrder", :min_occurs=>0, :max_occurs=>1, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :AdStats=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:percent_served}], :base=>"Stats"}, :"Predicate.Operator"=>{:fields=>[]}, :TemplateElementField=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"TemplateElementField.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field_text}, {:type=>"Media", :min_occurs=>0, :max_occurs=>1, :name=>:field_media}]}, :Stats=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1, :name=>:network}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:average_position}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpc}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpm}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:ctr}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions_many_per_click}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:view_through_conversions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_conv_value}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_clicks}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_click_rate}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_missed_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_received_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:call_duration_secs}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:avg_call_duration_secs}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:stats_type}]}, :Media=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:media_id}, {:type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:reference_id}, {:type=>"Media_Size_DimensionsMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimensions}, {:type=>"Media_Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:urls}, {:type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>1, :name=>:mime_type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:source_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:file_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creation_time}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:media_type}]}, :DateRange=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:min}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:max}]}, :ExperimentDataStatus=>{:fields=>[]}, :Page=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_num_entries}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:page_type}], :abstract=>true}, :AdGroupAdPage=>{:fields=>[{:type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:entries}], :base=>"Page"}, :AdGroupAdOperation=>{:fields=>[{:type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>1, :name=>:operand}, {:type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:exemption_requests}], :base=>"Operation"}, :Money=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}], :base=>"ComparableValue"}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1, :name=>:key}]}, :AdUnionId=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_union_id_type}]}, :SoapHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:client_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:developer_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_agent}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:validate_only}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:partial_failure}]}, :"Stats.Network"=>{:fields=>[]}, :"AdGroupAd.Status"=>{:fields=>[]}, :ListReturnValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:list_return_value_type}], :abstract=>true}, :TextAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:headline}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description1}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description2}], :base=>"Ad"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :LongValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}}
|
12
|
+
ADGROUPADSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AdGroupAdPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AdGroupAdOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AdGroupAdReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
ADGROUPADSERVICE_TYPES = {:AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :AdStats=>{:fields=>[{:name=>:percent_served, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Stats"}, :Audio=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DeprecatedAd=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"DeprecatedAd.Type", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Dimensions=>{:fields=>[{:name=>:width, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:height, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Image=>{:fields=>[{:name=>:data, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}]}, :Media_Size_StringMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :MobileAd=>{:fields=>[{:name=>:headline, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:markup_languages, :type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mobile_carriers, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:business_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :"PolicyViolationError.Part"=>{:fields=>[{:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:length, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PolicyViolationKey=>{:fields=>[{:name=>:policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductAd=>{:fields=>[{:name=>:promotion_line, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :TextAd=>{:fields=>[{:name=>:headline, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description1, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description2, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :ThirdPartyRedirectAd=>{:fields=>[{:name=>:is_cookie_targeted, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_user_interest_targeted, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_tagged, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:video_types, :type=>"VideoType", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"RichMediaAd"}, :Video=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:industry_standard_commercial_identifier, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:advertising_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:you_tube_video_id_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :AdGroupAdExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}]}, :AdUnionId=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_union_id_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ExemptionRequest=>{:fields=>[{:name=>:key, :type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1}]}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :RichMediaAd=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:dimensions, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}, {:name=>:snippet, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:impression_beacon_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:certified_vendor_format_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Ad"}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Media=>{:fields=>[{:name=>:media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1}, {:name=>:reference_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:dimensions, :type=>"Media_Size_DimensionsMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:urls, :type=>"Media_Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mime_type, :type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:source_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:file_size, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:creation_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :MobileImageAd=>{:fields=>[{:name=>:markup_languages, :type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mobile_carriers, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:image, :type=>"Image", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Stats=>{:fields=>[{:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:network, :type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpm, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:ctr, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions_many_per_click, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion_many_per_click, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:view_through_conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_conv_value, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_click_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_missed_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_received_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:call_duration_secs, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:avg_call_duration_secs, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :TemplateElementField=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"TemplateElementField.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_media, :type=>"Media", :min_occurs=>0, :max_occurs=>1}]}, :ImageAd=>{:fields=>[{:name=>:image, :type=>"Image", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_to_copy_image_from, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :TemplateElement=>{:fields=>[{:name=>:unique_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:fields, :type=>"TemplateElementField", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TemplateAd=>{:fields=>[{:name=>:template_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_union_id, :type=>"AdUnionId", :min_occurs=>0, :max_occurs=>1}, {:name=>:template_elements, :type=>"TemplateElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:dimensions, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:duration, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Ad=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"Ad.ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:disapproval_reasons, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trademark_disapproved, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupAd=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad, :type=>"Ad", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"AdGroupAdExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"AdGroupAd.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"AdStats", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupAdOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>1}, {:name=>:exemption_requests, :type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Operation"}, :AdGroupAdPage=>{:fields=>[{:name=>:entries, :type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :AdGroupAdReturnValue=>{:fields=>[{:name=>:value, :type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:partial_failure_errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"Ad.ApprovalStatus"=>{:fields=>[]}, :"AdGroupAd.Status"=>{:fields=>[]}, :"DeprecatedAd.Type"=>{:fields=>[]}, :ExperimentDataStatus=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :MarkupLanguageType=>{:fields=>[]}, :"Media.MediaType"=>{:fields=>[]}, :"Media.MimeType"=>{:fields=>[]}, :"Media.Size"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :"TemplateElementField.Type"=>{:fields=>[]}, :VideoType=>{:fields=>[]}}
|
16
14
|
ADGROUPADSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:05:14.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:22.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/ad_group_criterion_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module AdGroupCriterionService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:05:14.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:22.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module AdGroupCriterionService
|
13
11
|
class AdGroupCriterionServiceRegistry
|
14
|
-
ADGROUPCRITERIONSERVICE_METHODS = {:
|
15
|
-
ADGROUPCRITERIONSERVICE_TYPES = {:BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data_status}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_bid_multiplier}]}, :SoapHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:client_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:developer_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_agent}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:validate_only}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:partial_failure}]}, :"Predicate.Operator"=>{:fields=>[]}, :OrderBy=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"SortOrder", :min_occurs=>0, :max_occurs=>1, :name=>:sort_order}]}, :"Criterion.Type"=>{:fields=>[]}, :ExperimentDataStatus=>{:fields=>[]}, :DateRange=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:min}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:max}]}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:length}]}, :ComparableValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comparable_value_type}], :abstract=>true}, :AdGroupCriterionPage=>{:fields=>[{:type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:entries}], :base=>"Page"}, :BidSource=>{:fields=>[]}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpc_multiplier}, {:type=>"MultiplierSource", :min_occurs=>0, :max_occurs=>1, :name=>:multiplier_source}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :DoubleValue=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :CriterionUserList=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_membership_status}], :base=>"Criterion"}, :SystemServingStatus=>{:fields=>[]}, :Selector=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:fields}, {:type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:predicates}, {:type=>"DateRange", :min_occurs=>0, :max_occurs=>1, :name=>:date_range}, {:type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ordering}, {:type=>"Paging", :min_occurs=>0, :max_occurs=>1, :name=>:paging}]}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_bids_type}], :abstract=>true}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :min_occurs=>0, :max_occurs=>1, :name=>:user_status}, {:type=>"SystemServingStatus", :min_occurs=>0, :max_occurs=>1, :name=>:system_serving_status}, {:type=>"ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}, {:type=>"AdGroupCriterionBids", :min_occurs=>0, :max_occurs=>1, :name=>:bids}, {:type=>"BiddableAdGroupCriterionExperimentData", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:first_page_cpc}, {:type=>"QualityInfo", :min_occurs=>0, :max_occurs=>1, :name=>:quality_info}, {:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}], :base=>"AdGroupCriterion"}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :"AdGroupCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpc}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:bid_source}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :NumberValue=>{:fields=>[], :base=>"ComparableValue", :abstract=>true}, :QualityInfo=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_keyword_ad_relevance_acceptable}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_landing_page_quality_acceptable}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_landing_page_latency_acceptable}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:quality_score}]}, :Criterion=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:criterion_type}]}, :Operator=>{:fields=>[]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_interest_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_interest_name}], :base=>"Criterion"}, :MultiplierSource=>{:fields=>[]}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_id}, {:type=>"CriterionUse", :min_occurs=>0, :max_occurs=>1, :name=>:criterion_use}, {:type=>"Criterion", :min_occurs=>0, :max_occurs=>1, :name=>:criterion}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_type}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :BidMultiplier=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:multiplier}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:multiplied_bid}]}, :Keyword=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:text}, {:type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1, :name=>:match_type}], :base=>"Criterion"}, :Bid=>{:fields=>[{:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:amount}]}, :ApprovalStatus=>{:fields=>[]}, :Product=>{:fields=>[{:type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:conditions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:text}], :base=>"Criterion"}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:proxy_bid}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :Operation=>{:fields=>[{:type=>"Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operation_type}], :abstract=>true}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :Paging=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:number_results}]}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1, :name=>:key}]}, :Stats=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1, :name=>:network}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:average_position}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpc}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpm}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:ctr}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions_many_per_click}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:view_through_conversions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_conv_value}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_clicks}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_click_rate}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_missed_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_received_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:call_duration_secs}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:avg_call_duration_secs}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:stats_type}]}, :SortOrder=>{:fields=>[]}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :"Stats.Network"=>{:fields=>[]}, :Money=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}], :base=>"ComparableValue"}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpm}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:bid_source}], :base=>"AdGroupCriterionBids"}, :UserStatus=>{:fields=>[]}, :LongValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :ProductCondition=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:argument}, {:type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>1, :name=>:operand}, {:type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:exemption_requests}], :base=>"Operation"}, :Placement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:url}], :base=>"Criterion"}, :Page=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_num_entries}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:page_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:service_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:method_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:operations}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units}]}, :ListReturnValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:list_return_value_type}], :abstract=>true}, :AdGroupCriterionReturnValue=>{:fields=>[{:type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value}, {:type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:partial_failure_errors}], :base=>"ListReturnValue"}, :Predicate=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :ExperimentDeltaStatus=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :CriterionUse=>{:fields=>[]}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:policy_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:violating_text}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:percent_cpa}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:source}], :base=>"AdGroupCriterionBids"}, :Vertical=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:path}], :base=>"Criterion"}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:enclosing_id}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:limit}], :base=>"ApiError"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_experiment_bid_multiplier_type}], :abstract=>true}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}}
|
12
|
+
ADGROUPCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AdGroupCriterionPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AdGroupCriterionOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AdGroupCriterionReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
ADGROUPCRITERIONSERVICE_TYPES = {:AdGroupCriterionLimitExceeded=>{:fields=>[{:name=>:limit_type, :type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1}], :base=>"EntityCountLimitExceeded"}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :EntityAccessDenied=>{:fields=>[{:name=>:reason, :type=>"EntityAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:name=>:percent_cpa, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :"PolicyViolationError.Part"=>{:fields=>[{:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:length, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PolicyViolationKey=>{:fields=>[{:name=>:policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :QualityInfo=>{:fields=>[{:name=>:is_keyword_ad_relevance_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_landing_page_quality_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_landing_page_latency_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:quality_score, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ExemptionRequest=>{:fields=>[{:name=>:key, :type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1}]}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}]}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Stats=>{:fields=>[{:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:network, :type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpm, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:ctr, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions_many_per_click, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion_many_per_click, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:view_through_conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_conv_value, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_click_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_missed_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_received_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:call_duration_secs, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:avg_call_duration_secs, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Bid=>{:fields=>[{:name=>:amount, :type=>"Money", :min_occurs=>0, :max_occurs=>1}]}, :BidMultiplier=>{:fields=>[{:name=>:multiplier, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:multiplied_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}]}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:name=>:proxy_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:name=>:max_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}, {:name=>:multiplier_source, :type=>"MultiplierSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:name=>:max_cpm, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :Product=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:name=>:ad_group_criterion_experiment_bid_multiplier_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_bid_multiplier, :type=>"AdGroupCriterionExperimentBidMultiplier", :min_occurs=>0, :max_occurs=>1}]}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:name=>:max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :AdGroupCriterionBids=>{:fields=>[{:name=>:ad_group_criterion_bids_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :BiddableAdGroupCriterion=>{:fields=>[{:name=>:user_status, :type=>"UserStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:system_serving_status, :type=>"SystemServingStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:destination_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:bids, :type=>"AdGroupCriterionBids", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"BiddableAdGroupCriterionExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:first_page_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:quality_info, :type=>"QualityInfo", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"Stats", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterion"}, :AdGroupCriterion=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_use, :type=>"CriterionUse", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupCriterionOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:exemption_requests, :type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Operation"}, :AdGroupCriterionPage=>{:fields=>[{:name=>:entries, :type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :AdGroupCriterionReturnValue=>{:fields=>[{:name=>:value, :type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:partial_failure_errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"AdGroupCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :ApprovalStatus=>{:fields=>[]}, :BidSource=>{:fields=>[]}, :"Criterion.Type"=>{:fields=>[]}, :CriterionUse=>{:fields=>[]}, :ExperimentDataStatus=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :MultiplierSource=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :SystemServingStatus=>{:fields=>[]}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}, :UserStatus=>{:fields=>[]}}
|
16
14
|
ADGROUPCRITERIONSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:06:02.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:25.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/ad_group_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module AdGroupService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:06:02.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:25.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module AdGroupService
|
13
11
|
class AdGroupServiceRegistry
|
14
|
-
ADGROUPSERVICE_METHODS = {:
|
15
|
-
ADGROUPSERVICE_TYPES = {:
|
12
|
+
ADGROUPSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AdGroupPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AdGroupOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AdGroupReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
ADGROUPSERVICE_TYPES = {:DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PercentCPAAdGroupBids=>{:fields=>[{:name=>:percent_cpa, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Stats=>{:fields=>[{:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:network, :type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpm, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:ctr, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions_many_per_click, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion_many_per_click, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:view_through_conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_conv_value, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_click_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_missed_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_received_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:call_duration_secs, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:avg_call_duration_secs, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Bid=>{:fields=>[{:name=>:amount, :type=>"Money", :min_occurs=>0, :max_occurs=>1}]}, :BidMultiplier=>{:fields=>[{:name=>:multiplier, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:multiplied_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}]}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:name=>:proxy_keyword_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:proxy_site_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:name=>:target_cpa, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_optimizer_bid_type, :type=>"ConversionOptimizerBidType", :min_occurs=>0, :max_occurs=>1}, {:name=>:deduplication_mode, :type=>"ConversionDeduplicationMode", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ManualCPCAdGroupBids=>{:fields=>[{:name=>:keyword_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:keyword_content_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:site_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:max_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}, {:name=>:max_content_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupExperimentBidMultipliers"}, :ManualCPMAdGroupBids=>{:fields=>[{:name=>:max_cpm, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:max_cpm_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupExperimentBidMultipliers"}, :AdGroupBids=>{:fields=>[{:name=>:ad_group_bids_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:ad_group_experiment_bid_multipliers_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_bid_multipliers, :type=>"AdGroupExperimentBidMultipliers", :min_occurs=>0, :max_occurs=>1}]}, :AdGroup=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"AdGroup.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:bids, :type=>"AdGroupBids", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"AdGroupExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"Stats", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroup", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :AdGroupPage=>{:fields=>[{:name=>:entries, :type=>"AdGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :AdGroupReturnValue=>{:fields=>[{:name=>:value, :type=>"AdGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"AdGroup.Status"=>{:fields=>[]}, :ConversionDeduplicationMode=>{:fields=>[]}, :ConversionOptimizerBidType=>{:fields=>[]}, :ExperimentDataStatus=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}}
|
16
14
|
ADGROUPSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:05:11.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:27.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/ad_param_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module AdParamService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:05:11.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:27.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module AdParamService
|
13
11
|
class AdParamServiceRegistry
|
14
|
-
ADPARAMSERVICE_METHODS = {:
|
15
|
-
ADPARAMSERVICE_TYPES = {:
|
12
|
+
ADPARAMSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AdParamPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AdParamOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AdParam", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
13
|
+
ADPARAMSERVICE_TYPES = {:AdParam=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:insertion_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:param_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :AdParamOperation=>{:fields=>[{:name=>:operand, :type=>"AdParam", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :AdParamPage=>{:fields=>[{:name=>:entries, :type=>"AdParam", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :"PolicyViolationError.Part"=>{:fields=>[{:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:length, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PolicyViolationKey=>{:fields=>[{:name=>:policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}}
|
16
14
|
ADPARAMSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:06:19.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:28.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/alert_service_registry'
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:06:19.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:28.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module AlertService
|
13
11
|
class AlertServiceRegistry
|
14
|
-
ALERTSERVICE_METHODS = {:get=>{:input=>[{:type=>"AlertSelector", :min_occurs=>0, :max_occurs=>1
|
15
|
-
ALERTSERVICE_TYPES = {:
|
12
|
+
ALERTSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AlertSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AlertPage", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
ALERTSERVICE_TYPES = {:Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :AlertQuery=>{:fields=>[{:name=>:client_spec, :type=>"ClientSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_spec, :type=>"FilterSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:types, :type=>"AlertType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:severities, :type=>"AlertSeverity", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger_time_spec, :type=>"TriggerTimeSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}]}, :AlertSelector=>{:fields=>[{:name=>:query, :type=>"AlertQuery", :min_occurs=>0, :max_occurs=>1}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Detail=>{:fields=>[{:name=>:trigger_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Alert=>{:fields=>[{:name=>:alert_severity, :type=>"AlertSeverity", :min_occurs=>0, :max_occurs=>1}, {:name=>:alert_type, :type=>"AlertType", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:details, :type=>"Detail", :min_occurs=>0, :max_occurs=>:unbounded}]}, :AlertPage=>{:fields=>[{:name=>:entries, :type=>"Alert", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"NoStatsPage"}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :AlertSeverity=>{:fields=>[]}, :AlertType=>{:fields=>[]}, :ClientSpec=>{:fields=>[]}, :FilterSpec=>{:fields=>[]}, :TriggerTimeSpec=>{:fields=>[]}}
|
16
14
|
ALERTSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201109"]
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:58.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:31.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/bulk_mutate_job_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module BulkMutateJobService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:58.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:31.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module BulkMutateJobService
|
13
11
|
class BulkMutateJobServiceRegistry
|
14
|
-
BULKMUTATEJOBSERVICE_METHODS = {:
|
15
|
-
BULKMUTATEJOBSERVICE_TYPES = {:"Media.MimeType"=>{:fields=>[]}, :CriterionUse=>{:fields=>[]}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpm}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:bid_source}], :base=>"AdGroupCriterionBids"}, :AdStats=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:percent_served}], :base=>"Stats"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:keyword_max_cpc}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:keyword_content_max_cpc}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:site_max_cpc}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :ServingStatus=>{:fields=>[]}, :"Ad.ApprovalStatus"=>{:fields=>[]}, :TargetList=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:target_list_type}], :abstract=>true}, :Gender=>{:fields=>[{:type=>"Gender.GenderType", :min_occurs=>0, :max_occurs=>1, :name=>:gender_type}], :base=>"Criterion"}, :Dimensions=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:width}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:height}]}, :AdExtensionOverride=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_id}, {:type=>"AdExtension", :min_occurs=>0, :max_occurs=>1, :name=>:ad_extension}, {:type=>"OverrideInfo", :min_occurs=>0, :max_occurs=>1, :name=>:override_info}, {:type=>"AdExtensionOverride.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"AdExtensionOverride.ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"AdExtensionOverrideStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :min_occurs=>0, :max_occurs=>1, :name=>:pricing_model}, {:type=>"ConversionOptimizerBidType", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :min_occurs=>0, :max_occurs=>1, :name=>:deduplication_mode}], :base=>"BiddingStrategy"}, :Audio=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:duration_millis}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:streaming_url}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:ready_to_play_on_the_web}], :base=>"Media"}, :BiddingStrategy=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:bidding_strategy_type}], :abstract=>true}, :LongValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :"AdGroup.Status"=>{:fields=>[]}, :TemplateElement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:unique_name}, {:type=>"TemplateElementField", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:fields}]}, :Proximity=>{:fields=>[{:type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1, :name=>:geo_point}, {:type=>"Proximity.DistanceUnits", :min_occurs=>0, :max_occurs=>1, :name=>:radius_distance_units}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:radius_in_units}, {:type=>"Address", :min_occurs=>0, :max_occurs=>1, :name=>:address}], :base=>"Criterion"}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1, :name=>:key}]}, :AdGroup=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"AdGroup.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"AdGroupBids", :min_occurs=>0, :max_occurs=>1, :name=>:bids}, {:type=>"AdGroupExperimentData", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data}, {:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :FrequencyCap=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions}, {:type=>"TimeUnit", :min_occurs=>0, :max_occurs=>1, :name=>:time_unit}, {:type=>"Level", :min_occurs=>0, :max_occurs=>1, :name=>:level}]}, :"ConversionOptimizerEligibility.RejectionReason"=>{:fields=>[]}, :Sitelink=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_text}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}]}, :MobileImageAd=>{:fields=>[{:type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:markup_languages}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:mobile_carriers}, {:type=>"Image", :min_occurs=>0, :max_occurs=>1, :name=>:image}], :base=>"Ad"}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :min_occurs=>0, :max_occurs=>1, :name=>:user_status}, {:type=>"SystemServingStatus", :min_occurs=>0, :max_occurs=>1, :name=>:system_serving_status}, {:type=>"ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}, {:type=>"AdGroupCriterionBids", :min_occurs=>0, :max_occurs=>1, :name=>:bids}, {:type=>"BiddableAdGroupCriterionExperimentData", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:first_page_cpc}, {:type=>"QualityInfo", :min_occurs=>0, :max_occurs=>1, :name=>:quality_info}, {:type=>"Stats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}], :base=>"AdGroupCriterion"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :min_occurs=>0, :max_occurs=>1, :name=>:bidding_transition}, {:type=>"Campaign", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :ContentLabelType=>{:fields=>[]}, :ThirdPartyRedirectAd=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_cookie_targeted}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_user_interest_targeted}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_tagged}, {:type=>"VideoType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:video_types}], :base=>"RichMediaAd"}, :AdGroupAdExperimentData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data_status}]}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :ImageAd=>{:fields=>[{:type=>"Image", :min_occurs=>0, :max_occurs=>1, :name=>:image}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_to_copy_image_from}], :base=>"Ad"}, :AdServingOptimizationStatus=>{:fields=>[]}, :ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:conditions}]}, :OperationResult=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operation_result_type}], :abstract=>true}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:proxy_bid}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :Keyword=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:text}, {:type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1, :name=>:match_type}], :base=>"Criterion"}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:percent_cpa}], :base=>"AdGroupBids"}, :JobOperation=>{:fields=>[{:type=>"Job", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_bids_type}], :abstract=>true}, :MultiplierSource=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :CampaignStatus=>{:fields=>[]}, :Placement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:url}], :base=>"Criterion"}, :OverrideInfo=>{:fields=>[]}, :Operation=>{:fields=>[{:type=>"Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operation_type}], :abstract=>true}, :BulkMutateJobPolicy=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:prerequisite_job_ids}]}, :LocationSyncExtension=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:icon_media_id}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:should_sync_url}], :base=>"AdExtension"}, :AgeRange=>{:fields=>[{:type=>"AgeRange.AgeRangeType", :min_occurs=>0, :max_occurs=>1, :name=>:age_range_type}], :base=>"Criterion"}, :LocationOverrideInfo=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:radius}, {:type=>"LocationOverrideInfo.RadiusUnits", :min_occurs=>0, :max_occurs=>1, :name=>:radius_units}]}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_experiment_bid_multipliers_type}], :abstract=>true}, :Bid=>{:fields=>[{:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:amount}]}, :GeoPoint=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:latitude_in_micro_degrees}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:longitude_in_micro_degrees}]}, :UserStatus=>{:fields=>[]}, :"AgeRange.AgeRangeType"=>{:fields=>[]}, :CriterionUserList=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1, :name=>:user_list_membership_status}], :base=>"Criterion"}, :ProductAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:promotion_line}], :base=>"Ad"}, :CampaignCriterionOperation=>{:fields=>[{:type=>"CampaignCriterion", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :BulkMutateRequest=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:part_index}, {:type=>"OperationStream", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:operation_streams}]}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_id}, {:type=>"AdExtension", :min_occurs=>0, :max_occurs=>1, :name=>:ad_extension}, {:type=>"CampaignAdExtension.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"CampaignAdExtension.ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"CampaignAdExtensionStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :BasicJobStatus=>{:fields=>[]}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :min_occurs=>0, :max_occurs=>1, :name=>:day_of_week}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_hour}, {:type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1, :name=>:start_minute}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:end_hour}, {:type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1, :name=>:end_minute}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:bid_multiplier}], :base=>"Target"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:proxy_keyword_max_cpc}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:proxy_site_max_cpc}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpc_multiplier}, {:type=>"MultiplierSource", :min_occurs=>0, :max_occurs=>1, :name=>:multiplier_source}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :Level=>{:fields=>[]}, :"Gender.GenderType"=>{:fields=>[]}, :RichMediaAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:dimensions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:snippet}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:impression_beacon_url}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:certified_vendor_format_id}], :base=>"Ad", :abstract=>true}, :Product=>{:fields=>[{:type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:conditions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:text}], :base=>"Criterion"}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :ContentLabel=>{:fields=>[{:type=>"ContentLabelType", :min_occurs=>0, :max_occurs=>1, :name=>:content_label_type}], :base=>"Criterion"}, :"Media.Size"=>{:fields=>[]}, :DayOfWeek=>{:fields=>[]}, :"Budget.BudgetDeliveryMethod"=>{:fields=>[]}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpm_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :AdUnionId=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_union_id_type}]}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpm}], :base=>"AdGroupBids"}, :DoubleValue=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :TimeUnit=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :"AdGroupCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :"AdExtensionOverride.ApprovalStatus"=>{:fields=>[]}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :AdExtensionOverrideOperation=>{:fields=>[{:type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:use_saved_bids}], :base=>"BiddingTransition"}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :ExperimentDataStatus=>{:fields=>[]}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :BatchFailureResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:operation_index_in_batch}], :base=>"OperationResult"}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :min_occurs=>0, :max_occurs=>1, :name=>:target_bidding_strategy}, {:type=>"AdGroupBids", :min_occurs=>0, :max_occurs=>1, :name=>:explicit_ad_group_bids}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:bidding_transition_type}]}, :MobileExtension=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_call_only}], :base=>"AdExtension"}, :"AdGroupAd.Status"=>{:fields=>[]}, :TemplateElementField=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"TemplateElementField.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field_text}, {:type=>"Media", :min_occurs=>0, :max_occurs=>1, :name=>:field_media}]}, :FailureResult=>{:fields=>[{:type=>"ApiException", :min_occurs=>0, :max_occurs=>1, :name=>:cause}], :base=>"OperationResult"}, :AdGroupAd=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_id}, {:type=>"Ad", :min_occurs=>0, :max_occurs=>1, :name=>:ad}, {:type=>"AdGroupAdExperimentData", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data}, {:type=>"AdGroupAd.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"AdStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :min_occurs=>0, :max_occurs=>1, :name=>:positive_geo_target_type}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :min_occurs=>0, :max_occurs=>1, :name=>:negative_geo_target_type}], :base=>"Setting"}, :MarkupLanguageType=>{:fields=>[]}, :"GeoTargetTypeSetting.NegativeGeoTargetType"=>{:fields=>[]}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:sitelinks}], :base=>"AdExtension"}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data_status}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_bid_multiplier}]}, :UnprocessedResult=>{:fields=>[], :base=>"OperationResult"}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:policy_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:violating_text}]}, :Job=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:customer_job_key}, {:type=>"ApiErrorReason", :min_occurs=>0, :max_occurs=>1, :name=>:failure_reason}, {:type=>"JobStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}, {:type=>"BillingSummary", :min_occurs=>0, :max_occurs=>1, :name=>:billing_summary}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:job_type}], :abstract=>true}, :AdGroupAdOperation=>{:fields=>[{:type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>1, :name=>:operand}, {:type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:exemption_requests}], :base=>"Operation"}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:target_google_search}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:target_search_network}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:target_content_network}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:target_content_contextual}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:target_partner_search_network}]}, :"CampaignAdExtension.ApprovalStatus"=>{:fields=>[]}, :SoapHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:client_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:developer_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_agent}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:validate_only}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:partial_failure}]}, :ProductExtension=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:google_base_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_name}, {:type=>"ProductConditionAndGroup", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:product_selection}], :base=>"AdExtension"}, :OperationStream=>{:fields=>[{:type=>"EntityId", :min_occurs=>0, :max_occurs=>1, :name=>:scoping_entity_id}, {:type=>"Operation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:operations}]}, :BulkMutateJob=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"BulkMutateJobPolicy", :min_occurs=>0, :max_occurs=>1, :name=>:policy}, {:type=>"BulkMutateRequest", :min_occurs=>0, :max_occurs=>1, :name=>:request}, {:type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"BulkMutateJobEvent", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:history}, {:type=>"BulkMutateResult", :min_occurs=>0, :max_occurs=>1, :name=>:result}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_request_parts}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_request_parts_received}], :base=>"Job"}, :Language=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}], :base=>"Criterion"}, :"DeprecatedAd.Type"=>{:fields=>[]}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:opt_in}], :base=>"Setting"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_experiment_bid_multiplier_type}], :abstract=>true}, :Address=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:street_address}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:street_address2}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:city_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:province_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:province_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:postal_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :JobSelector=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:include_history}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:include_stats}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:job_selector_type}], :abstract=>true}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}, :SystemServingStatus=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :ConversionDeduplicationMode=>{:fields=>[]}, :Stats=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1, :name=>:network}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:average_position}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpc}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpm}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:ctr}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions_many_per_click}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:view_through_conversions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_conv_value}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_clicks}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_click_rate}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_missed_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_received_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:call_duration_secs}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:avg_call_duration_secs}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:stats_type}]}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :Platform=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:platform_name}], :base=>"Criterion"}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:percent_cpa}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:source}], :base=>"AdGroupCriterionBids"}, :BulkMutateJobSelector=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:job_ids}, {:type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:job_statuses}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:result_part_index}], :base=>"JobSelector"}, :CampaignCriterion=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_id}, {:type=>"Criterion", :min_occurs=>0, :max_occurs=>1, :name=>:criterion}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_criterion_type}]}, :LostResult=>{:fields=>[], :base=>"OperationResult"}, :AdGroupExperimentData=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_data_status}, {:type=>"AdGroupExperimentBidMultipliers", :min_occurs=>0, :max_occurs=>1, :name=>:experiment_bid_multipliers}]}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :min_occurs=>0, :max_occurs=>1, :name=>:period}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:amount}, {:type=>"Budget.BudgetDeliveryMethod", :min_occurs=>0, :max_occurs=>1, :name=>:delivery_method}]}, :VideoType=>{:fields=>[]}, :"CampaignCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :Vertical=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:path}], :base=>"Criterion"}, :QualityInfo=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_keyword_ad_relevance_acceptable}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_landing_page_quality_acceptable}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_landing_page_latency_acceptable}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:quality_score}]}, :BulkMutateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:part_index}, {:type=>"OperationStreamResult", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:operation_stream_results}]}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :"Media.MediaType"=>{:fields=>[]}, :BidSource=>{:fields=>[]}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpc_multiplier}, {:type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1, :name=>:max_content_cpc_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targets}], :base=>"TargetList"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:target_cpa}, {:type=>"ConversionOptimizerBidType", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :min_occurs=>0, :max_occurs=>1, :name=>:deduplication_mode}], :base=>"AdGroupBids"}, :"Proximity.DistanceUnits"=>{:fields=>[]}, :PricingModel=>{:fields=>[]}, :Target=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:target_type}], :abstract=>true}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:enclosing_id}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:limit}], :base=>"ApiError"}, :DeprecatedAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"DeprecatedAd.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}], :base=>"Ad"}, :Criterion=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:criterion_type}]}, :Ad=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_url}, {:type=>"Ad.ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:disapproval_reasons}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:trademark_disapproved}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_type}]}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :"Budget.BudgetPeriod"=>{:fields=>[]}, :LocationExtension=>{:fields=>[{:type=>"Address", :min_occurs=>0, :max_occurs=>1, :name=>:address}, {:type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1, :name=>:geo_point}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:encoded_location}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:company_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}, {:type=>"LocationExtension.Source", :min_occurs=>0, :max_occurs=>1, :name=>:source}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:icon_media_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:image_media_id}], :base=>"AdExtension"}, :Media=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:media_id}, {:type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:reference_id}, {:type=>"Media_Size_DimensionsMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimensions}, {:type=>"Media_Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:urls}, {:type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>1, :name=>:mime_type}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:source_url}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:file_size}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:creation_time}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:media_type}]}, :ApiErrorReason=>{:fields=>[]}, :AdGroupBids=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_bids_type}], :abstract=>true}, :"AdExtensionOverride.Status"=>{:fields=>[]}, :TemplateAd=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:template_id}, {:type=>"AdUnionId", :min_occurs=>0, :max_occurs=>1, :name=>:ad_union_id}, {:type=>"TemplateElement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:template_elements}, {:type=>"Dimensions", :min_occurs=>0, :max_occurs=>1, :name=>:dimensions}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:duration}], :base=>"Ad"}, :Polygon=>{:fields=>[{:type=>"GeoPoint", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:vertices}], :base=>"Criterion"}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :EntityId=>{:fields=>[{:type=>"EntityId.Type", :min_occurs=>0, :max_occurs=>1, :name=>:type}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:eligible}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rejection_reasons}]}, :"TemplateElementField.Type"=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :MobileAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:headline}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:markup_languages}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:mobile_carriers}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:business_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}], :base=>"Ad"}, :BidMultiplier=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:multiplier}, {:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:multiplied_bid}]}, :Campaign=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"CampaignStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"ServingStatus", :min_occurs=>0, :max_occurs=>1, :name=>:serving_status}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"Budget", :min_occurs=>0, :max_occurs=>1, :name=>:budget}, {:type=>"BiddingStrategy", :min_occurs=>0, :max_occurs=>1, :name=>:bidding_strategy}, {:type=>"ConversionOptimizerEligibility", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_optimizer_eligibility}, {:type=>"CampaignStats", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_stats}, {:type=>"AdServingOptimizationStatus", :min_occurs=>0, :max_occurs=>1, :name=>:ad_serving_optimization_status}, {:type=>"FrequencyCap", :min_occurs=>0, :max_occurs=>1, :name=>:frequency_cap}, {:type=>"Setting", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:settings}, {:type=>"NetworkSetting", :min_occurs=>0, :max_occurs=>1, :name=>:network_setting}]}, :NumberValue=>{:fields=>[], :base=>"ComparableValue", :abstract=>true}, :TextAd=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:headline}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description1}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description2}], :base=>"Ad"}, :ManualCPC=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"BiddingStrategy"}, :Image=>{:fields=>[{:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:data}], :base=>"Media"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :"GeoTargetTypeSetting.PositiveGeoTargetType"=>{:fields=>[]}, :BillingSummary=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_operations}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_units}]}, :Money=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}], :base=>"ComparableValue"}, :Carrier=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}], :base=>"Criterion"}, :Operand=>{:fields=>[]}, :Video=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:duration_millis}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:streaming_url}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:ready_to_play_on_the_web}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:industry_standard_commercial_identifier}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:advertising_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:you_tube_video_id_string}], :base=>"Media"}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :JobEvent=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:date_time}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:job_event_type}]}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_id}, {:type=>"CriterionUse", :min_occurs=>0, :max_occurs=>1, :name=>:criterion_use}, {:type=>"Criterion", :min_occurs=>0, :max_occurs=>1, :name=>:criterion}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_group_criterion_type}]}, :MinuteOfHour=>{:fields=>[]}, :"Criterion.Type"=>{:fields=>[]}, :"CampaignAdExtension.Status"=>{:fields=>[]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:service_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:method_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:operations}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units}]}, :OperationStreamResult=>{:fields=>[{:type=>"OperationResult", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:operation_results}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :OperatingSystemVersion=>{:fields=>[], :base=>"Criterion"}, :BulkMutateJobEvent=>{:fields=>[{:type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}], :base=>"JobEvent"}, :ComparableValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comparable_value_type}], :abstract=>true}, :"EntityId.Type"=>{:fields=>[]}, :Setting=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:setting_type}], :abstract=>true}, :JobStats=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:progress_percent}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:pending_time_millis}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:processing_time_millis}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:job_stats_type}]}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>1, :name=>:operand}, {:type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:exemption_requests}], :base=>"Operation"}, :ConversionOptimizerBidType=>{:fields=>[]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_interest_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_interest_name}], :base=>"Criterion"}, :PlaceHolder=>{:fields=>[]}, :BulkMutateJobStats=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_operations}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_failed_operations}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_unprocessed_operations}], :base=>"JobStats"}, :AdExtension=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_extension_type}]}, :CampaignCriterionLimitExceeded=>{:fields=>[{:type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :"LocationOverrideInfo.RadiusUnits"=>{:fields=>[]}, :ApprovalStatus=>{:fields=>[]}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :min_occurs=>0, :max_occurs=>1, :name=>:max_cpc}, {:type=>"BidSource", :min_occurs=>0, :max_occurs=>1, :name=>:bid_source}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :AdGroupOperation=>{:fields=>[{:type=>"AdGroup", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:enhanced_cpc_enabled}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:bid_ceiling}], :base=>"BiddingStrategy"}, :ReturnValueResult=>{:fields=>[{:type=>"Operand", :min_occurs=>0, :max_occurs=>1, :name=>:return_value}], :base=>"OperationResult"}, :ProductCondition=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:argument}, {:type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:length}]}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :Location=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:location_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_type}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_obsolete}, {:type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:parent_locations}], :base=>"Criterion"}}
|
12
|
+
BULKMUTATEJOBSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"BulkMutateJobSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"BulkMutateJob", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :mutate=>{:input=>[{:name=>:operation, :type=>"JobOperation", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"BulkMutateJob", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
BULKMUTATEJOBSERVICE_TYPES = {:Ad=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"Ad.ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:disapproval_reasons, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trademark_disapproved, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdExtension=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_extension_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdExtensionOverride=>{:fields=>[{:name=>:ad_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_extension, :type=>"AdExtension", :min_occurs=>0, :max_occurs=>1}, {:name=>:override_info, :type=>"OverrideInfo", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"AdExtensionOverride.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"AdExtensionOverride.ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"AdExtensionOverrideStats", :min_occurs=>0, :max_occurs=>1}]}, :AdExtensionOverrideOperation=>{:fields=>[{:name=>:operand, :type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :AdGroup=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"AdGroup.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:bids, :type=>"AdGroupBids", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"AdGroupExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"Stats", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupAd=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad, :type=>"Ad", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"AdGroupAdExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"AdGroupAd.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"AdStats", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :AdGroupAdExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupAdOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroupAd", :min_occurs=>0, :max_occurs=>1}, {:name=>:exemption_requests, :type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Operation"}, :AdGroupBids=>{:fields=>[{:name=>:ad_group_bids_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupCriterion=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_use, :type=>"CriterionUse", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupCriterionBids=>{:fields=>[{:name=>:ad_group_criterion_bids_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:name=>:ad_group_criterion_experiment_bid_multiplier_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:name=>:limit_type, :type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1}], :base=>"EntityCountLimitExceeded"}, :AdGroupCriterionOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroupCriterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:exemption_requests, :type=>"ExemptionRequest", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Operation"}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:ad_group_experiment_bid_multipliers_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_bid_multipliers, :type=>"AdGroupExperimentBidMultipliers", :min_occurs=>0, :max_occurs=>1}]}, :AdGroupOperation=>{:fields=>[{:name=>:operand, :type=>"AdGroup", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :AdScheduleTarget=>{:fields=>[{:name=>:day_of_week, :type=>"DayOfWeek", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_minute, :type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_minute, :type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_multiplier, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :AdScheduleTargetList=>{:fields=>[{:name=>:targets, :type=>"AdScheduleTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :AdStats=>{:fields=>[{:name=>:percent_served, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Stats"}, :AdUnionId=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_union_id_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Address=>{:fields=>[{:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address2, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:postal_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AgeRange=>{:fields=>[{:name=>:age_range_type, :type=>"AgeRange.AgeRangeType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ApiErrorReason=>{:fields=>[]}, :Audio=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :BatchFailureResult=>{:fields=>[{:name=>:operation_index_in_batch, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"OperationResult"}, :Bid=>{:fields=>[{:name=>:amount, :type=>"Money", :min_occurs=>0, :max_occurs=>1}]}, :BidMultiplier=>{:fields=>[{:name=>:multiplier, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:multiplied_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}]}, :BiddableAdGroupCriterion=>{:fields=>[{:name=>:user_status, :type=>"UserStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:system_serving_status, :type=>"SystemServingStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:destination_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:bids, :type=>"AdGroupCriterionBids", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data, :type=>"BiddableAdGroupCriterionExperimentData", :min_occurs=>0, :max_occurs=>1}, {:name=>:first_page_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:quality_info, :type=>"QualityInfo", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"Stats", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterion"}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:name=>:experiment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_delta_status, :type=>"ExperimentDeltaStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_data_status, :type=>"ExperimentDataStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:experiment_bid_multiplier, :type=>"AdGroupCriterionExperimentBidMultiplier", :min_occurs=>0, :max_occurs=>1}]}, :BiddingStrategy=>{:fields=>[{:name=>:bidding_strategy_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :BiddingTransition=>{:fields=>[{:name=>:target_bidding_strategy, :type=>"BiddingStrategy", :min_occurs=>0, :max_occurs=>1}, {:name=>:explicit_ad_group_bids, :type=>"AdGroupBids", :min_occurs=>0, :max_occurs=>1}, {:name=>:bidding_transition_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :BillingSummary=>{:fields=>[{:name=>:num_operations, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Budget=>{:fields=>[{:name=>:period, :type=>"Budget.BudgetPeriod", :min_occurs=>0, :max_occurs=>1}, {:name=>:amount, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:delivery_method, :type=>"Budget.BudgetDeliveryMethod", :min_occurs=>0, :max_occurs=>1}]}, :BudgetOptimizer=>{:fields=>[{:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_ceiling, :type=>"Money", :min_occurs=>0, :max_occurs=>1}], :base=>"BiddingStrategy"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:name=>:proxy_keyword_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:proxy_site_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:name=>:proxy_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :BulkMutateJob=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:policy, :type=>"BulkMutateJobPolicy", :min_occurs=>0, :max_occurs=>1}, {:name=>:request, :type=>"BulkMutateRequest", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:history, :type=>"BulkMutateJobEvent", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:result, :type=>"BulkMutateResult", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_request_parts, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_request_parts_received, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"Job"}, :BulkMutateJobEvent=>{:fields=>[{:name=>:status, :type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"JobEvent"}, :BulkMutateJobPolicy=>{:fields=>[{:name=>:prerequisite_job_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}]}, :BulkMutateJobSelector=>{:fields=>[{:name=>:job_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:job_statuses, :type=>"BasicJobStatus", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:result_part_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"JobSelector"}, :BulkMutateJobStats=>{:fields=>[{:name=>:num_operations, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_failed_operations, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_unprocessed_operations, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"JobStats"}, :BulkMutateRequest=>{:fields=>[{:name=>:part_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_streams, :type=>"OperationStream", :min_occurs=>0, :max_occurs=>:unbounded}]}, :BulkMutateResult=>{:fields=>[{:name=>:part_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_stream_results, :type=>"OperationStreamResult", :min_occurs=>0, :max_occurs=>:unbounded}]}, :Campaign=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CampaignStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:serving_status, :type=>"ServingStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:budget, :type=>"Budget", :min_occurs=>0, :max_occurs=>1}, {:name=>:bidding_strategy, :type=>"BiddingStrategy", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_optimizer_eligibility, :type=>"ConversionOptimizerEligibility", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_stats, :type=>"CampaignStats", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_serving_optimization_status, :type=>"AdServingOptimizationStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:frequency_cap, :type=>"FrequencyCap", :min_occurs=>0, :max_occurs=>1}, {:name=>:settings, :type=>"Setting", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:network_setting, :type=>"NetworkSetting", :min_occurs=>0, :max_occurs=>1}]}, :CampaignAdExtension=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_extension, :type=>"AdExtension", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CampaignAdExtension.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"CampaignAdExtension.ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"CampaignAdExtensionStats", :min_occurs=>0, :max_occurs=>1}]}, :CampaignAdExtensionOperation=>{:fields=>[{:name=>:operand, :type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :CampaignCriterion=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CampaignCriterionLimitExceeded=>{:fields=>[{:name=>:limit_type, :type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1}], :base=>"EntityCountLimitExceeded"}, :CampaignCriterionOperation=>{:fields=>[{:name=>:operand, :type=>"CampaignCriterion", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignOperation=>{:fields=>[{:name=>:bidding_transition, :type=>"BiddingTransition", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"Campaign", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :CampaignTargetOperation=>{:fields=>[{:name=>:operand, :type=>"TargetList", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :Carrier=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ContentLabel=>{:fields=>[{:name=>:content_label_type, :type=>"ContentLabelType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ConversionOptimizer=>{:fields=>[{:name=>:pricing_model, :type=>"PricingModel", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_optimizer_bid_type, :type=>"ConversionOptimizerBidType", :min_occurs=>0, :max_occurs=>1}, {:name=>:deduplication_mode, :type=>"ConversionDeduplicationMode", :min_occurs=>0, :max_occurs=>1}], :base=>"BiddingStrategy"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:name=>:target_cpa, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_optimizer_bid_type, :type=>"ConversionOptimizerBidType", :min_occurs=>0, :max_occurs=>1}, {:name=>:deduplication_mode, :type=>"ConversionDeduplicationMode", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:name=>:use_saved_bids, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"BiddingTransition"}, :ConversionOptimizerEligibility=>{:fields=>[{:name=>:eligible, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:rejection_reasons, :type=>"ConversionOptimizerEligibility.RejectionReason", :min_occurs=>0, :max_occurs=>:unbounded}]}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DeprecatedAd=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"DeprecatedAd.Type", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Dimensions=>{:fields=>[{:name=>:width, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:height, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :EntityAccessDenied=>{:fields=>[{:name=>:reason, :type=>"EntityAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityId=>{:fields=>[{:name=>:type, :type=>"EntityId.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ExemptionRequest=>{:fields=>[{:name=>:key, :type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1}]}, :FailureResult=>{:fields=>[{:name=>:cause, :type=>"ApiException", :min_occurs=>0, :max_occurs=>1}], :base=>"OperationResult"}, :FrequencyCap=>{:fields=>[{:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_unit, :type=>"TimeUnit", :min_occurs=>0, :max_occurs=>1}, {:name=>:level, :type=>"Level", :min_occurs=>0, :max_occurs=>1}]}, :Gender=>{:fields=>[{:name=>:gender_type, :type=>"Gender.GenderType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :GeoPoint=>{:fields=>[{:name=>:latitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:longitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :GeoTargetTypeSetting=>{:fields=>[{:name=>:positive_geo_target_type, :type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :min_occurs=>0, :max_occurs=>1}, {:name=>:negative_geo_target_type, :type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :min_occurs=>0, :max_occurs=>1}], :base=>"Setting"}, :Image=>{:fields=>[{:name=>:data, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :ImageAd=>{:fields=>[{:name=>:image, :type=>"Image", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_to_copy_image_from, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Job=>{:fields=>[{:name=>:customer_job_key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:failure_reason, :type=>"ApiErrorReason", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"JobStats", :min_occurs=>0, :max_occurs=>1}, {:name=>:billing_summary, :type=>"BillingSummary", :min_occurs=>0, :max_occurs=>1}, {:name=>:job_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :JobEvent=>{:fields=>[{:name=>:date_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:job_event_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :JobOperation=>{:fields=>[{:name=>:operand, :type=>"Job", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :JobSelector=>{:fields=>[{:name=>:include_history, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:include_stats, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:job_selector_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :JobStats=>{:fields=>[{:name=>:progress_percent, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:pending_time_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:processing_time_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:job_stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Language=>{:fields=>[{:name=>:code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Location=>{:fields=>[{:name=>:location_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_obsolete, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:parent_locations, :type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :LocationExtension=>{:fields=>[{:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}, {:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:encoded_location, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}, {:name=>:company_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:source, :type=>"LocationExtension.Source", :min_occurs=>0, :max_occurs=>1}, {:name=>:icon_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:image_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :LocationOverrideInfo=>{:fields=>[{:name=>:radius, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_units, :type=>"LocationOverrideInfo.RadiusUnits", :min_occurs=>0, :max_occurs=>1}]}, :LocationSyncExtension=>{:fields=>[{:name=>:email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:icon_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:should_sync_url, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :LostResult=>{:fields=>[], :base=>"OperationResult"}, :ManualCPC=>{:fields=>[{:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"BiddingStrategy"}, :ManualCPCAdGroupBids=>{:fields=>[{:name=>:keyword_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:keyword_content_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:site_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:name=>:max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}, {:name=>:enhanced_cpc_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:name=>:max_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}, {:name=>:multiplier_source, :type=>"MultiplierSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:max_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}, {:name=>:max_content_cpc_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupExperimentBidMultipliers"}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :ManualCPMAdGroupBids=>{:fields=>[{:name=>:max_cpm, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:name=>:max_cpm, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:name=>:max_cpm_multiplier, :type=>"BidMultiplier", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupExperimentBidMultipliers"}, :Media=>{:fields=>[{:name=>:media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1}, {:name=>:reference_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:dimensions, :type=>"Media_Size_DimensionsMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:urls, :type=>"Media_Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mime_type, :type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:source_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:file_size, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:creation_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}]}, :Media_Size_StringMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :MobileAd=>{:fields=>[{:name=>:headline, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:markup_languages, :type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mobile_carriers, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:business_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :MobileExtension=>{:fields=>[{:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_call_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :MobileImageAd=>{:fields=>[{:name=>:markup_languages, :type=>"MarkupLanguageType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mobile_carriers, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:image, :type=>"Image", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :NetworkSetting=>{:fields=>[{:name=>:target_google_search, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_content_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_content_contextual, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_partner_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :Operand=>{:fields=>[]}, :OperatingSystemVersion=>{:fields=>[], :base=>"Criterion"}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OperationResult=>{:fields=>[{:name=>:operation_result_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :OperationStream=>{:fields=>[{:name=>:scoping_entity_id, :type=>"EntityId", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"Operation", :min_occurs=>0, :max_occurs=>:unbounded}]}, :OperationStreamResult=>{:fields=>[{:name=>:operation_results, :type=>"OperationResult", :min_occurs=>0, :max_occurs=>:unbounded}]}, :OverrideInfo=>{:fields=>[]}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :PercentCPAAdGroupBids=>{:fields=>[{:name=>:percent_cpa, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:name=>:percent_cpa, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:source, :type=>"BidSource", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :PlaceHolder=>{:fields=>[]}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Platform=>{:fields=>[{:name=>:platform_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :"PolicyViolationError.Part"=>{:fields=>[{:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:length, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PolicyViolationKey=>{:fields=>[{:name=>:policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Polygon=>{:fields=>[{:name=>:vertices, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :Product=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ProductAd=>{:fields=>[{:name=>:promotion_line, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}]}, :ProductConditionAndGroup=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ProductExtension=>{:fields=>[{:name=>:google_base_customer_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:advertiser_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:product_selection, :type=>"ProductConditionAndGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"AdExtension"}, :Proximity=>{:fields=>[{:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_distance_units, :type=>"Proximity.DistanceUnits", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_in_units, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :QualityInfo=>{:fields=>[{:name=>:is_keyword_ad_relevance_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_landing_page_quality_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_landing_page_latency_acceptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:quality_score, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :RealTimeBiddingSetting=>{:fields=>[{:name=>:opt_in, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Setting"}, :ReturnValueResult=>{:fields=>[{:name=>:return_value, :type=>"Operand", :min_occurs=>0, :max_occurs=>1}], :base=>"OperationResult"}, :RichMediaAd=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:dimensions, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}, {:name=>:snippet, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:impression_beacon_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:certified_vendor_format_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Ad"}, :Setting=>{:fields=>[{:name=>:setting_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Sitelink=>{:fields=>[{:name=>:display_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:destination_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SitelinksExtension=>{:fields=>[{:name=>:sitelinks, :type=>"Sitelink", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"AdExtension"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Stats=>{:fields=>[{:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:network, :type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpm, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:ctr, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions_many_per_click, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion_many_per_click, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:view_through_conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_conv_value, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_click_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_missed_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_received_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:call_duration_secs, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:avg_call_duration_secs, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Target=>{:fields=>[{:name=>:target_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :TargetList=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_list_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :TemplateAd=>{:fields=>[{:name=>:template_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_union_id, :type=>"AdUnionId", :min_occurs=>0, :max_occurs=>1}, {:name=>:template_elements, :type=>"TemplateElement", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:dimensions, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:duration, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :TemplateElement=>{:fields=>[{:name=>:unique_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:fields, :type=>"TemplateElementField", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TemplateElementField=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"TemplateElementField.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_media, :type=>"Media", :min_occurs=>0, :max_occurs=>1}]}, :TextAd=>{:fields=>[{:name=>:headline, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description1, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description2, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Ad"}, :ThirdPartyRedirectAd=>{:fields=>[{:name=>:is_cookie_targeted, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_user_interest_targeted, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_tagged, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:video_types, :type=>"VideoType", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"RichMediaAd"}, :UnprocessedResult=>{:fields=>[], :base=>"OperationResult"}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :Video=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:industry_standard_commercial_identifier, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:advertising_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:you_tube_video_id_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :"Ad.ApprovalStatus"=>{:fields=>[]}, :"AdExtensionOverride.ApprovalStatus"=>{:fields=>[]}, :"AdExtensionOverride.Status"=>{:fields=>[]}, :"AdGroup.Status"=>{:fields=>[]}, :"AdGroupAd.Status"=>{:fields=>[]}, :"AdGroupCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :AdServingOptimizationStatus=>{:fields=>[]}, :"AgeRange.AgeRangeType"=>{:fields=>[]}, :ApprovalStatus=>{:fields=>[]}, :BasicJobStatus=>{:fields=>[]}, :BidSource=>{:fields=>[]}, :"Budget.BudgetDeliveryMethod"=>{:fields=>[]}, :"Budget.BudgetPeriod"=>{:fields=>[]}, :"CampaignAdExtension.ApprovalStatus"=>{:fields=>[]}, :"CampaignAdExtension.Status"=>{:fields=>[]}, :"CampaignCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :CampaignStatus=>{:fields=>[]}, :ContentLabelType=>{:fields=>[]}, :ConversionDeduplicationMode=>{:fields=>[]}, :ConversionOptimizerBidType=>{:fields=>[]}, :"ConversionOptimizerEligibility.RejectionReason"=>{:fields=>[]}, :"Criterion.Type"=>{:fields=>[]}, :CriterionUse=>{:fields=>[]}, :DayOfWeek=>{:fields=>[]}, :"DeprecatedAd.Type"=>{:fields=>[]}, :"EntityId.Type"=>{:fields=>[]}, :ExperimentDataStatus=>{:fields=>[]}, :ExperimentDeltaStatus=>{:fields=>[]}, :"Gender.GenderType"=>{:fields=>[]}, :"GeoTargetTypeSetting.NegativeGeoTargetType"=>{:fields=>[]}, :"GeoTargetTypeSetting.PositiveGeoTargetType"=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :Level=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :"LocationOverrideInfo.RadiusUnits"=>{:fields=>[]}, :MarkupLanguageType=>{:fields=>[]}, :"Media.MediaType"=>{:fields=>[]}, :"Media.MimeType"=>{:fields=>[]}, :"Media.Size"=>{:fields=>[]}, :MinuteOfHour=>{:fields=>[]}, :MultiplierSource=>{:fields=>[]}, :Operator=>{:fields=>[]}, :PricingModel=>{:fields=>[]}, :"Proximity.DistanceUnits"=>{:fields=>[]}, :ServingStatus=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :SystemServingStatus=>{:fields=>[]}, :"TemplateElementField.Type"=>{:fields=>[]}, :TimeUnit=>{:fields=>[]}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}, :UserStatus=>{:fields=>[]}, :VideoType=>{:fields=>[]}}
|
16
14
|
BULKMUTATEJOBSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:36.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:38.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/campaign_ad_extension_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module CampaignAdExtensionService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:36.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:38.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module CampaignAdExtensionService
|
13
11
|
class CampaignAdExtensionServiceRegistry
|
14
|
-
CAMPAIGNADEXTENSIONSERVICE_METHODS = {:
|
15
|
-
CAMPAIGNADEXTENSIONSERVICE_TYPES = {:ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:conditions}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:service_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:method_name}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:operations}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:units}]}, :Predicate=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Paging=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:number_results}]}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:campaign_id}, {:type=>"AdExtension", :min_occurs=>0, :max_occurs=>1, :name=>:ad_extension}, {:type=>"CampaignAdExtension.Status", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"CampaignAdExtension.ApprovalStatus", :min_occurs=>0, :max_occurs=>1, :name=>:approval_status}, {:type=>"CampaignAdExtensionStats", :min_occurs=>0, :max_occurs=>1, :name=>:stats}]}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :MobileExtension=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_call_only}], :base=>"AdExtension"}, :Operation=>{:fields=>[{:type=>"Operator", :min_occurs=>0, :max_occurs=>1, :name=>:operator}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:operation_type}], :abstract=>true}, :ProductExtension=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:google_base_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_name}, {:type=>"ProductConditionAndGroup", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:product_selection}], :base=>"AdExtension"}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :NumberValue=>{:fields=>[], :base=>"ComparableValue", :abstract=>true}, :Operator=>{:fields=>[]}, :"CampaignAdExtension.ApprovalStatus"=>{:fields=>[]}, :ComparableValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comparable_value_type}], :abstract=>true}, :Selector=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:fields}, {:type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:predicates}, {:type=>"DateRange", :min_occurs=>0, :max_occurs=>1, :name=>:date_range}, {:type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ordering}, {:type=>"Paging", :min_occurs=>0, :max_occurs=>1, :name=>:paging}]}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :CampaignAdExtensionPage=>{:fields=>[{:type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:entries}], :base=>"Page"}, :Sitelink=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_text}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :Address=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:street_address}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:street_address2}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:city_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:province_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:province_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:postal_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:country_code}]}, :SortOrder=>{:fields=>[]}, :"CampaignAdExtension.Status"=>{:fields=>[]}, :LocationSyncExtension=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:icon_media_id}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:should_sync_url}], :base=>"AdExtension"}, :DoubleValue=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :CampaignAdExtensionReturnValue=>{:fields=>[{:type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value}], :base=>"ListReturnValue"}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:sitelinks}], :base=>"AdExtension"}, :OrderBy=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:field}, {:type=>"SortOrder", :min_occurs=>0, :max_occurs=>1, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :"Predicate.Operator"=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :Stats=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1, :name=>:network}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:clicks}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:impressions}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:average_position}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpc}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:average_cpm}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:ctr}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:conversions_many_per_click}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:view_through_conversions}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_conv_value}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:value_per_conv_many_per_click}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_clicks}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:invalid_click_rate}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_missed_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:num_received_calls}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:call_duration_secs}, {:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:avg_call_duration_secs}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:stats_type}]}, :LocationExtension=>{:fields=>[{:type=>"Address", :min_occurs=>0, :max_occurs=>1, :name=>:address}, {:type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1, :name=>:geo_point}, {:type=>"base64Binary", :min_occurs=>0, :max_occurs=>1, :name=>:encoded_location}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:company_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:phone_number}, {:type=>"LocationExtension.Source", :min_occurs=>0, :max_occurs=>1, :name=>:source}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:icon_media_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:image_media_id}], :base=>"AdExtension"}, :DateRange=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:min}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:max}]}, :Page=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_num_entries}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:page_type}], :abstract=>true}, :ProductCondition=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:argument}, {:type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1, :name=>:operand}]}, :Money=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}], :base=>"ComparableValue"}, :SoapHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:auth_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:client_customer_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:developer_token}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_agent}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:validate_only}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:partial_failure}]}, :GeoPoint=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:latitude_in_micro_degrees}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:longitude_in_micro_degrees}]}, :"Stats.Network"=>{:fields=>[]}, :ListReturnValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:list_return_value_type}], :abstract=>true}, :AdExtension=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_extension_type}]}, :LongValue=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}}
|
12
|
+
CAMPAIGNADEXTENSIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"CampaignAdExtensionPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"CampaignAdExtensionOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"CampaignAdExtensionReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
CAMPAIGNADEXTENSIONSERVICE_TYPES = {:Address=>{:fields=>[{:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address2, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:postal_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :GeoPoint=>{:fields=>[{:name=>:latitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:longitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :LocationExtension=>{:fields=>[{:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}, {:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:encoded_location, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}, {:name=>:company_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:source, :type=>"LocationExtension.Source", :min_occurs=>0, :max_occurs=>1}, {:name=>:icon_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:image_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :MobileExtension=>{:fields=>[{:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_call_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Sitelink=>{:fields=>[{:name=>:display_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:destination_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SitelinksExtension=>{:fields=>[{:name=>:sitelinks, :type=>"Sitelink", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"AdExtension"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}]}, :ProductConditionAndGroup=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductExtension=>{:fields=>[{:name=>:google_base_customer_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:advertiser_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:product_selection, :type=>"ProductConditionAndGroup", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"AdExtension"}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :LocationSyncExtension=>{:fields=>[{:name=>:email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:icon_media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:should_sync_url, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"AdExtension"}, :Stats=>{:fields=>[{:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:network, :type=>"Stats.Network", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_cpm, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:ctr, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversions_many_per_click, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:conversion_rate_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost_per_conversion_many_per_click, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:view_through_conversions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_conv_value, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:value_per_conv_many_per_click, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:invalid_click_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_missed_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:num_received_calls, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:call_duration_secs, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:avg_call_duration_secs, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AdExtension=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_extension_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CampaignAdExtension=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_extension, :type=>"AdExtension", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"CampaignAdExtension.Status", :min_occurs=>0, :max_occurs=>1}, {:name=>:approval_status, :type=>"CampaignAdExtension.ApprovalStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats, :type=>"CampaignAdExtensionStats", :min_occurs=>0, :max_occurs=>1}]}, :CampaignAdExtensionOperation=>{:fields=>[{:name=>:operand, :type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignAdExtensionPage=>{:fields=>[{:name=>:entries, :type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :CampaignAdExtensionReturnValue=>{:fields=>[{:name=>:value, :type=>"CampaignAdExtension", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"CampaignAdExtension.ApprovalStatus"=>{:fields=>[]}, :"CampaignAdExtension.Status"=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}}
|
16
14
|
CAMPAIGNADEXTENSIONSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:31.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:40.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/campaign_criterion_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module CampaignCriterionService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:31.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:40.
|
9
7
|
|
10
8
|
require 'adwords_api/errors'
|
11
9
|
|
12
10
|
module AdwordsApi; module V201109; module CampaignCriterionService
|
13
11
|
class CampaignCriterionServiceRegistry
|
14
|
-
CAMPAIGNCRITERIONSERVICE_METHODS = {:
|
15
|
-
CAMPAIGNCRITERIONSERVICE_TYPES = {:
|
12
|
+
CAMPAIGNCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:service_selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"CampaignCriterionPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"CampaignCriterionOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"CampaignCriterionReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
+
CAMPAIGNCRITERIONSERVICE_TYPES = {:Address=>{:fields=>[{:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address2, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:postal_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AgeRange=>{:fields=>[{:name=>:age_range_type, :type=>"AgeRange.AgeRangeType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :CampaignCriterion=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}, {:name=>:campaign_criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :CampaignCriterionLimitExceeded=>{:fields=>[{:name=>:limit_type, :type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1}], :base=>"EntityCountLimitExceeded"}, :CampaignCriterionOperation=>{:fields=>[{:name=>:operand, :type=>"CampaignCriterion", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignCriterionPage=>{:fields=>[{:name=>:entries, :type=>"CampaignCriterion", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :CampaignCriterionReturnValue=>{:fields=>[{:name=>:value, :type=>"CampaignCriterion", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :Carrier=>{:fields=>[{:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ContentLabel=>{:fields=>[{:name=>:content_label_type, :type=>"ContentLabelType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Gender=>{:fields=>[{:name=>:gender_type, :type=>"Gender.GenderType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :GeoPoint=>{:fields=>[{:name=>:latitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:longitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Language=>{:fields=>[{:name=>:code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Location=>{:fields=>[{:name=>:location_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_obsolete, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:parent_locations, :type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :OperatingSystemVersion=>{:fields=>[], :base=>"Criterion"}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}]}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Platform=>{:fields=>[{:name=>:platform_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Polygon=>{:fields=>[{:name=>:vertices, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :Product=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}]}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Proximity=>{:fields=>[{:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_distance_units, :type=>"Proximity.DistanceUnits", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_in_units, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion"}, :"AgeRange.AgeRangeType"=>{:fields=>[]}, :"CampaignCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[]}, :ContentLabelType=>{:fields=>[]}, :"Criterion.Type"=>{:fields=>[]}, :"Gender.GenderType"=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :"Proximity.DistanceUnits"=>{:fields=>[]}, :SortOrder=>{:fields=>[]}, :"CriterionUserList.MembershipStatus"=>{:fields=>[]}}
|
16
14
|
CAMPAIGNCRITERIONSERVICE_NAMESPACES = []
|
17
15
|
|
18
16
|
def self.get_method_signature(method_name)
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
#!/usr/bin/ruby
|
3
2
|
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
4
5
|
#
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.6.2 on 2012-01-23 14:04:47.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:43.
|
9
7
|
|
10
8
|
require 'ads_common/savon_service'
|
11
9
|
require 'adwords_api/v201109/campaign_service_registry'
|
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module CampaignService
|
|
17
15
|
super(api, endpoint, namespace, :v201109)
|
18
16
|
end
|
19
17
|
|
20
|
-
def mutate(*args, &block)
|
21
|
-
return execute_action('mutate', args, &block)
|
22
|
-
end
|
23
|
-
|
24
18
|
def get(*args, &block)
|
25
19
|
return execute_action('get', args, &block)
|
26
20
|
end
|
27
21
|
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
28
26
|
private
|
29
27
|
|
30
28
|
def get_service_registry()
|