google-adwords-api 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. checksums.yaml +15 -0
  2. data/COPYING +0 -0
  3. data/ChangeLog +3 -0
  4. data/README.md +0 -0
  5. data/adwords_api.yml +0 -0
  6. data/examples/v201402/misc/create_ad_words_session_without_properties_file.rb +0 -0
  7. data/examples/v201402/shopping_campaigns/add_product_partition_tree.rb +0 -0
  8. data/examples/v201402/shopping_campaigns/add_product_scope.rb +0 -0
  9. data/examples/v201402/shopping_campaigns/add_shopping_campaign.rb +0 -0
  10. data/examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb +0 -0
  11. data/examples/v201402/shopping_campaigns/set_product_sales_channel.rb +0 -0
  12. data/examples/v201406/advanced_operations/add_places_location_extensions.rb +1 -2
  13. data/examples/v201409/account_management/create_account.rb +92 -0
  14. data/examples/v201409/account_management/get_account_changes.rb +145 -0
  15. data/examples/v201409/account_management/get_account_hierarchy.rb +102 -0
  16. data/examples/v201409/advanced_operations/add_ad_customizer.rb +277 -0
  17. data/examples/v201409/advanced_operations/add_ad_group_bid_modifier.rb +105 -0
  18. data/examples/v201409/advanced_operations/add_click_to_download_ad.rb +137 -0
  19. data/examples/v201409/advanced_operations/add_places_location_extensions.rb +158 -0
  20. data/examples/v201409/advanced_operations/add_site_links.rb +306 -0
  21. data/examples/v201409/advanced_operations/add_text_ad_with_upgraded_urls.rb +137 -0
  22. data/examples/v201409/advanced_operations/get_ad_group_bid_modifiers.rb +106 -0
  23. data/examples/v201409/advanced_operations/update_site_links.rb +194 -0
  24. data/examples/v201409/advanced_operations/upload_offline_conversions.rb +117 -0
  25. data/examples/v201409/advanced_operations/use_shared_bidding_strategy.rb +164 -0
  26. data/examples/v201409/basic_operations/add_ad_groups.rb +142 -0
  27. data/examples/v201409/basic_operations/add_campaigns.rb +153 -0
  28. data/examples/v201409/basic_operations/add_keywords.rb +116 -0
  29. data/examples/v201409/basic_operations/add_text_ads.rb +113 -0
  30. data/examples/v201409/basic_operations/get_ad_groups.rb +106 -0
  31. data/examples/v201409/basic_operations/get_campaigns.rb +101 -0
  32. data/examples/v201409/basic_operations/get_campaigns_with_awql.rb +93 -0
  33. data/examples/v201409/basic_operations/get_keywords.rb +112 -0
  34. data/examples/v201409/basic_operations/get_text_ads.rb +114 -0
  35. data/examples/v201409/basic_operations/pause_ad.rb +92 -0
  36. data/examples/v201409/basic_operations/remove_ad.rb +93 -0
  37. data/examples/v201409/basic_operations/remove_ad_group.rb +89 -0
  38. data/examples/v201409/basic_operations/remove_campaign.rb +91 -0
  39. data/examples/v201409/basic_operations/remove_keyword.rb +98 -0
  40. data/examples/v201409/basic_operations/update_ad_group.rb +89 -0
  41. data/examples/v201409/basic_operations/update_campaign.rb +90 -0
  42. data/examples/v201409/basic_operations/update_keyword.rb +110 -0
  43. data/examples/v201409/campaign_management/add_campaign_labels.rb +86 -0
  44. data/examples/v201409/campaign_management/add_experiment.rb +166 -0
  45. data/examples/v201409/campaign_management/add_keywords_in_bulk.rb +158 -0
  46. data/examples/v201409/campaign_management/add_location_extension.rb +125 -0
  47. data/examples/v201409/campaign_management/get_all_disapproved_ads.rb +101 -0
  48. data/examples/v201409/campaign_management/get_all_disapproved_ads_with_awql.rb +93 -0
  49. data/examples/v201409/campaign_management/get_campaigns_by_label.rb +112 -0
  50. data/examples/v201409/campaign_management/promote_experiment.rb +85 -0
  51. data/examples/v201409/campaign_management/set_ad_parameters.rb +122 -0
  52. data/examples/v201409/campaign_management/set_criterion_bid_modifier.rb +108 -0
  53. data/examples/v201409/campaign_management/validate_text_ad.rb +114 -0
  54. data/examples/v201409/error_handling/handle_captcha_challenge.rb +93 -0
  55. data/examples/v201409/error_handling/handle_partial_failures.rb +134 -0
  56. data/examples/v201409/error_handling/handle_policy_violation_error.rb +145 -0
  57. data/examples/v201409/error_handling/handle_two_factor_authorization_error.rb +88 -0
  58. data/examples/v201409/misc/create_ad_words_session_without_properties_file.rb +94 -0
  59. data/examples/v201409/misc/get_all_images_and_videos.rb +108 -0
  60. data/examples/v201409/misc/setup_oauth2.rb +88 -0
  61. data/examples/v201409/misc/upload_image.rb +97 -0
  62. data/examples/v201409/misc/use_oauth2_jwt.rb +97 -0
  63. data/examples/v201409/optimization/estimate_keyword_traffic.rb +137 -0
  64. data/examples/v201409/optimization/get_keyword_bid_simulations.rb +100 -0
  65. data/examples/v201409/optimization/get_keyword_ideas.rb +130 -0
  66. data/examples/v201409/remarketing/add_audience.rb +123 -0
  67. data/examples/v201409/remarketing/add_conversion_tracker.rb +105 -0
  68. data/examples/v201409/reporting/download_criteria_report.rb +87 -0
  69. data/examples/v201409/reporting/download_criteria_report_with_awql.rb +86 -0
  70. data/examples/v201409/reporting/get_report_fields.rb +79 -0
  71. data/examples/v201409/reporting/parallel_report_download.rb +171 -0
  72. data/examples/v201409/shopping_campaigns/add_product_partition_tree.rb +269 -0
  73. data/examples/v201409/shopping_campaigns/add_product_scope.rb +133 -0
  74. data/examples/v201409/shopping_campaigns/add_shopping_campaign.rb +135 -0
  75. data/examples/v201409/shopping_campaigns/get_product_category_taxonomy.rb +117 -0
  76. data/examples/v201409/targeting/add_campaign_targeting_criteria.rb +173 -0
  77. data/examples/v201409/targeting/add_demographic_targeting_criteria.rb +116 -0
  78. data/examples/v201409/targeting/get_campaign_targeting_criteria.rb +110 -0
  79. data/examples/v201409/targeting/get_targetable_languages_and_carriers.rb +94 -0
  80. data/examples/v201409/targeting/lookup_location.rb +112 -0
  81. data/lib/adwords_api.rb +18 -0
  82. data/lib/adwords_api/api_config.rb +82 -4
  83. data/lib/adwords_api/credential_handler.rb +0 -0
  84. data/lib/adwords_api/errors.rb +0 -0
  85. data/lib/adwords_api/report_header_handler.rb +8 -0
  86. data/lib/adwords_api/report_utils.rb +0 -0
  87. data/lib/adwords_api/utils.rb +0 -0
  88. data/lib/adwords_api/v201402/ad_group_ad_service.rb +0 -0
  89. data/lib/adwords_api/v201402/ad_group_ad_service_registry.rb +0 -0
  90. data/lib/adwords_api/v201402/ad_group_bid_modifier_service.rb +0 -0
  91. data/lib/adwords_api/v201402/ad_group_bid_modifier_service_registry.rb +0 -0
  92. data/lib/adwords_api/v201402/ad_group_criterion_service.rb +0 -0
  93. data/lib/adwords_api/v201402/ad_group_criterion_service_registry.rb +0 -0
  94. data/lib/adwords_api/v201402/ad_group_feed_service.rb +0 -0
  95. data/lib/adwords_api/v201402/ad_group_feed_service_registry.rb +0 -0
  96. data/lib/adwords_api/v201402/ad_group_service.rb +0 -0
  97. data/lib/adwords_api/v201402/ad_group_service_registry.rb +0 -0
  98. data/lib/adwords_api/v201402/ad_param_service.rb +0 -0
  99. data/lib/adwords_api/v201402/ad_param_service_registry.rb +0 -0
  100. data/lib/adwords_api/v201402/adwords_user_list_service.rb +0 -0
  101. data/lib/adwords_api/v201402/adwords_user_list_service_registry.rb +0 -0
  102. data/lib/adwords_api/v201402/alert_service.rb +0 -0
  103. data/lib/adwords_api/v201402/alert_service_registry.rb +0 -0
  104. data/lib/adwords_api/v201402/bidding_strategy_service.rb +0 -0
  105. data/lib/adwords_api/v201402/bidding_strategy_service_registry.rb +0 -0
  106. data/lib/adwords_api/v201402/budget_order_service.rb +0 -0
  107. data/lib/adwords_api/v201402/budget_order_service_registry.rb +0 -0
  108. data/lib/adwords_api/v201402/budget_service.rb +0 -0
  109. data/lib/adwords_api/v201402/budget_service_registry.rb +0 -0
  110. data/lib/adwords_api/v201402/campaign_ad_extension_service.rb +0 -0
  111. data/lib/adwords_api/v201402/campaign_ad_extension_service_registry.rb +0 -0
  112. data/lib/adwords_api/v201402/campaign_criterion_service.rb +0 -0
  113. data/lib/adwords_api/v201402/campaign_criterion_service_registry.rb +0 -0
  114. data/lib/adwords_api/v201402/campaign_feed_service.rb +0 -0
  115. data/lib/adwords_api/v201402/campaign_feed_service_registry.rb +0 -0
  116. data/lib/adwords_api/v201402/campaign_service.rb +0 -0
  117. data/lib/adwords_api/v201402/campaign_service_registry.rb +0 -0
  118. data/lib/adwords_api/v201402/campaign_shared_set_service.rb +0 -0
  119. data/lib/adwords_api/v201402/campaign_shared_set_service_registry.rb +0 -0
  120. data/lib/adwords_api/v201402/constant_data_service.rb +0 -0
  121. data/lib/adwords_api/v201402/constant_data_service_registry.rb +0 -0
  122. data/lib/adwords_api/v201402/conversion_tracker_service.rb +0 -0
  123. data/lib/adwords_api/v201402/conversion_tracker_service_registry.rb +0 -0
  124. data/lib/adwords_api/v201402/customer_feed_service.rb +0 -0
  125. data/lib/adwords_api/v201402/customer_feed_service_registry.rb +0 -0
  126. data/lib/adwords_api/v201402/customer_service.rb +0 -0
  127. data/lib/adwords_api/v201402/customer_service_registry.rb +0 -0
  128. data/lib/adwords_api/v201402/customer_sync_service.rb +0 -0
  129. data/lib/adwords_api/v201402/customer_sync_service_registry.rb +0 -0
  130. data/lib/adwords_api/v201402/data_service.rb +0 -0
  131. data/lib/adwords_api/v201402/data_service_registry.rb +0 -0
  132. data/lib/adwords_api/v201402/experiment_service.rb +0 -0
  133. data/lib/adwords_api/v201402/experiment_service_registry.rb +0 -0
  134. data/lib/adwords_api/v201402/feed_item_service.rb +0 -0
  135. data/lib/adwords_api/v201402/feed_item_service_registry.rb +0 -0
  136. data/lib/adwords_api/v201402/feed_mapping_service.rb +0 -0
  137. data/lib/adwords_api/v201402/feed_mapping_service_registry.rb +0 -0
  138. data/lib/adwords_api/v201402/feed_service.rb +0 -0
  139. data/lib/adwords_api/v201402/feed_service_registry.rb +0 -0
  140. data/lib/adwords_api/v201402/geo_location_service.rb +0 -0
  141. data/lib/adwords_api/v201402/geo_location_service_registry.rb +0 -0
  142. data/lib/adwords_api/v201402/location_criterion_service.rb +0 -0
  143. data/lib/adwords_api/v201402/location_criterion_service_registry.rb +0 -0
  144. data/lib/adwords_api/v201402/managed_customer_service.rb +0 -0
  145. data/lib/adwords_api/v201402/managed_customer_service_registry.rb +0 -0
  146. data/lib/adwords_api/v201402/media_service.rb +0 -0
  147. data/lib/adwords_api/v201402/media_service_registry.rb +0 -0
  148. data/lib/adwords_api/v201402/mutate_job_service.rb +0 -0
  149. data/lib/adwords_api/v201402/mutate_job_service_registry.rb +0 -0
  150. data/lib/adwords_api/v201402/offline_conversion_feed_service.rb +0 -0
  151. data/lib/adwords_api/v201402/offline_conversion_feed_service_registry.rb +0 -0
  152. data/lib/adwords_api/v201402/report_definition_service.rb +0 -0
  153. data/lib/adwords_api/v201402/report_definition_service_registry.rb +0 -0
  154. data/lib/adwords_api/v201402/shared_criterion_service.rb +0 -0
  155. data/lib/adwords_api/v201402/shared_criterion_service_registry.rb +0 -0
  156. data/lib/adwords_api/v201402/shared_set_service.rb +0 -0
  157. data/lib/adwords_api/v201402/shared_set_service_registry.rb +0 -0
  158. data/lib/adwords_api/v201402/targeting_idea_service.rb +0 -0
  159. data/lib/adwords_api/v201402/targeting_idea_service_registry.rb +0 -0
  160. data/lib/adwords_api/v201402/traffic_estimator_service.rb +0 -0
  161. data/lib/adwords_api/v201402/traffic_estimator_service_registry.rb +0 -0
  162. data/lib/adwords_api/v201406/ad_group_ad_service.rb +1 -1
  163. data/lib/adwords_api/v201406/ad_group_ad_service_registry.rb +1 -1
  164. data/lib/adwords_api/v201406/ad_group_bid_modifier_service.rb +1 -1
  165. data/lib/adwords_api/v201406/ad_group_bid_modifier_service_registry.rb +1 -1
  166. data/lib/adwords_api/v201406/ad_group_criterion_service.rb +1 -1
  167. data/lib/adwords_api/v201406/ad_group_criterion_service_registry.rb +1 -1
  168. data/lib/adwords_api/v201406/ad_group_feed_service.rb +1 -1
  169. data/lib/adwords_api/v201406/ad_group_feed_service_registry.rb +1 -1
  170. data/lib/adwords_api/v201406/ad_group_service.rb +1 -1
  171. data/lib/adwords_api/v201406/ad_group_service_registry.rb +1 -1
  172. data/lib/adwords_api/v201406/ad_param_service.rb +1 -1
  173. data/lib/adwords_api/v201406/ad_param_service_registry.rb +1 -1
  174. data/lib/adwords_api/v201406/adwords_user_list_service.rb +1 -1
  175. data/lib/adwords_api/v201406/adwords_user_list_service_registry.rb +1 -1
  176. data/lib/adwords_api/v201406/alert_service.rb +1 -1
  177. data/lib/adwords_api/v201406/alert_service_registry.rb +1 -1
  178. data/lib/adwords_api/v201406/bidding_strategy_service.rb +1 -1
  179. data/lib/adwords_api/v201406/bidding_strategy_service_registry.rb +1 -1
  180. data/lib/adwords_api/v201406/budget_order_service.rb +1 -1
  181. data/lib/adwords_api/v201406/budget_order_service_registry.rb +1 -1
  182. data/lib/adwords_api/v201406/budget_service.rb +1 -1
  183. data/lib/adwords_api/v201406/budget_service_registry.rb +1 -1
  184. data/lib/adwords_api/v201406/campaign_ad_extension_service.rb +1 -1
  185. data/lib/adwords_api/v201406/campaign_ad_extension_service_registry.rb +1 -1
  186. data/lib/adwords_api/v201406/campaign_criterion_service.rb +1 -1
  187. data/lib/adwords_api/v201406/campaign_criterion_service_registry.rb +1 -1
  188. data/lib/adwords_api/v201406/campaign_feed_service.rb +1 -1
  189. data/lib/adwords_api/v201406/campaign_feed_service_registry.rb +1 -1
  190. data/lib/adwords_api/v201406/campaign_service.rb +1 -1
  191. data/lib/adwords_api/v201406/campaign_service_registry.rb +2 -2
  192. data/lib/adwords_api/v201406/campaign_shared_set_service.rb +0 -0
  193. data/lib/adwords_api/v201406/campaign_shared_set_service_registry.rb +0 -0
  194. data/lib/adwords_api/v201406/constant_data_service.rb +1 -1
  195. data/lib/adwords_api/v201406/constant_data_service_registry.rb +1 -1
  196. data/lib/adwords_api/v201406/conversion_tracker_service.rb +1 -1
  197. data/lib/adwords_api/v201406/conversion_tracker_service_registry.rb +1 -1
  198. data/lib/adwords_api/v201406/customer_feed_service.rb +1 -1
  199. data/lib/adwords_api/v201406/customer_feed_service_registry.rb +1 -1
  200. data/lib/adwords_api/v201406/customer_service.rb +1 -1
  201. data/lib/adwords_api/v201406/customer_service_registry.rb +1 -1
  202. data/lib/adwords_api/v201406/customer_sync_service.rb +1 -1
  203. data/lib/adwords_api/v201406/customer_sync_service_registry.rb +1 -1
  204. data/lib/adwords_api/v201406/data_service.rb +1 -1
  205. data/lib/adwords_api/v201406/data_service_registry.rb +1 -1
  206. data/lib/adwords_api/v201406/experiment_service.rb +1 -1
  207. data/lib/adwords_api/v201406/experiment_service_registry.rb +1 -1
  208. data/lib/adwords_api/v201406/feed_item_service.rb +1 -1
  209. data/lib/adwords_api/v201406/feed_item_service_registry.rb +1 -1
  210. data/lib/adwords_api/v201406/feed_mapping_service.rb +1 -1
  211. data/lib/adwords_api/v201406/feed_mapping_service_registry.rb +1 -1
  212. data/lib/adwords_api/v201406/feed_service.rb +1 -1
  213. data/lib/adwords_api/v201406/feed_service_registry.rb +1 -1
  214. data/lib/adwords_api/v201406/geo_location_service.rb +1 -1
  215. data/lib/adwords_api/v201406/geo_location_service_registry.rb +1 -1
  216. data/lib/adwords_api/v201406/label_service.rb +0 -0
  217. data/lib/adwords_api/v201406/label_service_registry.rb +0 -0
  218. data/lib/adwords_api/v201406/location_criterion_service.rb +1 -1
  219. data/lib/adwords_api/v201406/location_criterion_service_registry.rb +1 -1
  220. data/lib/adwords_api/v201406/managed_customer_service.rb +1 -1
  221. data/lib/adwords_api/v201406/managed_customer_service_registry.rb +1 -1
  222. data/lib/adwords_api/v201406/media_service.rb +1 -1
  223. data/lib/adwords_api/v201406/media_service_registry.rb +1 -1
  224. data/lib/adwords_api/v201406/mutate_job_service.rb +1 -1
  225. data/lib/adwords_api/v201406/mutate_job_service_registry.rb +1 -1
  226. data/lib/adwords_api/v201406/offline_conversion_feed_service.rb +1 -1
  227. data/lib/adwords_api/v201406/offline_conversion_feed_service_registry.rb +1 -1
  228. data/lib/adwords_api/v201406/report_definition_service.rb +1 -1
  229. data/lib/adwords_api/v201406/report_definition_service_registry.rb +1 -1
  230. data/lib/adwords_api/v201406/shared_criterion_service.rb +0 -0
  231. data/lib/adwords_api/v201406/shared_criterion_service_registry.rb +0 -0
  232. data/lib/adwords_api/v201406/shared_set_service.rb +0 -0
  233. data/lib/adwords_api/v201406/shared_set_service_registry.rb +0 -0
  234. data/lib/adwords_api/v201406/targeting_idea_service.rb +1 -1
  235. data/lib/adwords_api/v201406/targeting_idea_service_registry.rb +1 -1
  236. data/lib/adwords_api/v201406/traffic_estimator_service.rb +1 -1
  237. data/lib/adwords_api/v201406/traffic_estimator_service_registry.rb +1 -1
  238. data/lib/adwords_api/v201409/ad_group_ad_service.rb +50 -0
  239. data/lib/adwords_api/v201409/ad_group_ad_service_registry.rb +46 -0
  240. data/lib/adwords_api/v201409/ad_group_bid_modifier_service.rb +42 -0
  241. data/lib/adwords_api/v201409/ad_group_bid_modifier_service_registry.rb +46 -0
  242. data/lib/adwords_api/v201409/ad_group_criterion_service.rb +46 -0
  243. data/lib/adwords_api/v201409/ad_group_criterion_service_registry.rb +46 -0
  244. data/lib/adwords_api/v201409/ad_group_feed_service.rb +42 -0
  245. data/lib/adwords_api/v201409/ad_group_feed_service_registry.rb +46 -0
  246. data/lib/adwords_api/v201409/ad_group_service.rb +46 -0
  247. data/lib/adwords_api/v201409/ad_group_service_registry.rb +46 -0
  248. data/lib/adwords_api/v201409/ad_param_service.rb +38 -0
  249. data/lib/adwords_api/v201409/ad_param_service_registry.rb +46 -0
  250. data/lib/adwords_api/v201409/adwords_user_list_service.rb +38 -0
  251. data/lib/adwords_api/v201409/adwords_user_list_service_registry.rb +46 -0
  252. data/lib/adwords_api/v201409/bidding_strategy_service.rb +42 -0
  253. data/lib/adwords_api/v201409/bidding_strategy_service_registry.rb +46 -0
  254. data/lib/adwords_api/v201409/budget_order_service.rb +42 -0
  255. data/lib/adwords_api/v201409/budget_order_service_registry.rb +46 -0
  256. data/lib/adwords_api/v201409/budget_service.rb +42 -0
  257. data/lib/adwords_api/v201409/budget_service_registry.rb +46 -0
  258. data/lib/adwords_api/v201409/campaign_ad_extension_service.rb +38 -0
  259. data/lib/adwords_api/v201409/campaign_ad_extension_service_registry.rb +46 -0
  260. data/lib/adwords_api/v201409/campaign_criterion_service.rb +42 -0
  261. data/lib/adwords_api/v201409/campaign_criterion_service_registry.rb +46 -0
  262. data/lib/adwords_api/v201409/campaign_feed_service.rb +42 -0
  263. data/lib/adwords_api/v201409/campaign_feed_service_registry.rb +46 -0
  264. data/lib/adwords_api/v201409/campaign_service.rb +46 -0
  265. data/lib/adwords_api/v201409/campaign_service_registry.rb +46 -0
  266. data/lib/adwords_api/v201409/campaign_shared_set_service.rb +38 -0
  267. data/lib/adwords_api/v201409/campaign_shared_set_service_registry.rb +47 -0
  268. data/lib/adwords_api/v201409/constant_data_service.rb +66 -0
  269. data/lib/adwords_api/v201409/constant_data_service_registry.rb +46 -0
  270. data/lib/adwords_api/v201409/conversion_tracker_service.rb +38 -0
  271. data/lib/adwords_api/v201409/conversion_tracker_service_registry.rb +46 -0
  272. data/lib/adwords_api/v201409/customer_feed_service.rb +42 -0
  273. data/lib/adwords_api/v201409/customer_feed_service_registry.rb +46 -0
  274. data/lib/adwords_api/v201409/customer_service.rb +38 -0
  275. data/lib/adwords_api/v201409/customer_service_registry.rb +46 -0
  276. data/lib/adwords_api/v201409/customer_sync_service.rb +34 -0
  277. data/lib/adwords_api/v201409/customer_sync_service_registry.rb +47 -0
  278. data/lib/adwords_api/v201409/data_service.rb +54 -0
  279. data/lib/adwords_api/v201409/data_service_registry.rb +46 -0
  280. data/lib/adwords_api/v201409/experiment_service.rb +38 -0
  281. data/lib/adwords_api/v201409/experiment_service_registry.rb +46 -0
  282. data/lib/adwords_api/v201409/feed_item_service.rb +42 -0
  283. data/lib/adwords_api/v201409/feed_item_service_registry.rb +46 -0
  284. data/lib/adwords_api/v201409/feed_mapping_service.rb +42 -0
  285. data/lib/adwords_api/v201409/feed_mapping_service_registry.rb +46 -0
  286. data/lib/adwords_api/v201409/feed_service.rb +42 -0
  287. data/lib/adwords_api/v201409/feed_service_registry.rb +46 -0
  288. data/lib/adwords_api/v201409/geo_location_service.rb +34 -0
  289. data/lib/adwords_api/v201409/geo_location_service_registry.rb +46 -0
  290. data/lib/adwords_api/v201409/label_service.rb +42 -0
  291. data/lib/adwords_api/v201409/label_service_registry.rb +46 -0
  292. data/lib/adwords_api/v201409/location_criterion_service.rb +38 -0
  293. data/lib/adwords_api/v201409/location_criterion_service_registry.rb +46 -0
  294. data/lib/adwords_api/v201409/managed_customer_service.rb +50 -0
  295. data/lib/adwords_api/v201409/managed_customer_service_registry.rb +46 -0
  296. data/lib/adwords_api/v201409/media_service.rb +42 -0
  297. data/lib/adwords_api/v201409/media_service_registry.rb +46 -0
  298. data/lib/adwords_api/v201409/mutate_job_service.rb +42 -0
  299. data/lib/adwords_api/v201409/mutate_job_service_registry.rb +46 -0
  300. data/lib/adwords_api/v201409/offline_conversion_feed_service.rb +34 -0
  301. data/lib/adwords_api/v201409/offline_conversion_feed_service_registry.rb +46 -0
  302. data/lib/adwords_api/v201409/report_definition_service.rb +34 -0
  303. data/lib/adwords_api/v201409/report_definition_service_registry.rb +46 -0
  304. data/lib/adwords_api/v201409/shared_criterion_service.rb +38 -0
  305. data/lib/adwords_api/v201409/shared_criterion_service_registry.rb +47 -0
  306. data/lib/adwords_api/v201409/shared_set_service.rb +38 -0
  307. data/lib/adwords_api/v201409/shared_set_service_registry.rb +47 -0
  308. data/lib/adwords_api/v201409/targeting_idea_service.rb +34 -0
  309. data/lib/adwords_api/v201409/targeting_idea_service_registry.rb +46 -0
  310. data/lib/adwords_api/v201409/traffic_estimator_service.rb +34 -0
  311. data/lib/adwords_api/v201409/traffic_estimator_service_registry.rb +46 -0
  312. data/lib/adwords_api/version.rb +1 -1
  313. data/test/templates/v201402/basic_operations_get_campaigns.def +0 -0
  314. data/test/templates/v201402/misc_use_oauth2_jwt.def +0 -0
  315. data/test/templates/v201406/basic_operations_get_campaigns.def +0 -0
  316. data/test/templates/v201406/misc_use_oauth2_jwt.def +0 -0
  317. data/test/templates/v201409/basic_operations_get_campaigns.def +114 -0
  318. data/test/templates/v201409/misc_use_oauth2_jwt.def +131 -0
  319. metadata +307 -167
@@ -0,0 +1,34 @@
1
+ # Encoding: utf-8
2
+ #
3
+ # This is auto-generated code, changes will be overwritten.
4
+ #
5
+ # Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
6
+ # License:: Licensed under the Apache License, Version 2.0.
7
+ #
8
+ # Code generated by AdsCommon library 0.9.5 on 2014-10-06 13:13:14.
9
+
10
+ require 'ads_common/savon_service'
11
+ require 'adwords_api/v201409/targeting_idea_service_registry'
12
+
13
+ module AdwordsApi; module V201409; module TargetingIdeaService
14
+ class TargetingIdeaService < AdsCommon::SavonService
15
+ def initialize(config, endpoint)
16
+ namespace = 'https://adwords.google.com/api/adwords/o/v201409'
17
+ super(config, endpoint, namespace, :v201409)
18
+ end
19
+
20
+ def get(*args, &block)
21
+ return execute_action('get', args, &block)
22
+ end
23
+
24
+ private
25
+
26
+ def get_service_registry()
27
+ return TargetingIdeaServiceRegistry
28
+ end
29
+
30
+ def get_module()
31
+ return AdwordsApi::V201409::TargetingIdeaService
32
+ end
33
+ end
34
+ end; end; end
@@ -0,0 +1,46 @@
1
+ # Encoding: utf-8
2
+ #
3
+ # This is auto-generated code, changes will be overwritten.
4
+ #
5
+ # Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
6
+ # License:: Licensed under the Apache License, Version 2.0.
7
+ #
8
+ # Code generated by AdsCommon library 0.9.5 on 2014-10-06 13:13:14.
9
+
10
+ require 'adwords_api/errors'
11
+
12
+ module AdwordsApi; module V201409; module TargetingIdeaService
13
+ class TargetingIdeaServiceRegistry
14
+ TARGETINGIDEASERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"TargetingIdeaSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"TargetingIdeaPage", :min_occurs=>0, :max_occurs=>1}]}}}
15
+ TARGETINGIDEASERVICE_TYPES = {:AdGroupBidLandscape=>{:fields=>[{:name=>:type, :type=>"AdGroupBidLandscape.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:landscape_current, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"BidLandscape", :ns=>0}, :AdGroupCriterionError=>{:fields=>[{:name=>:reason, :type=>"AdGroupCriterionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:name=>:limit_type, :type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :min_occurs=>0, :max_occurs=>1}], :base=>"EntityCountLimitExceeded", :ns=>0}, :AdxError=>{:fields=>[{:name=>:reason, :type=>"AdxError.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}, :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}, :BidLandscape=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:landscape_points, :type=>"BidLandscape.LandscapePoint", :min_occurs=>0, :max_occurs=>:unbounded}], :abstract=>true, :base=>"DataEntry", :ns=>0}, :"BidLandscape.LandscapePoint"=>{:fields=>[{:name=>:bid, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:marginal_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:promoted_impressions, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :BiddingError=>{:fields=>[{:name=>:reason, :type=>"BiddingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :BudgetError=>{:fields=>[{:name=>:reason, :type=>"BudgetError.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}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :original_name=>"ComparableValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :original_name=>"Criterion.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :CriterionBidLandscape=>{:fields=>[{:name=>:criterion_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"BidLandscape", :ns=>0}, :CriterionError=>{:fields=>[{:name=>:reason, :type=>"CriterionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :CriterionPolicyError=>{:fields=>[], :base=>"PolicyViolationError", :ns=>0}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DimensionProperties=>{:fields=>[{:name=>:level_of_detail, :type=>"LevelOfDetail", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"DataEntry", :ns=>0}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DomainCategory=>{:fields=>[{:name=>:category, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:coverage, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:domain_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:iso_language, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"DimensionProperties", :ns=>0}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :EntityCountLimitExceeded=>{:fields=>[{:name=>:reason, :type=>"EntityCountLimitExceeded.Reason", :min_occurs=>0, :max_occurs=>1}, {:name=>:enclosing_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:limit, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:account_limit_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:existing_count, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.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}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Language=>{:fields=>[{:name=>:code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :LevelOfDetail=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Location=>{:fields=>[{:name=>:location_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:targeting_status, :type=>"LocationTargetingStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:parent_locations, :type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion", :ns=>0}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :MobileAppCategory=>{:fields=>[{:name=>:mobile_app_category_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :MobileApplication=>{:fields=>[{:name=>:app_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue", :ns=>0}, :NetworkSetting=>{:fields=>[{:name=>:target_google_search, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_content_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_partner_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :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}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue", :ns=>0}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :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}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Platform=>{:fields=>[{:name=>:platform_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :PolicyViolationError=>{:fields=>[{:name=>:key, :type=>"PolicyViolationKey", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_policy_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:external_policy_description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_exemptable, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_parts, :type=>"PolicyViolationError.Part", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApiError", :ns=>0}, :"PolicyViolationError.Part"=>{:fields=>[{:name=>:index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:length, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :PolicyViolationKey=>{:fields=>[{:name=>:policy_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:violating_text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Product=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :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}, :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}, :StatsQueryError=>{:fields=>[{:name=>:reason, :type=>"StatsQueryError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :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}, :DataEntry=>{:fields=>[{:name=>:data_entry_type, :original_name=>"DataEntry.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :TargetError=>{:fields=>[{:name=>:reason, :type=>"TargetError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Vertical=>{:fields=>[{:name=>:vertical_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:vertical_parent_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion", :ns=>0}, :"AdGroupBidLandscape.Type"=>{:fields=>[], :ns=>0}, :"AdGroupCriterionError.Reason"=>{:fields=>[], :ns=>0}, :"AdGroupCriterionLimitExceeded.CriteriaLimitType"=>{:fields=>[], :ns=>0}, :"AdxError.Reason"=>{:fields=>[], :ns=>0}, :"AuthenticationError.Reason"=>{:fields=>[], :ns=>0}, :"AuthorizationError.Reason"=>{:fields=>[], :ns=>0}, :"BiddingError.Reason"=>{:fields=>[], :ns=>0}, :"BudgetError.Reason"=>{:fields=>[], :ns=>0}, :"ClientTermsError.Reason"=>{:fields=>[], :ns=>0}, :"CollectionSizeError.Reason"=>{:fields=>[], :ns=>0}, :"Criterion.Type"=>{:fields=>[], :ns=>0}, :"CriterionError.Reason"=>{:fields=>[], :ns=>0}, :"DatabaseError.Reason"=>{:fields=>[], :ns=>0}, :"DateError.Reason"=>{:fields=>[], :ns=>0}, :"DistinctError.Reason"=>{:fields=>[], :ns=>0}, :"EntityCountLimitExceeded.Reason"=>{:fields=>[], :ns=>0}, :"EntityNotFound.Reason"=>{:fields=>[], :ns=>0}, :"IdError.Reason"=>{:fields=>[], :ns=>0}, :"InternalApiError.Reason"=>{:fields=>[], :ns=>0}, :KeywordMatchType=>{:fields=>[], :ns=>0}, :LocationTargetingStatus=>{:fields=>[], :ns=>0}, :"NotEmptyError.Reason"=>{:fields=>[], :ns=>0}, :"NullError.Reason"=>{:fields=>[], :ns=>0}, :"OperationAccessDenied.Reason"=>{: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}, :"SizeLimitError.Reason"=>{:fields=>[], :ns=>0}, :"StatsQueryError.Reason"=>{:fields=>[], :ns=>0}, :"StringFormatError.Reason"=>{:fields=>[], :ns=>0}, :"StringLengthError.Reason"=>{:fields=>[], :ns=>0}, :"TargetError.Reason"=>{:fields=>[], :ns=>0}, :"CriterionUserList.MembershipStatus"=>{:fields=>[], :ns=>0}, :AdFormatSpec=>{:fields=>[{:name=>:format, :type=>"SiteConstants.AdFormat", :min_occurs=>0, :max_occurs=>1}]}, :AdFormatSpecListAttribute=>{:fields=>[{:name=>:value, :type=>"AdFormatSpec", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Attribute"}, :AdSpec=>{:fields=>[], :choices=>[{:name=>:display_ad_spec, :original_name=>"DisplayAdSpec", :type=>"DisplayAdSpec", :min_occurs=>1, :max_occurs=>1}, {:name=>:in_stream_ad_spec, :original_name=>"InStreamAdSpec", :type=>"InStreamAdSpec", :min_occurs=>1, :max_occurs=>1}, {:name=>:text_ad_spec, :original_name=>"TextAdSpec", :type=>"TextAdSpec", :min_occurs=>1, :max_occurs=>1}]}, :AdSpecListAttribute=>{:fields=>[{:name=>:value, :type=>"AdSpec", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Attribute"}, :Attribute=>{:fields=>[{:name=>:attribute_type, :original_name=>"Attribute.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :BidLandscapeAttribute=>{:fields=>[{:name=>:value, :type=>"BidLandscape", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :BooleanAttribute=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :CategoryProductsAndServicesSearchParameter=>{:fields=>[{:name=>:category_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"SearchParameter"}, :CompetitionSearchParameter=>{:fields=>[{:name=>:levels, :type=>"CompetitionSearchParameter.Level", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :CriterionAttribute=>{:fields=>[{:name=>:value, :type=>"Criterion", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :DisplayAdSpec=>{:fields=>[{:name=>:display_types, :type=>"DisplayType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:activation_options, :type=>"DisplayAdSpec.ActivationOption", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:ad_size_specs, :type=>"DisplayAdSpec.AdSizeSpec", :min_occurs=>0, :max_occurs=>:unbounded}]}, :"DisplayAdSpec.AdSizeSpec"=>{:fields=>[{:name=>:width, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:height, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:activation_option_filter, :type=>"DisplayAdSpec.ActivationOption", :min_occurs=>0, :max_occurs=>:unbounded}]}, :DisplayType=>{:fields=>[], :choices=>[{:name=>:flash_display_type, :original_name=>"FlashDisplayType", :type=>"FlashDisplayType", :min_occurs=>1, :max_occurs=>1}, {:name=>:html_display_type, :original_name=>"HtmlDisplayType", :type=>"HtmlDisplayType", :min_occurs=>1, :max_occurs=>1}, {:name=>:image_display_type, :original_name=>"ImageDisplayType", :type=>"ImageDisplayType", :min_occurs=>1, :max_occurs=>1}]}, :DoubleAttribute=>{:fields=>[{:name=>:value, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :ExcludedKeywordSearchParameter=>{:fields=>[{:name=>:keywords, :type=>"Keyword", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :FlashDisplayType=>{:fields=>[]}, :HtmlDisplayType=>{:fields=>[{:name=>:html_option, :type=>"HtmlDisplayType.HtmlOption", :min_occurs=>0, :max_occurs=>1}]}, :IdeaTextFilterSearchParameter=>{:fields=>[{:name=>:included, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:excluded, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :IdeaTypeAttribute=>{:fields=>[{:name=>:value, :type=>"IdeaType", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :ImageDisplayType=>{:fields=>[]}, :InStreamAdInfo=>{:fields=>[{:name=>:max_ad_duration, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:min_ad_duration, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:median_ad_duration, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:pre_roll_percent, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:mid_roll_percent, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:post_roll_percent, :type=>"double", :min_occurs=>0, :max_occurs=>1}]}, :InStreamAdInfoAttribute=>{:fields=>[{:name=>:value, :type=>"InStreamAdInfo", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :InStreamAdSpec=>{:fields=>[{:name=>:in_stream_types, :type=>"InStreamAdSpec.InStreamType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:durations, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}]}, :IncludeAdultContentSearchParameter=>{:fields=>[], :base=>"SearchParameter"}, :IntegerAttribute=>{:fields=>[{:name=>:value, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :IntegerSetAttribute=>{:fields=>[{:name=>:value, :type=>"int", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Attribute"}, :KeywordAttribute=>{:fields=>[{:name=>:value, :type=>"Keyword", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :LanguageSearchParameter=>{:fields=>[{:name=>:languages, :type=>"Language", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :LocationSearchParameter=>{:fields=>[{:name=>:locations, :type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :LongAttribute=>{:fields=>[{:name=>:value, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :LongComparisonOperation=>{:fields=>[{:name=>:minimum, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:maximum, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :LongRangeAttribute=>{:fields=>[{:name=>:value, :type=>"Range", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :MoneyAttribute=>{:fields=>[{:name=>:value, :type=>"Money", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :MonthlySearchVolume=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:count, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :MonthlySearchVolumeAttribute=>{:fields=>[{:name=>:value, :type=>"MonthlySearchVolume", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Attribute"}, :NetworkSearchParameter=>{:fields=>[{:name=>:network_setting, :type=>"NetworkSetting", :min_occurs=>0, :max_occurs=>1}], :base=>"SearchParameter"}, :OpportunityIdeaTypeAttribute=>{:fields=>[{:name=>:value, :type=>"OpportunityIdeaType", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :PlacementAttribute=>{:fields=>[{:name=>:value, :type=>"Placement", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :PlacementTypeAttribute=>{:fields=>[{:name=>:value, :type=>"SiteConstants.PlacementType", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :Range=>{:fields=>[{:name=>:min, :type=>"ComparableValue", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"ComparableValue", :min_occurs=>0, :max_occurs=>1}]}, :RelatedToQuerySearchParameter=>{:fields=>[{:name=>:queries, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"SearchParameter"}, :RelatedToUrlSearchParameter=>{:fields=>[{:name=>:urls, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:include_sub_urls, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"SearchParameter"}, :SearchParameter=>{:fields=>[{:name=>:search_parameter_type, :original_name=>"SearchParameter.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :SearchVolumeSearchParameter=>{:fields=>[{:name=>:operation, :type=>"LongComparisonOperation", :min_occurs=>0, :max_occurs=>1}], :base=>"SearchParameter"}, :SeedAdGroupIdSearchParameter=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"SearchParameter"}, :StringAttribute=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :TargetingIdea=>{:fields=>[{:name=>:data, :type=>"Type_AttributeMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TargetingIdeaError=>{:fields=>[{:name=>:reason, :type=>"TargetingIdeaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :TargetingIdeaPage=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:entries, :type=>"TargetingIdea", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TargetingIdeaSelector=>{:fields=>[{:name=>:search_parameters, :type=>"SearchParameter", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:idea_type, :type=>"IdeaType", :min_occurs=>0, :max_occurs=>1}, {:name=>:request_type, :type=>"RequestType", :min_occurs=>0, :max_occurs=>1}, {:name=>:requested_attribute_types, :type=>"AttributeType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}, {:name=>:locale_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:currency_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :TextAdSpec=>{:fields=>[]}, :TrafficEstimatorError=>{:fields=>[{:name=>:reason, :type=>"TrafficEstimatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Type_AttributeMapEntry=>{:fields=>[{:name=>:key, :type=>"AttributeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Attribute", :min_occurs=>0, :max_occurs=>1}]}, :WebpageDescriptor=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:title, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :WebpageDescriptorAttribute=>{:fields=>[{:name=>:value, :type=>"WebpageDescriptor", :min_occurs=>0, :max_occurs=>1}], :base=>"Attribute"}, :AttributeType=>{:fields=>[]}, :"CompetitionSearchParameter.Level"=>{:fields=>[]}, :"CurrencyCodeError.Reason"=>{:fields=>[]}, :"DisplayAdSpec.ActivationOption"=>{:fields=>[]}, :"HtmlDisplayType.HtmlOption"=>{:fields=>[]}, :IdeaType=>{:fields=>[]}, :"InStreamAdSpec.InStreamType"=>{:fields=>[]}, :OpportunityIdeaType=>{:fields=>[]}, :RequestType=>{:fields=>[]}, :"SiteConstants.AdFormat"=>{:fields=>[]}, :"SiteConstants.PlacementType"=>{:fields=>[]}, :"TargetingIdeaError.Reason"=>{:fields=>[]}, :"TrafficEstimatorError.Reason"=>{:fields=>[]}}
16
+ TARGETINGIDEASERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201409"]
17
+
18
+ def self.get_method_signature(method_name)
19
+ return TARGETINGIDEASERVICE_METHODS[method_name.to_sym]
20
+ end
21
+
22
+ def self.get_type_signature(type_name)
23
+ return TARGETINGIDEASERVICE_TYPES[type_name.to_sym]
24
+ end
25
+
26
+ def self.get_namespace(index)
27
+ return TARGETINGIDEASERVICE_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, TargetingIdeaServiceRegistry)
44
+ end
45
+ end
46
+ end; end; end
@@ -0,0 +1,34 @@
1
+ # Encoding: utf-8
2
+ #
3
+ # This is auto-generated code, changes will be overwritten.
4
+ #
5
+ # Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
6
+ # License:: Licensed under the Apache License, Version 2.0.
7
+ #
8
+ # Code generated by AdsCommon library 0.9.5 on 2014-10-06 13:13:16.
9
+
10
+ require 'ads_common/savon_service'
11
+ require 'adwords_api/v201409/traffic_estimator_service_registry'
12
+
13
+ module AdwordsApi; module V201409; module TrafficEstimatorService
14
+ class TrafficEstimatorService < AdsCommon::SavonService
15
+ def initialize(config, endpoint)
16
+ namespace = 'https://adwords.google.com/api/adwords/o/v201409'
17
+ super(config, endpoint, namespace, :v201409)
18
+ end
19
+
20
+ def get(*args, &block)
21
+ return execute_action('get', args, &block)
22
+ end
23
+
24
+ private
25
+
26
+ def get_service_registry()
27
+ return TrafficEstimatorServiceRegistry
28
+ end
29
+
30
+ def get_module()
31
+ return AdwordsApi::V201409::TrafficEstimatorService
32
+ end
33
+ end
34
+ end; end; end
@@ -0,0 +1,46 @@
1
+ # Encoding: utf-8
2
+ #
3
+ # This is auto-generated code, changes will be overwritten.
4
+ #
5
+ # Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
6
+ # License:: Licensed under the Apache License, Version 2.0.
7
+ #
8
+ # Code generated by AdsCommon library 0.9.5 on 2014-10-06 13:13:16.
9
+
10
+ require 'adwords_api/errors'
11
+
12
+ module AdwordsApi; module V201409; module TrafficEstimatorService
13
+ class TrafficEstimatorServiceRegistry
14
+ TRAFFICESTIMATORSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"TrafficEstimatorSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"TrafficEstimatorResult", :min_occurs=>0, :max_occurs=>1}]}}}
15
+ TRAFFICESTIMATORSERVICE_TYPES = {:AdxError=>{:fields=>[{:name=>:reason, :type=>"AdxError.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}, :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}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :ComparableValue=>{:fields=>[{:name=>:comparable_value_type, :original_name=>"ComparableValue.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :Criterion=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:type, :type=>"Criterion.Type", :min_occurs=>0, :max_occurs=>1}, {:name=>:criterion_type, :original_name=>"Criterion.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :DatabaseError=>{:fields=>[{:name=>:reason, :type=>"DatabaseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DateError=>{:fields=>[{:name=>:reason, :type=>"DateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DistinctError=>{:fields=>[{:name=>:reason, :type=>"DistinctError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :DoubleValue=>{:fields=>[{:name=>:number, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :EntityAccessDenied=>{:fields=>[{:name=>:reason, :type=>"EntityAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.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}, :Keyword=>{:fields=>[{:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:match_type, :type=>"KeywordMatchType", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Language=>{:fields=>[{:name=>:code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Location=>{:fields=>[{:name=>:location_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:targeting_status, :type=>"LocationTargetingStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:parent_locations, :type=>"Location", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion", :ns=>0}, :LongValue=>{:fields=>[{:name=>:number, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"NumberValue", :ns=>0}, :MobileAppCategory=>{:fields=>[{:name=>:mobile_app_category_id, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :MobileApplication=>{:fields=>[{:name=>:app_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:display_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Money=>{:fields=>[{:name=>:micro_amount, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"ComparableValue", :ns=>0}, :NetworkSetting=>{:fields=>[{:name=>:target_google_search, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_content_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_partner_search_network, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :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}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue", :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}, :Placement=>{:fields=>[{:name=>:url, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Platform=>{:fields=>[{:name=>:platform_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Product=>{:fields=>[{:name=>:conditions, :type=>"ProductCondition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:text, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :ProductCondition=>{:fields=>[{:name=>:argument, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operand, :type=>"ProductConditionOperand", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :ProductConditionOperand=>{:fields=>[{:name=>:operand, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :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}, :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}, :TargetError=>{:fields=>[{:name=>:reason, :type=>"TargetError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :CriterionUserInterest=>{:fields=>[{:name=>:user_interest_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_interest_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :CriterionUserList=>{:fields=>[{:name=>:user_list_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_list_membership_status, :type=>"CriterionUserList.MembershipStatus", :min_occurs=>0, :max_occurs=>1}], :base=>"Criterion", :ns=>0}, :Vertical=>{:fields=>[{:name=>:vertical_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:vertical_parent_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:path, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Criterion", :ns=>0}, :"AdxError.Reason"=>{:fields=>[], :ns=>0}, :"AuthenticationError.Reason"=>{:fields=>[], :ns=>0}, :"AuthorizationError.Reason"=>{:fields=>[], :ns=>0}, :"ClientTermsError.Reason"=>{:fields=>[], :ns=>0}, :"CollectionSizeError.Reason"=>{:fields=>[], :ns=>0}, :"Criterion.Type"=>{:fields=>[], :ns=>0}, :"DatabaseError.Reason"=>{:fields=>[], :ns=>0}, :"DateError.Reason"=>{:fields=>[], :ns=>0}, :"DistinctError.Reason"=>{:fields=>[], :ns=>0}, :"EntityAccessDenied.Reason"=>{:fields=>[], :ns=>0}, :"EntityNotFound.Reason"=>{:fields=>[], :ns=>0}, :"IdError.Reason"=>{:fields=>[], :ns=>0}, :"InternalApiError.Reason"=>{:fields=>[], :ns=>0}, :KeywordMatchType=>{:fields=>[], :ns=>0}, :LocationTargetingStatus=>{:fields=>[], :ns=>0}, :"NotEmptyError.Reason"=>{:fields=>[], :ns=>0}, :"NullError.Reason"=>{:fields=>[], :ns=>0}, :"OperationAccessDenied.Reason"=>{:fields=>[], :ns=>0}, :"OperatorError.Reason"=>{: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}, :"SizeLimitError.Reason"=>{:fields=>[], :ns=>0}, :"StringFormatError.Reason"=>{:fields=>[], :ns=>0}, :"StringLengthError.Reason"=>{:fields=>[], :ns=>0}, :"TargetError.Reason"=>{:fields=>[], :ns=>0}, :"CriterionUserList.MembershipStatus"=>{:fields=>[], :ns=>0}, :AdGroupEstimate=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:keyword_estimates, :type=>"KeywordEstimate", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Estimate"}, :AdGroupEstimateRequest=>{:fields=>[{:name=>:ad_group_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:keyword_estimate_requests, :type=>"KeywordEstimateRequest", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:max_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}], :base=>"EstimateRequest"}, :CampaignEstimate=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_estimates, :type=>"AdGroupEstimate", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Estimate"}, :CampaignEstimateRequest=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_group_estimate_requests, :type=>"AdGroupEstimateRequest", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:criteria, :type=>"Criterion", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:network_setting, :type=>"NetworkSetting", :min_occurs=>0, :max_occurs=>1}, {:name=>:daily_budget, :type=>"Money", :min_occurs=>0, :max_occurs=>1}], :base=>"EstimateRequest"}, :CurrencyCodeError=>{:fields=>[{:name=>:reason, :type=>"CurrencyCodeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Estimate=>{:fields=>[{:name=>:estimate_type, :original_name=>"Estimate.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :EstimateRequest=>{:fields=>[{:name=>:estimate_request_type, :original_name=>"EstimateRequest.Type", :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :KeywordEstimate=>{:fields=>[{:name=>:criterion_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:min, :type=>"StatsEstimate", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"StatsEstimate", :min_occurs=>0, :max_occurs=>1}], :base=>"Estimate"}, :KeywordEstimateRequest=>{:fields=>[{:name=>:keyword, :type=>"Keyword", :min_occurs=>0, :max_occurs=>1}, {:name=>:max_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_negative, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"EstimateRequest"}, :StatsEstimate=>{:fields=>[{:name=>:average_cpc, :type=>"Money", :min_occurs=>0, :max_occurs=>1}, {:name=>:average_position, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:click_through_rate, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:clicks_per_day, :type=>"float", :min_occurs=>0, :max_occurs=>1}, {:name=>:impressions_per_day, :type=>"float", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_cost, :type=>"Money", :min_occurs=>0, :max_occurs=>1}]}, :TrafficEstimatorError=>{:fields=>[{:name=>:reason, :type=>"TrafficEstimatorError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :TrafficEstimatorResult=>{:fields=>[{:name=>:campaign_estimates, :type=>"CampaignEstimate", :min_occurs=>0, :max_occurs=>:unbounded}]}, :TrafficEstimatorSelector=>{:fields=>[{:name=>:campaign_estimate_requests, :type=>"CampaignEstimateRequest", :min_occurs=>0, :max_occurs=>:unbounded}]}, :"CurrencyCodeError.Reason"=>{:fields=>[]}, :"TrafficEstimatorError.Reason"=>{:fields=>[]}}
16
+ TRAFFICESTIMATORSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201409"]
17
+
18
+ def self.get_method_signature(method_name)
19
+ return TRAFFICESTIMATORSERVICE_METHODS[method_name.to_sym]
20
+ end
21
+
22
+ def self.get_type_signature(type_name)
23
+ return TRAFFICESTIMATORSERVICE_TYPES[type_name.to_sym]
24
+ end
25
+
26
+ def self.get_namespace(index)
27
+ return TRAFFICESTIMATORSERVICE_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, TrafficEstimatorServiceRegistry)
44
+ end
45
+ end
46
+ end; end; end
@@ -21,6 +21,6 @@
21
21
 
22
22
  module AdwordsApi
23
23
  module ApiConfig
24
- CLIENT_LIB_VERSION = '0.13.1'
24
+ CLIENT_LIB_VERSION = '0.13.2'
25
25
  end
26
26
  end
File without changes
File without changes
@@ -0,0 +1,114 @@
1
+ def setup_mocks()
2
+ $api_config = {
3
+ :service => {:environment => 'PRODUCTION'},
4
+ :authentication => {
5
+ :method => 'ClientLogin',
6
+ :email => 'noreply@google.com',
7
+ :password => 'noreply_password',
8
+ :developer_token => 'dev_token123',
9
+ :client_customer_id => '123-456-7890',
10
+ :user_agent => 'ruby-tests'
11
+ }
12
+ }
13
+
14
+ stub_request(:post, "https://www.google.com/accounts/ClientLogin").
15
+ with(:body => {"Email"=>"noreply@google.com", "Passwd"=>"noreply_password", "accountType"=>"GOOGLE", "service"=>"adwords"}).
16
+ to_return(:status => 200, :body => "SID=abcSIDbcd\nLSID=abcLSIDbcd\nAuth=abcAuthbcd\n", :headers => {})
17
+
18
+ stub_request(:post, "https://adwords.google.com/api/adwords/cm/v201409/CampaignService").
19
+ with(
20
+ :body =>
21
+ # autogenerated code
22
+ {"env:Envelope"=>
23
+ {"env:Header"=>
24
+ {"wsdl:RequestHeader"=>
25
+ {"userAgent"=>"ruby-tests (AwApi-Ruby/0.13.2, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
26
+ "developerToken"=>"dev_token123",
27
+ "clientCustomerId"=>"123-456-7890",
28
+ "authToken"=>"abcAuthbcd",
29
+ "xmlns"=>"https://adwords.google.com/api/adwords/cm/v201409"}},
30
+ "env:Body"=>
31
+ {"get"=>
32
+ {"serviceSelector"=>
33
+ {"fields"=>["Id", "Name", "Status"],
34
+ "ordering"=>{"field"=>"Name", "sortOrder"=>"ASCENDING"},
35
+ "paging"=>{"startIndex"=>"0", "numberResults"=>"5"}},
36
+ "xmlns"=>"https://adwords.google.com/api/adwords/cm/v201409"}},
37
+ "xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
38
+ "xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
39
+ "xmlns:wsdl"=>"https://adwords.google.com/api/adwords/cm/v201409",
40
+ "xmlns:env"=>"http://schemas.xmlsoap.org/soap/envelope/"}},
41
+ # end of auto-generated code.
42
+ :headers => {
43
+ 'SOAPAction' => '"get"',
44
+ 'Content-Type' => 'text/xml;charset=UTF-8'
45
+ }
46
+ ).
47
+ to_return(
48
+ :status => 200,
49
+ :body => '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
50
+ <soap:Header>
51
+ <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201409">
52
+ <requestId>0004c</requestId>
53
+ <serviceName>CampaignService</serviceName>
54
+ <methodName>get</methodName>
55
+ <operations>42</operations>
56
+ <responseTime>84</responseTime>
57
+ <units>42</units>
58
+ </ResponseHeader>
59
+ </soap:Header>
60
+ <soap:Body>
61
+ <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201409">
62
+ <rval>
63
+ <totalNumEntries>2</totalNumEntries>
64
+ <Page.Type>CampaignPage</Page.Type>
65
+ <totalBudget>
66
+ <period>DAILY</period><amount><ComparableValue.Type>Money</ComparableValue.Type>
67
+ <microAmount>0</microAmount></amount>
68
+ </totalBudget>
69
+ <entries>
70
+ <id>15</id><name>Campaign name 1</name><status>PAUSED</status><campaignStats><network>ALL</network>
71
+ <Stats.Type>CampaignStats</Stats.Type></campaignStats><frequencyCap><impressions>0</impressions></frequencyCap>
72
+ </entries>
73
+ <entries>
74
+ <id>16</id><name>Campaign name 2</name><status>ACTIVE</status><campaignStats><network>ALL</network>
75
+ <Stats.Type>CampaignStats</Stats.Type></campaignStats><frequencyCap><impressions>150</impressions></frequencyCap>
76
+ </entries>
77
+ </rval>
78
+ </getResponse>
79
+ </soap:Body>
80
+ </soap:Envelope>',
81
+ :headers => {'content-type' => 'text/xml;'}
82
+ )
83
+ end
84
+
85
+ def run_asserts()
86
+ assert_equal(2, $latest_result[:total_num_entries])
87
+ assert_equal('CampaignPage', $latest_result[:page_type])
88
+ entries = $latest_result[:entries]
89
+ assert_equal(2, entries.size)
90
+
91
+ if entries[0][:id] == 15
92
+ assert_campaign_15(entries[0])
93
+ assert_campaign_16(entries[1])
94
+ else
95
+ assert_campaign_15(entries[1])
96
+ assert_campaign_16(entries[0])
97
+ end
98
+ end
99
+
100
+ def assert_campaign_15(entry)
101
+ assert_equal(15, entry[:id])
102
+ assert_equal('Campaign name 1', entry[:name])
103
+ assert_equal('PAUSED', entry[:status])
104
+ assert_equal({:network=>"ALL", :stats_type=>"CampaignStats"}, entry[:campaign_stats])
105
+ assert_equal({:impressions=>0}, entry[:frequency_cap])
106
+ end
107
+
108
+ def assert_campaign_16(entry)
109
+ assert_equal(16, entry[:id])
110
+ assert_equal('Campaign name 2', entry[:name])
111
+ assert_equal('ACTIVE', entry[:status])
112
+ assert_equal({:network=>"ALL", :stats_type=>"CampaignStats"}, entry[:campaign_stats])
113
+ assert_equal({:impressions=>150}, entry[:frequency_cap])
114
+ end
@@ -0,0 +1,131 @@
1
+ def setup_mocks()
2
+ file_name = 'privatekey.p12'
3
+ file_contents = 'file contents'
4
+ key_secret = 'not-secret'
5
+
6
+ $api_config = {
7
+ :service => {:environment => 'PRODUCTION'},
8
+ :authentication => {
9
+ :method => 'OAUTH2_JWT',
10
+ :oauth2_issuer => 'not-valid@developer.gserviceaccount.com',
11
+ :oauth2_secret => key_secret,
12
+ :oauth2_keyfile => file_name,
13
+ :developer_token => 'dev_token123',
14
+ :client_customer_id => '123-456-7890',
15
+ :user_agent => 'ruby-tests'
16
+ }
17
+ }
18
+
19
+ stub(File).file?(file_name) { true }
20
+ stub.proxy(File).file?
21
+
22
+ stub(File).read(file_name) { file_contents }
23
+ stub.proxy(File).read
24
+
25
+ key = mock!.key { 'pkcs12 key' }
26
+ stub(OpenSSL::PKCS12).new.with(file_contents, key_secret) { key }
27
+
28
+ stub_request(:post, "https://accounts.google.com/o/oauth2/token").
29
+ with(:body => hash_including({"grant_type"=>"urn:ietf:params:oauth:grant-type:jwt-bearer"}),
30
+ :headers => {'Accept'=>'*/*', 'Cache-Control'=>'no-store', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Ruby'}).
31
+ with(:body => /assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9/).
32
+ to_return(:status => 200,
33
+ :body => "{\n \"access_token\" : \"ab01.CBEF2GHi3JKlMnOpqRstUvW4X-YzaBcdEFG5IjKLMNPPqRStuV\",\n \"token_type\" : \"Bearer\",\n \"expires_in\" : 3600\n}",
34
+ :headers => {"Content-Type"=>"application/json"})
35
+
36
+ stub_request(:post, "https://adwords.google.com/api/adwords/cm/v201409/CampaignService").
37
+ with(
38
+ :body =>
39
+ # autogenerated code
40
+ {"env:Envelope"=>
41
+ {"env:Header"=>
42
+ {"wsdl:RequestHeader"=>
43
+ {"userAgent"=>"ruby-tests (AwApi-Ruby/0.13.2, Common-Ruby/0.9.6, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
44
+ "developerToken"=>"dev_token123",
45
+ "clientCustomerId"=>"123-456-7890",
46
+ "xmlns"=>"https://adwords.google.com/api/adwords/cm/v201409"}},
47
+ "env:Body"=>
48
+ {"get"=>
49
+ {"serviceSelector"=>
50
+ {"fields"=>["Id", "Name", "Status"],
51
+ "ordering"=>{"field"=>"Name", "sortOrder"=>"ASCENDING"}},
52
+ "xmlns"=>"https://adwords.google.com/api/adwords/cm/v201409"}},
53
+ "xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
54
+ "xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
55
+ "xmlns:wsdl"=>"https://adwords.google.com/api/adwords/cm/v201409",
56
+ "xmlns:env"=>"http://schemas.xmlsoap.org/soap/envelope/"}},
57
+ # end of auto-generated code.
58
+ :headers => {
59
+ 'SOAPAction' => '"get"',
60
+ 'Content-Type' => 'text/xml;charset=UTF-8',
61
+ 'Authorization' => 'Bearer ab01.CBEF2GHi3JKlMnOpqRstUvW4X-YzaBcdEFG5IjKLMNPPqRStuV'
62
+ }
63
+ ).
64
+ to_return(
65
+ :status => 200,
66
+ :body => '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
67
+ <soap:Header>
68
+ <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201409">
69
+ <requestId>0004c</requestId>
70
+ <serviceName>CampaignService</serviceName>
71
+ <methodName>get</methodName>
72
+ <operations>42</operations>
73
+ <responseTime>84</responseTime>
74
+ <units>42</units>
75
+ </ResponseHeader>
76
+ </soap:Header>
77
+ <soap:Body>
78
+ <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201409">
79
+ <rval>
80
+ <totalNumEntries>2</totalNumEntries>
81
+ <Page.Type>CampaignPage</Page.Type>
82
+ <totalBudget>
83
+ <period>DAILY</period><amount><ComparableValue.Type>Money</ComparableValue.Type>
84
+ <microAmount>0</microAmount></amount>
85
+ </totalBudget>
86
+ <entries>
87
+ <id>15</id><name>Campaign name 1</name><status>PAUSED</status><campaignStats><network>ALL</network>
88
+ <Stats.Type>CampaignStats</Stats.Type></campaignStats><frequencyCap><impressions>0</impressions></frequencyCap>
89
+ </entries>
90
+ <entries>
91
+ <id>16</id><name>Campaign name 2</name><status>ACTIVE</status><campaignStats><network>ALL</network>
92
+ <Stats.Type>CampaignStats</Stats.Type></campaignStats><frequencyCap><impressions>150</impressions></frequencyCap>
93
+ </entries>
94
+ </rval>
95
+ </getResponse>
96
+ </soap:Body>
97
+ </soap:Envelope>',
98
+ :headers => {'content-type' => 'text/xml;'}
99
+ )
100
+ end
101
+
102
+ def run_asserts()
103
+ assert_equal(2, $latest_result[:total_num_entries])
104
+ assert_equal('CampaignPage', $latest_result[:page_type])
105
+ entries = $latest_result[:entries]
106
+ assert_equal(2, entries.size)
107
+
108
+ if entries[0][:id] == 15
109
+ assert_campaign_15(entries[0])
110
+ assert_campaign_16(entries[1])
111
+ else
112
+ assert_campaign_15(entries[1])
113
+ assert_campaign_16(entries[0])
114
+ end
115
+ end
116
+
117
+ def assert_campaign_15(entry)
118
+ assert_equal(15, entry[:id])
119
+ assert_equal('Campaign name 1', entry[:name])
120
+ assert_equal('PAUSED', entry[:status])
121
+ assert_equal({:network=>"ALL", :stats_type=>"CampaignStats"}, entry[:campaign_stats])
122
+ assert_equal({:impressions=>0}, entry[:frequency_cap])
123
+ end
124
+
125
+ def assert_campaign_16(entry)
126
+ assert_equal(16, entry[:id])
127
+ assert_equal('Campaign name 2', entry[:name])
128
+ assert_equal('ACTIVE', entry[:status])
129
+ assert_equal({:network=>"ALL", :stats_type=>"CampaignStats"}, entry[:campaign_stats])
130
+ assert_equal({:impressions=>150}, entry[:frequency_cap])
131
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-adwords-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
5
- prerelease:
4
+ version: 0.13.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Danial Klimkin
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-08-22 00:00:00.000000000 Z
12
+ date: 2014-10-10 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: google-ads-common
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -36,6 +33,223 @@ executables: []
36
33
  extensions: []
37
34
  extra_rdoc_files: []
38
35
  files:
36
+ - COPYING
37
+ - ChangeLog
38
+ - README.md
39
+ - adwords_api.yml
40
+ - examples/v201402/account_management/create_account.rb
41
+ - examples/v201402/account_management/get_account_alerts.rb
42
+ - examples/v201402/account_management/get_account_changes.rb
43
+ - examples/v201402/account_management/get_account_hierarchy.rb
44
+ - examples/v201402/advanced_operations/add_ad_group_bid_modifier.rb
45
+ - examples/v201402/advanced_operations/add_click_to_download_ad.rb
46
+ - examples/v201402/advanced_operations/add_places_location_extensions.rb
47
+ - examples/v201402/advanced_operations/add_site_links.rb
48
+ - examples/v201402/advanced_operations/get_ad_group_bid_modifiers.rb
49
+ - examples/v201402/advanced_operations/update_site_links.rb
50
+ - examples/v201402/advanced_operations/upload_offline_conversions.rb
51
+ - examples/v201402/advanced_operations/use_shared_bidding_strategy.rb
52
+ - examples/v201402/basic_operations/add_ad_groups.rb
53
+ - examples/v201402/basic_operations/add_campaigns.rb
54
+ - examples/v201402/basic_operations/add_keywords.rb
55
+ - examples/v201402/basic_operations/add_text_ads.rb
56
+ - examples/v201402/basic_operations/delete_ad.rb
57
+ - examples/v201402/basic_operations/delete_ad_group.rb
58
+ - examples/v201402/basic_operations/delete_campaign.rb
59
+ - examples/v201402/basic_operations/delete_keyword.rb
60
+ - examples/v201402/basic_operations/get_ad_groups.rb
61
+ - examples/v201402/basic_operations/get_campaigns.rb
62
+ - examples/v201402/basic_operations/get_campaigns_with_awql.rb
63
+ - examples/v201402/basic_operations/get_keywords.rb
64
+ - examples/v201402/basic_operations/get_text_ads.rb
65
+ - examples/v201402/basic_operations/pause_ad.rb
66
+ - examples/v201402/basic_operations/update_ad_group.rb
67
+ - examples/v201402/basic_operations/update_campaign.rb
68
+ - examples/v201402/basic_operations/update_keyword.rb
69
+ - examples/v201402/campaign_management/add_experiment.rb
70
+ - examples/v201402/campaign_management/add_keywords_in_bulk.rb
71
+ - examples/v201402/campaign_management/add_location_extension.rb
72
+ - examples/v201402/campaign_management/get_all_disapproved_ads.rb
73
+ - examples/v201402/campaign_management/get_all_disapproved_ads_with_awql.rb
74
+ - examples/v201402/campaign_management/promote_experiment.rb
75
+ - examples/v201402/campaign_management/set_ad_parameters.rb
76
+ - examples/v201402/campaign_management/set_criterion_bid_modifier.rb
77
+ - examples/v201402/campaign_management/validate_text_ad.rb
78
+ - examples/v201402/error_handling/handle_captcha_challenge.rb
79
+ - examples/v201402/error_handling/handle_partial_failures.rb
80
+ - examples/v201402/error_handling/handle_policy_violation_error.rb
81
+ - examples/v201402/error_handling/handle_two_factor_authorization_error.rb
82
+ - examples/v201402/misc/create_ad_words_session_without_properties_file.rb
83
+ - examples/v201402/misc/get_all_images_and_videos.rb
84
+ - examples/v201402/misc/setup_oauth2.rb
85
+ - examples/v201402/misc/upload_image.rb
86
+ - examples/v201402/misc/use_oauth2_jwt.rb
87
+ - examples/v201402/optimization/estimate_keyword_traffic.rb
88
+ - examples/v201402/optimization/get_keyword_bid_simulations.rb
89
+ - examples/v201402/optimization/get_keyword_ideas.rb
90
+ - examples/v201402/optimization/get_placement_ideas.rb
91
+ - examples/v201402/remarketing/add_audience.rb
92
+ - examples/v201402/remarketing/add_conversion_tracker.rb
93
+ - examples/v201402/reporting/download_criteria_report.rb
94
+ - examples/v201402/reporting/download_criteria_report_with_awql.rb
95
+ - examples/v201402/reporting/get_report_fields.rb
96
+ - examples/v201402/reporting/parallel_report_download.rb
97
+ - examples/v201402/shopping_campaigns/add_product_partition_tree.rb
98
+ - examples/v201402/shopping_campaigns/add_product_scope.rb
99
+ - examples/v201402/shopping_campaigns/add_shopping_campaign.rb
100
+ - examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb
101
+ - examples/v201402/shopping_campaigns/set_product_sales_channel.rb
102
+ - examples/v201402/targeting/add_campaign_targeting_criteria.rb
103
+ - examples/v201402/targeting/add_demographic_targeting_criteria.rb
104
+ - examples/v201402/targeting/get_campaign_targeting_criteria.rb
105
+ - examples/v201402/targeting/get_targetable_languages_and_carriers.rb
106
+ - examples/v201402/targeting/lookup_location.rb
107
+ - examples/v201406/account_management/create_account.rb
108
+ - examples/v201406/account_management/get_account_alerts.rb
109
+ - examples/v201406/account_management/get_account_changes.rb
110
+ - examples/v201406/account_management/get_account_hierarchy.rb
111
+ - examples/v201406/advanced_operations/add_ad_customizer.rb
112
+ - examples/v201406/advanced_operations/add_ad_group_bid_modifier.rb
113
+ - examples/v201406/advanced_operations/add_click_to_download_ad.rb
114
+ - examples/v201406/advanced_operations/add_places_location_extensions.rb
115
+ - examples/v201406/advanced_operations/add_site_links.rb
116
+ - examples/v201406/advanced_operations/add_text_ad_with_upgraded_urls.rb
117
+ - examples/v201406/advanced_operations/get_ad_group_bid_modifiers.rb
118
+ - examples/v201406/advanced_operations/update_site_links.rb
119
+ - examples/v201406/advanced_operations/upload_offline_conversions.rb
120
+ - examples/v201406/advanced_operations/use_shared_bidding_strategy.rb
121
+ - examples/v201406/basic_operations/add_ad_groups.rb
122
+ - examples/v201406/basic_operations/add_campaigns.rb
123
+ - examples/v201406/basic_operations/add_keywords.rb
124
+ - examples/v201406/basic_operations/add_text_ads.rb
125
+ - examples/v201406/basic_operations/get_ad_groups.rb
126
+ - examples/v201406/basic_operations/get_campaigns.rb
127
+ - examples/v201406/basic_operations/get_campaigns_with_awql.rb
128
+ - examples/v201406/basic_operations/get_keywords.rb
129
+ - examples/v201406/basic_operations/get_text_ads.rb
130
+ - examples/v201406/basic_operations/pause_ad.rb
131
+ - examples/v201406/basic_operations/remove_ad.rb
132
+ - examples/v201406/basic_operations/remove_ad_group.rb
133
+ - examples/v201406/basic_operations/remove_campaign.rb
134
+ - examples/v201406/basic_operations/remove_keyword.rb
135
+ - examples/v201406/basic_operations/update_ad_group.rb
136
+ - examples/v201406/basic_operations/update_campaign.rb
137
+ - examples/v201406/basic_operations/update_keyword.rb
138
+ - examples/v201406/campaign_management/add_campaign_labels.rb
139
+ - examples/v201406/campaign_management/add_experiment.rb
140
+ - examples/v201406/campaign_management/add_keywords_in_bulk.rb
141
+ - examples/v201406/campaign_management/add_location_extension.rb
142
+ - examples/v201406/campaign_management/get_all_disapproved_ads.rb
143
+ - examples/v201406/campaign_management/get_all_disapproved_ads_with_awql.rb
144
+ - examples/v201406/campaign_management/get_campaigns_by_label.rb
145
+ - examples/v201406/campaign_management/promote_experiment.rb
146
+ - examples/v201406/campaign_management/set_ad_parameters.rb
147
+ - examples/v201406/campaign_management/set_criterion_bid_modifier.rb
148
+ - examples/v201406/campaign_management/validate_text_ad.rb
149
+ - examples/v201406/error_handling/handle_captcha_challenge.rb
150
+ - examples/v201406/error_handling/handle_partial_failures.rb
151
+ - examples/v201406/error_handling/handle_policy_violation_error.rb
152
+ - examples/v201406/error_handling/handle_two_factor_authorization_error.rb
153
+ - examples/v201406/misc/create_ad_words_session_without_properties_file.rb
154
+ - examples/v201406/misc/get_all_images_and_videos.rb
155
+ - examples/v201406/misc/setup_oauth2.rb
156
+ - examples/v201406/misc/upload_image.rb
157
+ - examples/v201406/misc/use_oauth2_jwt.rb
158
+ - examples/v201406/optimization/estimate_keyword_traffic.rb
159
+ - examples/v201406/optimization/get_keyword_bid_simulations.rb
160
+ - examples/v201406/optimization/get_keyword_ideas.rb
161
+ - examples/v201406/optimization/get_placement_ideas.rb
162
+ - examples/v201406/remarketing/add_audience.rb
163
+ - examples/v201406/remarketing/add_conversion_tracker.rb
164
+ - examples/v201406/reporting/download_criteria_report.rb
165
+ - examples/v201406/reporting/download_criteria_report_with_awql.rb
166
+ - examples/v201406/reporting/get_report_fields.rb
167
+ - examples/v201406/reporting/parallel_report_download.rb
168
+ - examples/v201406/shopping_campaigns/add_product_partition_tree.rb
169
+ - examples/v201406/shopping_campaigns/add_product_scope.rb
170
+ - examples/v201406/shopping_campaigns/add_shopping_campaign.rb
171
+ - examples/v201406/shopping_campaigns/get_product_category_taxonomy.rb
172
+ - examples/v201406/shopping_campaigns/set_product_sales_channel.rb
173
+ - examples/v201406/targeting/add_campaign_targeting_criteria.rb
174
+ - examples/v201406/targeting/add_demographic_targeting_criteria.rb
175
+ - examples/v201406/targeting/get_campaign_targeting_criteria.rb
176
+ - examples/v201406/targeting/get_targetable_languages_and_carriers.rb
177
+ - examples/v201406/targeting/lookup_location.rb
178
+ - examples/v201409/account_management/create_account.rb
179
+ - examples/v201409/account_management/get_account_changes.rb
180
+ - examples/v201409/account_management/get_account_hierarchy.rb
181
+ - examples/v201409/advanced_operations/add_ad_customizer.rb
182
+ - examples/v201409/advanced_operations/add_ad_group_bid_modifier.rb
183
+ - examples/v201409/advanced_operations/add_click_to_download_ad.rb
184
+ - examples/v201409/advanced_operations/add_places_location_extensions.rb
185
+ - examples/v201409/advanced_operations/add_site_links.rb
186
+ - examples/v201409/advanced_operations/add_text_ad_with_upgraded_urls.rb
187
+ - examples/v201409/advanced_operations/get_ad_group_bid_modifiers.rb
188
+ - examples/v201409/advanced_operations/update_site_links.rb
189
+ - examples/v201409/advanced_operations/upload_offline_conversions.rb
190
+ - examples/v201409/advanced_operations/use_shared_bidding_strategy.rb
191
+ - examples/v201409/basic_operations/add_ad_groups.rb
192
+ - examples/v201409/basic_operations/add_campaigns.rb
193
+ - examples/v201409/basic_operations/add_keywords.rb
194
+ - examples/v201409/basic_operations/add_text_ads.rb
195
+ - examples/v201409/basic_operations/get_ad_groups.rb
196
+ - examples/v201409/basic_operations/get_campaigns.rb
197
+ - examples/v201409/basic_operations/get_campaigns_with_awql.rb
198
+ - examples/v201409/basic_operations/get_keywords.rb
199
+ - examples/v201409/basic_operations/get_text_ads.rb
200
+ - examples/v201409/basic_operations/pause_ad.rb
201
+ - examples/v201409/basic_operations/remove_ad.rb
202
+ - examples/v201409/basic_operations/remove_ad_group.rb
203
+ - examples/v201409/basic_operations/remove_campaign.rb
204
+ - examples/v201409/basic_operations/remove_keyword.rb
205
+ - examples/v201409/basic_operations/update_ad_group.rb
206
+ - examples/v201409/basic_operations/update_campaign.rb
207
+ - examples/v201409/basic_operations/update_keyword.rb
208
+ - examples/v201409/campaign_management/add_campaign_labels.rb
209
+ - examples/v201409/campaign_management/add_experiment.rb
210
+ - examples/v201409/campaign_management/add_keywords_in_bulk.rb
211
+ - examples/v201409/campaign_management/add_location_extension.rb
212
+ - examples/v201409/campaign_management/get_all_disapproved_ads.rb
213
+ - examples/v201409/campaign_management/get_all_disapproved_ads_with_awql.rb
214
+ - examples/v201409/campaign_management/get_campaigns_by_label.rb
215
+ - examples/v201409/campaign_management/promote_experiment.rb
216
+ - examples/v201409/campaign_management/set_ad_parameters.rb
217
+ - examples/v201409/campaign_management/set_criterion_bid_modifier.rb
218
+ - examples/v201409/campaign_management/validate_text_ad.rb
219
+ - examples/v201409/error_handling/handle_captcha_challenge.rb
220
+ - examples/v201409/error_handling/handle_partial_failures.rb
221
+ - examples/v201409/error_handling/handle_policy_violation_error.rb
222
+ - examples/v201409/error_handling/handle_two_factor_authorization_error.rb
223
+ - examples/v201409/misc/create_ad_words_session_without_properties_file.rb
224
+ - examples/v201409/misc/get_all_images_and_videos.rb
225
+ - examples/v201409/misc/setup_oauth2.rb
226
+ - examples/v201409/misc/upload_image.rb
227
+ - examples/v201409/misc/use_oauth2_jwt.rb
228
+ - examples/v201409/optimization/estimate_keyword_traffic.rb
229
+ - examples/v201409/optimization/get_keyword_bid_simulations.rb
230
+ - examples/v201409/optimization/get_keyword_ideas.rb
231
+ - examples/v201409/remarketing/add_audience.rb
232
+ - examples/v201409/remarketing/add_conversion_tracker.rb
233
+ - examples/v201409/reporting/download_criteria_report.rb
234
+ - examples/v201409/reporting/download_criteria_report_with_awql.rb
235
+ - examples/v201409/reporting/get_report_fields.rb
236
+ - examples/v201409/reporting/parallel_report_download.rb
237
+ - examples/v201409/shopping_campaigns/add_product_partition_tree.rb
238
+ - examples/v201409/shopping_campaigns/add_product_scope.rb
239
+ - examples/v201409/shopping_campaigns/add_shopping_campaign.rb
240
+ - examples/v201409/shopping_campaigns/get_product_category_taxonomy.rb
241
+ - examples/v201409/targeting/add_campaign_targeting_criteria.rb
242
+ - examples/v201409/targeting/add_demographic_targeting_criteria.rb
243
+ - examples/v201409/targeting/get_campaign_targeting_criteria.rb
244
+ - examples/v201409/targeting/get_targetable_languages_and_carriers.rb
245
+ - examples/v201409/targeting/lookup_location.rb
246
+ - lib/adwords_api.rb
247
+ - lib/adwords_api/api_config.rb
248
+ - lib/adwords_api/credential_handler.rb
249
+ - lib/adwords_api/errors.rb
250
+ - lib/adwords_api/report_header_handler.rb
251
+ - lib/adwords_api/report_utils.rb
252
+ - lib/adwords_api/utils.rb
39
253
  - lib/adwords_api/v201402/ad_group_ad_service.rb
40
254
  - lib/adwords_api/v201402/ad_group_ad_service_registry.rb
41
255
  - lib/adwords_api/v201402/ad_group_bid_modifier_service.rb
@@ -110,7 +324,6 @@ files:
110
324
  - lib/adwords_api/v201402/targeting_idea_service_registry.rb
111
325
  - lib/adwords_api/v201402/traffic_estimator_service.rb
112
326
  - lib/adwords_api/v201402/traffic_estimator_service_registry.rb
113
- - lib/adwords_api/version.rb
114
327
  - lib/adwords_api/v201406/ad_group_ad_service.rb
115
328
  - lib/adwords_api/v201406/ad_group_ad_service_registry.rb
116
329
  - lib/adwords_api/v201406/ad_group_bid_modifier_service.rb
@@ -142,6 +355,7 @@ files:
142
355
  - lib/adwords_api/v201406/campaign_service.rb
143
356
  - lib/adwords_api/v201406/campaign_service_registry.rb
144
357
  - lib/adwords_api/v201406/campaign_shared_set_service.rb
358
+ - lib/adwords_api/v201406/campaign_shared_set_service_registry.rb
145
359
  - lib/adwords_api/v201406/constant_data_service.rb
146
360
  - lib/adwords_api/v201406/constant_data_service_registry.rb
147
361
  - lib/adwords_api/v201406/conversion_tracker_service.rb
@@ -165,6 +379,7 @@ files:
165
379
  - lib/adwords_api/v201406/geo_location_service.rb
166
380
  - lib/adwords_api/v201406/geo_location_service_registry.rb
167
381
  - lib/adwords_api/v201406/label_service.rb
382
+ - lib/adwords_api/v201406/label_service_registry.rb
168
383
  - lib/adwords_api/v201406/location_criterion_service.rb
169
384
  - lib/adwords_api/v201406/location_criterion_service_registry.rb
170
385
  - lib/adwords_api/v201406/managed_customer_service.rb
@@ -180,199 +395,124 @@ files:
180
395
  - lib/adwords_api/v201406/shared_criterion_service.rb
181
396
  - lib/adwords_api/v201406/shared_criterion_service_registry.rb
182
397
  - lib/adwords_api/v201406/shared_set_service.rb
398
+ - lib/adwords_api/v201406/shared_set_service_registry.rb
183
399
  - lib/adwords_api/v201406/targeting_idea_service.rb
184
400
  - lib/adwords_api/v201406/targeting_idea_service_registry.rb
185
401
  - lib/adwords_api/v201406/traffic_estimator_service.rb
186
402
  - lib/adwords_api/v201406/traffic_estimator_service_registry.rb
187
- - lib/adwords_api/v201406/shared_set_service_registry.rb
188
- - lib/adwords_api/v201406/label_service_registry.rb
189
- - lib/adwords_api/v201406/campaign_shared_set_service_registry.rb
190
- - lib/adwords_api/credential_handler.rb
191
- - lib/adwords_api/api_config.rb
192
- - lib/adwords_api/errors.rb
193
- - lib/adwords_api/report_header_handler.rb
194
- - lib/adwords_api/report_utils.rb
195
- - lib/adwords_api/utils.rb
196
- - lib/adwords_api.rb
197
- - test/adwords_api/test_credential_handler.rb
198
- - test/adwords_api/test_api_config.rb
403
+ - lib/adwords_api/v201409/ad_group_ad_service.rb
404
+ - lib/adwords_api/v201409/ad_group_ad_service_registry.rb
405
+ - lib/adwords_api/v201409/ad_group_bid_modifier_service.rb
406
+ - lib/adwords_api/v201409/ad_group_bid_modifier_service_registry.rb
407
+ - lib/adwords_api/v201409/ad_group_criterion_service.rb
408
+ - lib/adwords_api/v201409/ad_group_criterion_service_registry.rb
409
+ - lib/adwords_api/v201409/ad_group_feed_service.rb
410
+ - lib/adwords_api/v201409/ad_group_feed_service_registry.rb
411
+ - lib/adwords_api/v201409/ad_group_service.rb
412
+ - lib/adwords_api/v201409/ad_group_service_registry.rb
413
+ - lib/adwords_api/v201409/ad_param_service.rb
414
+ - lib/adwords_api/v201409/ad_param_service_registry.rb
415
+ - lib/adwords_api/v201409/adwords_user_list_service.rb
416
+ - lib/adwords_api/v201409/adwords_user_list_service_registry.rb
417
+ - lib/adwords_api/v201409/bidding_strategy_service.rb
418
+ - lib/adwords_api/v201409/bidding_strategy_service_registry.rb
419
+ - lib/adwords_api/v201409/budget_order_service.rb
420
+ - lib/adwords_api/v201409/budget_order_service_registry.rb
421
+ - lib/adwords_api/v201409/budget_service.rb
422
+ - lib/adwords_api/v201409/budget_service_registry.rb
423
+ - lib/adwords_api/v201409/campaign_ad_extension_service.rb
424
+ - lib/adwords_api/v201409/campaign_ad_extension_service_registry.rb
425
+ - lib/adwords_api/v201409/campaign_criterion_service.rb
426
+ - lib/adwords_api/v201409/campaign_criterion_service_registry.rb
427
+ - lib/adwords_api/v201409/campaign_feed_service.rb
428
+ - lib/adwords_api/v201409/campaign_feed_service_registry.rb
429
+ - lib/adwords_api/v201409/campaign_service.rb
430
+ - lib/adwords_api/v201409/campaign_service_registry.rb
431
+ - lib/adwords_api/v201409/campaign_shared_set_service.rb
432
+ - lib/adwords_api/v201409/campaign_shared_set_service_registry.rb
433
+ - lib/adwords_api/v201409/constant_data_service.rb
434
+ - lib/adwords_api/v201409/constant_data_service_registry.rb
435
+ - lib/adwords_api/v201409/conversion_tracker_service.rb
436
+ - lib/adwords_api/v201409/conversion_tracker_service_registry.rb
437
+ - lib/adwords_api/v201409/customer_feed_service.rb
438
+ - lib/adwords_api/v201409/customer_feed_service_registry.rb
439
+ - lib/adwords_api/v201409/customer_service.rb
440
+ - lib/adwords_api/v201409/customer_service_registry.rb
441
+ - lib/adwords_api/v201409/customer_sync_service.rb
442
+ - lib/adwords_api/v201409/customer_sync_service_registry.rb
443
+ - lib/adwords_api/v201409/data_service.rb
444
+ - lib/adwords_api/v201409/data_service_registry.rb
445
+ - lib/adwords_api/v201409/experiment_service.rb
446
+ - lib/adwords_api/v201409/experiment_service_registry.rb
447
+ - lib/adwords_api/v201409/feed_item_service.rb
448
+ - lib/adwords_api/v201409/feed_item_service_registry.rb
449
+ - lib/adwords_api/v201409/feed_mapping_service.rb
450
+ - lib/adwords_api/v201409/feed_mapping_service_registry.rb
451
+ - lib/adwords_api/v201409/feed_service.rb
452
+ - lib/adwords_api/v201409/feed_service_registry.rb
453
+ - lib/adwords_api/v201409/geo_location_service.rb
454
+ - lib/adwords_api/v201409/geo_location_service_registry.rb
455
+ - lib/adwords_api/v201409/label_service.rb
456
+ - lib/adwords_api/v201409/label_service_registry.rb
457
+ - lib/adwords_api/v201409/location_criterion_service.rb
458
+ - lib/adwords_api/v201409/location_criterion_service_registry.rb
459
+ - lib/adwords_api/v201409/managed_customer_service.rb
460
+ - lib/adwords_api/v201409/managed_customer_service_registry.rb
461
+ - lib/adwords_api/v201409/media_service.rb
462
+ - lib/adwords_api/v201409/media_service_registry.rb
463
+ - lib/adwords_api/v201409/mutate_job_service.rb
464
+ - lib/adwords_api/v201409/mutate_job_service_registry.rb
465
+ - lib/adwords_api/v201409/offline_conversion_feed_service.rb
466
+ - lib/adwords_api/v201409/offline_conversion_feed_service_registry.rb
467
+ - lib/adwords_api/v201409/report_definition_service.rb
468
+ - lib/adwords_api/v201409/report_definition_service_registry.rb
469
+ - lib/adwords_api/v201409/shared_criterion_service.rb
470
+ - lib/adwords_api/v201409/shared_criterion_service_registry.rb
471
+ - lib/adwords_api/v201409/shared_set_service.rb
472
+ - lib/adwords_api/v201409/shared_set_service_registry.rb
473
+ - lib/adwords_api/v201409/targeting_idea_service.rb
474
+ - lib/adwords_api/v201409/targeting_idea_service_registry.rb
475
+ - lib/adwords_api/v201409/traffic_estimator_service.rb
476
+ - lib/adwords_api/v201409/traffic_estimator_service_registry.rb
477
+ - lib/adwords_api/version.rb
199
478
  - test/adwords_api/test_adwords_api.rb
479
+ - test/adwords_api/test_api_config.rb
480
+ - test/adwords_api/test_credential_handler.rb
200
481
  - test/adwords_api/test_report_utils.rb
201
482
  - test/adwords_api/test_utils.rb
483
+ - test/coverage.rb
484
+ - test/suite_integration.rb
485
+ - test/suite_unittests.rb
202
486
  - test/templates/v201402/basic_operations_get_campaigns.def
203
487
  - test/templates/v201402/misc_use_oauth2_jwt.def
204
488
  - test/templates/v201406/basic_operations_get_campaigns.def
205
489
  - test/templates/v201406/misc_use_oauth2_jwt.def
206
- - test/coverage.rb
207
- - test/suite_integration.rb
208
- - test/suite_unittests.rb
490
+ - test/templates/v201409/basic_operations_get_campaigns.def
491
+ - test/templates/v201409/misc_use_oauth2_jwt.def
209
492
  - test/test_utils.rb
210
- - examples/v201406/advanced_operations/use_shared_bidding_strategy.rb
211
- - examples/v201406/advanced_operations/add_ad_group_bid_modifier.rb
212
- - examples/v201406/advanced_operations/add_click_to_download_ad.rb
213
- - examples/v201406/advanced_operations/add_places_location_extensions.rb
214
- - examples/v201406/advanced_operations/add_site_links.rb
215
- - examples/v201406/advanced_operations/add_text_ad_with_upgraded_urls.rb
216
- - examples/v201406/advanced_operations/get_ad_group_bid_modifiers.rb
217
- - examples/v201406/advanced_operations/update_site_links.rb
218
- - examples/v201406/advanced_operations/upload_offline_conversions.rb
219
- - examples/v201406/advanced_operations/add_ad_customizer.rb
220
- - examples/v201406/targeting/add_campaign_targeting_criteria.rb
221
- - examples/v201406/targeting/add_demographic_targeting_criteria.rb
222
- - examples/v201406/targeting/get_campaign_targeting_criteria.rb
223
- - examples/v201406/targeting/get_targetable_languages_and_carriers.rb
224
- - examples/v201406/targeting/lookup_location.rb
225
- - examples/v201406/account_management/create_account.rb
226
- - examples/v201406/account_management/get_account_alerts.rb
227
- - examples/v201406/account_management/get_account_changes.rb
228
- - examples/v201406/account_management/get_account_hierarchy.rb
229
- - examples/v201406/basic_operations/add_ad_groups.rb
230
- - examples/v201406/basic_operations/add_campaigns.rb
231
- - examples/v201406/basic_operations/add_keywords.rb
232
- - examples/v201406/basic_operations/add_text_ads.rb
233
- - examples/v201406/basic_operations/get_ad_groups.rb
234
- - examples/v201406/basic_operations/get_campaigns.rb
235
- - examples/v201406/basic_operations/get_campaigns_with_awql.rb
236
- - examples/v201406/basic_operations/get_keywords.rb
237
- - examples/v201406/basic_operations/get_text_ads.rb
238
- - examples/v201406/basic_operations/pause_ad.rb
239
- - examples/v201406/basic_operations/remove_ad.rb
240
- - examples/v201406/basic_operations/remove_ad_group.rb
241
- - examples/v201406/basic_operations/remove_campaign.rb
242
- - examples/v201406/basic_operations/remove_keyword.rb
243
- - examples/v201406/basic_operations/update_ad_group.rb
244
- - examples/v201406/basic_operations/update_campaign.rb
245
- - examples/v201406/basic_operations/update_keyword.rb
246
- - examples/v201406/campaign_management/add_campaign_labels.rb
247
- - examples/v201406/campaign_management/add_experiment.rb
248
- - examples/v201406/campaign_management/add_keywords_in_bulk.rb
249
- - examples/v201406/campaign_management/add_location_extension.rb
250
- - examples/v201406/campaign_management/get_all_disapproved_ads.rb
251
- - examples/v201406/campaign_management/get_all_disapproved_ads_with_awql.rb
252
- - examples/v201406/campaign_management/get_campaigns_by_label.rb
253
- - examples/v201406/campaign_management/promote_experiment.rb
254
- - examples/v201406/campaign_management/set_ad_parameters.rb
255
- - examples/v201406/campaign_management/set_criterion_bid_modifier.rb
256
- - examples/v201406/campaign_management/validate_text_ad.rb
257
- - examples/v201406/error_handling/handle_captcha_challenge.rb
258
- - examples/v201406/error_handling/handle_partial_failures.rb
259
- - examples/v201406/error_handling/handle_policy_violation_error.rb
260
- - examples/v201406/error_handling/handle_two_factor_authorization_error.rb
261
- - examples/v201406/misc/create_ad_words_session_without_properties_file.rb
262
- - examples/v201406/misc/get_all_images_and_videos.rb
263
- - examples/v201406/misc/setup_oauth2.rb
264
- - examples/v201406/misc/upload_image.rb
265
- - examples/v201406/misc/use_oauth2_jwt.rb
266
- - examples/v201406/optimization/estimate_keyword_traffic.rb
267
- - examples/v201406/optimization/get_keyword_bid_simulations.rb
268
- - examples/v201406/optimization/get_keyword_ideas.rb
269
- - examples/v201406/optimization/get_placement_ideas.rb
270
- - examples/v201406/remarketing/add_audience.rb
271
- - examples/v201406/remarketing/add_conversion_tracker.rb
272
- - examples/v201406/reporting/download_criteria_report.rb
273
- - examples/v201406/reporting/download_criteria_report_with_awql.rb
274
- - examples/v201406/reporting/get_report_fields.rb
275
- - examples/v201406/reporting/parallel_report_download.rb
276
- - examples/v201406/shopping_campaigns/add_product_partition_tree.rb
277
- - examples/v201406/shopping_campaigns/add_product_scope.rb
278
- - examples/v201406/shopping_campaigns/add_shopping_campaign.rb
279
- - examples/v201406/shopping_campaigns/get_product_category_taxonomy.rb
280
- - examples/v201406/shopping_campaigns/set_product_sales_channel.rb
281
- - examples/v201402/basic_operations/add_campaigns.rb
282
- - examples/v201402/basic_operations/add_ad_groups.rb
283
- - examples/v201402/basic_operations/add_keywords.rb
284
- - examples/v201402/basic_operations/add_text_ads.rb
285
- - examples/v201402/basic_operations/delete_ad.rb
286
- - examples/v201402/basic_operations/delete_ad_group.rb
287
- - examples/v201402/basic_operations/delete_campaign.rb
288
- - examples/v201402/basic_operations/delete_keyword.rb
289
- - examples/v201402/basic_operations/get_ad_groups.rb
290
- - examples/v201402/basic_operations/get_campaigns.rb
291
- - examples/v201402/basic_operations/get_campaigns_with_awql.rb
292
- - examples/v201402/basic_operations/get_keywords.rb
293
- - examples/v201402/basic_operations/get_text_ads.rb
294
- - examples/v201402/basic_operations/pause_ad.rb
295
- - examples/v201402/basic_operations/update_ad_group.rb
296
- - examples/v201402/basic_operations/update_campaign.rb
297
- - examples/v201402/basic_operations/update_keyword.rb
298
- - examples/v201402/account_management/create_account.rb
299
- - examples/v201402/account_management/get_account_alerts.rb
300
- - examples/v201402/account_management/get_account_changes.rb
301
- - examples/v201402/account_management/get_account_hierarchy.rb
302
- - examples/v201402/advanced_operations/add_ad_group_bid_modifier.rb
303
- - examples/v201402/advanced_operations/add_click_to_download_ad.rb
304
- - examples/v201402/advanced_operations/add_places_location_extensions.rb
305
- - examples/v201402/advanced_operations/add_site_links.rb
306
- - examples/v201402/advanced_operations/get_ad_group_bid_modifiers.rb
307
- - examples/v201402/advanced_operations/update_site_links.rb
308
- - examples/v201402/advanced_operations/upload_offline_conversions.rb
309
- - examples/v201402/advanced_operations/use_shared_bidding_strategy.rb
310
- - examples/v201402/campaign_management/add_experiment.rb
311
- - examples/v201402/campaign_management/add_keywords_in_bulk.rb
312
- - examples/v201402/campaign_management/add_location_extension.rb
313
- - examples/v201402/campaign_management/get_all_disapproved_ads.rb
314
- - examples/v201402/campaign_management/get_all_disapproved_ads_with_awql.rb
315
- - examples/v201402/campaign_management/promote_experiment.rb
316
- - examples/v201402/campaign_management/set_ad_parameters.rb
317
- - examples/v201402/campaign_management/set_criterion_bid_modifier.rb
318
- - examples/v201402/campaign_management/validate_text_ad.rb
319
- - examples/v201402/error_handling/handle_captcha_challenge.rb
320
- - examples/v201402/error_handling/handle_partial_failures.rb
321
- - examples/v201402/error_handling/handle_policy_violation_error.rb
322
- - examples/v201402/error_handling/handle_two_factor_authorization_error.rb
323
- - examples/v201402/misc/create_ad_words_session_without_properties_file.rb
324
- - examples/v201402/misc/get_all_images_and_videos.rb
325
- - examples/v201402/misc/setup_oauth2.rb
326
- - examples/v201402/misc/upload_image.rb
327
- - examples/v201402/misc/use_oauth2_jwt.rb
328
- - examples/v201402/optimization/estimate_keyword_traffic.rb
329
- - examples/v201402/optimization/get_keyword_bid_simulations.rb
330
- - examples/v201402/optimization/get_keyword_ideas.rb
331
- - examples/v201402/optimization/get_placement_ideas.rb
332
- - examples/v201402/remarketing/add_audience.rb
333
- - examples/v201402/remarketing/add_conversion_tracker.rb
334
- - examples/v201402/reporting/download_criteria_report.rb
335
- - examples/v201402/reporting/download_criteria_report_with_awql.rb
336
- - examples/v201402/reporting/get_report_fields.rb
337
- - examples/v201402/reporting/parallel_report_download.rb
338
- - examples/v201402/shopping_campaigns/add_product_partition_tree.rb
339
- - examples/v201402/shopping_campaigns/add_product_scope.rb
340
- - examples/v201402/shopping_campaigns/add_shopping_campaign.rb
341
- - examples/v201402/shopping_campaigns/get_product_category_taxonomy.rb
342
- - examples/v201402/shopping_campaigns/set_product_sales_channel.rb
343
- - examples/v201402/targeting/add_campaign_targeting_criteria.rb
344
- - examples/v201402/targeting/add_demographic_targeting_criteria.rb
345
- - examples/v201402/targeting/get_campaign_targeting_criteria.rb
346
- - examples/v201402/targeting/get_targetable_languages_and_carriers.rb
347
- - examples/v201402/targeting/lookup_location.rb
348
- - COPYING
349
- - README.md
350
- - ChangeLog
351
- - adwords_api.yml
352
493
  homepage: http://code.google.com/p/google-api-ads-ruby/
353
494
  licenses:
354
495
  - Apache-2.0
496
+ metadata: {}
355
497
  post_install_message:
356
498
  rdoc_options: []
357
499
  require_paths:
358
500
  - lib
359
501
  required_ruby_version: !ruby/object:Gem::Requirement
360
- none: false
361
502
  requirements:
362
503
  - - ! '>='
363
504
  - !ruby/object:Gem::Version
364
505
  version: '0'
365
506
  required_rubygems_version: !ruby/object:Gem::Requirement
366
- none: false
367
507
  requirements:
368
508
  - - ! '>='
369
509
  - !ruby/object:Gem::Version
370
510
  version: 1.3.6
371
511
  requirements: []
372
512
  rubyforge_project: google-adwords-api
373
- rubygems_version: 1.8.23
513
+ rubygems_version: 2.2.2
374
514
  signing_key:
375
- specification_version: 3
515
+ specification_version: 4
376
516
  summary: Ruby Client libraries for AdWords API
377
517
  test_files:
378
518
  - test/suite_unittests.rb