google-adwords-api 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/README +2 -2
- data/Rakefile +2 -2
- data/examples/v201109/create_account.rb +80 -0
- data/examples/v201109/get_location_criteria.rb +1 -1
- data/lib/adwords_api.rb +1 -1
- data/lib/adwords_api/api_config.rb +5 -3
- data/lib/adwords_api/v13/account_service.rb +9 -9
- data/lib/adwords_api/v13/account_service_registry.rb +3 -3
- data/lib/adwords_api/v13/report_service.rb +11 -11
- data/lib/adwords_api/v13/report_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/ad_extension_override_service.rb +1 -1
- data/lib/adwords_api/v200909/ad_extension_override_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/ad_group_ad_service.rb +1 -1
- data/lib/adwords_api/v200909/ad_group_ad_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/ad_group_criterion_service.rb +1 -1
- data/lib/adwords_api/v200909/ad_group_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/ad_group_service.rb +1 -1
- data/lib/adwords_api/v200909/ad_group_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/ad_param_service.rb +1 -1
- data/lib/adwords_api/v200909/ad_param_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/bulk_mutate_job_service.rb +1 -1
- data/lib/adwords_api/v200909/bulk_mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/campaign_ad_extension_service.rb +1 -1
- data/lib/adwords_api/v200909/campaign_ad_extension_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/campaign_criterion_service.rb +1 -1
- data/lib/adwords_api/v200909/campaign_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/campaign_service.rb +1 -1
- data/lib/adwords_api/v200909/campaign_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/campaign_target_service.rb +1 -1
- data/lib/adwords_api/v200909/campaign_target_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/geo_location_service.rb +1 -1
- data/lib/adwords_api/v200909/geo_location_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/info_service.rb +1 -1
- data/lib/adwords_api/v200909/info_service_registry.rb +3 -3
- data/lib/adwords_api/v200909/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v200909/targeting_idea_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/ad_extension_override_service.rb +1 -1
- data/lib/adwords_api/v201003/ad_extension_override_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/ad_group_ad_service.rb +1 -1
- data/lib/adwords_api/v201003/ad_group_ad_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/ad_group_criterion_service.rb +1 -1
- data/lib/adwords_api/v201003/ad_group_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/ad_group_service.rb +1 -1
- data/lib/adwords_api/v201003/ad_group_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/ad_param_service.rb +1 -1
- data/lib/adwords_api/v201003/ad_param_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/bid_landscape_service.rb +1 -1
- data/lib/adwords_api/v201003/bid_landscape_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/bulk_mutate_job_service.rb +1 -1
- data/lib/adwords_api/v201003/bulk_mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/campaign_ad_extension_service.rb +1 -1
- data/lib/adwords_api/v201003/campaign_ad_extension_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/campaign_criterion_service.rb +1 -1
- data/lib/adwords_api/v201003/campaign_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/campaign_service.rb +1 -1
- data/lib/adwords_api/v201003/campaign_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/campaign_target_service.rb +1 -1
- data/lib/adwords_api/v201003/campaign_target_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/geo_location_service.rb +1 -1
- data/lib/adwords_api/v201003/geo_location_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/info_service.rb +1 -1
- data/lib/adwords_api/v201003/info_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/media_service.rb +5 -5
- data/lib/adwords_api/v201003/media_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/report_definition_service.rb +1 -1
- data/lib/adwords_api/v201003/report_definition_service_registry.rb +3 -3
- data/lib/adwords_api/v201003/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201003/targeting_idea_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/ad_extension_override_service.rb +1 -1
- data/lib/adwords_api/v201008/ad_extension_override_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/ad_group_ad_service.rb +1 -1
- data/lib/adwords_api/v201008/ad_group_ad_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/ad_group_criterion_service.rb +1 -1
- data/lib/adwords_api/v201008/ad_group_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/ad_group_service.rb +1 -1
- data/lib/adwords_api/v201008/ad_group_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/ad_param_service.rb +1 -1
- data/lib/adwords_api/v201008/ad_param_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/alert_service.rb +1 -1
- data/lib/adwords_api/v201008/alert_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/bid_landscape_service.rb +1 -1
- data/lib/adwords_api/v201008/bid_landscape_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/bulk_mutate_job_service.rb +1 -1
- data/lib/adwords_api/v201008/bulk_mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/campaign_ad_extension_service.rb +1 -1
- data/lib/adwords_api/v201008/campaign_ad_extension_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/campaign_criterion_service.rb +1 -1
- data/lib/adwords_api/v201008/campaign_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/campaign_service.rb +1 -1
- data/lib/adwords_api/v201008/campaign_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/campaign_target_service.rb +1 -1
- data/lib/adwords_api/v201008/campaign_target_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/customer_sync_service.rb +1 -1
- data/lib/adwords_api/v201008/customer_sync_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/experiment_service.rb +1 -1
- data/lib/adwords_api/v201008/experiment_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/geo_location_service.rb +1 -1
- data/lib/adwords_api/v201008/geo_location_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/info_service.rb +1 -1
- data/lib/adwords_api/v201008/info_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/media_service.rb +5 -5
- data/lib/adwords_api/v201008/media_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/report_definition_service.rb +1 -1
- data/lib/adwords_api/v201008/report_definition_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/serviced_account_service.rb +1 -1
- data/lib/adwords_api/v201008/serviced_account_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201008/targeting_idea_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/traffic_estimator_service.rb +1 -1
- data/lib/adwords_api/v201008/traffic_estimator_service_registry.rb +3 -3
- data/lib/adwords_api/v201008/user_list_service.rb +1 -1
- data/lib/adwords_api/v201008/user_list_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/ad_extension_override_service.rb +1 -1
- data/lib/adwords_api/v201101/ad_extension_override_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/ad_group_ad_service.rb +1 -1
- data/lib/adwords_api/v201101/ad_group_ad_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/ad_group_criterion_service.rb +1 -1
- data/lib/adwords_api/v201101/ad_group_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/ad_group_service.rb +1 -1
- data/lib/adwords_api/v201101/ad_group_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/ad_param_service.rb +1 -1
- data/lib/adwords_api/v201101/ad_param_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/alert_service.rb +1 -1
- data/lib/adwords_api/v201101/alert_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/bulk_mutate_job_service.rb +1 -1
- data/lib/adwords_api/v201101/bulk_mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/bulk_opportunity_service.rb +1 -1
- data/lib/adwords_api/v201101/bulk_opportunity_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/campaign_ad_extension_service.rb +1 -1
- data/lib/adwords_api/v201101/campaign_ad_extension_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/campaign_criterion_service.rb +1 -1
- data/lib/adwords_api/v201101/campaign_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/campaign_service.rb +1 -1
- data/lib/adwords_api/v201101/campaign_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/campaign_target_service.rb +1 -1
- data/lib/adwords_api/v201101/campaign_target_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/conversion_tracker_service.rb +1 -1
- data/lib/adwords_api/v201101/conversion_tracker_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/customer_sync_service.rb +1 -1
- data/lib/adwords_api/v201101/customer_sync_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/data_service.rb +1 -1
- data/lib/adwords_api/v201101/data_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/experiment_service.rb +1 -1
- data/lib/adwords_api/v201101/experiment_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/geo_location_service.rb +1 -1
- data/lib/adwords_api/v201101/geo_location_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/info_service.rb +1 -1
- data/lib/adwords_api/v201101/info_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/media_service.rb +5 -5
- data/lib/adwords_api/v201101/media_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/report_definition_service.rb +1 -1
- data/lib/adwords_api/v201101/report_definition_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/serviced_account_service.rb +1 -1
- data/lib/adwords_api/v201101/serviced_account_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201101/targeting_idea_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/traffic_estimator_service.rb +1 -1
- data/lib/adwords_api/v201101/traffic_estimator_service_registry.rb +3 -3
- data/lib/adwords_api/v201101/user_list_service.rb +1 -1
- data/lib/adwords_api/v201101/user_list_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/ad_extension_override_service.rb +1 -1
- data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/ad_group_ad_service.rb +1 -1
- data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/ad_group_criterion_service.rb +1 -1
- data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/ad_group_service.rb +1 -1
- data/lib/adwords_api/v201109/ad_group_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/ad_param_service.rb +1 -1
- data/lib/adwords_api/v201109/ad_param_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/alert_service.rb +1 -1
- data/lib/adwords_api/v201109/alert_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +1 -1
- data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/bulk_opportunity_service.rb +1 -1
- data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +1 -1
- data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/campaign_criterion_service.rb +1 -1
- data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/campaign_service.rb +1 -1
- data/lib/adwords_api/v201109/campaign_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/campaign_target_service.rb +1 -1
- data/lib/adwords_api/v201109/campaign_target_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/constant_data_service.rb +1 -1
- data/lib/adwords_api/v201109/constant_data_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/conversion_tracker_service.rb +1 -1
- data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/create_account_service.rb +32 -0
- data/lib/adwords_api/v201109/create_account_service_registry.rb +45 -0
- data/lib/adwords_api/v201109/customer_sync_service.rb +1 -1
- data/lib/adwords_api/v201109/customer_sync_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/data_service.rb +1 -1
- data/lib/adwords_api/v201109/data_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/experiment_service.rb +1 -1
- data/lib/adwords_api/v201109/experiment_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/geo_location_service.rb +1 -1
- data/lib/adwords_api/v201109/geo_location_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/info_service.rb +1 -1
- data/lib/adwords_api/v201109/info_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/location_criterion_service.rb +1 -1
- data/lib/adwords_api/v201109/location_criterion_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/media_service.rb +5 -5
- data/lib/adwords_api/v201109/media_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/mutate_job_service.rb +1 -1
- data/lib/adwords_api/v201109/mutate_job_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/report_definition_service.rb +1 -1
- data/lib/adwords_api/v201109/report_definition_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/serviced_account_service.rb +1 -1
- data/lib/adwords_api/v201109/serviced_account_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/traffic_estimator_service.rb +1 -1
- data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +3 -3
- data/lib/adwords_api/v201109/user_list_service.rb +1 -1
- data/lib/adwords_api/v201109/user_list_service_registry.rb +3 -3
- data/test/bugs/test_issue_00000031.rb +7 -11
- metadata +11 -8
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -27,9 +27,9 @@ Buyer client library examples. You need the AdWords library in order to use it
|
|
27
27
|
which is installed automatically as a dependency.
|
28
28
|
|
29
29
|
The following gem libraries are required:
|
30
|
-
- savon v0.9.
|
30
|
+
- savon v0.9.7
|
31
31
|
- httpclient v2.1.2 or greater
|
32
|
-
- google-ads-common v0.
|
32
|
+
- google-ads-common v0.6.0 or later.
|
33
33
|
|
34
34
|
|
35
35
|
== 2 - Using the client library:
|
data/Rakefile
CHANGED
@@ -48,8 +48,8 @@ spec = Gem::Specification.new do |s|
|
|
48
48
|
s.test_files = tests
|
49
49
|
s.has_rdoc = true
|
50
50
|
s.extra_rdoc_files = docs
|
51
|
-
s.add_dependency('google-ads-common', '~> 0.
|
52
|
-
s.add_dependency('savon', '= 0.9.
|
51
|
+
s.add_dependency('google-ads-common', '~> 0.6.0')
|
52
|
+
s.add_dependency('savon', '= 0.9.7')
|
53
53
|
end
|
54
54
|
|
55
55
|
package_task = Gem::PackageTask.new(spec) do |pkg|
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
#
|
3
|
+
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
6
|
+
#
|
7
|
+
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
16
|
+
# implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
# This example illustrates how to create an account. Note by default this
|
21
|
+
# account will only be accessible via parent MCC.
|
22
|
+
#
|
23
|
+
# Tags: CreateAccountService.mutate
|
24
|
+
|
25
|
+
require 'rubygems'
|
26
|
+
require 'adwords_api'
|
27
|
+
require 'adwords_api/utils'
|
28
|
+
|
29
|
+
API_VERSION = :v201109
|
30
|
+
|
31
|
+
def create_account()
|
32
|
+
# AdwordsApi::Api will read a config file from ENV['HOME']/adwords_api.yml
|
33
|
+
# when called without parameters.
|
34
|
+
adwords = AdwordsApi::Api.new
|
35
|
+
|
36
|
+
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
37
|
+
# the configuration file or provide your own logger:
|
38
|
+
# adwords.logger = Logger.new('adwords_xml.log')
|
39
|
+
|
40
|
+
create_account_srv = adwords.service(:CreateAccountService, API_VERSION)
|
41
|
+
|
42
|
+
# Prepare operation to create an account.
|
43
|
+
operation = {
|
44
|
+
:operator => 'ADD',
|
45
|
+
:operand => {
|
46
|
+
:currency_code => 'EUR',
|
47
|
+
:date_time_zone => 'Europe/London'
|
48
|
+
},
|
49
|
+
:descriptive_name => 'Account created with CreateAccountService'
|
50
|
+
}
|
51
|
+
|
52
|
+
# Create the account. It is possible to create multiple accounts with one
|
53
|
+
# request by sending an array of operations.
|
54
|
+
response = create_account_srv.mutate([operation])
|
55
|
+
|
56
|
+
new_account = response.first
|
57
|
+
puts "Account with customer ID '%s' was successfully created." %
|
58
|
+
AdwordsApi::Utils.format_id(new_account[:customer_id])
|
59
|
+
end
|
60
|
+
|
61
|
+
if __FILE__ == $0
|
62
|
+
begin
|
63
|
+
create_account()
|
64
|
+
|
65
|
+
# HTTP errors.
|
66
|
+
rescue AdsCommon::Errors::HttpError => e
|
67
|
+
puts "HTTP Error: %s" % e
|
68
|
+
|
69
|
+
# API errors.
|
70
|
+
rescue AdwordsApi::Errors::ApiException => e
|
71
|
+
puts "Message: %s" % e.message
|
72
|
+
puts 'Errors:'
|
73
|
+
e.errors.each_with_index do |error, index|
|
74
|
+
puts "\tError [%d]:" % (index + 1)
|
75
|
+
error.each do |field, value|
|
76
|
+
puts "\t\t%s: %s" % [field, value]
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -53,7 +53,7 @@ def get_location_criteria()
|
|
53
53
|
:operator => 'IN',
|
54
54
|
:values => location_names},
|
55
55
|
# Set the locale of the returned location names.
|
56
|
-
{:field => 'Locale', :operator => 'EQUALS', :values => locale}
|
56
|
+
{:field => 'Locale', :operator => 'EQUALS', :values => [locale]}
|
57
57
|
]
|
58
58
|
}
|
59
59
|
criteria = location_criterion_srv.get(selector)
|
data/lib/adwords_api.rb
CHANGED
@@ -41,7 +41,7 @@ module AdwordsApi
|
|
41
41
|
|
42
42
|
# Set other constants
|
43
43
|
API_NAME = 'AdwordsApi'
|
44
|
-
CLIENT_LIB_VERSION = '0.4.
|
44
|
+
CLIENT_LIB_VERSION = '0.4.4'
|
45
45
|
DEFAULT_CONFIG_FILENAME = 'adwords_api.yml'
|
46
46
|
|
47
47
|
# Configure the services available to each version
|
@@ -92,7 +92,8 @@ module AdwordsApi
|
|
92
92
|
:ReportDefinitionService, :ServicedAccountService,
|
93
93
|
:TargetingIdeaService, :TrafficEstimatorService,
|
94
94
|
:UserListService, :ConstantDataService,
|
95
|
-
:LocationCriterionService, :MutateJobService
|
95
|
+
:LocationCriterionService, :MutateJobService,
|
96
|
+
:CreateAccountService]
|
96
97
|
}
|
97
98
|
|
98
99
|
# Configure the different environments, with the base URL for each one
|
@@ -229,7 +230,8 @@ module AdwordsApi
|
|
229
230
|
[:v201109, :UserListService] => 'cm/',
|
230
231
|
[:v201109, :ConstantDataService] => 'cm/',
|
231
232
|
[:v201109, :LocationCriterionService] => 'cm/',
|
232
|
-
[:v201109, :MutateJobService] => 'cm/'
|
233
|
+
[:v201109, :MutateJobService] => 'cm/',
|
234
|
+
[:v201109, :CreateAccountService] => 'mcm/'
|
233
235
|
}
|
234
236
|
|
235
237
|
# Configure the auth servers to use for each environment
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:37.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v13/account_service_registry'
|
@@ -15,6 +15,14 @@ module AdwordsApi; module V13; module AccountService
|
|
15
15
|
super(api, endpoint, namespace, :v13)
|
16
16
|
end
|
17
17
|
|
18
|
+
def get_account_info(*args, &block)
|
19
|
+
return execute_action('get_account_info', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_client_account_infos(*args, &block)
|
23
|
+
return execute_action('get_client_account_infos', args, &block)
|
24
|
+
end
|
25
|
+
|
18
26
|
def get_client_accounts(*args, &block)
|
19
27
|
return execute_action('get_client_accounts', args, &block)
|
20
28
|
end
|
@@ -27,14 +35,6 @@ module AdwordsApi; module V13; module AccountService
|
|
27
35
|
return execute_action('update_account_info', args, &block)
|
28
36
|
end
|
29
37
|
|
30
|
-
def get_account_info(*args, &block)
|
31
|
-
return execute_action('get_account_info', args, &block)
|
32
|
-
end
|
33
|
-
|
34
|
-
def get_client_account_infos(*args, &block)
|
35
|
-
return execute_action('get_client_account_infos', args, &block)
|
36
|
-
end
|
37
|
-
|
38
38
|
private
|
39
39
|
|
40
40
|
def get_service_registry()
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:37.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V13; module AccountService
|
11
11
|
class AccountServiceRegistry
|
12
|
-
ACCOUNTSERVICE_METHODS = {:
|
13
|
-
ACCOUNTSERVICE_TYPES = {:
|
12
|
+
ACCOUNTSERVICE_METHODS = {:get_account_info=>{:input=>[], :output=>{:name=>"get_account_info_response", :fields=>[{:name=>:get_account_info_return, :type=>"AccountInfo"}]}}, :get_client_account_infos=>{:input=>[], :output=>{:name=>"get_client_account_infos_response", :fields=>[{:name=>:get_client_account_infos_return, :type=>"ClientAccountInfo", :max_occurs=>:unbounded}]}}, :get_client_accounts=>{:input=>[], :output=>{:name=>"get_client_accounts_response", :fields=>[{:name=>:get_client_accounts_return, :type=>"string", :max_occurs=>:unbounded}]}}, :get_mcc_alerts=>{:input=>[], :output=>{:name=>"get_mcc_alerts_response", :fields=>[{:name=>:get_mcc_alerts_return, :type=>"MccAlert", :max_occurs=>:unbounded}]}}, :update_account_info=>{:input=>[{:name=>:account_info, :type=>"AccountInfo"}], :output=>{:name=>"update_account_info_response", :fields=>[]}}}
|
13
|
+
ACCOUNTSERVICE_TYPES = {:AccountInfo=>{:fields=>[{:name=>:billing_address, :type=>"Address"}, {:name=>:currency_code, :type=>"string"}, {:name=>:customer_id, :type=>"long", :min_occurs=>0}, {:name=>:default_network_targeting, :type=>"NetworkTarget"}, {:name=>:descriptive_name, :type=>"string"}, {:name=>:email_promotions_preferences, :type=>"EmailPromotionsPreferences"}, {:name=>:language_preference, :type=>"string"}, {:name=>:primary_address, :type=>"Address"}, {:name=>:primary_business_category, :type=>"string"}, {:name=>:time_zone_effective_date, :type=>"long", :min_occurs=>0}, {:name=>:time_zone_id, :type=>"string"}]}, :Address=>{:fields=>[{:name=>:address_line1, :type=>"string"}, {:name=>:address_line2, :type=>"string"}, {:name=>:city, :type=>"string"}, {:name=>:company_name, :type=>"string"}, {:name=>:country_code, :type=>"string"}, {:name=>:email_address, :type=>"string"}, {:name=>:fax_number, :type=>"string"}, {:name=>:name, :type=>"string"}, {:name=>:phone_number, :type=>"string"}, {:name=>:postal_code, :type=>"string"}, {:name=>:state, :type=>"string"}]}, :ClientAccountInfo=>{:fields=>[{:name=>:email_address, :type=>"string"}, {:name=>:is_customer_manager, :type=>"boolean"}]}, :EmailPromotionsPreferences=>{:fields=>[{:name=>:account_performance_enabled, :type=>"boolean"}, {:name=>:disapproved_ads_enabled, :type=>"boolean"}, {:name=>:market_research_enabled, :type=>"boolean"}, {:name=>:newsletter_enabled, :type=>"boolean"}, {:name=>:promotions_enabled, :type=>"boolean"}]}, :MccAlert=>{:fields=>[{:name=>:client_company_name, :type=>"string"}, {:name=>:client_customer_id, :type=>"long"}, {:name=>:client_login, :type=>"string"}, {:name=>:client_name, :type=>"string"}, {:name=>:priority, :type=>"MccAlertPriority"}, {:name=>:trigger_time, :type=>"dateTime"}, {:name=>:type, :type=>"MccAlertType"}]}, :NetworkTarget=>{:fields=>[{:name=>:network_types, :type=>"NetworkType", :min_occurs=>0, :max_occurs=>:unbounded}]}, :MccAlertPriority=>{:fields=>[]}, :MccAlertType=>{:fields=>[]}, :NetworkType=>{:fields=>[]}}
|
14
14
|
ACCOUNTSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:38.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v13/report_service_registry'
|
@@ -16,6 +16,10 @@ module AdwordsApi; module V13; module ReportService
|
|
16
16
|
super(api, endpoint, namespace, :v13)
|
17
17
|
end
|
18
18
|
|
19
|
+
def delete_report(*args, &block)
|
20
|
+
return execute_action('delete_report', args, &block)
|
21
|
+
end
|
22
|
+
|
19
23
|
def get_all_jobs(*args, &block)
|
20
24
|
return execute_action('get_all_jobs', args, &block)
|
21
25
|
end
|
@@ -24,24 +28,20 @@ module AdwordsApi; module V13; module ReportService
|
|
24
28
|
return execute_action('get_gzip_report_download_url', args, &block)
|
25
29
|
end
|
26
30
|
|
27
|
-
def
|
28
|
-
return execute_action('
|
31
|
+
def get_report_download_url(*args, &block)
|
32
|
+
return execute_action('get_report_download_url', args, &block)
|
29
33
|
end
|
30
34
|
|
31
35
|
def get_report_job_status(*args, &block)
|
32
36
|
return execute_action('get_report_job_status', args, &block)
|
33
37
|
end
|
34
38
|
|
35
|
-
def
|
36
|
-
return execute_action('
|
37
|
-
end
|
38
|
-
|
39
|
-
def get_report_download_url(*args, &block)
|
40
|
-
return execute_action('get_report_download_url', args, &block)
|
39
|
+
def schedule_report_job(*args, &block)
|
40
|
+
return execute_action('schedule_report_job', args, &block)
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
44
|
-
return execute_action('
|
43
|
+
def validate_report_job(*args, &block)
|
44
|
+
return execute_action('validate_report_job', args, &block)
|
45
45
|
end
|
46
46
|
|
47
47
|
def download_xml_report(*args)
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:38.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V13; module ReportService
|
11
11
|
class ReportServiceRegistry
|
12
|
-
REPORTSERVICE_METHODS = {:
|
13
|
-
REPORTSERVICE_TYPES = {:DefinedReportJob=>{:fields=>[{:type=>"AdGroupStatus", :
|
12
|
+
REPORTSERVICE_METHODS = {:delete_report=>{:input=>[{:name=>:report_job_id, :type=>"long"}], :output=>{:name=>"delete_report_response", :fields=>[]}}, :get_all_jobs=>{:input=>[], :output=>{:name=>"get_all_jobs_response", :fields=>[{:name=>:get_all_jobs_return, :type=>"ReportJob", :max_occurs=>:unbounded}]}}, :get_gzip_report_download_url=>{:input=>[{:name=>:report_job_id, :type=>"long"}], :output=>{:name=>"get_gzip_report_download_url_response", :fields=>[{:name=>:get_gzip_report_download_url_return, :type=>"string"}]}}, :get_report_download_url=>{:input=>[{:name=>:report_job_id, :type=>"long"}], :output=>{:name=>"get_report_download_url_response", :fields=>[{:name=>:get_report_download_url_return, :type=>"string"}]}}, :get_report_job_status=>{:input=>[{:name=>:report_job_id, :type=>"long"}], :output=>{:name=>"get_report_job_status_response", :fields=>[{:name=>:get_report_job_status_return, :type=>"ReportJobStatus"}]}}, :schedule_report_job=>{:input=>[{:name=>:job, :type=>"ReportJob"}], :output=>{:name=>"schedule_report_job_response", :fields=>[{:name=>:schedule_report_job_return, :type=>"long"}]}}, :validate_report_job=>{:input=>[{:name=>:job, :type=>"ReportJob"}], :output=>{:name=>"validate_report_job_response", :fields=>[]}}}
|
13
|
+
REPORTSERVICE_TYPES = {:DefinedReportJob=>{:fields=>[{:name=>:ad_group_statuses, :type=>"AdGroupStatus", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_groups, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_words_type, :type=>"AdWordsType", :min_occurs=>0}, {:name=>:aggregation_types, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:campaign_statuses, :type=>"CampaignStatus", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:campaigns, :type=>"int", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:include_zero_impression, :type=>"boolean", :min_occurs=>0}, {:name=>:keyword_statuses, :type=>"KeywordStatus", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:keyword_type, :type=>"KeywordType", :min_occurs=>0}, {:name=>:keywords, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:selected_columns, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:selected_report_type, :type=>"string"}], :base=>"ReportJob"}, :ReportJob=>{:fields=>[{:name=>:client_emails, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:cross_client, :type=>"boolean", :min_occurs=>0}, {:name=>:end_day, :type=>"date"}, {:name=>:id, :type=>"long", :min_occurs=>0}, {:name=>:name, :type=>"string", :min_occurs=>0}, {:name=>:start_day, :type=>"date"}, {:name=>:status, :type=>"ReportJobStatus", :min_occurs=>0}], :abstract=>true}, :AdGroupStatus=>{:fields=>[]}, :AdWordsType=>{:fields=>[]}, :CampaignStatus=>{:fields=>[]}, :KeywordStatus=>{:fields=>[]}, :KeywordType=>{:fields=>[]}, :ReportJobStatus=>{:fields=>[]}}
|
14
14
|
REPORTSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:39.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/ad_extension_override_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:39.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V200909; module AdExtensionOverrideService
|
11
11
|
class AdExtensionOverrideServiceRegistry
|
12
|
-
ADEXTENSIONOVERRIDESERVICE_METHODS = {:get=>{:input=>[{:type=>"AdExtensionOverrideSelector", :
|
13
|
-
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"}, :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}]}, :SoapHeader=>{:fields=>[{:name=>:application_token, :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=>:client_email, :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}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :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"}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :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=>: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=>[]}}
|
14
14
|
ADEXTENSIONOVERRIDESERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:41.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/ad_group_ad_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:41.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V200909; module AdGroupAdService
|
11
11
|
class AdGroupAdServiceRegistry
|
12
|
-
ADGROUPADSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdGroupAdSelector", :
|
13
|
-
ADGROUPADSERVICE_TYPES = {:LocalBusinessAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:full_business_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:region}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:region_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:business_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description1}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description2}, {:type=>"ProximityTarget", :max_occurs=>1, :min_occurs=>0, :name=>:target}, {:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:business_image}, {:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:icon}], :base=>"Ad"}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :max_occurs=>1, :min_occurs=>0, :name=>:key}]}, :NetworkTarget=>{:fields=>[{:type=>"NetworkCoverageType", :max_occurs=>1, :min_occurs=>0, :name=>:network_coverage_type}], :base=>"Target"}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:enclosing_id}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:limit}], :base=>"ApiError"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :AgeTarget=>{:fields=>[{:type=>"AgeTarget.Age", :max_occurs=>1, :min_occurs=>0, :name=>:age}], :base=>"DemographicTarget"}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :AdGroupAdOperation=>{:fields=>[{:type=>"AdGroupAd", :max_occurs=>1, :min_occurs=>0, :name=>:operand}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:exemption_requests}], :base=>"Operation"}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:policy_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:violating_text}]}, :LanguageTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:language_code}], :base=>"Target"}, :Dimensions=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:width}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:height}]}, :TemplateElement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:unique_name}, {:type=>"TemplateElementField", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :PlatformTarget=>{:fields=>[{:type=>"PlatformType", :max_occurs=>1, :min_occurs=>0, :name=>:platform_type}], :base=>"Target"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :CityTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :AdGroupAdPage=>{:fields=>[{:type=>"AdGroupAd", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :Media=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:media_id}, {:type=>"Media.MediaType", :max_occurs=>1, :min_occurs=>0, :name=>:media_type_db}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:reference_id}, {:type=>"Media_Size_DimensionsMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:dimensions}, {:type=>"Media_Size_StringMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:urls}, {:type=>"Media.MimeType", :max_occurs=>1, :min_occurs=>0, :name=>:mime_type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:source_url}, {:type=>"Media.MediaSubType", :max_occurs=>1, :min_occurs=>0, :name=>:media_sub_type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:file_size}, {:type=>"Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:extended_capabilities}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:creation_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:media_type}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :MetroTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:metro_code}], :base=>"GeoTarget"}, :Image=>{:fields=>[{:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:data}], :base=>"Media"}, :AdGroupAdSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:campaign_ids}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ad_group_ids}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ad_ids}, {:type=>"AdStatsSelector", :max_occurs=>1, :min_occurs=>0, :name=>:stats_selector}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :TextAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:headline}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description1}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description2}], :base=>"Ad"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:application_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}]}, :PolygonTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:vertices}], :base=>"GeoTarget"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CountryTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :AdStats=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:percent_served}], :base=>"Stats"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :AdGroupAdReturnValue=>{:fields=>[{:type=>"AdGroupAd", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :MobileImageAd=>{:fields=>[{:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:markup_languages}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:mobile_carriers}, {:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:image}], :base=>"Ad"}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:length}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry=>{:fields=>[{:type=>"Media.MediaExtendedCapabilityType", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"Media.MediaExtendedCapabilityState", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address2}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}]}, :TemplateAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:template_id}, {:type=>"AdUnionId", :max_occurs=>1, :min_occurs=>0, :name=>:ad_union_id}, {:type=>"TemplateElement", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:template_elements}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:dimensions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:duration}], :base=>"Ad"}, :DemographicTarget=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:bid_modifier}], :abstract=>true, :base=>"Target"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :ProvinceTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}], :base=>"GeoTarget"}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:latitude_in_micro_degrees}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:longitude_in_micro_degrees}]}, :AdStatsSelector=>{:fields=>[], :base=>"StatsSelector"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :TemplateElementField=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"TemplateElementField.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field_text}, {:type=>"Media", :max_occurs=>1, :min_occurs=>0, :name=>:field_media}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :Ad=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:display_url}, {:type=>"Ad.ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:disapproval_reasons}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_type}]}, :Video=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:industry_standard_commercial_identifier}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:advertising_id}], :base=>"Media"}, :StatsSelector=>{:fields=>[{:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_selector_type}]}, :ProximityTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"ProximityTarget.DistanceUnits", :max_occurs=>1, :min_occurs=>0, :name=>:radius_distance_units}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:radius_in_units}, {:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:allow_service_of_address}], :base=>"GeoTarget"}, :GenderTarget=>{:fields=>[{:type=>"GenderTarget.Gender", :max_occurs=>1, :min_occurs=>0, :name=>:gender}], :base=>"DemographicTarget"}, :Audio=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}], :base=>"Media"}, :ImageAd=>{:fields=>[{:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:image}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}], :base=>"Ad"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :MobileAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:headline}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description}, {:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:markup_languages}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:mobile_carriers}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:business_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}], :base=>"Ad"}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :min_occurs=>0, :name=>:day_of_week}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:start_minute}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:end_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:end_minute}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:bid_multiplier}], :base=>"Target"}, :AdGroupAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"Ad", :max_occurs=>1, :min_occurs=>0, :name=>:ad}, {:type=>"AdGroupAd.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"AdStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_type}], :abstract=>true}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :GeoTarget=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:excluded}], :abstract=>true, :base=>"Target"}, :AdUnionId=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_union_id_type}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :DeprecatedAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"DeprecatedAd.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}], :base=>"Ad"}}
|
12
|
+
ADGROUPADSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AdGroupAdSelector", :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"}, :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"}, :AdStats=>{:fields=>[{:name=>:percent_served, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Stats"}, :AdStatsSelector=>{:fields=>[], :base=>"StatsSelector"}, :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}]}, :AgeTarget=>{:fields=>[{:name=>:age, :type=>"AgeTarget.Age", :min_occurs=>0, :max_occurs=>1}], :base=>"DemographicTarget"}, :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"}, :CityTarget=>{:fields=>[{:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :CountryTarget=>{:fields=>[{:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :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"}, :GenderTarget=>{:fields=>[{:name=>:gender, :type=>"GenderTarget.Gender", :min_occurs=>0, :max_occurs=>1}], :base=>"DemographicTarget"}, :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}]}, :Image=>{:fields=>[{:name=>:data, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :LanguageTarget=>{:fields=>[{:name=>:language_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue"}, :Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.MediaExtendedCapabilityType", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Media.MediaExtendedCapabilityState", :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}]}, :MetroTarget=>{:fields=>[{:name=>:metro_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :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"}, :NetworkTarget=>{:fields=>[{:name=>:network_coverage_type, :type=>"NetworkCoverageType", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PlatformTarget=>{:fields=>[{:name=>:platform_type, :type=>"PlatformType", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :"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}]}, :PolygonTarget=>{:fields=>[{:name=>:vertices, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"GeoTarget"}, :ProvinceTarget=>{:fields=>[{:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :ProximityTarget=>{:fields=>[{:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_distance_units, :type=>"ProximityTarget.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}, {:name=>:allow_service_of_address, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :SoapHeader=>{:fields=>[{:name=>:application_token, :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=>:client_email, :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}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :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}]}, :StatsSelector=>{:fields=>[{:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_selector_type, :type=>"string", :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"}, :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}], :base=>"Media"}, :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}]}, :DemographicTarget=>{:fields=>[{:name=>:bid_modifier, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Target"}, :ExemptionRequest=>{:fields=>[{:name=>:key, :type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1}]}, :GeoTarget=>{:fields=>[{:name=>:excluded, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Target"}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue"}, :Target=>{:fields=>[{:name=>:target_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :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=>:media_type_db, :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=>:media_sub_type, :type=>"Media.MediaSubType", :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=>:extended_capabilities, :type=>"Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {: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=>: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}], :base=>"Ad"}, :LocalBusinessAd=>{:fields=>[{:name=>:full_business_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:phone_number, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:region, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:region_code, :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}, {:name=>:business_name, :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}, {:name=>:target, :type=>"ProximityTarget", :min_occurs=>0, :max_occurs=>1}, {:name=>:business_image, :type=>"Image", :min_occurs=>0, :max_occurs=>1}, {:name=>:icon, :type=>"Image", :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}]}, :AdGroupAdSelector=>{:fields=>[{:name=>:campaign_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_group_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:stats_selector, :type=>"AdStatsSelector", :min_occurs=>0, :max_occurs=>1}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :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=>: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=>: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}], :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=>[]}, :"AgeTarget.Age"=>{:fields=>[]}, :DayOfWeek=>{:fields=>[]}, :"DeprecatedAd.Type"=>{:fields=>[]}, :"GenderTarget.Gender"=>{:fields=>[]}, :MarkupLanguageType=>{:fields=>[]}, :"Media.MediaExtendedCapabilityState"=>{:fields=>[]}, :"Media.MediaExtendedCapabilityType"=>{:fields=>[]}, :"Media.MediaSubType"=>{:fields=>[]}, :"Media.MediaType"=>{:fields=>[]}, :"Media.MimeType"=>{:fields=>[]}, :"Media.Size"=>{:fields=>[]}, :MinuteOfHour=>{:fields=>[]}, :NetworkCoverageType=>{:fields=>[]}, :Operator=>{:fields=>[]}, :PlatformType=>{:fields=>[]}, :"ProximityTarget.DistanceUnits"=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :"TemplateElementField.Type"=>{:fields=>[]}}
|
14
14
|
ADGROUPADSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:45.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/ad_group_criterion_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:45.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V200909; module AdGroupCriterionService
|
11
11
|
class AdGroupCriterionServiceRegistry
|
12
|
-
ADGROUPCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdGroupCriterionSelector", :
|
13
|
-
ADGROUPCRITERIONSERVICE_TYPES = {:
|
12
|
+
ADGROUPCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AdGroupCriterionSelector", :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 = {:AdGroupCriterionIdFilter=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :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"}, :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"}, :"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}]}, :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=>:application_token, :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=>:client_email, :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}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :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}]}, :StatsSelector=>{:fields=>[{:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_selector_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :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}]}, :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=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Bid=>{:fields=>[{:name=>:amount, :type=>"Money", :min_occurs=>0, :max_occurs=>1}]}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:name=>:proxy_bid, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupCriterionBids"}, :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"}, :PositionPreferenceAdGroupCriterionBids=>{:fields=>[{:name=>:proxy_max_cpc, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}, {:name=>:preferred_position, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:bottom_position, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :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=>:position_preference_bids, :type=>"PositionPreferenceAdGroupCriterionBids", :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=>: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, :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}], :base=>"ListReturnValue"}, :AdGroupCriterionSelector=>{:fields=>[{:name=>:id_filters, :type=>"AdGroupCriterionIdFilter", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:criterion_use, :type=>"CriterionUse", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_statuses, :type=>"UserStatus", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:stats_selector, :type=>"StatsSelector", :min_occurs=>0, :max_occurs=>1}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :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=>[]}, :CriterionUse=>{:fields=>[]}, :KeywordMatchType=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}, :SystemServingStatus=>{:fields=>[]}, :UserStatus=>{:fields=>[]}}
|
14
14
|
ADGROUPCRITERIONSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:46.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/ad_group_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:47.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V200909; module AdGroupService
|
11
11
|
class AdGroupServiceRegistry
|
12
|
-
ADGROUPSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdGroupSelector", :
|
13
|
-
ADGROUPSERVICE_TYPES = {:DateRange=>{:fields=>[{:type=>"string", :
|
12
|
+
ADGROUPSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AdGroupSelector", :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"}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :SoapHeader=>{:fields=>[{:name=>:application_token, :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=>:client_email, :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}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :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}]}, :StatsSelector=>{:fields=>[{:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:stats_selector_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :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=>:stats_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Bid=>{:fields=>[{:name=>:amount, :type=>"Money", :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}], :base=>"AdGroupBids"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:name=>:target_cpa, :type=>"Bid", :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}], :base=>"AdGroupBids"}, :ManualCPMAdGroupBids=>{:fields=>[{:name=>:max_cpm, :type=>"Bid", :min_occurs=>0, :max_occurs=>1}], :base=>"AdGroupBids"}, :AdGroupBids=>{:fields=>[{:name=>:ad_group_bids_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdGroupSelector=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:stats_selector, :type=>"StatsSelector", :min_occurs=>0, :max_occurs=>1}, {:name=>:paging, :type=>"Paging", :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=>: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=>[]}, :Operator=>{:fields=>[]}, :"Stats.Network"=>{:fields=>[]}}
|
14
14
|
ADGROUPSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:48.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/ad_param_service_registry'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:48.
|
7
7
|
|
8
8
|
require 'adwords_api/errors'
|
9
9
|
|
10
10
|
module AdwordsApi; module V200909; module AdParamService
|
11
11
|
class AdParamServiceRegistry
|
12
|
-
ADPARAMSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdParamSelector", :
|
13
|
-
ADPARAMSERVICE_TYPES = {:
|
12
|
+
ADPARAMSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"AdParamSelector", :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}]}, :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}, :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}]}, :SoapHeader=>{:fields=>[{:name=>:application_token, :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=>:client_email, :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}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :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}]}, :AdParamSelector=>{:fields=>[{:name=>:ad_group_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:criteria_id, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Operator=>{:fields=>[]}}
|
14
14
|
ADPARAMSERVICE_NAMESPACES = []
|
15
15
|
|
16
16
|
def self.get_method_signature(method_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
4
|
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
5
|
#
|
6
|
-
# Code generated by AdsCommon library 0.
|
6
|
+
# Code generated by AdsCommon library 0.6.0 on 2011-12-02 16:39:51.
|
7
7
|
|
8
8
|
require 'ads_common/savon_service'
|
9
9
|
require 'adwords_api/v200909/bulk_mutate_job_service_registry'
|