google-adwords-api 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (400) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING +0 -0
  3. data/ChangeLog +5 -0
  4. data/README.md +0 -0
  5. data/adwords_api.yml +0 -0
  6. data/lib/adwords_api.rb +14 -0
  7. data/lib/adwords_api/api_config.rb +0 -92
  8. data/lib/adwords_api/batch_job_utils.rb +0 -0
  9. data/lib/adwords_api/credential_handler.rb +0 -0
  10. data/lib/adwords_api/errors.rb +0 -0
  11. data/lib/adwords_api/incremental_upload_helper.rb +0 -0
  12. data/lib/adwords_api/query_utils/query_builder.rb +41 -0
  13. data/lib/adwords_api/query_utils/report_query.rb +30 -0
  14. data/lib/adwords_api/query_utils/report_query_builder.rb +82 -0
  15. data/lib/adwords_api/query_utils/service_query.rb +61 -0
  16. data/lib/adwords_api/query_utils/service_query_builder.rb +83 -0
  17. data/lib/adwords_api/query_utils/where_builder.rb +97 -0
  18. data/lib/adwords_api/report_header_handler.rb +0 -0
  19. data/lib/adwords_api/report_stream.rb +0 -0
  20. data/lib/adwords_api/report_utils.rb +0 -0
  21. data/lib/adwords_api/utils.rb +0 -0
  22. data/lib/adwords_api/utils_reporter.rb +12 -0
  23. data/lib/adwords_api/v201705/account_label_service.rb +0 -0
  24. data/lib/adwords_api/v201705/account_label_service_registry.rb +0 -0
  25. data/lib/adwords_api/v201705/ad_customizer_feed_service.rb +0 -0
  26. data/lib/adwords_api/v201705/ad_customizer_feed_service_registry.rb +0 -0
  27. data/lib/adwords_api/v201705/ad_group_ad_service.rb +0 -0
  28. data/lib/adwords_api/v201705/ad_group_ad_service_registry.rb +0 -0
  29. data/lib/adwords_api/v201705/ad_group_bid_modifier_service.rb +0 -0
  30. data/lib/adwords_api/v201705/ad_group_bid_modifier_service_registry.rb +0 -0
  31. data/lib/adwords_api/v201705/ad_group_criterion_service.rb +0 -0
  32. data/lib/adwords_api/v201705/ad_group_criterion_service_registry.rb +0 -0
  33. data/lib/adwords_api/v201705/ad_group_extension_setting_service.rb +0 -0
  34. data/lib/adwords_api/v201705/ad_group_extension_setting_service_registry.rb +0 -0
  35. data/lib/adwords_api/v201705/ad_group_feed_service.rb +0 -0
  36. data/lib/adwords_api/v201705/ad_group_feed_service_registry.rb +0 -0
  37. data/lib/adwords_api/v201705/ad_group_service.rb +0 -0
  38. data/lib/adwords_api/v201705/ad_group_service_registry.rb +0 -0
  39. data/lib/adwords_api/v201705/ad_param_service.rb +0 -0
  40. data/lib/adwords_api/v201705/ad_param_service_registry.rb +0 -0
  41. data/lib/adwords_api/v201705/adwords_user_list_service.rb +0 -0
  42. data/lib/adwords_api/v201705/adwords_user_list_service_registry.rb +0 -0
  43. data/lib/adwords_api/v201705/batch_job_service.rb +0 -0
  44. data/lib/adwords_api/v201705/batch_job_service_registry.rb +0 -0
  45. data/lib/adwords_api/v201705/bidding_strategy_service.rb +0 -0
  46. data/lib/adwords_api/v201705/bidding_strategy_service_registry.rb +0 -0
  47. data/lib/adwords_api/v201705/budget_order_service.rb +0 -0
  48. data/lib/adwords_api/v201705/budget_order_service_registry.rb +0 -0
  49. data/lib/adwords_api/v201705/budget_service.rb +0 -0
  50. data/lib/adwords_api/v201705/budget_service_registry.rb +0 -0
  51. data/lib/adwords_api/v201705/campaign_bid_modifier_service.rb +0 -0
  52. data/lib/adwords_api/v201705/campaign_bid_modifier_service_registry.rb +0 -0
  53. data/lib/adwords_api/v201705/campaign_criterion_service.rb +0 -0
  54. data/lib/adwords_api/v201705/campaign_criterion_service_registry.rb +0 -0
  55. data/lib/adwords_api/v201705/campaign_extension_setting_service.rb +0 -0
  56. data/lib/adwords_api/v201705/campaign_extension_setting_service_registry.rb +0 -0
  57. data/lib/adwords_api/v201705/campaign_feed_service.rb +0 -0
  58. data/lib/adwords_api/v201705/campaign_feed_service_registry.rb +0 -0
  59. data/lib/adwords_api/v201705/campaign_group_performance_target_service.rb +0 -0
  60. data/lib/adwords_api/v201705/campaign_group_performance_target_service_registry.rb +0 -0
  61. data/lib/adwords_api/v201705/campaign_group_service.rb +0 -0
  62. data/lib/adwords_api/v201705/campaign_group_service_registry.rb +0 -0
  63. data/lib/adwords_api/v201705/campaign_service.rb +0 -0
  64. data/lib/adwords_api/v201705/campaign_service_registry.rb +0 -0
  65. data/lib/adwords_api/v201705/campaign_shared_set_service.rb +0 -0
  66. data/lib/adwords_api/v201705/campaign_shared_set_service_registry.rb +0 -0
  67. data/lib/adwords_api/v201705/constant_data_service.rb +0 -0
  68. data/lib/adwords_api/v201705/constant_data_service_registry.rb +0 -0
  69. data/lib/adwords_api/v201705/conversion_tracker_service.rb +0 -0
  70. data/lib/adwords_api/v201705/conversion_tracker_service_registry.rb +0 -0
  71. data/lib/adwords_api/v201705/customer_extension_setting_service.rb +0 -0
  72. data/lib/adwords_api/v201705/customer_extension_setting_service_registry.rb +0 -0
  73. data/lib/adwords_api/v201705/customer_feed_service.rb +0 -0
  74. data/lib/adwords_api/v201705/customer_feed_service_registry.rb +0 -0
  75. data/lib/adwords_api/v201705/customer_service.rb +0 -0
  76. data/lib/adwords_api/v201705/customer_service_registry.rb +0 -0
  77. data/lib/adwords_api/v201705/customer_sync_service.rb +0 -0
  78. data/lib/adwords_api/v201705/customer_sync_service_registry.rb +0 -0
  79. data/lib/adwords_api/v201705/data_service.rb +0 -0
  80. data/lib/adwords_api/v201705/data_service_registry.rb +0 -0
  81. data/lib/adwords_api/v201705/draft_async_error_service.rb +0 -0
  82. data/lib/adwords_api/v201705/draft_async_error_service_registry.rb +0 -0
  83. data/lib/adwords_api/v201705/draft_service.rb +0 -0
  84. data/lib/adwords_api/v201705/draft_service_registry.rb +0 -0
  85. data/lib/adwords_api/v201705/feed_item_service.rb +0 -0
  86. data/lib/adwords_api/v201705/feed_item_service_registry.rb +0 -0
  87. data/lib/adwords_api/v201705/feed_mapping_service.rb +0 -0
  88. data/lib/adwords_api/v201705/feed_mapping_service_registry.rb +0 -0
  89. data/lib/adwords_api/v201705/feed_service.rb +0 -0
  90. data/lib/adwords_api/v201705/feed_service_registry.rb +0 -0
  91. data/lib/adwords_api/v201705/label_service.rb +0 -0
  92. data/lib/adwords_api/v201705/label_service_registry.rb +0 -0
  93. data/lib/adwords_api/v201705/location_criterion_service.rb +0 -0
  94. data/lib/adwords_api/v201705/location_criterion_service_registry.rb +0 -0
  95. data/lib/adwords_api/v201705/managed_customer_service.rb +0 -0
  96. data/lib/adwords_api/v201705/managed_customer_service_registry.rb +0 -0
  97. data/lib/adwords_api/v201705/media_service.rb +0 -0
  98. data/lib/adwords_api/v201705/media_service_registry.rb +0 -0
  99. data/lib/adwords_api/v201705/offline_call_conversion_feed_service.rb +0 -0
  100. data/lib/adwords_api/v201705/offline_call_conversion_feed_service_registry.rb +0 -0
  101. data/lib/adwords_api/v201705/offline_conversion_feed_service.rb +0 -0
  102. data/lib/adwords_api/v201705/offline_conversion_feed_service_registry.rb +0 -0
  103. data/lib/adwords_api/v201705/report_definition_service.rb +0 -0
  104. data/lib/adwords_api/v201705/report_definition_service_registry.rb +0 -0
  105. data/lib/adwords_api/v201705/shared_criterion_service.rb +0 -0
  106. data/lib/adwords_api/v201705/shared_criterion_service_registry.rb +0 -0
  107. data/lib/adwords_api/v201705/shared_set_service.rb +0 -0
  108. data/lib/adwords_api/v201705/shared_set_service_registry.rb +0 -0
  109. data/lib/adwords_api/v201705/targeting_idea_service.rb +0 -0
  110. data/lib/adwords_api/v201705/targeting_idea_service_registry.rb +0 -0
  111. data/lib/adwords_api/v201705/traffic_estimator_service.rb +0 -0
  112. data/lib/adwords_api/v201705/traffic_estimator_service_registry.rb +0 -0
  113. data/lib/adwords_api/v201705/trial_async_error_service.rb +0 -0
  114. data/lib/adwords_api/v201705/trial_async_error_service_registry.rb +0 -0
  115. data/lib/adwords_api/v201705/trial_service.rb +0 -0
  116. data/lib/adwords_api/v201705/trial_service_registry.rb +0 -0
  117. data/lib/adwords_api/v201708/account_label_service.rb +0 -0
  118. data/lib/adwords_api/v201708/account_label_service_registry.rb +0 -0
  119. data/lib/adwords_api/v201708/ad_customizer_feed_service.rb +0 -0
  120. data/lib/adwords_api/v201708/ad_customizer_feed_service_registry.rb +0 -0
  121. data/lib/adwords_api/v201708/ad_group_ad_service.rb +0 -0
  122. data/lib/adwords_api/v201708/ad_group_ad_service_registry.rb +0 -0
  123. data/lib/adwords_api/v201708/ad_group_bid_modifier_service.rb +0 -0
  124. data/lib/adwords_api/v201708/ad_group_bid_modifier_service_registry.rb +0 -0
  125. data/lib/adwords_api/v201708/ad_group_criterion_service.rb +0 -0
  126. data/lib/adwords_api/v201708/ad_group_criterion_service_registry.rb +0 -0
  127. data/lib/adwords_api/v201708/ad_group_extension_setting_service.rb +0 -0
  128. data/lib/adwords_api/v201708/ad_group_extension_setting_service_registry.rb +0 -0
  129. data/lib/adwords_api/v201708/ad_group_feed_service.rb +0 -0
  130. data/lib/adwords_api/v201708/ad_group_feed_service_registry.rb +0 -0
  131. data/lib/adwords_api/v201708/ad_group_service.rb +0 -0
  132. data/lib/adwords_api/v201708/ad_group_service_registry.rb +0 -0
  133. data/lib/adwords_api/v201708/ad_param_service.rb +0 -0
  134. data/lib/adwords_api/v201708/ad_param_service_registry.rb +0 -0
  135. data/lib/adwords_api/v201708/adwords_user_list_service.rb +0 -0
  136. data/lib/adwords_api/v201708/adwords_user_list_service_registry.rb +0 -0
  137. data/lib/adwords_api/v201708/batch_job_service.rb +0 -0
  138. data/lib/adwords_api/v201708/batch_job_service_registry.rb +0 -0
  139. data/lib/adwords_api/v201708/bidding_strategy_service.rb +0 -0
  140. data/lib/adwords_api/v201708/bidding_strategy_service_registry.rb +0 -0
  141. data/lib/adwords_api/v201708/budget_order_service.rb +0 -0
  142. data/lib/adwords_api/v201708/budget_order_service_registry.rb +0 -0
  143. data/lib/adwords_api/v201708/budget_service.rb +0 -0
  144. data/lib/adwords_api/v201708/budget_service_registry.rb +0 -0
  145. data/lib/adwords_api/v201708/campaign_bid_modifier_service.rb +0 -0
  146. data/lib/adwords_api/v201708/campaign_bid_modifier_service_registry.rb +0 -0
  147. data/lib/adwords_api/v201708/campaign_criterion_service.rb +0 -0
  148. data/lib/adwords_api/v201708/campaign_criterion_service_registry.rb +0 -0
  149. data/lib/adwords_api/v201708/campaign_extension_setting_service.rb +0 -0
  150. data/lib/adwords_api/v201708/campaign_extension_setting_service_registry.rb +0 -0
  151. data/lib/adwords_api/v201708/campaign_feed_service.rb +0 -0
  152. data/lib/adwords_api/v201708/campaign_feed_service_registry.rb +0 -0
  153. data/lib/adwords_api/v201708/campaign_group_performance_target_service.rb +0 -0
  154. data/lib/adwords_api/v201708/campaign_group_performance_target_service_registry.rb +0 -0
  155. data/lib/adwords_api/v201708/campaign_group_service.rb +0 -0
  156. data/lib/adwords_api/v201708/campaign_group_service_registry.rb +0 -0
  157. data/lib/adwords_api/v201708/campaign_service.rb +0 -0
  158. data/lib/adwords_api/v201708/campaign_service_registry.rb +0 -0
  159. data/lib/adwords_api/v201708/campaign_shared_set_service.rb +0 -0
  160. data/lib/adwords_api/v201708/campaign_shared_set_service_registry.rb +0 -0
  161. data/lib/adwords_api/v201708/constant_data_service.rb +0 -0
  162. data/lib/adwords_api/v201708/constant_data_service_registry.rb +0 -0
  163. data/lib/adwords_api/v201708/conversion_tracker_service.rb +0 -0
  164. data/lib/adwords_api/v201708/conversion_tracker_service_registry.rb +0 -0
  165. data/lib/adwords_api/v201708/customer_extension_setting_service.rb +0 -0
  166. data/lib/adwords_api/v201708/customer_extension_setting_service_registry.rb +0 -0
  167. data/lib/adwords_api/v201708/customer_feed_service.rb +0 -0
  168. data/lib/adwords_api/v201708/customer_feed_service_registry.rb +0 -0
  169. data/lib/adwords_api/v201708/customer_service.rb +0 -0
  170. data/lib/adwords_api/v201708/customer_service_registry.rb +0 -0
  171. data/lib/adwords_api/v201708/customer_sync_service.rb +0 -0
  172. data/lib/adwords_api/v201708/customer_sync_service_registry.rb +0 -0
  173. data/lib/adwords_api/v201708/data_service.rb +0 -0
  174. data/lib/adwords_api/v201708/data_service_registry.rb +0 -0
  175. data/lib/adwords_api/v201708/draft_async_error_service.rb +0 -0
  176. data/lib/adwords_api/v201708/draft_async_error_service_registry.rb +0 -0
  177. data/lib/adwords_api/v201708/draft_service.rb +0 -0
  178. data/lib/adwords_api/v201708/draft_service_registry.rb +0 -0
  179. data/lib/adwords_api/v201708/feed_item_service.rb +0 -0
  180. data/lib/adwords_api/v201708/feed_item_service_registry.rb +0 -0
  181. data/lib/adwords_api/v201708/feed_mapping_service.rb +0 -0
  182. data/lib/adwords_api/v201708/feed_mapping_service_registry.rb +0 -0
  183. data/lib/adwords_api/v201708/feed_service.rb +0 -0
  184. data/lib/adwords_api/v201708/feed_service_registry.rb +0 -0
  185. data/lib/adwords_api/v201708/label_service.rb +0 -0
  186. data/lib/adwords_api/v201708/label_service_registry.rb +0 -0
  187. data/lib/adwords_api/v201708/location_criterion_service.rb +0 -0
  188. data/lib/adwords_api/v201708/location_criterion_service_registry.rb +0 -0
  189. data/lib/adwords_api/v201708/managed_customer_service.rb +0 -0
  190. data/lib/adwords_api/v201708/managed_customer_service_registry.rb +0 -0
  191. data/lib/adwords_api/v201708/media_service.rb +0 -0
  192. data/lib/adwords_api/v201708/media_service_registry.rb +0 -0
  193. data/lib/adwords_api/v201708/offline_call_conversion_feed_service.rb +0 -0
  194. data/lib/adwords_api/v201708/offline_call_conversion_feed_service_registry.rb +0 -0
  195. data/lib/adwords_api/v201708/offline_conversion_feed_service.rb +0 -0
  196. data/lib/adwords_api/v201708/offline_conversion_feed_service_registry.rb +0 -0
  197. data/lib/adwords_api/v201708/offline_data_upload_service.rb +0 -0
  198. data/lib/adwords_api/v201708/offline_data_upload_service_registry.rb +0 -0
  199. data/lib/adwords_api/v201708/report_definition_service.rb +0 -0
  200. data/lib/adwords_api/v201708/report_definition_service_registry.rb +0 -0
  201. data/lib/adwords_api/v201708/shared_criterion_service.rb +0 -0
  202. data/lib/adwords_api/v201708/shared_criterion_service_registry.rb +0 -0
  203. data/lib/adwords_api/v201708/shared_set_service.rb +0 -0
  204. data/lib/adwords_api/v201708/shared_set_service_registry.rb +0 -0
  205. data/lib/adwords_api/v201708/targeting_idea_service.rb +0 -0
  206. data/lib/adwords_api/v201708/targeting_idea_service_registry.rb +0 -0
  207. data/lib/adwords_api/v201708/traffic_estimator_service.rb +0 -0
  208. data/lib/adwords_api/v201708/traffic_estimator_service_registry.rb +0 -0
  209. data/lib/adwords_api/v201708/trial_async_error_service.rb +0 -0
  210. data/lib/adwords_api/v201708/trial_async_error_service_registry.rb +0 -0
  211. data/lib/adwords_api/v201708/trial_service.rb +0 -0
  212. data/lib/adwords_api/v201708/trial_service_registry.rb +0 -0
  213. data/lib/adwords_api/v201710/account_label_service.rb +0 -0
  214. data/lib/adwords_api/v201710/account_label_service_registry.rb +0 -0
  215. data/lib/adwords_api/v201710/ad_customizer_feed_service.rb +0 -0
  216. data/lib/adwords_api/v201710/ad_customizer_feed_service_registry.rb +0 -0
  217. data/lib/adwords_api/v201710/ad_group_ad_service.rb +0 -0
  218. data/lib/adwords_api/v201710/ad_group_ad_service_registry.rb +0 -0
  219. data/lib/adwords_api/v201710/ad_group_bid_modifier_service.rb +0 -0
  220. data/lib/adwords_api/v201710/ad_group_bid_modifier_service_registry.rb +0 -0
  221. data/lib/adwords_api/v201710/ad_group_criterion_service.rb +0 -0
  222. data/lib/adwords_api/v201710/ad_group_criterion_service_registry.rb +0 -0
  223. data/lib/adwords_api/v201710/ad_group_extension_setting_service.rb +0 -0
  224. data/lib/adwords_api/v201710/ad_group_extension_setting_service_registry.rb +0 -0
  225. data/lib/adwords_api/v201710/ad_group_feed_service.rb +0 -0
  226. data/lib/adwords_api/v201710/ad_group_feed_service_registry.rb +0 -0
  227. data/lib/adwords_api/v201710/ad_group_service.rb +0 -0
  228. data/lib/adwords_api/v201710/ad_group_service_registry.rb +0 -0
  229. data/lib/adwords_api/v201710/ad_param_service.rb +0 -0
  230. data/lib/adwords_api/v201710/ad_param_service_registry.rb +0 -0
  231. data/lib/adwords_api/v201710/adwords_user_list_service.rb +0 -0
  232. data/lib/adwords_api/v201710/adwords_user_list_service_registry.rb +0 -0
  233. data/lib/adwords_api/v201710/batch_job_service.rb +0 -0
  234. data/lib/adwords_api/v201710/batch_job_service_registry.rb +0 -0
  235. data/lib/adwords_api/v201710/bidding_strategy_service.rb +0 -0
  236. data/lib/adwords_api/v201710/bidding_strategy_service_registry.rb +0 -0
  237. data/lib/adwords_api/v201710/budget_order_service.rb +0 -0
  238. data/lib/adwords_api/v201710/budget_order_service_registry.rb +0 -0
  239. data/lib/adwords_api/v201710/budget_service.rb +0 -0
  240. data/lib/adwords_api/v201710/budget_service_registry.rb +0 -0
  241. data/lib/adwords_api/v201710/campaign_bid_modifier_service.rb +0 -0
  242. data/lib/adwords_api/v201710/campaign_bid_modifier_service_registry.rb +0 -0
  243. data/lib/adwords_api/v201710/campaign_criterion_service.rb +0 -0
  244. data/lib/adwords_api/v201710/campaign_criterion_service_registry.rb +0 -0
  245. data/lib/adwords_api/v201710/campaign_extension_setting_service.rb +0 -0
  246. data/lib/adwords_api/v201710/campaign_extension_setting_service_registry.rb +0 -0
  247. data/lib/adwords_api/v201710/campaign_feed_service.rb +0 -0
  248. data/lib/adwords_api/v201710/campaign_feed_service_registry.rb +0 -0
  249. data/lib/adwords_api/v201710/campaign_group_performance_target_service.rb +0 -0
  250. data/lib/adwords_api/v201710/campaign_group_performance_target_service_registry.rb +0 -0
  251. data/lib/adwords_api/v201710/campaign_group_service.rb +0 -0
  252. data/lib/adwords_api/v201710/campaign_group_service_registry.rb +0 -0
  253. data/lib/adwords_api/v201710/campaign_service.rb +0 -0
  254. data/lib/adwords_api/v201710/campaign_service_registry.rb +0 -0
  255. data/lib/adwords_api/v201710/campaign_shared_set_service.rb +0 -0
  256. data/lib/adwords_api/v201710/campaign_shared_set_service_registry.rb +0 -0
  257. data/lib/adwords_api/v201710/constant_data_service.rb +0 -0
  258. data/lib/adwords_api/v201710/constant_data_service_registry.rb +0 -0
  259. data/lib/adwords_api/v201710/conversion_tracker_service.rb +0 -0
  260. data/lib/adwords_api/v201710/conversion_tracker_service_registry.rb +0 -0
  261. data/lib/adwords_api/v201710/customer_extension_setting_service.rb +0 -0
  262. data/lib/adwords_api/v201710/customer_extension_setting_service_registry.rb +0 -0
  263. data/lib/adwords_api/v201710/customer_feed_service.rb +0 -0
  264. data/lib/adwords_api/v201710/customer_feed_service_registry.rb +0 -0
  265. data/lib/adwords_api/v201710/customer_negative_criterion_service.rb +0 -0
  266. data/lib/adwords_api/v201710/customer_negative_criterion_service_registry.rb +0 -0
  267. data/lib/adwords_api/v201710/customer_service.rb +0 -0
  268. data/lib/adwords_api/v201710/customer_service_registry.rb +0 -0
  269. data/lib/adwords_api/v201710/customer_sync_service.rb +0 -0
  270. data/lib/adwords_api/v201710/customer_sync_service_registry.rb +0 -0
  271. data/lib/adwords_api/v201710/data_service.rb +0 -0
  272. data/lib/adwords_api/v201710/data_service_registry.rb +0 -0
  273. data/lib/adwords_api/v201710/draft_async_error_service.rb +0 -0
  274. data/lib/adwords_api/v201710/draft_async_error_service_registry.rb +0 -0
  275. data/lib/adwords_api/v201710/draft_service.rb +0 -0
  276. data/lib/adwords_api/v201710/draft_service_registry.rb +0 -0
  277. data/lib/adwords_api/v201710/feed_item_service.rb +0 -0
  278. data/lib/adwords_api/v201710/feed_item_service_registry.rb +0 -0
  279. data/lib/adwords_api/v201710/feed_mapping_service.rb +0 -0
  280. data/lib/adwords_api/v201710/feed_mapping_service_registry.rb +0 -0
  281. data/lib/adwords_api/v201710/feed_service.rb +0 -0
  282. data/lib/adwords_api/v201710/feed_service_registry.rb +0 -0
  283. data/lib/adwords_api/v201710/label_service.rb +0 -0
  284. data/lib/adwords_api/v201710/label_service_registry.rb +0 -0
  285. data/lib/adwords_api/v201710/location_criterion_service.rb +0 -0
  286. data/lib/adwords_api/v201710/location_criterion_service_registry.rb +0 -0
  287. data/lib/adwords_api/v201710/managed_customer_service.rb +0 -0
  288. data/lib/adwords_api/v201710/managed_customer_service_registry.rb +0 -0
  289. data/lib/adwords_api/v201710/media_service.rb +0 -0
  290. data/lib/adwords_api/v201710/media_service_registry.rb +0 -0
  291. data/lib/adwords_api/v201710/offline_call_conversion_feed_service.rb +0 -0
  292. data/lib/adwords_api/v201710/offline_call_conversion_feed_service_registry.rb +0 -0
  293. data/lib/adwords_api/v201710/offline_conversion_feed_service.rb +0 -0
  294. data/lib/adwords_api/v201710/offline_conversion_feed_service_registry.rb +0 -0
  295. data/lib/adwords_api/v201710/offline_data_upload_service.rb +0 -0
  296. data/lib/adwords_api/v201710/offline_data_upload_service_registry.rb +0 -0
  297. data/lib/adwords_api/v201710/report_definition_service.rb +0 -0
  298. data/lib/adwords_api/v201710/report_definition_service_registry.rb +0 -0
  299. data/lib/adwords_api/v201710/shared_criterion_service.rb +0 -0
  300. data/lib/adwords_api/v201710/shared_criterion_service_registry.rb +0 -0
  301. data/lib/adwords_api/v201710/shared_set_service.rb +0 -0
  302. data/lib/adwords_api/v201710/shared_set_service_registry.rb +0 -0
  303. data/lib/adwords_api/v201710/targeting_idea_service.rb +0 -0
  304. data/lib/adwords_api/v201710/targeting_idea_service_registry.rb +0 -0
  305. data/lib/adwords_api/v201710/traffic_estimator_service.rb +0 -0
  306. data/lib/adwords_api/v201710/traffic_estimator_service_registry.rb +0 -0
  307. data/lib/adwords_api/v201710/trial_async_error_service.rb +0 -0
  308. data/lib/adwords_api/v201710/trial_async_error_service_registry.rb +0 -0
  309. data/lib/adwords_api/v201710/trial_service.rb +0 -0
  310. data/lib/adwords_api/v201710/trial_service_registry.rb +0 -0
  311. data/lib/adwords_api/version.rb +1 -1
  312. metadata +8 -96
  313. data/lib/adwords_api/v201702/account_label_service.rb +0 -46
  314. data/lib/adwords_api/v201702/account_label_service_registry.rb +0 -46
  315. data/lib/adwords_api/v201702/ad_customizer_feed_service.rb +0 -46
  316. data/lib/adwords_api/v201702/ad_customizer_feed_service_registry.rb +0 -46
  317. data/lib/adwords_api/v201702/ad_group_ad_service.rb +0 -70
  318. data/lib/adwords_api/v201702/ad_group_ad_service_registry.rb +0 -46
  319. data/lib/adwords_api/v201702/ad_group_bid_modifier_service.rb +0 -54
  320. data/lib/adwords_api/v201702/ad_group_bid_modifier_service_registry.rb +0 -46
  321. data/lib/adwords_api/v201702/ad_group_criterion_service.rb +0 -62
  322. data/lib/adwords_api/v201702/ad_group_criterion_service_registry.rb +0 -46
  323. data/lib/adwords_api/v201702/ad_group_extension_setting_service.rb +0 -54
  324. data/lib/adwords_api/v201702/ad_group_extension_setting_service_registry.rb +0 -46
  325. data/lib/adwords_api/v201702/ad_group_feed_service.rb +0 -54
  326. data/lib/adwords_api/v201702/ad_group_feed_service_registry.rb +0 -46
  327. data/lib/adwords_api/v201702/ad_group_service.rb +0 -62
  328. data/lib/adwords_api/v201702/ad_group_service_registry.rb +0 -46
  329. data/lib/adwords_api/v201702/ad_param_service.rb +0 -46
  330. data/lib/adwords_api/v201702/ad_param_service_registry.rb +0 -46
  331. data/lib/adwords_api/v201702/adwords_user_list_service.rb +0 -62
  332. data/lib/adwords_api/v201702/adwords_user_list_service_registry.rb +0 -46
  333. data/lib/adwords_api/v201702/batch_job_service.rb +0 -54
  334. data/lib/adwords_api/v201702/batch_job_service_registry.rb +0 -46
  335. data/lib/adwords_api/v201702/bidding_strategy_service.rb +0 -54
  336. data/lib/adwords_api/v201702/bidding_strategy_service_registry.rb +0 -46
  337. data/lib/adwords_api/v201702/budget_order_service.rb +0 -54
  338. data/lib/adwords_api/v201702/budget_order_service_registry.rb +0 -46
  339. data/lib/adwords_api/v201702/budget_service.rb +0 -54
  340. data/lib/adwords_api/v201702/budget_service_registry.rb +0 -46
  341. data/lib/adwords_api/v201702/campaign_criterion_service.rb +0 -54
  342. data/lib/adwords_api/v201702/campaign_criterion_service_registry.rb +0 -46
  343. data/lib/adwords_api/v201702/campaign_extension_setting_service.rb +0 -54
  344. data/lib/adwords_api/v201702/campaign_extension_setting_service_registry.rb +0 -46
  345. data/lib/adwords_api/v201702/campaign_feed_service.rb +0 -54
  346. data/lib/adwords_api/v201702/campaign_feed_service_registry.rb +0 -46
  347. data/lib/adwords_api/v201702/campaign_service.rb +0 -62
  348. data/lib/adwords_api/v201702/campaign_service_registry.rb +0 -46
  349. data/lib/adwords_api/v201702/campaign_shared_set_service.rb +0 -54
  350. data/lib/adwords_api/v201702/campaign_shared_set_service_registry.rb +0 -46
  351. data/lib/adwords_api/v201702/constant_data_service.rb +0 -110
  352. data/lib/adwords_api/v201702/constant_data_service_registry.rb +0 -46
  353. data/lib/adwords_api/v201702/conversion_tracker_service.rb +0 -54
  354. data/lib/adwords_api/v201702/conversion_tracker_service_registry.rb +0 -46
  355. data/lib/adwords_api/v201702/customer_extension_setting_service.rb +0 -54
  356. data/lib/adwords_api/v201702/customer_extension_setting_service_registry.rb +0 -46
  357. data/lib/adwords_api/v201702/customer_feed_service.rb +0 -54
  358. data/lib/adwords_api/v201702/customer_feed_service_registry.rb +0 -46
  359. data/lib/adwords_api/v201702/customer_service.rb +0 -62
  360. data/lib/adwords_api/v201702/customer_service_registry.rb +0 -46
  361. data/lib/adwords_api/v201702/customer_sync_service.rb +0 -38
  362. data/lib/adwords_api/v201702/customer_sync_service_registry.rb +0 -47
  363. data/lib/adwords_api/v201702/data_service.rb +0 -94
  364. data/lib/adwords_api/v201702/data_service_registry.rb +0 -46
  365. data/lib/adwords_api/v201702/draft_async_error_service.rb +0 -46
  366. data/lib/adwords_api/v201702/draft_async_error_service_registry.rb +0 -46
  367. data/lib/adwords_api/v201702/draft_service.rb +0 -54
  368. data/lib/adwords_api/v201702/draft_service_registry.rb +0 -46
  369. data/lib/adwords_api/v201702/feed_item_service.rb +0 -54
  370. data/lib/adwords_api/v201702/feed_item_service_registry.rb +0 -46
  371. data/lib/adwords_api/v201702/feed_mapping_service.rb +0 -54
  372. data/lib/adwords_api/v201702/feed_mapping_service_registry.rb +0 -46
  373. data/lib/adwords_api/v201702/feed_service.rb +0 -54
  374. data/lib/adwords_api/v201702/feed_service_registry.rb +0 -46
  375. data/lib/adwords_api/v201702/label_service.rb +0 -54
  376. data/lib/adwords_api/v201702/label_service_registry.rb +0 -46
  377. data/lib/adwords_api/v201702/location_criterion_service.rb +0 -46
  378. data/lib/adwords_api/v201702/location_criterion_service_registry.rb +0 -46
  379. data/lib/adwords_api/v201702/managed_customer_service.rb +0 -78
  380. data/lib/adwords_api/v201702/managed_customer_service_registry.rb +0 -46
  381. data/lib/adwords_api/v201702/media_service.rb +0 -54
  382. data/lib/adwords_api/v201702/media_service_registry.rb +0 -46
  383. data/lib/adwords_api/v201702/offline_call_conversion_feed_service.rb +0 -38
  384. data/lib/adwords_api/v201702/offline_call_conversion_feed_service_registry.rb +0 -46
  385. data/lib/adwords_api/v201702/offline_conversion_feed_service.rb +0 -38
  386. data/lib/adwords_api/v201702/offline_conversion_feed_service_registry.rb +0 -46
  387. data/lib/adwords_api/v201702/report_definition_service.rb +0 -38
  388. data/lib/adwords_api/v201702/report_definition_service_registry.rb +0 -46
  389. data/lib/adwords_api/v201702/shared_criterion_service.rb +0 -54
  390. data/lib/adwords_api/v201702/shared_criterion_service_registry.rb +0 -46
  391. data/lib/adwords_api/v201702/shared_set_service.rb +0 -54
  392. data/lib/adwords_api/v201702/shared_set_service_registry.rb +0 -46
  393. data/lib/adwords_api/v201702/targeting_idea_service.rb +0 -38
  394. data/lib/adwords_api/v201702/targeting_idea_service_registry.rb +0 -46
  395. data/lib/adwords_api/v201702/traffic_estimator_service.rb +0 -38
  396. data/lib/adwords_api/v201702/traffic_estimator_service_registry.rb +0 -46
  397. data/lib/adwords_api/v201702/trial_async_error_service.rb +0 -46
  398. data/lib/adwords_api/v201702/trial_async_error_service_registry.rb +0 -46
  399. data/lib/adwords_api/v201702/trial_service.rb +0 -54
  400. data/lib/adwords_api/v201702/trial_service_registry.rb +0 -46
@@ -0,0 +1,97 @@
1
+ # Encoding: utf-8
2
+ #
3
+ # Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
4
+ #
5
+ # License:: Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14
+ # implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ # Class to aid in constructing where clauses for reporting and service queries.
19
+
20
+ module AdwordsApi
21
+ class WhereBuilder
22
+ attr_reader :awql
23
+
24
+ def initialize(field)
25
+ @field = field
26
+ @awql = nil
27
+ end
28
+
29
+ def equal_to(value)
30
+ @awql = sprintf("%s = %s", @field, value)
31
+ end
32
+
33
+ def not_equal_to(value)
34
+ @awql = sprintf("%s != $s", @field, value)
35
+ end
36
+
37
+ def greater_than(value)
38
+ @awql = sprintf("%s > %s", @field, value)
39
+ end
40
+
41
+ def greater_than_or_equal_to(value)
42
+ @awql = sprintf("%s >= %s", @field, value)
43
+ end
44
+
45
+ def less_than(value)
46
+ @awql = sprintf("%s < %s", @field, value)
47
+ end
48
+
49
+ def less_than_or_equal_to(value)
50
+ @awql = sprintf("%s <= %s", @field, value)
51
+ end
52
+
53
+ def starts_with(value)
54
+ @awql = sprintf("%s STARTS_WITH %s", @field, value)
55
+ end
56
+
57
+ def starts_with_ignore_case(value)
58
+ @awql = sprintf("%s STARTS_WITH_IGNORE_CASE %s", @field, value)
59
+ end
60
+
61
+ def contains(value)
62
+ @awql = sprintf("%s CONTAINS %s", @field, value)
63
+ end
64
+
65
+ def contains_ignore_case(value)
66
+ @awql = sprintf("%s CONTAINS_IGNORE_CASE %s", @field, value)
67
+ end
68
+
69
+ def does_not_contain(value)
70
+ @awql = sprintf("%s DOES_NOT_CONTAIN %s", @field, value)
71
+ end
72
+
73
+ def does_not_contain_ignore_case(value)
74
+ @awql = sprintf("%s DOES_NOT_CONTAIN_IGNORE_CASE %s", @field, value)
75
+ end
76
+
77
+ def in(*values)
78
+ @awql = sprintf("%s IN [%s]", @field, values.join(','))
79
+ end
80
+
81
+ def not_in(*values)
82
+ @awql = sprintf("%s NOT_IN [%s]", @field, values.join(','))
83
+ end
84
+
85
+ def contains_any(*values)
86
+ @awql = sprintf("%s CONTAINS_ANY [%s]", @field, values.join(','))
87
+ end
88
+
89
+ def contains_none(*values)
90
+ @awql = sprintf("%s CONTAINS_NONE [%s]", @field, values.join(','))
91
+ end
92
+
93
+ def contains_all(*values)
94
+ @awql = sprintf("%s CONTAINS_ALL [%s]", @field, values.join(','))
95
+ end
96
+ end
97
+ end
File without changes
File without changes
File without changes
File without changes
@@ -42,5 +42,17 @@ module AdwordsApi
42
42
  def batch_job_utils_used()
43
43
  @credential_handler.include_in_user_agent("BatchJobHelper")
44
44
  end
45
+
46
+ # A callback method from report query builder to indicate that it has been
47
+ # used, and that its usage should be recorded in the next user agent string.
48
+ def report_query_builder_used()
49
+ @credential_handler.include_in_user_agent("ReportQueryBuilder")
50
+ end
51
+
52
+ # A callback method from service query builder to indicate that it has been
53
+ # used, and that its usage should be recorded in the next user agent string.
54
+ def service_query_builder_used()
55
+ @credential_handler.include_in_user_agent("ServiceQueryBuilder")
56
+ end
45
57
  end
46
58
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes