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.
Files changed (124) hide show
  1. data/ChangeLog +8 -0
  2. data/README +22 -20
  3. data/adwords_api.yml +40 -0
  4. data/examples/v201109/account_management/create_account.rb +0 -1
  5. data/examples/v201109/account_management/get_account_alerts.rb +0 -1
  6. data/examples/v201109/account_management/get_account_changes.rb +0 -1
  7. data/examples/v201109/account_management/get_account_hierarchy.rb +0 -1
  8. data/examples/v201109/account_management/get_client_customer_id.rb +0 -1
  9. data/examples/v201109/account_management/get_client_unit_usage.rb +0 -1
  10. data/examples/v201109/basic_operations/add_ad_group.rb +0 -1
  11. data/examples/v201109/basic_operations/add_campaign.rb +0 -1
  12. data/examples/v201109/basic_operations/add_keywords.rb +0 -1
  13. data/examples/v201109/basic_operations/add_text_ads.rb +0 -1
  14. data/examples/v201109/basic_operations/delete_ad.rb +0 -1
  15. data/examples/v201109/basic_operations/delete_ad_group.rb +0 -1
  16. data/examples/v201109/basic_operations/delete_campaign.rb +0 -1
  17. data/examples/v201109/basic_operations/delete_keyword.rb +0 -1
  18. data/examples/v201109/basic_operations/get_ad_groups.rb +0 -1
  19. data/examples/v201109/basic_operations/get_campaigns.rb +0 -1
  20. data/examples/v201109/basic_operations/get_keywords.rb +0 -1
  21. data/examples/v201109/basic_operations/get_text_ads.rb +0 -1
  22. data/examples/v201109/basic_operations/pause_ad.rb +0 -1
  23. data/examples/v201109/basic_operations/update_ad_group.rb +0 -1
  24. data/examples/v201109/basic_operations/update_campaign.rb +0 -1
  25. data/examples/v201109/basic_operations/update_keyword.rb +0 -1
  26. data/examples/v201109/campaign_management/add_experiment.rb +0 -1
  27. data/examples/v201109/campaign_management/add_keywords_in_bulk.rb +0 -1
  28. data/examples/v201109/campaign_management/add_location_extension.rb +0 -1
  29. data/examples/v201109/campaign_management/add_location_extension_override.rb +0 -1
  30. data/examples/v201109/campaign_management/get_all_disapproved_ads.rb +0 -1
  31. data/examples/v201109/campaign_management/promote_experiment.rb +0 -1
  32. data/examples/v201109/campaign_management/set_ad_parameters.rb +0 -1
  33. data/examples/v201109/campaign_management/validate_text_ad.rb +0 -1
  34. data/examples/v201109/error_handling/handle_captcha_challenge.rb +94 -0
  35. data/examples/v201109/error_handling/handle_partial_failures.rb +0 -1
  36. data/examples/v201109/error_handling/handle_policy_violation_error.rb +0 -1
  37. data/examples/v201109/error_handling/handle_two_factor_authorization_error.rb +0 -1
  38. data/examples/v201109/misc/get_all_images_and_videos.rb +0 -1
  39. data/examples/v201109/misc/upload_image.rb +0 -1
  40. data/examples/v201109/misc/use_oauth.rb +0 -1
  41. data/examples/v201109/optimization/estimate_keyword_traffic.rb +0 -1
  42. data/examples/v201109/optimization/get_keyword_bid_simulations.rb +0 -1
  43. data/examples/v201109/optimization/get_keyword_ideas.rb +0 -1
  44. data/examples/v201109/optimization/get_placement_ideas.rb +0 -1
  45. data/examples/v201109/remarketing/add_audience.rb +0 -1
  46. data/examples/v201109/remarketing/add_conversion_tracker.rb +0 -1
  47. data/examples/v201109/reporting/download_criteria_report.rb +0 -1
  48. data/examples/v201109/reporting/download_defined_report.rb +0 -1
  49. data/examples/v201109/reporting/get_defined_reports.rb +0 -1
  50. data/examples/v201109/reporting/get_report_fields.rb +0 -1
  51. data/examples/v201109/reporting/parallel_report_download.rb +0 -1
  52. data/examples/v201109/targeting/add_campaign_targeting_criteria.rb +0 -1
  53. data/examples/v201109/targeting/get_campaign_targeting_criteria.rb +0 -1
  54. data/examples/v201109/targeting/get_targetable_languages_and_carriers.rb +0 -1
  55. data/examples/v201109/targeting/lookup_location.rb +0 -1
  56. data/lib/adwords_api.rb +1 -1
  57. data/lib/adwords_api/api_config.rb +36 -20
  58. data/lib/adwords_api/credential_handler.rb +5 -2
  59. data/lib/adwords_api/report_utils.rb +7 -5
  60. data/lib/adwords_api/v201109/ad_extension_override_service.rb +8 -10
  61. data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +6 -8
  62. data/lib/adwords_api/v201109/ad_group_ad_service.rb +8 -10
  63. data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +6 -8
  64. data/lib/adwords_api/v201109/ad_group_criterion_service.rb +8 -10
  65. data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +6 -8
  66. data/lib/adwords_api/v201109/ad_group_service.rb +8 -10
  67. data/lib/adwords_api/v201109/ad_group_service_registry.rb +6 -8
  68. data/lib/adwords_api/v201109/ad_param_service.rb +8 -10
  69. data/lib/adwords_api/v201109/ad_param_service_registry.rb +6 -8
  70. data/lib/adwords_api/v201109/alert_service.rb +4 -6
  71. data/lib/adwords_api/v201109/alert_service_registry.rb +6 -8
  72. data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +8 -10
  73. data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +6 -8
  74. data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +8 -10
  75. data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +6 -8
  76. data/lib/adwords_api/v201109/campaign_criterion_service.rb +8 -10
  77. data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +6 -8
  78. data/lib/adwords_api/v201109/campaign_service.rb +8 -10
  79. data/lib/adwords_api/v201109/campaign_service_registry.rb +6 -8
  80. data/lib/adwords_api/v201109/campaign_target_service.rb +8 -10
  81. data/lib/adwords_api/v201109/campaign_target_service_registry.rb +6 -8
  82. data/lib/adwords_api/v201109/constant_data_service.rb +4 -6
  83. data/lib/adwords_api/v201109/constant_data_service_registry.rb +6 -8
  84. data/lib/adwords_api/v201109/conversion_tracker_service.rb +8 -10
  85. data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +6 -8
  86. data/lib/adwords_api/v201109/create_account_service.rb +4 -6
  87. data/lib/adwords_api/v201109/create_account_service_registry.rb +6 -8
  88. data/lib/adwords_api/v201109/customer_sync_service.rb +4 -6
  89. data/lib/adwords_api/v201109/customer_sync_service_registry.rb +6 -8
  90. data/lib/adwords_api/v201109/data_service.rb +8 -10
  91. data/lib/adwords_api/v201109/data_service_registry.rb +6 -8
  92. data/lib/adwords_api/v201109/experiment_service.rb +8 -10
  93. data/lib/adwords_api/v201109/experiment_service_registry.rb +6 -8
  94. data/lib/adwords_api/v201109/geo_location_service.rb +4 -6
  95. data/lib/adwords_api/v201109/geo_location_service_registry.rb +6 -8
  96. data/lib/adwords_api/v201109/info_service.rb +4 -6
  97. data/lib/adwords_api/v201109/info_service_registry.rb +6 -8
  98. data/lib/adwords_api/v201109/location_criterion_service.rb +4 -6
  99. data/lib/adwords_api/v201109/location_criterion_service_registry.rb +6 -8
  100. data/lib/adwords_api/v201109/media_service.rb +8 -10
  101. data/lib/adwords_api/v201109/media_service_registry.rb +6 -8
  102. data/lib/adwords_api/v201109/mutate_job_service.rb +8 -10
  103. data/lib/adwords_api/v201109/mutate_job_service_registry.rb +6 -8
  104. data/lib/adwords_api/v201109/report_definition_service.rb +8 -10
  105. data/lib/adwords_api/v201109/report_definition_service_registry.rb +6 -8
  106. data/lib/adwords_api/v201109/serviced_account_service.rb +4 -6
  107. data/lib/adwords_api/v201109/serviced_account_service_registry.rb +6 -8
  108. data/lib/adwords_api/v201109/targeting_idea_service.rb +8 -10
  109. data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +6 -8
  110. data/lib/adwords_api/v201109/traffic_estimator_service.rb +4 -6
  111. data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +6 -8
  112. data/lib/adwords_api/v201109/user_list_service.rb +8 -10
  113. data/lib/adwords_api/v201109/user_list_service_registry.rb +6 -8
  114. data/lib/adwords_api/version.rb +26 -0
  115. data/test/adwords_api/test_api_config.rb +2 -2
  116. data/test/adwords_api/test_report_utils.rb +1 -1
  117. data/test/adwords_api/test_utils.rb +1 -1
  118. data/test/bugs/test_issue_00000031.rb +0 -1
  119. data/test/suite_unittests.rb +32 -0
  120. metadata +130 -132
  121. data/Rakefile +0 -92
  122. data/examples/v201109/optimization/get_keyword_opportunities.rb +0 -96
  123. data/lib/adwords_api/v201109/bulk_opportunity_service.rb +0 -34
  124. data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +0 -46
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: AdGroupCriterionService.mutate
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
  require 'adwords_api/utils'
28
27
 
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: AdGroupAdService.mutate
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
  require 'adwords_api/utils'
29
28
 
@@ -20,7 +20,6 @@
20
20
  #
21
21
  # This example illustrates how to handle 'two factor' authorization error.
22
22
 
23
- require 'rubygems'
24
23
  require 'adwords_api'
25
24
 
26
25
  API_VERSION = :v201109
@@ -24,7 +24,6 @@
24
24
  #
25
25
  # Tags: MediaService.get
26
26
 
27
- require 'rubygems'
28
27
  require 'adwords_api'
29
28
  require 'adwords_api/utils'
30
29
 
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: MediaService.upload
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
  require 'adwords_api/utils'
28
27
  require 'base64'
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: CampaignService.get
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: TrafficEstimatorService.get
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: DataService.getCriterionBidLandscape
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
 
29
28
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: TargetingIdeaService.get
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
  require 'adwords_api/utils'
28
27
 
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: TargetingIdeaService.get
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
  require 'adwords_api/utils'
29
28
 
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: UserListService.mutate, ConversionTrackerService.get
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
 
29
28
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: ConversionTrackerService.mutate
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
@@ -20,7 +20,6 @@
20
20
  #
21
21
  # This example gets and downloads an Ad Hoc report from a XML report definition.
22
22
 
23
- require 'rubygems'
24
23
  require 'adwords_api'
25
24
 
26
25
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Note: defined reports are deprecated, please use AdHoc reporting.
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: ReportDefinitionService.get
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
 
29
28
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: ReportDefinitionService.getReportFields
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
@@ -20,7 +20,6 @@
20
20
  #
21
21
  # This example gets and downloads an Ad Hoc report from a XML report definition.
22
22
 
23
- require 'rubygems'
24
23
  require 'thread'
25
24
 
26
25
  require 'adwords_api'
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: CampaignCriterionService.mutate
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
 
29
28
  API_VERSION = :v201109
@@ -23,7 +23,6 @@
23
23
  #
24
24
  # Tags: CampaignCriterionService.get
25
25
 
26
- require 'rubygems'
27
26
  require 'adwords_api'
28
27
 
29
28
  API_VERSION = :v201109
@@ -24,7 +24,6 @@
24
24
  # Tags: ConstantDataService.getLanguageCriterion
25
25
  # Tags: ConstantDataService.getCarrierCriterion
26
26
 
27
- require 'rubygems'
28
27
  require 'adwords_api'
29
28
 
30
29
  API_VERSION = :v201109
@@ -22,7 +22,6 @@
22
22
  #
23
23
  # Tags: LocationCriterionService.get
24
24
 
25
- require 'rubygems'
26
25
  require 'adwords_api'
27
26
 
28
27
  API_VERSION = :v201109
data/lib/adwords_api.rb CHANGED
@@ -20,7 +20,7 @@
20
20
  #
21
21
  # Contains the main classes for the client library.
22
22
 
23
- gem 'google-ads-common', '~>0.6.1'
23
+ gem 'google-ads-common', '~>0.6.3'
24
24
 
25
25
  require 'ads_common/api'
26
26
  require 'ads_common/auth/oauth_handler'
@@ -24,6 +24,8 @@ require 'savon'
24
24
 
25
25
  require 'ads_common/api_config'
26
26
 
27
+ require 'adwords_api/version'
28
+
27
29
  module AdwordsApi
28
30
 
29
31
  # Contains helper methods for loading and managing the available services.
@@ -41,24 +43,39 @@ module AdwordsApi
41
43
 
42
44
  # Set other constants
43
45
  API_NAME = 'AdwordsApi'
44
- CLIENT_LIB_VERSION = '0.5.0'
45
46
  DEFAULT_CONFIG_FILENAME = 'adwords_api.yml'
46
47
 
47
48
  # Configure the services available to each version
48
49
  @@service_config = {
49
- :v201109 => [:AdExtensionOverrideService, :AdGroupAdService,
50
- :AdGroupCriterionService, :AdGroupService, :AdParamService,
51
- :AlertService, :BulkMutateJobService,
52
- :BulkOpportunityService, :CampaignAdExtensionService,
53
- :CampaignCriterionService, :CampaignService,
54
- :CampaignTargetService, :ConversionTrackerService,
55
- :CustomerSyncService, :DataService, :ExperimentService,
56
- :GeoLocationService, :InfoService, :MediaService,
57
- :ReportDefinitionService, :ServicedAccountService,
58
- :TargetingIdeaService, :TrafficEstimatorService,
59
- :UserListService, :ConstantDataService,
60
- :LocationCriterionService, :MutateJobService,
61
- :CreateAccountService]
50
+ :v201109 => [
51
+ :AdExtensionOverrideService,
52
+ :AdGroupAdService,
53
+ :AdGroupCriterionService,
54
+ :AdGroupService,
55
+ :AdParamService,
56
+ :AlertService,
57
+ :BulkMutateJobService,
58
+ :CampaignAdExtensionService,
59
+ :CampaignCriterionService,
60
+ :CampaignService,
61
+ :CampaignTargetService,
62
+ :ConstantDataService,
63
+ :ConversionTrackerService,
64
+ :CreateAccountService,
65
+ :CustomerSyncService,
66
+ :DataService,
67
+ :ExperimentService,
68
+ :GeoLocationService,
69
+ :InfoService,
70
+ :LocationCriterionService,
71
+ :MediaService,
72
+ :MutateJobService,
73
+ :ReportDefinitionService,
74
+ :ServicedAccountService,
75
+ :TargetingIdeaService,
76
+ :TrafficEstimatorService,
77
+ :UserListService
78
+ ]
62
79
  }
63
80
 
64
81
  # Configure the different environments, with the base URL for each one
@@ -84,27 +101,26 @@ module AdwordsApi
84
101
  [:v201109, :AdParamService] => 'cm/',
85
102
  [:v201109, :AlertService] => 'mcm/',
86
103
  [:v201109, :BulkMutateJobService] => 'job/',
87
- [:v201109, :BulkOpportunityService] => 'o/',
88
104
  [:v201109, :CampaignAdExtensionService] => 'cm/',
89
105
  [:v201109, :CampaignCriterionService] => 'cm/',
90
106
  [:v201109, :CampaignService] => 'cm/',
91
107
  [:v201109, :CampaignTargetService] => 'cm/',
108
+ [:v201109, :ConstantDataService] => 'cm/',
92
109
  [:v201109, :ConversionTrackerService] => 'cm/',
110
+ [:v201109, :CreateAccountService] => 'mcm/',
93
111
  [:v201109, :CustomerSyncService] => 'ch/',
94
112
  [:v201109, :DataService] => 'cm/',
95
113
  [:v201109, :ExperimentService] => 'cm/',
96
114
  [:v201109, :GeoLocationService] => 'cm/',
97
115
  [:v201109, :InfoService] => 'info/',
116
+ [:v201109, :LocationCriterionService] => 'cm/',
98
117
  [:v201109, :MediaService] => 'cm/',
118
+ [:v201109, :MutateJobService] => 'cm/',
99
119
  [:v201109, :ReportDefinitionService] => 'cm/',
100
120
  [:v201109, :ServicedAccountService] => 'mcm/',
101
121
  [:v201109, :TargetingIdeaService] => 'o/',
102
122
  [:v201109, :TrafficEstimatorService] => 'o/',
103
- [:v201109, :UserListService] => 'cm/',
104
- [:v201109, :ConstantDataService] => 'cm/',
105
- [:v201109, :LocationCriterionService] => 'cm/',
106
- [:v201109, :MutateJobService] => 'cm/',
107
- [:v201109, :CreateAccountService] => 'mcm/'
123
+ [:v201109, :UserListService] => 'cm/'
108
124
  }
109
125
 
110
126
  # Configure the auth servers to use for each environment
@@ -46,7 +46,9 @@ module AdwordsApi
46
46
  result = case @credentials[:method]
47
47
  when :CLIENTLOGIN
48
48
  {:email => @credentials[:email],
49
- :password => @credentials[:password]}
49
+ :password => @credentials[:password],
50
+ :logintoken => @credentials[:logintoken],
51
+ :logincaptcha => @credentials[:logincaptcha]}
50
52
  when :OAUTH
51
53
  {:oauth_consumer_key => @credentials[:oauth_consumer_key],
52
54
  :oauth_consumer_secret => @credentials[:oauth_consumer_secret],
@@ -103,7 +105,8 @@ module AdwordsApi
103
105
  client_customer_id = @credentials[:client_customer_id]
104
106
  if client_customer_id and
105
107
  !(client_customer_id.is_a?(Integer) or
106
- (client_customer_id =~ /\d+-\d+-\d+/))
108
+ (client_customer_id =~ /\d+-\d+-\d+/) or
109
+ (client_customer_id =~ /\d+/))
107
110
  raise AdwordsApi::Errors::BadCredentialsError,
108
111
  'Invalid client customer ID: %s' % client_customer_id.to_s
109
112
  end
@@ -19,9 +19,11 @@
19
19
  #
20
20
  # Contains utility methods specific to reporting.
21
21
 
22
+ require 'cgi'
22
23
  require 'gyoku'
23
24
  require 'httpi/request'
24
25
 
26
+ require 'ads_common/http'
25
27
  require 'adwords_api/errors'
26
28
 
27
29
  module AdwordsApi
@@ -92,9 +94,9 @@ module AdwordsApi
92
94
  }
93
95
 
94
96
  # Send POST request for a report and returns Response object.
95
- def get_report_response(report_definition, cid = nil)
97
+ def get_report_response(report_definition, cid)
96
98
  definition_text = get_report_definition_text(report_definition)
97
- data = {'__rdxml' => definition_text}
99
+ data = "__rdxml=%s" % CGI.escape(definition_text)
98
100
  url = @api.api_config.adhoc_report_download_url(
99
101
  @api.config.read('service.environment'), @version)
100
102
  headers = get_report_request_headers(url, cid)
@@ -117,7 +119,7 @@ module AdwordsApi
117
119
  end
118
120
 
119
121
  # Prepares headers for report request.
120
- def get_report_request_headers(url, cid = nil)
122
+ def get_report_request_headers(url, cid)
121
123
  credentials = @api.credential_handler.credentials
122
124
  auth_handler = @api.get_auth_handler(
123
125
  @api.config.read('service.environment'), @version)
@@ -128,7 +130,7 @@ module AdwordsApi
128
130
  headers = {
129
131
  'Authorization' => auth_string,
130
132
  'ClientCustomerId' => customer_id,
131
- 'Content-Type' => 'multipart/form-data',
133
+ 'Content-Type' => 'application/x-www-form-urlencoded',
132
134
  'developerToken' => credentials[:developerToken],
133
135
  'User-Agent' => "HTTPI/%s (%s)" % [HTTPI::VERSION, app_name]
134
136
  }
@@ -145,7 +147,7 @@ module AdwordsApi
145
147
 
146
148
  # Saves raw data to a file.
147
149
  def save_to_file(data, path)
148
- open(path, 'wb') { |file| file.puts(data) } if path
150
+ open(path, 'wb') { |file| file.write(data) } if path
149
151
  end
150
152
 
151
153
  # Validates the customer ID specified is correct.
@@ -1,11 +1,9 @@
1
- # Encoding: utf-8
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
- # Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
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:19.
6
+ # Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:17.
9
7
 
10
8
  require 'ads_common/savon_service'
11
9
  require 'adwords_api/v201109/ad_extension_override_service_registry'
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module AdExtensionOverrideService
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
- # Encoding: utf-8
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
- # Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
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:19.
6
+ # Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:42:17.
9
7
 
10
8
  require 'adwords_api/errors'
11
9
 
12
10
  module AdwordsApi; module V201109; module AdExtensionOverrideService
13
11
  class AdExtensionOverrideServiceRegistry
14
- ADEXTENSIONOVERRIDESERVICE_METHODS = {:mutate=>{:input=>[{:type=>"AdExtensionOverrideOperation", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:operations}], :output=>{:fields=>[{:type=>"AdExtensionOverrideReturnValue", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"mutate_response"}}, :get=>{:input=>[{:type=>"AdExtensionOverrideSelector", :min_occurs=>0, :max_occurs=>1, :name=>:selector}], :output=>{:fields=>[{:type=>"AdExtensionOverridePage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_response"}}}
15
- ADEXTENSIONOVERRIDESERVICE_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}]}, :Paging=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:number_results}]}, :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"}, :NumberValue=>{:fields=>[], :base=>"ComparableValue", :abstract=>true}, :Operator=>{:fields=>[]}, :"AdExtensionOverride.ApprovalStatus"=>{:fields=>[]}, :ComparableValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:comparable_value_type}], :abstract=>true}, :AdExtensionOverrideSelector=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:campaign_ids}, {:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ad_ids}, {:type=>"long", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:ad_extension_ids}, {:type=>"AdExtensionOverride.Status", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:statuses}, {:type=>"Paging", :min_occurs=>0, :max_occurs=>1, :name=>:paging}]}, :Sitelink=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:display_text}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:destination_url}]}, :LocationOverrideInfo=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:radius}, {:type=>"LocationOverrideInfo.RadiusUnits", :min_occurs=>0, :max_occurs=>1, :name=>:radius_units}]}, :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}]}, :"AdExtensionOverride.Status"=>{:fields=>[]}, :AdExtensionOverridePage=>{:fields=>[{:type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:entries}], :base=>"Page"}, :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}]}, :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"}, :OverrideInfo=>{:fields=>[]}, :DoubleValue=>{:fields=>[{:type=>"double", :min_occurs=>0, :max_occurs=>1, :name=>:number}], :base=>"NumberValue"}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:sitelinks}], :base=>"AdExtension"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1, :name=>:reason}], :base=>"ApiError"}, :"LocationOverrideInfo.RadiusUnits"=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :AdExtensionOverrideReturnValue=>{:fields=>[{:type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:value}], :base=>"ListReturnValue"}, :AdExtensionOverrideOperation=>{:fields=>[{:type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>1, :name=>:operand}], :base=>"Operation"}, :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"}, :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"}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}}
12
+ ADEXTENSIONOVERRIDESERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AdExtensionOverrideSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AdExtensionOverridePage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AdExtensionOverrideOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AdExtensionOverrideReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
13
+ ADEXTENSIONOVERRIDESERVICE_TYPES = {:AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :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}]}, :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"}, :LocationOverrideInfo=>{:fields=>[{:name=>:radius, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_units, :type=>"LocationOverrideInfo.RadiusUnits", :min_occurs=>0, :max_occurs=>1}]}, :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"}, :OverrideInfo=>{:fields=>[]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :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}]}, :AdExtensionOverrideSelector=>{:fields=>[{:name=>:campaign_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_extension_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:statuses, :type=>"AdExtensionOverride.Status", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :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"}, :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}]}, :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"}, :AdExtensionOverridePage=>{:fields=>[{:name=>:entries, :type=>"AdExtensionOverride", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :AdExtensionOverrideReturnValue=>{:fields=>[{:name=>:value, :type=>"AdExtensionOverride", :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}, :"AdExtensionOverride.ApprovalStatus"=>{:fields=>[]}, :"AdExtensionOverride.Status"=>{:fields=>[]}, :"LocationExtension.Source"=>{:fields=>[]}, :"LocationOverrideInfo.RadiusUnits"=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}}
16
14
  ADEXTENSIONOVERRIDESERVICE_NAMESPACES = []
17
15
 
18
16
  def self.get_method_signature(method_name)
@@ -1,11 +1,9 @@
1
- # Encoding: utf-8
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
- # Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
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 'ads_common/savon_service'
11
9
  require 'adwords_api/v201109/ad_group_ad_service_registry'
@@ -17,14 +15,14 @@ module AdwordsApi; module V201109; module AdGroupAdService
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()