google-adwords-api 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +8 -0
- data/README +22 -20
- data/adwords_api.yml +40 -0
- data/examples/v201109/account_management/create_account.rb +0 -1
- data/examples/v201109/account_management/get_account_alerts.rb +0 -1
- data/examples/v201109/account_management/get_account_changes.rb +0 -1
- data/examples/v201109/account_management/get_account_hierarchy.rb +0 -1
- data/examples/v201109/account_management/get_client_customer_id.rb +0 -1
- data/examples/v201109/account_management/get_client_unit_usage.rb +0 -1
- data/examples/v201109/basic_operations/add_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/add_campaign.rb +0 -1
- data/examples/v201109/basic_operations/add_keywords.rb +0 -1
- data/examples/v201109/basic_operations/add_text_ads.rb +0 -1
- data/examples/v201109/basic_operations/delete_ad.rb +0 -1
- data/examples/v201109/basic_operations/delete_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/delete_campaign.rb +0 -1
- data/examples/v201109/basic_operations/delete_keyword.rb +0 -1
- data/examples/v201109/basic_operations/get_ad_groups.rb +0 -1
- data/examples/v201109/basic_operations/get_campaigns.rb +0 -1
- data/examples/v201109/basic_operations/get_keywords.rb +0 -1
- data/examples/v201109/basic_operations/get_text_ads.rb +0 -1
- data/examples/v201109/basic_operations/pause_ad.rb +0 -1
- data/examples/v201109/basic_operations/update_ad_group.rb +0 -1
- data/examples/v201109/basic_operations/update_campaign.rb +0 -1
- data/examples/v201109/basic_operations/update_keyword.rb +0 -1
- data/examples/v201109/campaign_management/add_experiment.rb +0 -1
- data/examples/v201109/campaign_management/add_keywords_in_bulk.rb +0 -1
- data/examples/v201109/campaign_management/add_location_extension.rb +0 -1
- data/examples/v201109/campaign_management/add_location_extension_override.rb +0 -1
- data/examples/v201109/campaign_management/get_all_disapproved_ads.rb +0 -1
- data/examples/v201109/campaign_management/promote_experiment.rb +0 -1
- data/examples/v201109/campaign_management/set_ad_parameters.rb +0 -1
- data/examples/v201109/campaign_management/validate_text_ad.rb +0 -1
- data/examples/v201109/error_handling/handle_captcha_challenge.rb +94 -0
- data/examples/v201109/error_handling/handle_partial_failures.rb +0 -1
- data/examples/v201109/error_handling/handle_policy_violation_error.rb +0 -1
- data/examples/v201109/error_handling/handle_two_factor_authorization_error.rb +0 -1
- data/examples/v201109/misc/get_all_images_and_videos.rb +0 -1
- data/examples/v201109/misc/upload_image.rb +0 -1
- data/examples/v201109/misc/use_oauth.rb +0 -1
- data/examples/v201109/optimization/estimate_keyword_traffic.rb +0 -1
- data/examples/v201109/optimization/get_keyword_bid_simulations.rb +0 -1
- data/examples/v201109/optimization/get_keyword_ideas.rb +0 -1
- data/examples/v201109/optimization/get_placement_ideas.rb +0 -1
- data/examples/v201109/remarketing/add_audience.rb +0 -1
- data/examples/v201109/remarketing/add_conversion_tracker.rb +0 -1
- data/examples/v201109/reporting/download_criteria_report.rb +0 -1
- data/examples/v201109/reporting/download_defined_report.rb +0 -1
- data/examples/v201109/reporting/get_defined_reports.rb +0 -1
- data/examples/v201109/reporting/get_report_fields.rb +0 -1
- data/examples/v201109/reporting/parallel_report_download.rb +0 -1
- data/examples/v201109/targeting/add_campaign_targeting_criteria.rb +0 -1
- data/examples/v201109/targeting/get_campaign_targeting_criteria.rb +0 -1
- data/examples/v201109/targeting/get_targetable_languages_and_carriers.rb +0 -1
- data/examples/v201109/targeting/lookup_location.rb +0 -1
- data/lib/adwords_api.rb +1 -1
- data/lib/adwords_api/api_config.rb +36 -20
- data/lib/adwords_api/credential_handler.rb +5 -2
- data/lib/adwords_api/report_utils.rb +7 -5
- data/lib/adwords_api/v201109/ad_extension_override_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_ad_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_criterion_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_group_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_group_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/ad_param_service.rb +8 -10
- data/lib/adwords_api/v201109/ad_param_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/alert_service.rb +4 -6
- data/lib/adwords_api/v201109/alert_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +8 -10
- data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_criterion_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/campaign_target_service.rb +8 -10
- data/lib/adwords_api/v201109/campaign_target_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/constant_data_service.rb +4 -6
- data/lib/adwords_api/v201109/constant_data_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/conversion_tracker_service.rb +8 -10
- data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/create_account_service.rb +4 -6
- data/lib/adwords_api/v201109/create_account_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/customer_sync_service.rb +4 -6
- data/lib/adwords_api/v201109/customer_sync_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/data_service.rb +8 -10
- data/lib/adwords_api/v201109/data_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/experiment_service.rb +8 -10
- data/lib/adwords_api/v201109/experiment_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/geo_location_service.rb +4 -6
- data/lib/adwords_api/v201109/geo_location_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/info_service.rb +4 -6
- data/lib/adwords_api/v201109/info_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/location_criterion_service.rb +4 -6
- data/lib/adwords_api/v201109/location_criterion_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/media_service.rb +8 -10
- data/lib/adwords_api/v201109/media_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/mutate_job_service.rb +8 -10
- data/lib/adwords_api/v201109/mutate_job_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/report_definition_service.rb +8 -10
- data/lib/adwords_api/v201109/report_definition_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/serviced_account_service.rb +4 -6
- data/lib/adwords_api/v201109/serviced_account_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/targeting_idea_service.rb +8 -10
- data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/traffic_estimator_service.rb +4 -6
- data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +6 -8
- data/lib/adwords_api/v201109/user_list_service.rb +8 -10
- data/lib/adwords_api/v201109/user_list_service_registry.rb +6 -8
- data/lib/adwords_api/version.rb +26 -0
- data/test/adwords_api/test_api_config.rb +2 -2
- data/test/adwords_api/test_report_utils.rb +1 -1
- data/test/adwords_api/test_utils.rb +1 -1
- data/test/bugs/test_issue_00000031.rb +0 -1
- data/test/suite_unittests.rb +32 -0
- metadata +130 -132
- data/Rakefile +0 -92
- data/examples/v201109/optimization/get_keyword_opportunities.rb +0 -96
- data/lib/adwords_api/v201109/bulk_opportunity_service.rb +0 -34
- data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +0 -46
@@ -0,0 +1,26 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# Authors:: api.dklimkin@gmail.com (Danial Klimkin)
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2012, 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
|
+
# Module to keep the current library version.
|
21
|
+
|
22
|
+
module AdwordsApi
|
23
|
+
module ApiConfig
|
24
|
+
CLIENT_LIB_VERSION = '0.5.1'
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Encoding: utf-8
|
3
|
+
#
|
4
|
+
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
+
#
|
6
|
+
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
7
|
+
#
|
8
|
+
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
17
|
+
# implied.
|
18
|
+
# See the License for the specific language governing permissions and
|
19
|
+
# limitations under the License.
|
20
|
+
#
|
21
|
+
# Test suite for unit tests.
|
22
|
+
|
23
|
+
lib = File.expand_path('../lib/', __FILE__)
|
24
|
+
$:.unshift lib unless $:.include?(lib)
|
25
|
+
|
26
|
+
require 'test/unit'
|
27
|
+
|
28
|
+
# AdWords API units tests.
|
29
|
+
Dir.glob('./test/adwords_api/test*.rb').each {|file| require file}
|
30
|
+
|
31
|
+
# Reported bugs tests.
|
32
|
+
Dir.glob('./test/bugs/test*.rb').each {|file| require file}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-adwords-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danial Klimkin
|
@@ -15,177 +15,176 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-13 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: savon
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 53
|
30
30
|
segments:
|
31
31
|
- 0
|
32
|
-
-
|
33
|
-
-
|
34
|
-
version: 0.
|
32
|
+
- 9
|
33
|
+
- 7
|
34
|
+
version: 0.9.7
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: google-ads-common
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 1
|
46
46
|
segments:
|
47
47
|
- 0
|
48
|
-
-
|
49
|
-
-
|
50
|
-
version: 0.
|
48
|
+
- 6
|
49
|
+
- 3
|
50
|
+
version: 0.6.3
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
description: google-adwords-api is a AdWords API client library for Ruby
|
54
|
-
email:
|
54
|
+
email:
|
55
|
+
- api.dklimkin@gmail.com
|
55
56
|
executables: []
|
56
57
|
|
57
58
|
extensions: []
|
58
59
|
|
59
|
-
extra_rdoc_files:
|
60
|
-
|
61
|
-
- COPYING
|
62
|
-
- ChangeLog
|
60
|
+
extra_rdoc_files: []
|
61
|
+
|
63
62
|
files:
|
64
|
-
-
|
63
|
+
- examples/v201109/reporting/download_criteria_report.rb
|
64
|
+
- examples/v201109/reporting/download_defined_report.rb
|
65
|
+
- examples/v201109/reporting/get_defined_reports.rb
|
66
|
+
- examples/v201109/reporting/parallel_report_download.rb
|
67
|
+
- examples/v201109/reporting/get_report_fields.rb
|
68
|
+
- examples/v201109/error_handling/handle_policy_violation_error.rb
|
69
|
+
- examples/v201109/error_handling/handle_two_factor_authorization_error.rb
|
70
|
+
- examples/v201109/error_handling/handle_captcha_challenge.rb
|
71
|
+
- examples/v201109/error_handling/handle_partial_failures.rb
|
72
|
+
- examples/v201109/targeting/lookup_location.rb
|
73
|
+
- examples/v201109/targeting/get_targetable_languages_and_carriers.rb
|
74
|
+
- examples/v201109/targeting/add_campaign_targeting_criteria.rb
|
75
|
+
- examples/v201109/targeting/get_campaign_targeting_criteria.rb
|
76
|
+
- examples/v201109/campaign_management/validate_text_ad.rb
|
77
|
+
- examples/v201109/campaign_management/add_experiment.rb
|
78
|
+
- examples/v201109/campaign_management/set_ad_parameters.rb
|
79
|
+
- examples/v201109/campaign_management/add_location_extension.rb
|
80
|
+
- examples/v201109/campaign_management/add_keywords_in_bulk.rb
|
81
|
+
- examples/v201109/campaign_management/promote_experiment.rb
|
82
|
+
- examples/v201109/campaign_management/get_all_disapproved_ads.rb
|
83
|
+
- examples/v201109/campaign_management/add_location_extension_override.rb
|
84
|
+
- examples/v201109/account_management/get_account_hierarchy.rb
|
85
|
+
- examples/v201109/account_management/get_account_changes.rb
|
86
|
+
- examples/v201109/account_management/get_client_unit_usage.rb
|
87
|
+
- examples/v201109/account_management/get_client_customer_id.rb
|
88
|
+
- examples/v201109/account_management/get_account_alerts.rb
|
89
|
+
- examples/v201109/account_management/create_account.rb
|
90
|
+
- examples/v201109/optimization/estimate_keyword_traffic.rb
|
91
|
+
- examples/v201109/optimization/get_keyword_bid_simulations.rb
|
92
|
+
- examples/v201109/optimization/get_keyword_ideas.rb
|
93
|
+
- examples/v201109/optimization/get_placement_ideas.rb
|
94
|
+
- examples/v201109/basic_operations/update_campaign.rb
|
95
|
+
- examples/v201109/basic_operations/get_campaigns.rb
|
96
|
+
- examples/v201109/basic_operations/get_ad_groups.rb
|
97
|
+
- examples/v201109/basic_operations/add_campaign.rb
|
98
|
+
- examples/v201109/basic_operations/add_ad_group.rb
|
99
|
+
- examples/v201109/basic_operations/delete_ad_group.rb
|
100
|
+
- examples/v201109/basic_operations/delete_keyword.rb
|
101
|
+
- examples/v201109/basic_operations/delete_ad.rb
|
102
|
+
- examples/v201109/basic_operations/update_ad_group.rb
|
103
|
+
- examples/v201109/basic_operations/get_keywords.rb
|
104
|
+
- examples/v201109/basic_operations/delete_campaign.rb
|
105
|
+
- examples/v201109/basic_operations/get_text_ads.rb
|
106
|
+
- examples/v201109/basic_operations/add_keywords.rb
|
107
|
+
- examples/v201109/basic_operations/add_text_ads.rb
|
108
|
+
- examples/v201109/basic_operations/pause_ad.rb
|
109
|
+
- examples/v201109/basic_operations/update_keyword.rb
|
110
|
+
- examples/v201109/misc/upload_image.rb
|
111
|
+
- examples/v201109/misc/get_all_images_and_videos.rb
|
112
|
+
- examples/v201109/misc/use_oauth.rb
|
113
|
+
- examples/v201109/remarketing/add_conversion_tracker.rb
|
114
|
+
- examples/v201109/remarketing/add_audience.rb
|
115
|
+
- lib/adwords_api/utils.rb
|
116
|
+
- lib/adwords_api/version.rb
|
117
|
+
- lib/adwords_api/report_utils.rb
|
65
118
|
- lib/adwords_api/credential_handler.rb
|
66
119
|
- lib/adwords_api/api_config.rb
|
67
|
-
- lib/adwords_api/v13_login_handler.rb
|
68
|
-
- lib/adwords_api/report_utils.rb
|
69
|
-
- lib/adwords_api/extensions.rb
|
70
|
-
- lib/adwords_api/v201109/mutate_job_service_registry.rb
|
71
|
-
- lib/adwords_api/v201109/targeting_idea_service.rb
|
72
|
-
- lib/adwords_api/v201109/bulk_mutate_job_service.rb
|
73
|
-
- lib/adwords_api/v201109/data_service.rb
|
74
|
-
- lib/adwords_api/v201109/customer_sync_service.rb
|
75
|
-
- lib/adwords_api/v201109/data_service_registry.rb
|
76
120
|
- lib/adwords_api/v201109/mutate_job_service.rb
|
77
|
-
- lib/adwords_api/v201109/create_account_service.rb
|
78
|
-
- lib/adwords_api/v201109/report_definition_service_registry.rb
|
79
|
-
- lib/adwords_api/v201109/constant_data_service_registry.rb
|
80
|
-
- lib/adwords_api/v201109/campaign_criterion_service_registry.rb
|
81
|
-
- lib/adwords_api/v201109/location_criterion_service.rb
|
82
|
-
- lib/adwords_api/v201109/campaign_target_service_registry.rb
|
83
|
-
- lib/adwords_api/v201109/customer_sync_service_registry.rb
|
84
|
-
- lib/adwords_api/v201109/experiment_service.rb
|
85
|
-
- lib/adwords_api/v201109/media_service.rb
|
86
|
-
- lib/adwords_api/v201109/campaign_criterion_service.rb
|
87
|
-
- lib/adwords_api/v201109/user_list_service.rb
|
88
121
|
- lib/adwords_api/v201109/conversion_tracker_service_registry.rb
|
89
122
|
- lib/adwords_api/v201109/info_service_registry.rb
|
90
|
-
- lib/adwords_api/v201109/traffic_estimator_service_registry.rb
|
91
|
-
- lib/adwords_api/v201109/campaign_ad_extension_service.rb
|
92
|
-
- lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb
|
93
|
-
- lib/adwords_api/v201109/traffic_estimator_service.rb
|
94
|
-
- lib/adwords_api/v201109/bulk_opportunity_service_registry.rb
|
95
|
-
- lib/adwords_api/v201109/ad_extension_override_service.rb
|
96
|
-
- lib/adwords_api/v201109/bulk_opportunity_service.rb
|
97
123
|
- lib/adwords_api/v201109/ad_extension_override_service_registry.rb
|
98
|
-
- lib/adwords_api/v201109/
|
99
|
-
- lib/adwords_api/v201109/
|
100
|
-
- lib/adwords_api/v201109/create_account_service_registry.rb
|
101
|
-
- lib/adwords_api/v201109/ad_group_ad_service.rb
|
102
|
-
- lib/adwords_api/v201109/geo_location_service.rb
|
103
|
-
- lib/adwords_api/v201109/ad_group_criterion_service_registry.rb
|
104
|
-
- lib/adwords_api/v201109/info_service.rb
|
105
|
-
- lib/adwords_api/v201109/targeting_idea_service_registry.rb
|
106
|
-
- lib/adwords_api/v201109/ad_group_service.rb
|
107
|
-
- lib/adwords_api/v201109/geo_location_service_registry.rb
|
124
|
+
- lib/adwords_api/v201109/campaign_target_service.rb
|
125
|
+
- lib/adwords_api/v201109/experiment_service_registry.rb
|
108
126
|
- lib/adwords_api/v201109/alert_service_registry.rb
|
109
|
-
- lib/adwords_api/v201109/
|
110
|
-
- lib/adwords_api/v201109/ad_param_service.rb
|
111
|
-
- lib/adwords_api/v201109/ad_group_service_registry.rb
|
112
|
-
- lib/adwords_api/v201109/media_service_registry.rb
|
127
|
+
- lib/adwords_api/v201109/campaign_criterion_service.rb
|
113
128
|
- lib/adwords_api/v201109/ad_group_ad_service_registry.rb
|
129
|
+
- lib/adwords_api/v201109/customer_sync_service_registry.rb
|
130
|
+
- lib/adwords_api/v201109/experiment_service.rb
|
114
131
|
- lib/adwords_api/v201109/alert_service.rb
|
115
|
-
- lib/adwords_api/v201109/
|
132
|
+
- lib/adwords_api/v201109/customer_sync_service.rb
|
133
|
+
- lib/adwords_api/v201109/serviced_account_service_registry.rb
|
116
134
|
- lib/adwords_api/v201109/location_criterion_service_registry.rb
|
117
|
-
- lib/adwords_api/v201109/
|
118
|
-
- lib/adwords_api/v201109/
|
119
|
-
- lib/adwords_api/v201109/
|
135
|
+
- lib/adwords_api/v201109/targeting_idea_service.rb
|
136
|
+
- lib/adwords_api/v201109/geo_location_service.rb
|
137
|
+
- lib/adwords_api/v201109/ad_group_criterion_service.rb
|
138
|
+
- lib/adwords_api/v201109/campaign_target_service_registry.rb
|
120
139
|
- lib/adwords_api/v201109/user_list_service_registry.rb
|
140
|
+
- lib/adwords_api/v201109/constant_data_service_registry.rb
|
141
|
+
- lib/adwords_api/v201109/ad_group_ad_service.rb
|
142
|
+
- lib/adwords_api/v201109/traffic_estimator_service_registry.rb
|
121
143
|
- lib/adwords_api/v201109/campaign_service.rb
|
122
|
-
- lib/adwords_api/v201109/
|
144
|
+
- lib/adwords_api/v201109/conversion_tracker_service.rb
|
145
|
+
- lib/adwords_api/v201109/media_service_registry.rb
|
146
|
+
- lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb
|
147
|
+
- lib/adwords_api/v201109/campaign_service_registry.rb
|
148
|
+
- lib/adwords_api/v201109/bulk_mutate_job_service.rb
|
149
|
+
- lib/adwords_api/v201109/user_list_service.rb
|
150
|
+
- lib/adwords_api/v201109/location_criterion_service.rb
|
151
|
+
- lib/adwords_api/v201109/ad_group_service.rb
|
152
|
+
- lib/adwords_api/v201109/ad_group_service_registry.rb
|
153
|
+
- lib/adwords_api/v201109/ad_param_service.rb
|
154
|
+
- lib/adwords_api/v201109/traffic_estimator_service.rb
|
155
|
+
- lib/adwords_api/v201109/info_service.rb
|
156
|
+
- lib/adwords_api/v201109/data_service_registry.rb
|
123
157
|
- lib/adwords_api/v201109/serviced_account_service.rb
|
158
|
+
- lib/adwords_api/v201109/create_account_service.rb
|
159
|
+
- lib/adwords_api/v201109/ad_extension_override_service.rb
|
124
160
|
- lib/adwords_api/v201109/report_definition_service.rb
|
125
|
-
- lib/adwords_api/v201109/
|
161
|
+
- lib/adwords_api/v201109/ad_param_service_registry.rb
|
162
|
+
- lib/adwords_api/v201109/mutate_job_service_registry.rb
|
163
|
+
- lib/adwords_api/v201109/constant_data_service.rb
|
164
|
+
- lib/adwords_api/v201109/ad_group_criterion_service_registry.rb
|
165
|
+
- lib/adwords_api/v201109/campaign_ad_extension_service.rb
|
166
|
+
- lib/adwords_api/v201109/campaign_criterion_service_registry.rb
|
167
|
+
- lib/adwords_api/v201109/report_definition_service_registry.rb
|
168
|
+
- lib/adwords_api/v201109/media_service.rb
|
169
|
+
- lib/adwords_api/v201109/geo_location_service_registry.rb
|
170
|
+
- lib/adwords_api/v201109/targeting_idea_service_registry.rb
|
171
|
+
- lib/adwords_api/v201109/create_account_service_registry.rb
|
172
|
+
- lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb
|
173
|
+
- lib/adwords_api/v201109/data_service.rb
|
126
174
|
- lib/adwords_api/errors.rb
|
127
|
-
- lib/adwords_api/
|
175
|
+
- lib/adwords_api/extensions.rb
|
176
|
+
- lib/adwords_api/client_login_header_handler.rb
|
177
|
+
- lib/adwords_api/v13_login_handler.rb
|
128
178
|
- lib/adwords_api.rb
|
129
|
-
- examples/v201109/misc/use_oauth.rb
|
130
|
-
- examples/v201109/misc/upload_image.rb
|
131
|
-
- examples/v201109/misc/get_all_images_and_videos.rb
|
132
|
-
- examples/v201109/account_management/get_account_hierarchy.rb
|
133
|
-
- examples/v201109/account_management/create_account.rb
|
134
|
-
- examples/v201109/account_management/get_account_alerts.rb
|
135
|
-
- examples/v201109/account_management/get_account_changes.rb
|
136
|
-
- examples/v201109/account_management/get_client_unit_usage.rb
|
137
|
-
- examples/v201109/account_management/get_client_customer_id.rb
|
138
|
-
- examples/v201109/targeting/get_campaign_targeting_criteria.rb
|
139
|
-
- examples/v201109/targeting/get_targetable_languages_and_carriers.rb
|
140
|
-
- examples/v201109/targeting/add_campaign_targeting_criteria.rb
|
141
|
-
- examples/v201109/targeting/lookup_location.rb
|
142
|
-
- examples/v201109/error_handling/handle_policy_violation_error.rb
|
143
|
-
- examples/v201109/error_handling/handle_partial_failures.rb
|
144
|
-
- examples/v201109/error_handling/handle_two_factor_authorization_error.rb
|
145
|
-
- examples/v201109/basic_operations/delete_ad.rb
|
146
|
-
- examples/v201109/basic_operations/get_text_ads.rb
|
147
|
-
- examples/v201109/basic_operations/add_ad_group.rb
|
148
|
-
- examples/v201109/basic_operations/delete_ad_group.rb
|
149
|
-
- examples/v201109/basic_operations/get_campaigns.rb
|
150
|
-
- examples/v201109/basic_operations/delete_keyword.rb
|
151
|
-
- examples/v201109/basic_operations/update_ad_group.rb
|
152
|
-
- examples/v201109/basic_operations/get_keywords.rb
|
153
|
-
- examples/v201109/basic_operations/add_text_ads.rb
|
154
|
-
- examples/v201109/basic_operations/get_ad_groups.rb
|
155
|
-
- examples/v201109/basic_operations/add_campaign.rb
|
156
|
-
- examples/v201109/basic_operations/pause_ad.rb
|
157
|
-
- examples/v201109/basic_operations/delete_campaign.rb
|
158
|
-
- examples/v201109/basic_operations/update_keyword.rb
|
159
|
-
- examples/v201109/basic_operations/add_keywords.rb
|
160
|
-
- examples/v201109/basic_operations/update_campaign.rb
|
161
|
-
- examples/v201109/optimization/get_keyword_opportunities.rb
|
162
|
-
- examples/v201109/optimization/estimate_keyword_traffic.rb
|
163
|
-
- examples/v201109/optimization/get_keyword_ideas.rb
|
164
|
-
- examples/v201109/optimization/get_placement_ideas.rb
|
165
|
-
- examples/v201109/optimization/get_keyword_bid_simulations.rb
|
166
|
-
- examples/v201109/reporting/download_defined_report.rb
|
167
|
-
- examples/v201109/reporting/download_criteria_report.rb
|
168
|
-
- examples/v201109/reporting/parallel_report_download.rb
|
169
|
-
- examples/v201109/reporting/get_defined_reports.rb
|
170
|
-
- examples/v201109/reporting/get_report_fields.rb
|
171
|
-
- examples/v201109/campaign_management/add_experiment.rb
|
172
|
-
- examples/v201109/campaign_management/get_all_disapproved_ads.rb
|
173
|
-
- examples/v201109/campaign_management/add_location_extension_override.rb
|
174
|
-
- examples/v201109/campaign_management/add_keywords_in_bulk.rb
|
175
|
-
- examples/v201109/campaign_management/set_ad_parameters.rb
|
176
|
-
- examples/v201109/campaign_management/validate_text_ad.rb
|
177
|
-
- examples/v201109/campaign_management/promote_experiment.rb
|
178
|
-
- examples/v201109/campaign_management/add_location_extension.rb
|
179
|
-
- examples/v201109/remarketing/add_conversion_tracker.rb
|
180
|
-
- examples/v201109/remarketing/add_audience.rb
|
181
|
-
- Rakefile
|
182
179
|
- test/bugs/test_issue_00000031.rb
|
183
|
-
- test/
|
180
|
+
- test/suite_unittests.rb
|
184
181
|
- test/adwords_api/test_report_utils.rb
|
182
|
+
- test/adwords_api/test_api_config.rb
|
185
183
|
- test/adwords_api/test_utils.rb
|
186
|
-
- README
|
187
184
|
- COPYING
|
185
|
+
- README
|
188
186
|
- ChangeLog
|
187
|
+
- adwords_api.yml
|
189
188
|
has_rdoc: true
|
190
189
|
homepage: http://code.google.com/p/google-api-ads-ruby/
|
191
190
|
licenses: []
|
@@ -209,19 +208,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
208
|
requirements:
|
210
209
|
- - ">="
|
211
210
|
- !ruby/object:Gem::Version
|
212
|
-
hash:
|
211
|
+
hash: 23
|
213
212
|
segments:
|
214
|
-
-
|
215
|
-
|
213
|
+
- 1
|
214
|
+
- 3
|
215
|
+
- 6
|
216
|
+
version: 1.3.6
|
216
217
|
requirements: []
|
217
218
|
|
218
|
-
rubyforge_project:
|
219
|
+
rubyforge_project: google-adwords-api
|
219
220
|
rubygems_version: 1.3.7
|
220
221
|
signing_key:
|
221
222
|
specification_version: 3
|
222
223
|
summary: Ruby Client libraries for AdWords API
|
223
224
|
test_files:
|
224
|
-
- test/
|
225
|
-
- test/adwords_api/test_api_config.rb
|
226
|
-
- test/adwords_api/test_report_utils.rb
|
227
|
-
- test/adwords_api/test_utils.rb
|
225
|
+
- test/suite_unittests.rb
|
data/Rakefile
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# Authors:: api.dklimkin@gmail.com (Danial Klimkin)
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2012, 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
|
-
# AdWords API Rakefile.
|
21
|
-
|
22
|
-
require 'rubygems'
|
23
|
-
require 'rubygems/package_task'
|
24
|
-
require 'rake/testtask'
|
25
|
-
require './lib/adwords_api/api_config'
|
26
|
-
require './lib/adwords_api/extensions'
|
27
|
-
|
28
|
-
# Workaround for the current mess of different yamlers in Ruby world.
|
29
|
-
if RUBY_VERSION >= '1.9.2' and RUBY_ENGINE == 'ruby'
|
30
|
-
gem 'psych'
|
31
|
-
YAML::ENGINE.yamler = 'psych'
|
32
|
-
end
|
33
|
-
|
34
|
-
# Google common ads library used for wrapper code generation.
|
35
|
-
gem 'google-ads-common'
|
36
|
-
require 'ads_common/build/savon_generator'
|
37
|
-
|
38
|
-
files = FileList['{lib,examples}/**/*', 'Rakefile'].to_a
|
39
|
-
tests = FileList['test/**/test*.rb']
|
40
|
-
docs = ['README', 'COPYING', 'ChangeLog']
|
41
|
-
extra_files = ['adwords_api.yml']
|
42
|
-
|
43
|
-
spec = Gem::Specification.new do |s|
|
44
|
-
s.name = 'google-adwords-api'
|
45
|
-
s.version = AdwordsApi::ApiConfig::CLIENT_LIB_VERSION
|
46
|
-
s.author = 'Danial Klimkin'
|
47
|
-
s.email = 'api.dklimkin@gmail.com'
|
48
|
-
s.homepage = 'http://code.google.com/p/google-api-ads-ruby/'
|
49
|
-
s.platform = Gem::Platform::RUBY
|
50
|
-
s.summary = 'Ruby Client libraries for AdWords API'
|
51
|
-
s.description = "%s is a AdWords API client library for Ruby" % s.name
|
52
|
-
s.files = files
|
53
|
-
s.require_path = 'lib'
|
54
|
-
s.test_files = tests
|
55
|
-
s.has_rdoc = true
|
56
|
-
s.extra_rdoc_files = docs
|
57
|
-
s.add_dependency('google-ads-common', '~> 0.6.1')
|
58
|
-
s.add_dependency('savon', '= 0.9.7')
|
59
|
-
end
|
60
|
-
|
61
|
-
package_task = Gem::PackageTask.new(spec) do |pkg|
|
62
|
-
pkg.need_tar = true
|
63
|
-
pkg.package_files.include(extra_files)
|
64
|
-
end
|
65
|
-
|
66
|
-
Rake::TestTask.new do |t|
|
67
|
-
t.test_files = tests
|
68
|
-
end
|
69
|
-
|
70
|
-
desc 'Default target - build'
|
71
|
-
task :default => [:generate, :package]
|
72
|
-
|
73
|
-
desc 'Generate API stubs only'
|
74
|
-
task :generate do
|
75
|
-
logger = Logger.new(STDOUT)
|
76
|
-
logger.level = Logger::INFO
|
77
|
-
api_config = AdwordsApi::ApiConfig
|
78
|
-
versions = api_config.versions()
|
79
|
-
versions.each do |version|
|
80
|
-
code_path = "lib/%s/%s" % [api_config.api_name.to_s.snakecase, version]
|
81
|
-
wsdls = AdwordsApi::ApiConfig.get_wsdls(version)
|
82
|
-
wsdls.each do |service_name, wsdl_url|
|
83
|
-
logger.info("Processing %s at [%s]..." % [service_name, wsdl_url])
|
84
|
-
extensions = AdwordsApi::Extensions.extensions()[[version,
|
85
|
-
service_name.to_sym]] || []
|
86
|
-
generator = AdsCommon::Build::SavonGenerator.new(wsdl_url, code_path,
|
87
|
-
api_config.api_name, version, service_name, extensions)
|
88
|
-
generator.process_wsdl()
|
89
|
-
end
|
90
|
-
package_task.package_files.include(FileList[code_path + '/*'].to_a)
|
91
|
-
end
|
92
|
-
end
|