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
data/lib/adwords_api.rb
CHANGED
@@ -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 => [
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
97
|
+
def get_report_response(report_definition, cid)
|
96
98
|
definition_text = get_report_definition_text(report_definition)
|
97
|
-
data =
|
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
|
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' => '
|
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.
|
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
|
-
|
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: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
|
-
|
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: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 = {:
|
15
|
-
ADEXTENSIONOVERRIDESERVICE_TYPES = {:
|
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
|
-
|
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 '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()
|