google-adwords-api 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/adwords_api.yml +3 -2
- data/lib/adwords_api/api_config.rb +0 -92
- data/lib/adwords_api/report_stream.rb +5 -4
- data/lib/adwords_api/report_utils.rb +11 -1
- data/lib/adwords_api/version.rb +1 -1
- metadata +4 -92
- data/lib/adwords_api/v201605/account_label_service.rb +0 -46
- data/lib/adwords_api/v201605/account_label_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_customizer_feed_service.rb +0 -46
- data/lib/adwords_api/v201605/ad_customizer_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_ad_service.rb +0 -70
- data/lib/adwords_api/v201605/ad_group_ad_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_bid_modifier_service.rb +0 -54
- data/lib/adwords_api/v201605/ad_group_bid_modifier_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_criterion_service.rb +0 -62
- data/lib/adwords_api/v201605/ad_group_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_extension_setting_service.rb +0 -54
- data/lib/adwords_api/v201605/ad_group_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_feed_service.rb +0 -54
- data/lib/adwords_api/v201605/ad_group_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_group_service.rb +0 -62
- data/lib/adwords_api/v201605/ad_group_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/ad_param_service.rb +0 -46
- data/lib/adwords_api/v201605/ad_param_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/adwords_user_list_service.rb +0 -62
- data/lib/adwords_api/v201605/adwords_user_list_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/batch_job_service.rb +0 -54
- data/lib/adwords_api/v201605/batch_job_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/bidding_strategy_service.rb +0 -54
- data/lib/adwords_api/v201605/bidding_strategy_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/budget_order_service.rb +0 -54
- data/lib/adwords_api/v201605/budget_order_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/budget_service.rb +0 -54
- data/lib/adwords_api/v201605/budget_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/campaign_criterion_service.rb +0 -54
- data/lib/adwords_api/v201605/campaign_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/campaign_extension_setting_service.rb +0 -54
- data/lib/adwords_api/v201605/campaign_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/campaign_feed_service.rb +0 -54
- data/lib/adwords_api/v201605/campaign_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/campaign_service.rb +0 -62
- data/lib/adwords_api/v201605/campaign_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/campaign_shared_set_service.rb +0 -54
- data/lib/adwords_api/v201605/campaign_shared_set_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/constant_data_service.rb +0 -110
- data/lib/adwords_api/v201605/constant_data_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/conversion_tracker_service.rb +0 -54
- data/lib/adwords_api/v201605/conversion_tracker_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/customer_extension_setting_service.rb +0 -54
- data/lib/adwords_api/v201605/customer_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/customer_feed_service.rb +0 -54
- data/lib/adwords_api/v201605/customer_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/customer_service.rb +0 -54
- data/lib/adwords_api/v201605/customer_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/customer_sync_service.rb +0 -38
- data/lib/adwords_api/v201605/customer_sync_service_registry.rb +0 -47
- data/lib/adwords_api/v201605/data_service.rb +0 -94
- data/lib/adwords_api/v201605/data_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/draft_async_error_service.rb +0 -46
- data/lib/adwords_api/v201605/draft_async_error_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/draft_service.rb +0 -54
- data/lib/adwords_api/v201605/draft_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/experiment_service.rb +0 -46
- data/lib/adwords_api/v201605/experiment_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/feed_item_service.rb +0 -54
- data/lib/adwords_api/v201605/feed_item_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/feed_mapping_service.rb +0 -54
- data/lib/adwords_api/v201605/feed_mapping_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/feed_service.rb +0 -54
- data/lib/adwords_api/v201605/feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/label_service.rb +0 -54
- data/lib/adwords_api/v201605/label_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/location_criterion_service.rb +0 -46
- data/lib/adwords_api/v201605/location_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/managed_customer_service.rb +0 -78
- data/lib/adwords_api/v201605/managed_customer_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/media_service.rb +0 -54
- data/lib/adwords_api/v201605/media_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/offline_conversion_feed_service.rb +0 -38
- data/lib/adwords_api/v201605/offline_conversion_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/report_definition_service.rb +0 -38
- data/lib/adwords_api/v201605/report_definition_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/shared_criterion_service.rb +0 -54
- data/lib/adwords_api/v201605/shared_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/shared_set_service.rb +0 -54
- data/lib/adwords_api/v201605/shared_set_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/targeting_idea_service.rb +0 -38
- data/lib/adwords_api/v201605/targeting_idea_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/traffic_estimator_service.rb +0 -38
- data/lib/adwords_api/v201605/traffic_estimator_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/trial_async_error_service.rb +0 -46
- data/lib/adwords_api/v201605/trial_async_error_service_registry.rb +0 -46
- data/lib/adwords_api/v201605/trial_service.rb +0 -54
- data/lib/adwords_api/v201605/trial_service_registry.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc30abb06bcd66357045f4dd9e40f1a9c2c6082
|
4
|
+
data.tar.gz: 6c5b55f1f789d164da386f15620159f2e80155e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c946de816cf77e355c725a2a20a5a8d29db5092c78f8c7bf35eca8cd8ee7993f1eced5b5d80b077c6761dd8b6343ebacc1fca06283b3ded8895ff7ae9e13e103
|
7
|
+
data.tar.gz: e50991e3eb1821ceb97ac26be9021023f63609a0cdb4648135a0283890f21e6920dc729efc962abb0c057d09458ab1708b6fc8e4f3de451822656ff6b9e22392
|
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
0.24.0:
|
2
|
+
- Removed deprecated API version v201605.
|
3
|
+
- Require google-ads-common 0.13.0 or later from now on. This removes
|
4
|
+
support for p12 key files for service accounts.
|
5
|
+
- Fixing issue with report_stream handling of streams ending in newline.
|
6
|
+
- Fixed issue #107. Improved error messaging when trying to specify
|
7
|
+
unrecognized fields in report definition.
|
8
|
+
|
1
9
|
0.23.1:
|
2
10
|
- Support and examples for v201702.
|
3
11
|
|
data/adwords_api.yml
CHANGED
@@ -23,11 +23,12 @@
|
|
23
23
|
|
24
24
|
# Auth parameters for OAUTH2_SERVICE_ACCOUNT method. See:
|
25
25
|
# https://developers.google.com/accounts/docs/OAuth2ServiceAccount
|
26
|
-
#:oauth2_issuer: INSERT_OAUTH2_ISSUER_HERE
|
27
|
-
#:oauth2_secret: INSERT_OAUTH2_SECRET_HERE
|
28
26
|
# You can provide path to a file with 'oauth2_keyfile' or the key itself with
|
29
27
|
# 'oauth2_key' option.
|
30
28
|
#:oauth2_keyfile: INSERT_OAUTH2_KEYFILE_HERE
|
29
|
+
# Specify the issuer only if you are using a key directly with no key file.
|
30
|
+
#:oauth2_key: INSERT_OAUTH2_KEY_HERE
|
31
|
+
#:oauth2_issuer: INSERT_OAUTH2_ISSUER_HERE
|
31
32
|
# To impersonate a user set prn to an email address.
|
32
33
|
#:oauth2_prn: INSERT_OAUTH2_PRN_HERE
|
33
34
|
|
@@ -43,52 +43,6 @@ module AdwordsApi
|
|
43
43
|
|
44
44
|
# Configure the services available to each version
|
45
45
|
@@service_config = {
|
46
|
-
:v201605 => [
|
47
|
-
:AccountLabelService,
|
48
|
-
:AdCustomizerFeedService,
|
49
|
-
:AdGroupAdService,
|
50
|
-
:AdGroupBidModifierService,
|
51
|
-
:AdGroupCriterionService,
|
52
|
-
:AdGroupExtensionSettingService,
|
53
|
-
:AdGroupFeedService,
|
54
|
-
:AdGroupService,
|
55
|
-
:AdParamService,
|
56
|
-
:AdwordsUserListService,
|
57
|
-
:BatchJobService,
|
58
|
-
:BiddingStrategyService,
|
59
|
-
:BudgetOrderService,
|
60
|
-
:BudgetService,
|
61
|
-
:CampaignCriterionService,
|
62
|
-
:CampaignExtensionSettingService,
|
63
|
-
:CampaignFeedService,
|
64
|
-
:CampaignService,
|
65
|
-
:CampaignSharedSetService,
|
66
|
-
:ConstantDataService,
|
67
|
-
:ConversionTrackerService,
|
68
|
-
:CustomerExtensionSettingService,
|
69
|
-
:CustomerFeedService,
|
70
|
-
:CustomerService,
|
71
|
-
:CustomerSyncService,
|
72
|
-
:DataService,
|
73
|
-
:DraftService,
|
74
|
-
:DraftAsyncErrorService,
|
75
|
-
:ExperimentService,
|
76
|
-
:FeedItemService,
|
77
|
-
:FeedMappingService,
|
78
|
-
:FeedService,
|
79
|
-
:LabelService,
|
80
|
-
:LocationCriterionService,
|
81
|
-
:ManagedCustomerService,
|
82
|
-
:MediaService,
|
83
|
-
:OfflineConversionFeedService,
|
84
|
-
:ReportDefinitionService,
|
85
|
-
:SharedCriterionService,
|
86
|
-
:SharedSetService,
|
87
|
-
:TargetingIdeaService,
|
88
|
-
:TrafficEstimatorService,
|
89
|
-
:TrialService,
|
90
|
-
:TrialAsyncErrorService
|
91
|
-
],
|
92
46
|
:v201607 => [
|
93
47
|
:AccountLabelService,
|
94
48
|
:AdCustomizerFeedService,
|
@@ -234,7 +188,6 @@ module AdwordsApi
|
|
234
188
|
:PRODUCTION => {
|
235
189
|
:oauth_scope => 'https://www.googleapis.com/auth/adwords',
|
236
190
|
:header_ns => 'https://adwords.google.com/api/adwords/cm/',
|
237
|
-
:v201605 => 'https://adwords.google.com/api/adwords/',
|
238
191
|
:v201607 => 'https://adwords.google.com/api/adwords/',
|
239
192
|
:v201609 => 'https://adwords.google.com/api/adwords/',
|
240
193
|
:v201702 => 'https://adwords.google.com/api/adwords/'
|
@@ -244,51 +197,6 @@ module AdwordsApi
|
|
244
197
|
# Configure the subdirectories for each version / service pair.
|
245
198
|
# A missing pair means that only the base URL is used.
|
246
199
|
@@subdir_config = {
|
247
|
-
# v201605
|
248
|
-
[:v201605, :AccountLabelService] => 'mcm/',
|
249
|
-
[:v201605, :AdCustomizerFeedService] => 'cm/',
|
250
|
-
[:v201605, :AdGroupAdService] => 'cm/',
|
251
|
-
[:v201605, :AdGroupBidModifierService] => 'cm/',
|
252
|
-
[:v201605, :AdGroupCriterionService] => 'cm/',
|
253
|
-
[:v201605, :AdGroupExtensionSettingService] => 'cm/',
|
254
|
-
[:v201605, :AdGroupFeedService] => 'cm/',
|
255
|
-
[:v201605, :AdGroupService] => 'cm/',
|
256
|
-
[:v201605, :AdParamService] => 'cm/',
|
257
|
-
[:v201605, :BatchJobService] => 'cm/',
|
258
|
-
[:v201605, :BudgetOrderService] => 'billing/',
|
259
|
-
[:v201605, :CampaignCriterionService] => 'cm/',
|
260
|
-
[:v201605, :CampaignExtensionSettingService] => 'cm/',
|
261
|
-
[:v201605, :CampaignFeedService] => 'cm/',
|
262
|
-
[:v201605, :CampaignService] => 'cm/',
|
263
|
-
[:v201605, :CampaignSharedSetService] => 'cm/',
|
264
|
-
[:v201605, :ConstantDataService] => 'cm/',
|
265
|
-
[:v201605, :ConversionTrackerService] => 'cm/',
|
266
|
-
[:v201605, :CustomerExtensionSettingService] => 'cm/',
|
267
|
-
[:v201605, :CustomerSyncService] => 'ch/',
|
268
|
-
[:v201605, :DataService] => 'cm/',
|
269
|
-
[:v201605, :ExperimentService] => 'cm/',
|
270
|
-
[:v201605, :FeedItemService] => 'cm/',
|
271
|
-
[:v201605, :FeedMappingService] => 'cm/',
|
272
|
-
[:v201605, :FeedService] => 'cm/',
|
273
|
-
[:v201605, :LocationCriterionService] => 'cm/',
|
274
|
-
[:v201605, :MediaService] => 'cm/',
|
275
|
-
[:v201605, :OfflineConversionFeedService] => 'cm/',
|
276
|
-
[:v201605, :ReportDefinitionService] => 'cm/',
|
277
|
-
[:v201605, :SharedCriterionService] => 'cm/',
|
278
|
-
[:v201605, :SharedSetService] => 'cm/',
|
279
|
-
[:v201605, :TargetingIdeaService] => 'o/',
|
280
|
-
[:v201605, :TrafficEstimatorService] => 'o/',
|
281
|
-
[:v201605, :ManagedCustomerService] => 'mcm/',
|
282
|
-
[:v201605, :CustomerService] => 'mcm/',
|
283
|
-
[:v201605, :CustomerFeedService] => 'cm/',
|
284
|
-
[:v201605, :BudgetService] => 'cm/',
|
285
|
-
[:v201605, :BiddingStrategyService] => 'cm/',
|
286
|
-
[:v201605, :AdwordsUserListService] => 'rm/',
|
287
|
-
[:v201605, :LabelService] => 'cm/',
|
288
|
-
[:v201605, :DraftService] => 'cm/',
|
289
|
-
[:v201605, :DraftAsyncErrorService] => 'cm/',
|
290
|
-
[:v201605, :TrialService] => 'cm/',
|
291
|
-
[:v201605, :TrialAsyncErrorService] => 'cm/',
|
292
200
|
# v201607
|
293
201
|
[:v201607, :AccountLabelService] => 'mcm/',
|
294
202
|
[:v201607, :AdCustomizerFeedService] => 'cm/',
|
@@ -51,13 +51,14 @@ module AdwordsApi
|
|
51
51
|
leftover_data = ''
|
52
52
|
@report_utils.send(method, *args) do |batch|
|
53
53
|
data_to_process = leftover_data + batch
|
54
|
-
lines = data_to_process.
|
55
|
-
leftover_data = lines.pop
|
54
|
+
lines = data_to_process.each_line.map {|line| line}
|
55
|
+
leftover_data = lines.pop
|
56
56
|
lines.each do |line|
|
57
|
-
yield line
|
57
|
+
yield line.chomp
|
58
58
|
end
|
59
59
|
end
|
60
|
-
yield leftover_data unless
|
60
|
+
yield leftover_data.chomp unless
|
61
|
+
leftover_data.nil? || leftover_data.empty?
|
61
62
|
end
|
62
63
|
end
|
63
64
|
end
|
@@ -308,7 +308,17 @@ module AdwordsApi
|
|
308
308
|
def report_definition_to_xml(report_definition)
|
309
309
|
check_report_definition_hash(report_definition)
|
310
310
|
add_report_definition_hash_order(report_definition)
|
311
|
-
|
311
|
+
begin
|
312
|
+
return Gyoku.xml({:report_definition => report_definition})
|
313
|
+
rescue ArgumentError => e
|
314
|
+
if e.message.include?("order!")
|
315
|
+
unknown_fields =
|
316
|
+
e.message.slice(e.message.index('['), e.message.length)
|
317
|
+
raise AdwordsApi::Errors::InvalidReportDefinitionError,
|
318
|
+
"Unknown report definition field(s): %s" % unknown_fields
|
319
|
+
end
|
320
|
+
raise e
|
321
|
+
end
|
312
322
|
end
|
313
323
|
|
314
324
|
# Checks if the report definition looks correct.
|
data/lib/adwords_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-adwords-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danial Klimkin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-ads-common
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.13.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.13.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: nori
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,94 +89,6 @@ files:
|
|
89
89
|
- lib/adwords_api/report_utils.rb
|
90
90
|
- lib/adwords_api/utils.rb
|
91
91
|
- lib/adwords_api/utils_reporter.rb
|
92
|
-
- lib/adwords_api/v201605/account_label_service.rb
|
93
|
-
- lib/adwords_api/v201605/account_label_service_registry.rb
|
94
|
-
- lib/adwords_api/v201605/ad_customizer_feed_service.rb
|
95
|
-
- lib/adwords_api/v201605/ad_customizer_feed_service_registry.rb
|
96
|
-
- lib/adwords_api/v201605/ad_group_ad_service.rb
|
97
|
-
- lib/adwords_api/v201605/ad_group_ad_service_registry.rb
|
98
|
-
- lib/adwords_api/v201605/ad_group_bid_modifier_service.rb
|
99
|
-
- lib/adwords_api/v201605/ad_group_bid_modifier_service_registry.rb
|
100
|
-
- lib/adwords_api/v201605/ad_group_criterion_service.rb
|
101
|
-
- lib/adwords_api/v201605/ad_group_criterion_service_registry.rb
|
102
|
-
- lib/adwords_api/v201605/ad_group_extension_setting_service.rb
|
103
|
-
- lib/adwords_api/v201605/ad_group_extension_setting_service_registry.rb
|
104
|
-
- lib/adwords_api/v201605/ad_group_feed_service.rb
|
105
|
-
- lib/adwords_api/v201605/ad_group_feed_service_registry.rb
|
106
|
-
- lib/adwords_api/v201605/ad_group_service.rb
|
107
|
-
- lib/adwords_api/v201605/ad_group_service_registry.rb
|
108
|
-
- lib/adwords_api/v201605/ad_param_service.rb
|
109
|
-
- lib/adwords_api/v201605/ad_param_service_registry.rb
|
110
|
-
- lib/adwords_api/v201605/adwords_user_list_service.rb
|
111
|
-
- lib/adwords_api/v201605/adwords_user_list_service_registry.rb
|
112
|
-
- lib/adwords_api/v201605/batch_job_service.rb
|
113
|
-
- lib/adwords_api/v201605/batch_job_service_registry.rb
|
114
|
-
- lib/adwords_api/v201605/bidding_strategy_service.rb
|
115
|
-
- lib/adwords_api/v201605/bidding_strategy_service_registry.rb
|
116
|
-
- lib/adwords_api/v201605/budget_order_service.rb
|
117
|
-
- lib/adwords_api/v201605/budget_order_service_registry.rb
|
118
|
-
- lib/adwords_api/v201605/budget_service.rb
|
119
|
-
- lib/adwords_api/v201605/budget_service_registry.rb
|
120
|
-
- lib/adwords_api/v201605/campaign_criterion_service.rb
|
121
|
-
- lib/adwords_api/v201605/campaign_criterion_service_registry.rb
|
122
|
-
- lib/adwords_api/v201605/campaign_extension_setting_service.rb
|
123
|
-
- lib/adwords_api/v201605/campaign_extension_setting_service_registry.rb
|
124
|
-
- lib/adwords_api/v201605/campaign_feed_service.rb
|
125
|
-
- lib/adwords_api/v201605/campaign_feed_service_registry.rb
|
126
|
-
- lib/adwords_api/v201605/campaign_service.rb
|
127
|
-
- lib/adwords_api/v201605/campaign_service_registry.rb
|
128
|
-
- lib/adwords_api/v201605/campaign_shared_set_service.rb
|
129
|
-
- lib/adwords_api/v201605/campaign_shared_set_service_registry.rb
|
130
|
-
- lib/adwords_api/v201605/constant_data_service.rb
|
131
|
-
- lib/adwords_api/v201605/constant_data_service_registry.rb
|
132
|
-
- lib/adwords_api/v201605/conversion_tracker_service.rb
|
133
|
-
- lib/adwords_api/v201605/conversion_tracker_service_registry.rb
|
134
|
-
- lib/adwords_api/v201605/customer_extension_setting_service.rb
|
135
|
-
- lib/adwords_api/v201605/customer_extension_setting_service_registry.rb
|
136
|
-
- lib/adwords_api/v201605/customer_feed_service.rb
|
137
|
-
- lib/adwords_api/v201605/customer_feed_service_registry.rb
|
138
|
-
- lib/adwords_api/v201605/customer_service.rb
|
139
|
-
- lib/adwords_api/v201605/customer_service_registry.rb
|
140
|
-
- lib/adwords_api/v201605/customer_sync_service.rb
|
141
|
-
- lib/adwords_api/v201605/customer_sync_service_registry.rb
|
142
|
-
- lib/adwords_api/v201605/data_service.rb
|
143
|
-
- lib/adwords_api/v201605/data_service_registry.rb
|
144
|
-
- lib/adwords_api/v201605/draft_async_error_service.rb
|
145
|
-
- lib/adwords_api/v201605/draft_async_error_service_registry.rb
|
146
|
-
- lib/adwords_api/v201605/draft_service.rb
|
147
|
-
- lib/adwords_api/v201605/draft_service_registry.rb
|
148
|
-
- lib/adwords_api/v201605/experiment_service.rb
|
149
|
-
- lib/adwords_api/v201605/experiment_service_registry.rb
|
150
|
-
- lib/adwords_api/v201605/feed_item_service.rb
|
151
|
-
- lib/adwords_api/v201605/feed_item_service_registry.rb
|
152
|
-
- lib/adwords_api/v201605/feed_mapping_service.rb
|
153
|
-
- lib/adwords_api/v201605/feed_mapping_service_registry.rb
|
154
|
-
- lib/adwords_api/v201605/feed_service.rb
|
155
|
-
- lib/adwords_api/v201605/feed_service_registry.rb
|
156
|
-
- lib/adwords_api/v201605/label_service.rb
|
157
|
-
- lib/adwords_api/v201605/label_service_registry.rb
|
158
|
-
- lib/adwords_api/v201605/location_criterion_service.rb
|
159
|
-
- lib/adwords_api/v201605/location_criterion_service_registry.rb
|
160
|
-
- lib/adwords_api/v201605/managed_customer_service.rb
|
161
|
-
- lib/adwords_api/v201605/managed_customer_service_registry.rb
|
162
|
-
- lib/adwords_api/v201605/media_service.rb
|
163
|
-
- lib/adwords_api/v201605/media_service_registry.rb
|
164
|
-
- lib/adwords_api/v201605/offline_conversion_feed_service.rb
|
165
|
-
- lib/adwords_api/v201605/offline_conversion_feed_service_registry.rb
|
166
|
-
- lib/adwords_api/v201605/report_definition_service.rb
|
167
|
-
- lib/adwords_api/v201605/report_definition_service_registry.rb
|
168
|
-
- lib/adwords_api/v201605/shared_criterion_service.rb
|
169
|
-
- lib/adwords_api/v201605/shared_criterion_service_registry.rb
|
170
|
-
- lib/adwords_api/v201605/shared_set_service.rb
|
171
|
-
- lib/adwords_api/v201605/shared_set_service_registry.rb
|
172
|
-
- lib/adwords_api/v201605/targeting_idea_service.rb
|
173
|
-
- lib/adwords_api/v201605/targeting_idea_service_registry.rb
|
174
|
-
- lib/adwords_api/v201605/traffic_estimator_service.rb
|
175
|
-
- lib/adwords_api/v201605/traffic_estimator_service_registry.rb
|
176
|
-
- lib/adwords_api/v201605/trial_async_error_service.rb
|
177
|
-
- lib/adwords_api/v201605/trial_async_error_service_registry.rb
|
178
|
-
- lib/adwords_api/v201605/trial_service.rb
|
179
|
-
- lib/adwords_api/v201605/trial_service_registry.rb
|
180
92
|
- lib/adwords_api/v201607/account_label_service.rb
|
181
93
|
- lib/adwords_api/v201607/account_label_service_registry.rb
|
182
94
|
- lib/adwords_api/v201607/ad_customizer_feed_service.rb
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.12.3 on 2016-05-30 12:50:56.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'adwords_api/v201605/account_label_service_registry'
|
12
|
-
|
13
|
-
module AdwordsApi; module V201605; module AccountLabelService
|
14
|
-
class AccountLabelService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://adwords.google.com/api/adwords/mcm/v201605'
|
17
|
-
super(config, endpoint, namespace, :v201605)
|
18
|
-
end
|
19
|
-
|
20
|
-
def get(*args, &block)
|
21
|
-
return execute_action('get', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def get_to_xml(*args)
|
25
|
-
return get_soap_xml('get', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def mutate(*args, &block)
|
29
|
-
return execute_action('mutate', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def mutate_to_xml(*args)
|
33
|
-
return get_soap_xml('mutate', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def get_service_registry()
|
39
|
-
return AccountLabelServiceRegistry
|
40
|
-
end
|
41
|
-
|
42
|
-
def get_module()
|
43
|
-
return AdwordsApi::V201605::AccountLabelService
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.12.3 on 2016-05-30 12:50:56.
|
9
|
-
|
10
|
-
require 'adwords_api/errors'
|
11
|
-
|
12
|
-
module AdwordsApi; module V201605; module AccountLabelService
|
13
|
-
class AccountLabelServiceRegistry
|
14
|
-
ACCOUNTLABELSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AccountLabelPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"AccountLabelOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"AccountLabelReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
15
|
-
ACCOUNTLABELSERVICE_TYPES = {:AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :AuthorizationError=>{:fields=>[{:name=>:reason, :type=>"AuthorizationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ClientTermsError=>{:fields=>[{:name=>:reason, :type=>"ClientTermsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DateRange=>{:fields=>[{:name=>:min, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :IdError=>{:fields=>[{:name=>:reason, :type=>"IdError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :NotEmptyError=>{:fields=>[{:name=>:reason, :type=>"NotEmptyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :OperatorError=>{:fields=>[{:name=>:reason, :type=>"OperatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :OrderBy=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:sort_order, :type=>"SortOrder", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :ns=>0}, :QuotaCheckError=>{:fields=>[{:name=>:reason, :type=>"QuotaCheckError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RateExceededError=>{:fields=>[{:name=>:reason, :type=>"RateExceededError.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_scope, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:retry_after_seconds, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ReadOnlyError=>{:fields=>[{:name=>:reason, :type=>"ReadOnlyError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RegionCodeError=>{:fields=>[{:name=>:reason, :type=>"RegionCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RejectedError=>{:fields=>[{:name=>:reason, :type=>"RejectedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RequestError=>{:fields=>[{:name=>:reason, :type=>"RequestError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SelectorError=>{:fields=>[{:name=>:reason, :type=>"SelectorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SizeLimitError=>{:fields=>[{:name=>:reason, :type=>"SizeLimitError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SoapHeader=>{:fields=>[{:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :StringFormatError=>{:fields=>[{:name=>:reason, :type=>"StringFormatError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:api_error_type, :original_name=>"ApiError.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException", :ns=>0}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_exception_type, :original_name=>"ApplicationException.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:ordering, :type=>"OrderBy", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :original_name=>"Operation.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :"AuthenticationError.Reason"=>{:fields=>[], :ns=>0}, :"AuthorizationError.Reason"=>{:fields=>[], :ns=>0}, :"ClientTermsError.Reason"=>{:fields=>[], :ns=>0}, :"DatabaseError.Reason"=>{:fields=>[], :ns=>0}, :"DateError.Reason"=>{:fields=>[], :ns=>0}, :"DistinctError.Reason"=>{:fields=>[], :ns=>0}, :"IdError.Reason"=>{:fields=>[], :ns=>0}, :"InternalApiError.Reason"=>{:fields=>[], :ns=>0}, :"NotEmptyError.Reason"=>{:fields=>[], :ns=>0}, :"NullError.Reason"=>{:fields=>[], :ns=>0}, :"OperationAccessDenied.Reason"=>{:fields=>[], :ns=>0}, :Operator=>{:fields=>[], :ns=>0}, :"OperatorError.Reason"=>{:fields=>[], :ns=>0}, :"Predicate.Operator"=>{:fields=>[], :ns=>0}, :"QuotaCheckError.Reason"=>{:fields=>[], :ns=>0}, :"RangeError.Reason"=>{:fields=>[], :ns=>0}, :"RateExceededError.Reason"=>{:fields=>[], :ns=>0}, :"ReadOnlyError.Reason"=>{:fields=>[], :ns=>0}, :"RegionCodeError.Reason"=>{:fields=>[], :ns=>0}, :"RejectedError.Reason"=>{:fields=>[], :ns=>0}, :"RequestError.Reason"=>{:fields=>[], :ns=>0}, :"RequiredError.Reason"=>{:fields=>[], :ns=>0}, :"SelectorError.Reason"=>{:fields=>[], :ns=>0}, :"SizeLimitError.Reason"=>{:fields=>[], :ns=>0}, :SortOrder=>{:fields=>[], :ns=>0}, :"StringFormatError.Reason"=>{:fields=>[], :ns=>0}, :"StringLengthError.Reason"=>{:fields=>[], :ns=>0}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :LabelServiceError=>{:fields=>[{:name=>:reason, :type=>"LabelServiceError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AccountLabel=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AccountLabelOperation=>{:fields=>[{:name=>:operand, :type=>"AccountLabel", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :AccountLabelPage=>{:fields=>[{:name=>:labels, :type=>"AccountLabel", :min_occurs=>0, :max_occurs=>:unbounded}]}, :AccountLabelReturnValue=>{:fields=>[{:name=>:labels, :type=>"AccountLabel", :min_occurs=>0, :max_occurs=>:unbounded}]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CurrencyCodeError.Reason"=>{:fields=>[]}, :"LabelServiceError.Reason"=>{:fields=>[]}}
|
16
|
-
ACCOUNTLABELSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201605"]
|
17
|
-
|
18
|
-
def self.get_method_signature(method_name)
|
19
|
-
return ACCOUNTLABELSERVICE_METHODS[method_name.to_sym]
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.get_type_signature(type_name)
|
23
|
-
return ACCOUNTLABELSERVICE_TYPES[type_name.to_sym]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_namespace(index)
|
27
|
-
return ACCOUNTLABELSERVICE_NAMESPACES[index]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Base class for exceptions.
|
32
|
-
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
-
attr_reader :message # string
|
34
|
-
attr_reader :application_exception_type # string
|
35
|
-
end
|
36
|
-
|
37
|
-
# Exception class for holding a list of service errors.
|
38
|
-
class ApiException < ApplicationException
|
39
|
-
attr_reader :errors # ApiError
|
40
|
-
def initialize(exception_fault)
|
41
|
-
@array_fields ||= []
|
42
|
-
@array_fields << 'errors'
|
43
|
-
super(exception_fault, AccountLabelServiceRegistry)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
#
|
3
|
-
# This is auto-generated code, changes will be overwritten.
|
4
|
-
#
|
5
|
-
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
-
#
|
8
|
-
# Code generated by AdsCommon library 0.12.3 on 2016-05-30 12:50:57.
|
9
|
-
|
10
|
-
require 'ads_common/savon_service'
|
11
|
-
require 'adwords_api/v201605/ad_customizer_feed_service_registry'
|
12
|
-
|
13
|
-
module AdwordsApi; module V201605; module AdCustomizerFeedService
|
14
|
-
class AdCustomizerFeedService < AdsCommon::SavonService
|
15
|
-
def initialize(config, endpoint)
|
16
|
-
namespace = 'https://adwords.google.com/api/adwords/cm/v201605'
|
17
|
-
super(config, endpoint, namespace, :v201605)
|
18
|
-
end
|
19
|
-
|
20
|
-
def get(*args, &block)
|
21
|
-
return execute_action('get', args, &block)
|
22
|
-
end
|
23
|
-
|
24
|
-
def get_to_xml(*args)
|
25
|
-
return get_soap_xml('get', args)
|
26
|
-
end
|
27
|
-
|
28
|
-
def mutate(*args, &block)
|
29
|
-
return execute_action('mutate', args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def mutate_to_xml(*args)
|
33
|
-
return get_soap_xml('mutate', args)
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def get_service_registry()
|
39
|
-
return AdCustomizerFeedServiceRegistry
|
40
|
-
end
|
41
|
-
|
42
|
-
def get_module()
|
43
|
-
return AdwordsApi::V201605::AdCustomizerFeedService
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end; end; end
|