google-adwords-api 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/ChangeLog +3 -0
  2. data/{README → README.md} +0 -0
  3. data/lib/adwords_api/api_config.rb +0 -76
  4. data/lib/adwords_api/version.rb +1 -1
  5. data/test/templates/v201309/basic_operations_get_campaigns.def +1 -1
  6. data/test/templates/v201309/misc_use_oauth2_jwt.def +1 -1
  7. metadata +3 -148
  8. data/examples/v201306/account_management/create_account.rb +0 -95
  9. data/examples/v201306/account_management/get_account_alerts.rb +0 -122
  10. data/examples/v201306/account_management/get_account_changes.rb +0 -145
  11. data/examples/v201306/account_management/get_account_hierarchy.rb +0 -103
  12. data/examples/v201306/advanced_operations/add_ad_group_bid_modifier.rb +0 -105
  13. data/examples/v201306/advanced_operations/add_click_to_download_ad.rb +0 -137
  14. data/examples/v201306/advanced_operations/add_site_links.rb +0 -244
  15. data/examples/v201306/advanced_operations/create_and_attach_shared_keyword_set.rb +0 -147
  16. data/examples/v201306/advanced_operations/find_and_remove_criteria_from_shared_set.rb +0 -181
  17. data/examples/v201306/advanced_operations/get_ad_group_bid_modifiers.rb +0 -106
  18. data/examples/v201306/basic_operations/add_ad_groups.rb +0 -143
  19. data/examples/v201306/basic_operations/add_campaigns.rb +0 -162
  20. data/examples/v201306/basic_operations/add_keywords.rb +0 -116
  21. data/examples/v201306/basic_operations/add_text_ads.rb +0 -113
  22. data/examples/v201306/basic_operations/delete_ad.rb +0 -93
  23. data/examples/v201306/basic_operations/delete_ad_group.rb +0 -110
  24. data/examples/v201306/basic_operations/delete_campaign.rb +0 -111
  25. data/examples/v201306/basic_operations/delete_keyword.rb +0 -98
  26. data/examples/v201306/basic_operations/get_ad_groups.rb +0 -106
  27. data/examples/v201306/basic_operations/get_campaigns.rb +0 -101
  28. data/examples/v201306/basic_operations/get_campaigns_with_awql.rb +0 -93
  29. data/examples/v201306/basic_operations/get_keywords.rb +0 -112
  30. data/examples/v201306/basic_operations/get_text_ads.rb +0 -114
  31. data/examples/v201306/basic_operations/pause_ad.rb +0 -92
  32. data/examples/v201306/basic_operations/update_ad_group.rb +0 -89
  33. data/examples/v201306/basic_operations/update_campaign.rb +0 -90
  34. data/examples/v201306/basic_operations/update_keyword.rb +0 -110
  35. data/examples/v201306/campaign_management/add_experiment.rb +0 -166
  36. data/examples/v201306/campaign_management/add_keywords_in_bulk.rb +0 -158
  37. data/examples/v201306/campaign_management/add_location_extension.rb +0 -125
  38. data/examples/v201306/campaign_management/add_location_extension_override.rb +0 -91
  39. data/examples/v201306/campaign_management/get_all_disapproved_ads.rb +0 -101
  40. data/examples/v201306/campaign_management/get_all_disapproved_ads_with_awql.rb +0 -92
  41. data/examples/v201306/campaign_management/promote_experiment.rb +0 -85
  42. data/examples/v201306/campaign_management/set_ad_parameters.rb +0 -122
  43. data/examples/v201306/campaign_management/set_criterion_bid_modifier.rb +0 -110
  44. data/examples/v201306/campaign_management/validate_text_ad.rb +0 -114
  45. data/examples/v201306/error_handling/handle_captcha_challenge.rb +0 -93
  46. data/examples/v201306/error_handling/handle_partial_failures.rb +0 -134
  47. data/examples/v201306/error_handling/handle_policy_violation_error.rb +0 -145
  48. data/examples/v201306/error_handling/handle_two_factor_authorization_error.rb +0 -88
  49. data/examples/v201306/migration/upgrade_legacy_sitelinks.rb +0 -313
  50. data/examples/v201306/misc/get_all_images_and_videos.rb +0 -108
  51. data/examples/v201306/misc/setup_oauth2.rb +0 -88
  52. data/examples/v201306/misc/upload_image.rb +0 -97
  53. data/examples/v201306/misc/use_oauth2_jwt.rb +0 -97
  54. data/examples/v201306/optimization/estimate_keyword_traffic.rb +0 -137
  55. data/examples/v201306/optimization/get_keyword_bid_simulations.rb +0 -100
  56. data/examples/v201306/optimization/get_keyword_ideas.rb +0 -130
  57. data/examples/v201306/optimization/get_placement_ideas.rb +0 -112
  58. data/examples/v201306/remarketing/add_audience.rb +0 -123
  59. data/examples/v201306/remarketing/add_conversion_tracker.rb +0 -104
  60. data/examples/v201306/reporting/download_criteria_report.rb +0 -87
  61. data/examples/v201306/reporting/download_criteria_report_with_awql.rb +0 -86
  62. data/examples/v201306/reporting/get_campaign_stats.rb +0 -113
  63. data/examples/v201306/reporting/get_report_fields.rb +0 -79
  64. data/examples/v201306/reporting/parallel_report_download.rb +0 -171
  65. data/examples/v201306/targeting/add_campaign_targeting_criteria.rb +0 -123
  66. data/examples/v201306/targeting/add_demographic_targeting_criteria.rb +0 -116
  67. data/examples/v201306/targeting/get_campaign_targeting_criteria.rb +0 -110
  68. data/examples/v201306/targeting/get_targetable_languages_and_carriers.rb +0 -94
  69. data/examples/v201306/targeting/lookup_location.rb +0 -112
  70. data/examples/v201402/advanced_operations/add_places_location_extensions.rb~ +0 -159
  71. data/examples/v201402/basic_operations/add_ad_groups.rb~ +0 -147
  72. data/examples/v201402/misc/create_ad_words_session_without_properties_file.rb~ +0 -94
  73. data/examples/v201402/remarketing/add_conversion_tracker.rb~ +0 -109
  74. data/examples/v201402/shopping_campaigns/add_product_partition_tree.rb~ +0 -269
  75. data/examples/v201402/shopping_campaigns/add_shopping_campaign.rb~ +0 -136
  76. data/examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb~ +0 -128
  77. data/examples/v201402/shopping_campaigns/set_product_sales_channel.rb~ +0 -98
  78. data/lib/adwords_api/v201306/ad_extension_override_service.rb +0 -38
  79. data/lib/adwords_api/v201306/ad_extension_override_service_registry.rb +0 -46
  80. data/lib/adwords_api/v201306/ad_group_ad_service.rb +0 -42
  81. data/lib/adwords_api/v201306/ad_group_ad_service_registry.rb +0 -46
  82. data/lib/adwords_api/v201306/ad_group_bid_modifier_service.rb +0 -38
  83. data/lib/adwords_api/v201306/ad_group_bid_modifier_service_registry.rb +0 -46
  84. data/lib/adwords_api/v201306/ad_group_criterion_service.rb +0 -42
  85. data/lib/adwords_api/v201306/ad_group_criterion_service_registry.rb +0 -46
  86. data/lib/adwords_api/v201306/ad_group_feed_service.rb +0 -38
  87. data/lib/adwords_api/v201306/ad_group_feed_service_registry.rb +0 -46
  88. data/lib/adwords_api/v201306/ad_group_service.rb +0 -42
  89. data/lib/adwords_api/v201306/ad_group_service_registry.rb +0 -46
  90. data/lib/adwords_api/v201306/ad_param_service.rb +0 -38
  91. data/lib/adwords_api/v201306/ad_param_service_registry.rb +0 -46
  92. data/lib/adwords_api/v201306/adwords_user_list_service.rb +0 -38
  93. data/lib/adwords_api/v201306/adwords_user_list_service_registry.rb +0 -46
  94. data/lib/adwords_api/v201306/alert_service.rb +0 -34
  95. data/lib/adwords_api/v201306/alert_service_registry.rb +0 -46
  96. data/lib/adwords_api/v201306/bidding_strategy_service.rb +0 -38
  97. data/lib/adwords_api/v201306/bidding_strategy_service_registry.rb +0 -46
  98. data/lib/adwords_api/v201306/budget_order_service.rb +0 -42
  99. data/lib/adwords_api/v201306/budget_order_service_registry.rb +0 -46
  100. data/lib/adwords_api/v201306/budget_service.rb +0 -38
  101. data/lib/adwords_api/v201306/budget_service_registry.rb +0 -46
  102. data/lib/adwords_api/v201306/campaign_ad_extension_service.rb +0 -38
  103. data/lib/adwords_api/v201306/campaign_ad_extension_service_registry.rb +0 -46
  104. data/lib/adwords_api/v201306/campaign_criterion_service.rb +0 -42
  105. data/lib/adwords_api/v201306/campaign_criterion_service_registry.rb +0 -46
  106. data/lib/adwords_api/v201306/campaign_feed_service.rb +0 -38
  107. data/lib/adwords_api/v201306/campaign_feed_service_registry.rb +0 -46
  108. data/lib/adwords_api/v201306/campaign_service.rb +0 -42
  109. data/lib/adwords_api/v201306/campaign_service_registry.rb +0 -46
  110. data/lib/adwords_api/v201306/campaign_shared_set_service.rb +0 -38
  111. data/lib/adwords_api/v201306/campaign_shared_set_service_registry.rb +0 -47
  112. data/lib/adwords_api/v201306/constant_data_service.rb +0 -62
  113. data/lib/adwords_api/v201306/constant_data_service_registry.rb +0 -46
  114. data/lib/adwords_api/v201306/conversion_tracker_service.rb +0 -38
  115. data/lib/adwords_api/v201306/conversion_tracker_service_registry.rb +0 -46
  116. data/lib/adwords_api/v201306/customer_service.rb +0 -34
  117. data/lib/adwords_api/v201306/customer_service_registry.rb +0 -46
  118. data/lib/adwords_api/v201306/customer_sync_service.rb +0 -34
  119. data/lib/adwords_api/v201306/customer_sync_service_registry.rb +0 -47
  120. data/lib/adwords_api/v201306/data_service.rb +0 -38
  121. data/lib/adwords_api/v201306/data_service_registry.rb +0 -46
  122. data/lib/adwords_api/v201306/experiment_service.rb +0 -38
  123. data/lib/adwords_api/v201306/experiment_service_registry.rb +0 -46
  124. data/lib/adwords_api/v201306/feed_item_service.rb +0 -38
  125. data/lib/adwords_api/v201306/feed_item_service_registry.rb +0 -46
  126. data/lib/adwords_api/v201306/feed_mapping_service.rb +0 -38
  127. data/lib/adwords_api/v201306/feed_mapping_service_registry.rb +0 -46
  128. data/lib/adwords_api/v201306/feed_service.rb +0 -38
  129. data/lib/adwords_api/v201306/feed_service_registry.rb +0 -46
  130. data/lib/adwords_api/v201306/geo_location_service.rb +0 -34
  131. data/lib/adwords_api/v201306/geo_location_service_registry.rb +0 -46
  132. data/lib/adwords_api/v201306/location_criterion_service.rb +0 -34
  133. data/lib/adwords_api/v201306/location_criterion_service_registry.rb +0 -46
  134. data/lib/adwords_api/v201306/managed_customer_service.rb +0 -50
  135. data/lib/adwords_api/v201306/managed_customer_service_registry.rb +0 -46
  136. data/lib/adwords_api/v201306/media_service.rb +0 -38
  137. data/lib/adwords_api/v201306/media_service_registry.rb +0 -46
  138. data/lib/adwords_api/v201306/mutate_job_service.rb +0 -42
  139. data/lib/adwords_api/v201306/mutate_job_service_registry.rb +0 -46
  140. data/lib/adwords_api/v201306/report_definition_service.rb +0 -34
  141. data/lib/adwords_api/v201306/report_definition_service_registry.rb +0 -46
  142. data/lib/adwords_api/v201306/shared_criterion_service.rb +0 -38
  143. data/lib/adwords_api/v201306/shared_criterion_service_registry.rb +0 -47
  144. data/lib/adwords_api/v201306/shared_set_service.rb +0 -38
  145. data/lib/adwords_api/v201306/shared_set_service_registry.rb +0 -47
  146. data/lib/adwords_api/v201306/targeting_idea_service.rb +0 -38
  147. data/lib/adwords_api/v201306/targeting_idea_service_registry.rb +0 -46
  148. data/lib/adwords_api/v201306/traffic_estimator_service.rb +0 -34
  149. data/lib/adwords_api/v201306/traffic_estimator_service_registry.rb +0 -46
  150. data/test/adwords_api/test_adwords_api.rb~ +0 -127
  151. data/test/templates/v201306/basic_operations_get_campaigns.def +0 -114
  152. data/test/templates/v201306/misc_use_oauth2_jwt.def +0 -131
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.12.0:
2
+ - Removed deprecated API version v201306.
3
+
1
4
  0.11.1:
2
5
  - Support and examples for v201402.
3
6
  - Removed support for ClientLogin for versions > v201309.
File without changes
@@ -45,44 +45,6 @@ module AdwordsApi
45
45
 
46
46
  # Configure the services available to each version
47
47
  @@service_config = {
48
- :v201306 => [
49
- :AdExtensionOverrideService,
50
- :AdGroupAdService,
51
- :AdGroupBidModifierService,
52
- :AdGroupCriterionService,
53
- :AdGroupFeedService,
54
- :AdGroupService,
55
- :AdParamService,
56
- :AdwordsUserListService,
57
- :AlertService,
58
- :BiddingStrategyService,
59
- :BudgetOrderService,
60
- :BudgetService,
61
- :CampaignAdExtensionService,
62
- :CampaignCriterionService,
63
- :CampaignFeedService,
64
- :CampaignService,
65
- :CampaignSharedSetService,
66
- :ConstantDataService,
67
- :ConversionTrackerService,
68
- :CustomerService,
69
- :CustomerSyncService,
70
- :DataService,
71
- :ExperimentService,
72
- :FeedItemService,
73
- :FeedMappingService,
74
- :FeedService,
75
- :GeoLocationService,
76
- :LocationCriterionService,
77
- :ManagedCustomerService,
78
- :MediaService,
79
- :MutateJobService,
80
- :ReportDefinitionService,
81
- :SharedCriterionService,
82
- :SharedSetService,
83
- :TargetingIdeaService,
84
- :TrafficEstimatorService
85
- ],
86
48
  :v201309 => [
87
49
  :AdGroupAdService,
88
50
  :AdGroupBidModifierService,
@@ -164,7 +126,6 @@ module AdwordsApi
164
126
  :PRODUCTION => {
165
127
  :oauth_scope => 'https://adwords.google.com/api/adwords/',
166
128
  :header_ns => 'https://adwords.google.com/api/adwords/cm/',
167
- :v201306 => 'https://adwords.google.com/api/adwords/',
168
129
  :v201309 => 'https://adwords.google.com/api/adwords/',
169
130
  :v201402 => 'https://adwords.google.com/api/adwords/'
170
131
  }
@@ -173,43 +134,6 @@ module AdwordsApi
173
134
  # Configure the subdirectories for each version / service pair.
174
135
  # A missing pair means that only the base URL is used.
175
136
  @@subdir_config = {
176
- # v201306
177
- [:v201306, :AdExtensionOverrideService] => 'cm/',
178
- [:v201306, :AdGroupAdService] => 'cm/',
179
- [:v201306, :AdGroupBidModifierService] => 'cm/',
180
- [:v201306, :AdGroupCriterionService] => 'cm/',
181
- [:v201306, :AdGroupFeedService] => 'cm/',
182
- [:v201306, :AdGroupService] => 'cm/',
183
- [:v201306, :AdParamService] => 'cm/',
184
- [:v201306, :AlertService] => 'mcm/',
185
- [:v201306, :BudgetOrderService] => 'billing/',
186
- [:v201306, :CampaignAdExtensionService] => 'cm/',
187
- [:v201306, :CampaignCriterionService] => 'cm/',
188
- [:v201306, :CampaignFeedService] => 'cm/',
189
- [:v201306, :CampaignService] => 'cm/',
190
- [:v201306, :CampaignSharedSetService] => 'cm/',
191
- [:v201306, :ConstantDataService] => 'cm/',
192
- [:v201306, :ConversionTrackerService] => 'cm/',
193
- [:v201306, :CustomerSyncService] => 'ch/',
194
- [:v201306, :DataService] => 'cm/',
195
- [:v201306, :ExperimentService] => 'cm/',
196
- [:v201306, :FeedItemService] => 'cm/',
197
- [:v201306, :FeedMappingService] => 'cm/',
198
- [:v201306, :FeedService] => 'cm/',
199
- [:v201306, :GeoLocationService] => 'cm/',
200
- [:v201306, :LocationCriterionService] => 'cm/',
201
- [:v201306, :MediaService] => 'cm/',
202
- [:v201306, :MutateJobService] => 'cm/',
203
- [:v201306, :ReportDefinitionService] => 'cm/',
204
- [:v201306, :SharedCriterionService] => 'cm/',
205
- [:v201306, :SharedSetService] => 'cm/',
206
- [:v201306, :TargetingIdeaService] => 'o/',
207
- [:v201306, :TrafficEstimatorService] => 'o/',
208
- [:v201306, :ManagedCustomerService] => 'mcm/',
209
- [:v201306, :CustomerService] => 'mcm/',
210
- [:v201306, :BudgetService] => 'cm/',
211
- [:v201306, :BiddingStrategyService] => 'cm/',
212
- [:v201306, :AdwordsUserListService] => 'rm/',
213
137
  # v201309
214
138
  [:v201309, :AdGroupAdService] => 'cm/',
215
139
  [:v201309, :AdGroupBidModifierService] => 'cm/',
@@ -21,6 +21,6 @@
21
21
 
22
22
  module AdwordsApi
23
23
  module ApiConfig
24
- CLIENT_LIB_VERSION = '0.11.1'
24
+ CLIENT_LIB_VERSION = '0.12.0'
25
25
  end
26
26
  end
@@ -22,7 +22,7 @@ def setup_mocks()
22
22
  {"env:Envelope"=>
23
23
  {"env:Header"=>
24
24
  {"wsdl:RequestHeader"=>
25
- {"userAgent"=>"ruby-tests (AwApi-Ruby/0.11.1, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
25
+ {"userAgent"=>"ruby-tests (AwApi-Ruby/0.11.2, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
26
26
  "developerToken"=>"dev_token123",
27
27
  "clientCustomerId"=>"123-456-7890",
28
28
  "authToken"=>"abcAuthbcd",
@@ -40,7 +40,7 @@ def setup_mocks()
40
40
  {"env:Envelope"=>
41
41
  {"env:Header"=>
42
42
  {"wsdl:RequestHeader"=>
43
- {"userAgent"=>"ruby-tests (AwApi-Ruby/0.11.1, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
43
+ {"userAgent"=>"ruby-tests (AwApi-Ruby/0.11.2, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
44
44
  "developerToken"=>"dev_token123",
45
45
  "clientCustomerId"=>"123-456-7890",
46
46
  "xmlns"=>"https://adwords.google.com/api/adwords/cm/v201309"}},
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.11.1
4
+ version: 0.12.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-06 00:00:00.000000000 Z
12
+ date: 2014-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-ads-common
@@ -36,78 +36,6 @@ extra_rdoc_files: []
36
36
  files:
37
37
  - lib/adwords_api.rb
38
38
  - lib/adwords_api/report_header_handler.rb
39
- - lib/adwords_api/v201306/shared_set_service_registry.rb
40
- - lib/adwords_api/v201306/feed_mapping_service_registry.rb
41
- - lib/adwords_api/v201306/shared_set_service.rb
42
- - lib/adwords_api/v201306/data_service.rb
43
- - lib/adwords_api/v201306/campaign_feed_service.rb
44
- - lib/adwords_api/v201306/campaign_ad_extension_service_registry.rb
45
- - lib/adwords_api/v201306/budget_order_service.rb
46
- - lib/adwords_api/v201306/mutate_job_service.rb
47
- - lib/adwords_api/v201306/managed_customer_service.rb
48
- - lib/adwords_api/v201306/targeting_idea_service.rb
49
- - lib/adwords_api/v201306/campaign_shared_set_service_registry.rb
50
- - lib/adwords_api/v201306/data_service_registry.rb
51
- - lib/adwords_api/v201306/media_service.rb
52
- - lib/adwords_api/v201306/conversion_tracker_service_registry.rb
53
- - lib/adwords_api/v201306/campaign_service.rb
54
- - lib/adwords_api/v201306/ad_group_bid_modifier_service_registry.rb
55
- - lib/adwords_api/v201306/ad_group_criterion_service.rb
56
- - lib/adwords_api/v201306/traffic_estimator_service.rb
57
- - lib/adwords_api/v201306/campaign_service_registry.rb
58
- - lib/adwords_api/v201306/campaign_feed_service_registry.rb
59
- - lib/adwords_api/v201306/campaign_criterion_service.rb
60
- - lib/adwords_api/v201306/campaign_shared_set_service.rb
61
- - lib/adwords_api/v201306/shared_criterion_service.rb
62
- - lib/adwords_api/v201306/geo_location_service_registry.rb
63
- - lib/adwords_api/v201306/ad_param_service_registry.rb
64
- - lib/adwords_api/v201306/media_service_registry.rb
65
- - lib/adwords_api/v201306/constant_data_service.rb
66
- - lib/adwords_api/v201306/adwords_user_list_service_registry.rb
67
- - lib/adwords_api/v201306/conversion_tracker_service.rb
68
- - lib/adwords_api/v201306/feed_item_service_registry.rb
69
- - lib/adwords_api/v201306/experiment_service.rb
70
- - lib/adwords_api/v201306/budget_service_registry.rb
71
- - lib/adwords_api/v201306/customer_service.rb
72
- - lib/adwords_api/v201306/constant_data_service_registry.rb
73
- - lib/adwords_api/v201306/customer_service_registry.rb
74
- - lib/adwords_api/v201306/adwords_user_list_service.rb
75
- - lib/adwords_api/v201306/ad_group_ad_service_registry.rb
76
- - lib/adwords_api/v201306/ad_param_service.rb
77
- - lib/adwords_api/v201306/alert_service_registry.rb
78
- - lib/adwords_api/v201306/ad_group_bid_modifier_service.rb
79
- - lib/adwords_api/v201306/targeting_idea_service_registry.rb
80
- - lib/adwords_api/v201306/feed_service_registry.rb
81
- - lib/adwords_api/v201306/feed_service.rb
82
- - lib/adwords_api/v201306/customer_sync_service_registry.rb
83
- - lib/adwords_api/v201306/bidding_strategy_service.rb
84
- - lib/adwords_api/v201306/campaign_criterion_service_registry.rb
85
- - lib/adwords_api/v201306/alert_service.rb
86
- - lib/adwords_api/v201306/budget_service.rb
87
- - lib/adwords_api/v201306/managed_customer_service_registry.rb
88
- - lib/adwords_api/v201306/ad_group_criterion_service_registry.rb
89
- - lib/adwords_api/v201306/bidding_strategy_service_registry.rb
90
- - lib/adwords_api/v201306/customer_sync_service.rb
91
- - lib/adwords_api/v201306/experiment_service_registry.rb
92
- - lib/adwords_api/v201306/feed_item_service.rb
93
- - lib/adwords_api/v201306/traffic_estimator_service_registry.rb
94
- - lib/adwords_api/v201306/ad_extension_override_service.rb
95
- - lib/adwords_api/v201306/mutate_job_service_registry.rb
96
- - lib/adwords_api/v201306/ad_group_service.rb
97
- - lib/adwords_api/v201306/report_definition_service_registry.rb
98
- - lib/adwords_api/v201306/feed_mapping_service.rb
99
- - lib/adwords_api/v201306/ad_group_ad_service.rb
100
- - lib/adwords_api/v201306/report_definition_service.rb
101
- - lib/adwords_api/v201306/location_criterion_service_registry.rb
102
- - lib/adwords_api/v201306/budget_order_service_registry.rb
103
- - lib/adwords_api/v201306/shared_criterion_service_registry.rb
104
- - lib/adwords_api/v201306/ad_group_feed_service.rb
105
- - lib/adwords_api/v201306/ad_extension_override_service_registry.rb
106
- - lib/adwords_api/v201306/geo_location_service.rb
107
- - lib/adwords_api/v201306/campaign_ad_extension_service.rb
108
- - lib/adwords_api/v201306/location_criterion_service.rb
109
- - lib/adwords_api/v201306/ad_group_service_registry.rb
110
- - lib/adwords_api/v201306/ad_group_feed_service_registry.rb
111
39
  - lib/adwords_api/api_config.rb
112
40
  - lib/adwords_api/utils.rb
113
41
  - lib/adwords_api/errors.rb
@@ -256,8 +184,6 @@ files:
256
184
  - lib/adwords_api/v201402/ad_group_feed_service_registry.rb
257
185
  - lib/adwords_api/credential_handler.rb
258
186
  - test/test_utils.rb
259
- - test/templates/v201306/misc_use_oauth2_jwt.def
260
- - test/templates/v201306/basic_operations_get_campaigns.def
261
187
  - test/templates/v201309/misc_use_oauth2_jwt.def
262
188
  - test/templates/v201309/basic_operations_get_campaigns.def
263
189
  - test/bugs/test_issue_00000031.rb
@@ -269,70 +195,7 @@ files:
269
195
  - test/adwords_api/test_api_config.rb
270
196
  - test/adwords_api/test_credential_handler.rb
271
197
  - test/adwords_api/test_adwords_api.rb
272
- - test/adwords_api/test_adwords_api.rb~
273
198
  - test/suite_integration.rb
274
- - examples/v201306/remarketing/add_audience.rb
275
- - examples/v201306/remarketing/add_conversion_tracker.rb
276
- - examples/v201306/campaign_management/set_criterion_bid_modifier.rb
277
- - examples/v201306/campaign_management/set_ad_parameters.rb
278
- - examples/v201306/campaign_management/validate_text_ad.rb
279
- - examples/v201306/campaign_management/add_experiment.rb
280
- - examples/v201306/campaign_management/get_all_disapproved_ads.rb
281
- - examples/v201306/campaign_management/promote_experiment.rb
282
- - examples/v201306/campaign_management/add_keywords_in_bulk.rb
283
- - examples/v201306/campaign_management/add_location_extension_override.rb
284
- - examples/v201306/campaign_management/get_all_disapproved_ads_with_awql.rb
285
- - examples/v201306/campaign_management/add_location_extension.rb
286
- - examples/v201306/basic_operations/delete_campaign.rb
287
- - examples/v201306/basic_operations/get_ad_groups.rb
288
- - examples/v201306/basic_operations/pause_ad.rb
289
- - examples/v201306/basic_operations/update_ad_group.rb
290
- - examples/v201306/basic_operations/delete_keyword.rb
291
- - examples/v201306/basic_operations/add_keywords.rb
292
- - examples/v201306/basic_operations/get_campaigns.rb
293
- - examples/v201306/basic_operations/delete_ad_group.rb
294
- - examples/v201306/basic_operations/add_campaigns.rb
295
- - examples/v201306/basic_operations/update_campaign.rb
296
- - examples/v201306/basic_operations/update_keyword.rb
297
- - examples/v201306/basic_operations/delete_ad.rb
298
- - examples/v201306/basic_operations/add_ad_groups.rb
299
- - examples/v201306/basic_operations/get_keywords.rb
300
- - examples/v201306/basic_operations/add_text_ads.rb
301
- - examples/v201306/basic_operations/get_campaigns_with_awql.rb
302
- - examples/v201306/basic_operations/get_text_ads.rb
303
- - examples/v201306/error_handling/handle_policy_violation_error.rb
304
- - examples/v201306/error_handling/handle_two_factor_authorization_error.rb
305
- - examples/v201306/error_handling/handle_partial_failures.rb
306
- - examples/v201306/error_handling/handle_captcha_challenge.rb
307
- - examples/v201306/reporting/get_campaign_stats.rb
308
- - examples/v201306/reporting/get_report_fields.rb
309
- - examples/v201306/reporting/download_criteria_report_with_awql.rb
310
- - examples/v201306/reporting/download_criteria_report.rb
311
- - examples/v201306/reporting/parallel_report_download.rb
312
- - examples/v201306/targeting/add_demographic_targeting_criteria.rb
313
- - examples/v201306/targeting/lookup_location.rb
314
- - examples/v201306/targeting/add_campaign_targeting_criteria.rb
315
- - examples/v201306/targeting/get_targetable_languages_and_carriers.rb
316
- - examples/v201306/targeting/get_campaign_targeting_criteria.rb
317
- - examples/v201306/optimization/get_keyword_ideas.rb
318
- - examples/v201306/optimization/estimate_keyword_traffic.rb
319
- - examples/v201306/optimization/get_keyword_bid_simulations.rb
320
- - examples/v201306/optimization/get_placement_ideas.rb
321
- - examples/v201306/migration/upgrade_legacy_sitelinks.rb
322
- - examples/v201306/misc/get_all_images_and_videos.rb
323
- - examples/v201306/misc/setup_oauth2.rb
324
- - examples/v201306/misc/use_oauth2_jwt.rb
325
- - examples/v201306/misc/upload_image.rb
326
- - examples/v201306/advanced_operations/create_and_attach_shared_keyword_set.rb
327
- - examples/v201306/advanced_operations/add_click_to_download_ad.rb
328
- - examples/v201306/advanced_operations/add_site_links.rb
329
- - examples/v201306/advanced_operations/find_and_remove_criteria_from_shared_set.rb
330
- - examples/v201306/advanced_operations/add_ad_group_bid_modifier.rb
331
- - examples/v201306/advanced_operations/get_ad_group_bid_modifiers.rb
332
- - examples/v201306/account_management/create_account.rb
333
- - examples/v201306/account_management/get_account_alerts.rb
334
- - examples/v201306/account_management/get_account_changes.rb
335
- - examples/v201306/account_management/get_account_hierarchy.rb
336
199
  - examples/v201309/remarketing/add_audience.rb
337
200
  - examples/v201309/remarketing/add_conversion_tracker.rb
338
201
  - examples/v201309/campaign_management/set_criterion_bid_modifier.rb
@@ -396,7 +259,6 @@ files:
396
259
  - examples/v201309/account_management/get_account_changes.rb
397
260
  - examples/v201309/account_management/get_account_hierarchy.rb
398
261
  - examples/v201402/remarketing/add_audience.rb
399
- - examples/v201402/remarketing/add_conversion_tracker.rb~
400
262
  - examples/v201402/remarketing/add_conversion_tracker.rb
401
263
  - examples/v201402/campaign_management/set_criterion_bid_modifier.rb
402
264
  - examples/v201402/campaign_management/set_ad_parameters.rb
@@ -416,7 +278,6 @@ files:
416
278
  - examples/v201402/basic_operations/get_campaigns.rb
417
279
  - examples/v201402/basic_operations/delete_ad_group.rb
418
280
  - examples/v201402/basic_operations/add_campaigns.rb
419
- - examples/v201402/basic_operations/add_ad_groups.rb~
420
281
  - examples/v201402/basic_operations/update_campaign.rb
421
282
  - examples/v201402/basic_operations/update_keyword.rb
422
283
  - examples/v201402/basic_operations/delete_ad.rb
@@ -445,19 +306,13 @@ files:
445
306
  - examples/v201402/misc/create_ad_words_session_without_properties_file.rb
446
307
  - examples/v201402/misc/get_all_images_and_videos.rb
447
308
  - examples/v201402/misc/setup_oauth2.rb
448
- - examples/v201402/misc/create_ad_words_session_without_properties_file.rb~
449
309
  - examples/v201402/misc/use_oauth2_jwt.rb
450
310
  - examples/v201402/misc/upload_image.rb
451
311
  - examples/v201402/shopping_campaigns/add_product_scope.rb
452
- - examples/v201402/shopping_campaigns/add_shopping_campaign.rb~
453
- - examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb~
454
- - examples/v201402/shopping_campaigns/set_product_sales_channel.rb~
455
312
  - examples/v201402/shopping_campaigns/add_shopping_campaign.rb
456
313
  - examples/v201402/shopping_campaigns/set_product_sales_channel.rb
457
- - examples/v201402/shopping_campaigns/add_product_partition_tree.rb~
458
314
  - examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb
459
315
  - examples/v201402/shopping_campaigns/add_product_partition_tree.rb
460
- - examples/v201402/advanced_operations/add_places_location_extensions.rb~
461
316
  - examples/v201402/advanced_operations/upload_offline_conversions.rb
462
317
  - examples/v201402/advanced_operations/add_places_location_extensions.rb
463
318
  - examples/v201402/advanced_operations/add_click_to_download_ad.rb
@@ -471,7 +326,7 @@ files:
471
326
  - examples/v201402/account_management/get_account_changes.rb
472
327
  - examples/v201402/account_management/get_account_hierarchy.rb
473
328
  - COPYING
474
- - README
329
+ - README.md
475
330
  - ChangeLog
476
331
  - adwords_api.yml
477
332
  homepage: http://code.google.com/p/google-api-ads-ruby/
@@ -1,95 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Encoding: utf-8
3
- #
4
- # Author:: api.dklimkin@gmail.com (Danial Klimkin)
5
- #
6
- # Copyright:: Copyright 2011, 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
- # This example illustrates how to create an account. Note by default this
22
- # account will only be accessible via parent MCC.
23
- #
24
- # Note: This code example uses MCC-level calls and won't work with Test
25
- # Accounts, see: https://developers.google.com/adwords/api/docs/test-accounts
26
- #
27
- # Tags: ManagedCustomerService.mutate
28
-
29
- require 'adwords_api'
30
- require 'adwords_api/utils'
31
-
32
- def create_account()
33
- # AdwordsApi::Api will read a config file from ENV['HOME']/adwords_api.yml
34
- # when called without parameters.
35
- adwords = AdwordsApi::Api.new
36
-
37
- # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
38
- # the configuration file or provide your own logger:
39
- # adwords.logger = Logger.new('adwords_xml.log')
40
-
41
- managed_customer_srv = adwords.service(:ManagedCustomerService, API_VERSION)
42
-
43
- # Create a local Customer object.
44
- customer = {
45
- :name => 'Account created with ManagedCustomerService',
46
- :currency_code => 'EUR',
47
- :date_time_zone => 'Europe/London'
48
- }
49
-
50
- # Prepare operation to create an account.
51
- operation = {
52
- :operator => 'ADD',
53
- :operand => customer
54
- }
55
-
56
- # Create the account. It is possible to create multiple accounts with one
57
- # request by sending an array of operations.
58
- response = managed_customer_srv.mutate([operation])
59
-
60
- response[:value].each do |new_account|
61
- puts "Account with customer ID '%s' was successfully created." %
62
- AdwordsApi::Utils.format_id(new_account[:customer_id])
63
- end
64
- end
65
-
66
- if __FILE__ == $0
67
- API_VERSION = :v201306
68
-
69
- begin
70
- create_account()
71
-
72
- # Authorization error.
73
- rescue AdsCommon::Errors::OAuth2VerificationRequired => e
74
- puts "Authorization credentials are not valid. Edit adwords_api.yml for " +
75
- "OAuth2 client ID and secret and run misc/setup_oauth2.rb example " +
76
- "to retrieve and store OAuth2 tokens."
77
- puts "See this wiki page for more details:\n\n " +
78
- 'http://code.google.com/p/google-api-ads-ruby/wiki/OAuth2'
79
-
80
- # HTTP errors.
81
- rescue AdsCommon::Errors::HttpError => e
82
- puts "HTTP Error: %s" % e
83
-
84
- # API errors.
85
- rescue AdwordsApi::Errors::ApiException => e
86
- puts "Message: %s" % e.message
87
- puts 'Errors:'
88
- e.errors.each_with_index do |error, index|
89
- puts "\tError [%d]:" % (index + 1)
90
- error.each do |field, value|
91
- puts "\t\t%s: %s" % [field, value]
92
- end
93
- end
94
- end
95
- end
@@ -1,122 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Encoding: utf-8
3
- #
4
- # Author:: api.dklimkin@gmail.com (Danial Klimkin)
5
- #
6
- # Copyright:: Copyright 2011, 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
- # This example gets all alerts for all clients of an MCC account. The effective
22
- # user (clientCustomerId, or authToken) must be an MCC user to get results.
23
- #
24
- # Note: This code example uses MCC-level calls and won't work with Test
25
- # Accounts, see: https://developers.google.com/adwords/api/docs/test-accounts
26
- #
27
- # Tags: AlertService.get
28
-
29
- require 'adwords_api'
30
- require 'adwords_api/utils'
31
-
32
- def get_account_alerts()
33
- # AdwordsApi::Api will read a config file from ENV['HOME']/adwords_api.yml
34
- # when called without parameters.
35
- adwords = AdwordsApi::Api.new
36
-
37
- # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
38
- # the configuration file or provide your own logger:
39
- # adwords.logger = Logger.new('adwords_xml.log')
40
-
41
- alert_srv = adwords.service(:AlertService, API_VERSION)
42
-
43
- # Create the selector.
44
- selector = {
45
- :query => {
46
- :filter_spec => 'ALL',
47
- :client_spec => 'ALL',
48
- :trigger_time_spec => 'ALL_TIME',
49
- :severities => ['GREEN', 'YELLOW', 'RED'],
50
- :types => [
51
- 'ACCOUNT_BUDGET_BURN_RATE', 'ACCOUNT_BUDGET_ENDING',
52
- 'ACCOUNT_ON_TARGET', 'CAMPAIGN_ENDED', 'CAMPAIGN_ENDING',
53
- 'CREDIT_CARD_EXPIRING', 'DECLINED_PAYMENT', 'MANAGER_LINK_PENDING',
54
- 'MISSING_BANK_REFERENCE_NUMBER', 'PAYMENT_NOT_ENTERED',
55
- 'TV_ACCOUNT_BUDGET_ENDING', 'TV_ACCOUNT_ON_TARGET',
56
- 'TV_ZERO_DAILY_SPENDING_LIMIT', 'USER_INVITE_ACCEPTED',
57
- 'USER_INVITE_PENDING', 'ZERO_DAILY_SPENDING_LIMIT'
58
- ]
59
- },
60
- :paging => {
61
- :start_index => 0,
62
- :number_results => PAGE_SIZE
63
- }
64
- }
65
-
66
- # Set initial values.
67
- offset, page = 0, {}
68
-
69
- # Get alerts.
70
- begin
71
- page = alert_srv.get(selector)
72
- if page[:entries]
73
- page[:entries].each_with_index do |alert, index|
74
- puts "%d) Customer ID is '%s', alert type is '%s', severity is '%s'."
75
- [AdwordsApi::Utils.format_id(alert[:client_customer_id]),
76
- alert[:alert_type], alert[:alert_severity]]
77
- alert[:details].each do |detail|
78
- puts "\t- triggered at %s" % detail[:trigger_time]
79
- end
80
- end
81
- # Increment values to request the next page.
82
- offset += PAGE_SIZE
83
- selector[:paging][:start_index] = offset
84
- end
85
- end while page[:total_num_entries] > offset
86
-
87
- if page.include?(:total_num_entries)
88
- puts "\tTotal number of alerts: %d." % page[:total_num_entries]
89
- end
90
- end
91
-
92
- if __FILE__ == $0
93
- API_VERSION = :v201306
94
- PAGE_SIZE = 500
95
-
96
- begin
97
- get_account_alerts()
98
-
99
- # Authorization error.
100
- rescue AdsCommon::Errors::OAuth2VerificationRequired => e
101
- puts "Authorization credentials are not valid. Edit adwords_api.yml for " +
102
- "OAuth2 client ID and secret and run misc/setup_oauth2.rb example " +
103
- "to retrieve and store OAuth2 tokens."
104
- puts "See this wiki page for more details:\n\n " +
105
- 'http://code.google.com/p/google-api-ads-ruby/wiki/OAuth2'
106
-
107
- # HTTP errors.
108
- rescue AdsCommon::Errors::HttpError => e
109
- puts "HTTP Error: %s" % e
110
-
111
- # API errors.
112
- rescue AdwordsApi::Errors::ApiException => e
113
- puts "Message: %s" % e.message
114
- puts 'Errors:'
115
- e.errors.each_with_index do |error, index|
116
- puts "\tError [%d]:" % (index + 1)
117
- error.each do |field, value|
118
- puts "\t\t%s: %s" % [field, value]
119
- end
120
- end
121
- end
122
- end