google-adwords-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (527) hide show
  1. data/README +178 -0
  2. data/Rakefile +117 -0
  3. data/adwords_api.yml +21 -0
  4. data/examples/v200909/add_ad_extension_override.rb +91 -0
  5. data/examples/v200909/add_ad_group.rb +98 -0
  6. data/examples/v200909/add_ad_group_criteria.rb +117 -0
  7. data/examples/v200909/add_ads.rb +129 -0
  8. data/examples/v200909/add_campaign.rb +101 -0
  9. data/examples/v200909/add_campaign_ad_extension.rb +130 -0
  10. data/examples/v200909/add_negative_campaign_criterion.rb +96 -0
  11. data/examples/v200909/check_campaigns.rb +132 -0
  12. data/examples/v200909/delete_ad.rb +94 -0
  13. data/examples/v200909/delete_ad_group.rb +86 -0
  14. data/examples/v200909/delete_ad_group_criterion.rb +95 -0
  15. data/examples/v200909/delete_campaign.rb +87 -0
  16. data/examples/v200909/get_all_active_ad_group_criteria.rb +93 -0
  17. data/examples/v200909/get_all_ad_extension_overrides.rb +91 -0
  18. data/examples/v200909/get_all_ad_group_criteria.rb +91 -0
  19. data/examples/v200909/get_all_ad_groups.rb +88 -0
  20. data/examples/v200909/get_all_ad_params.rb +89 -0
  21. data/examples/v200909/get_all_ads.rb +88 -0
  22. data/examples/v200909/get_all_campaign_ad_extensions.rb +90 -0
  23. data/examples/v200909/get_all_campaign_targets.rb +83 -0
  24. data/examples/v200909/get_all_campaigns.rb +83 -0
  25. data/examples/v200909/get_all_disapproved_ads.rb +94 -0
  26. data/examples/v200909/get_all_paused_campaigns.rb +86 -0
  27. data/examples/v200909/get_conversion_optimizer_eligibility.rb +112 -0
  28. data/examples/v200909/get_geo_location_info.rb +108 -0
  29. data/examples/v200909/get_method_cost.rb +96 -0
  30. data/examples/v200909/get_operation_count.rb +88 -0
  31. data/examples/v200909/get_related_keywords.rb +115 -0
  32. data/examples/v200909/get_related_placements.rb +114 -0
  33. data/examples/v200909/get_total_usage_units_per_month.rb +83 -0
  34. data/examples/v200909/get_unit_count.rb +88 -0
  35. data/examples/v200909/perform_bulk_mutate_job.rb +221 -0
  36. data/examples/v200909/set_ad_params.rb +124 -0
  37. data/examples/v200909/set_campaign_targets.rb +125 -0
  38. data/examples/v200909/update_ad.rb +95 -0
  39. data/examples/v200909/update_ad_group.rb +90 -0
  40. data/examples/v200909/update_ad_group_criterion.rb +108 -0
  41. data/examples/v200909/update_campaign.rb +93 -0
  42. data/examples/v201003/add_ad_extension_override.rb +91 -0
  43. data/examples/v201003/add_ad_group.rb +98 -0
  44. data/examples/v201003/add_ad_group_criteria.rb +117 -0
  45. data/examples/v201003/add_ads.rb +182 -0
  46. data/examples/v201003/add_campaign.rb +101 -0
  47. data/examples/v201003/add_campaign_ad_extension.rb +130 -0
  48. data/examples/v201003/add_keywords_performance_report_definition.rb +108 -0
  49. data/examples/v201003/add_negative_campaign_criterion.rb +96 -0
  50. data/examples/v201003/check_campaigns.rb +132 -0
  51. data/examples/v201003/delete_ad.rb +94 -0
  52. data/examples/v201003/delete_ad_group.rb +86 -0
  53. data/examples/v201003/delete_ad_group_criterion.rb +95 -0
  54. data/examples/v201003/delete_campaign.rb +87 -0
  55. data/examples/v201003/download_report.rb +71 -0
  56. data/examples/v201003/get_all_active_ad_group_criteria.rb +93 -0
  57. data/examples/v201003/get_all_ad_extension_overrides.rb +91 -0
  58. data/examples/v201003/get_all_ad_group_criteria.rb +91 -0
  59. data/examples/v201003/get_all_ad_groups.rb +88 -0
  60. data/examples/v201003/get_all_ad_params.rb +89 -0
  61. data/examples/v201003/get_all_ads.rb +91 -0
  62. data/examples/v201003/get_all_campaign_ad_extensions.rb +90 -0
  63. data/examples/v201003/get_all_campaign_targets.rb +83 -0
  64. data/examples/v201003/get_all_campaigns.rb +83 -0
  65. data/examples/v201003/get_all_disapproved_ads.rb +94 -0
  66. data/examples/v201003/get_all_images.rb +88 -0
  67. data/examples/v201003/get_all_paused_campaigns.rb +86 -0
  68. data/examples/v201003/get_all_report_definitions.rb +84 -0
  69. data/examples/v201003/get_all_videos.rb +85 -0
  70. data/examples/v201003/get_conversion_optimizer_eligibility.rb +112 -0
  71. data/examples/v201003/get_criterion_bid_landscape.rb +105 -0
  72. data/examples/v201003/get_geo_location_info.rb +108 -0
  73. data/examples/v201003/get_method_cost.rb +96 -0
  74. data/examples/v201003/get_operation_count.rb +88 -0
  75. data/examples/v201003/get_related_keywords.rb +115 -0
  76. data/examples/v201003/get_related_placements.rb +114 -0
  77. data/examples/v201003/get_report_fields.rb +81 -0
  78. data/examples/v201003/get_total_usage_units_per_month.rb +83 -0
  79. data/examples/v201003/get_unit_count.rb +88 -0
  80. data/examples/v201003/perform_bulk_mutate_job.rb +221 -0
  81. data/examples/v201003/set_ad_params.rb +124 -0
  82. data/examples/v201003/set_campaign_targets.rb +125 -0
  83. data/examples/v201003/update_ad.rb +95 -0
  84. data/examples/v201003/update_ad_group.rb +90 -0
  85. data/examples/v201003/update_ad_group_criterion.rb +108 -0
  86. data/examples/v201003/update_campaign.rb +92 -0
  87. data/examples/v201003/upload_image.rb +97 -0
  88. data/examples/v201008/add_ad_extension_override.rb +91 -0
  89. data/examples/v201008/add_ad_group.rb +98 -0
  90. data/examples/v201008/add_ad_group_criteria.rb +117 -0
  91. data/examples/v201008/add_ads.rb +182 -0
  92. data/examples/v201008/add_campaign.rb +101 -0
  93. data/examples/v201008/add_campaign_ad_extension.rb +130 -0
  94. data/examples/v201008/add_experiment.rb +162 -0
  95. data/examples/v201008/add_keywords_performance_report_definition.rb +108 -0
  96. data/examples/v201008/add_negative_campaign_criterion.rb +96 -0
  97. data/examples/v201008/add_user_list.rb +96 -0
  98. data/examples/v201008/check_campaigns.rb +132 -0
  99. data/examples/v201008/delete_ad.rb +94 -0
  100. data/examples/v201008/delete_ad_group.rb +86 -0
  101. data/examples/v201008/delete_ad_group_criterion.rb +95 -0
  102. data/examples/v201008/delete_bulk_mutate_job.rb +96 -0
  103. data/examples/v201008/delete_campaign.rb +87 -0
  104. data/examples/v201008/delete_experiment.rb +87 -0
  105. data/examples/v201008/delete_user_list.rb +87 -0
  106. data/examples/v201008/download_report.rb +71 -0
  107. data/examples/v201008/get_account_hierarchy.rb +112 -0
  108. data/examples/v201008/get_all_account_changes.rb +144 -0
  109. data/examples/v201008/get_all_active_ad_group_criteria.rb +93 -0
  110. data/examples/v201008/get_all_ad_extension_overrides.rb +91 -0
  111. data/examples/v201008/get_all_ad_group_criteria.rb +91 -0
  112. data/examples/v201008/get_all_ad_groups.rb +88 -0
  113. data/examples/v201008/get_all_ad_params.rb +89 -0
  114. data/examples/v201008/get_all_ads.rb +91 -0
  115. data/examples/v201008/get_all_campaign_ad_extensions.rb +90 -0
  116. data/examples/v201008/get_all_campaign_targets.rb +83 -0
  117. data/examples/v201008/get_all_campaigns.rb +83 -0
  118. data/examples/v201008/get_all_disapproved_ads.rb +94 -0
  119. data/examples/v201008/get_all_experiments.rb +93 -0
  120. data/examples/v201008/get_all_images.rb +88 -0
  121. data/examples/v201008/get_all_paused_campaigns.rb +86 -0
  122. data/examples/v201008/get_all_report_definitions.rb +84 -0
  123. data/examples/v201008/get_all_user_lists.rb +84 -0
  124. data/examples/v201008/get_all_videos.rb +85 -0
  125. data/examples/v201008/get_bulk_mutate_job.rb +106 -0
  126. data/examples/v201008/get_campaign_alerts.rb +103 -0
  127. data/examples/v201008/get_conversion_optimizer_eligibility.rb +97 -0
  128. data/examples/v201008/get_criterion_bid_landscape.rb +105 -0
  129. data/examples/v201008/get_geo_location_info.rb +108 -0
  130. data/examples/v201008/get_method_cost.rb +96 -0
  131. data/examples/v201008/get_operation_count.rb +88 -0
  132. data/examples/v201008/get_related_keywords.rb +115 -0
  133. data/examples/v201008/get_related_placements.rb +114 -0
  134. data/examples/v201008/get_report_fields.rb +81 -0
  135. data/examples/v201008/get_total_usage_units_per_month.rb +83 -0
  136. data/examples/v201008/get_traffic_estimates.rb +156 -0
  137. data/examples/v201008/get_unit_count.rb +88 -0
  138. data/examples/v201008/handle_partial_failures.rb +135 -0
  139. data/examples/v201008/handle_policy_violation_error.rb +146 -0
  140. data/examples/v201008/perform_bulk_mutate_job.rb +221 -0
  141. data/examples/v201008/promote_experiment.rb +88 -0
  142. data/examples/v201008/set_ad_params.rb +124 -0
  143. data/examples/v201008/set_campaign_targets.rb +125 -0
  144. data/examples/v201008/update_ad.rb +95 -0
  145. data/examples/v201008/update_ad_group.rb +90 -0
  146. data/examples/v201008/update_ad_group_criterion.rb +108 -0
  147. data/examples/v201008/update_campaign.rb +93 -0
  148. data/examples/v201008/update_user_list.rb +91 -0
  149. data/examples/v201008/upload_image.rb +97 -0
  150. data/examples/v201101/add_ad_extension_override.rb +91 -0
  151. data/examples/v201101/add_ad_group.rb +98 -0
  152. data/examples/v201101/add_ad_group_criteria.rb +117 -0
  153. data/examples/v201101/add_ads.rb +182 -0
  154. data/examples/v201101/add_campaign.rb +108 -0
  155. data/examples/v201101/add_campaign_ad_extension.rb +130 -0
  156. data/examples/v201101/add_experiment.rb +162 -0
  157. data/examples/v201101/add_keywords_performance_report_definition.rb +108 -0
  158. data/examples/v201101/add_mcc_report_definition.rb +103 -0
  159. data/examples/v201101/add_negative_campaign_criterion.rb +96 -0
  160. data/examples/v201101/add_user_list.rb +96 -0
  161. data/examples/v201101/check_campaigns.rb +132 -0
  162. data/examples/v201101/delete_ad.rb +94 -0
  163. data/examples/v201101/delete_ad_group.rb +86 -0
  164. data/examples/v201101/delete_ad_group_criterion.rb +95 -0
  165. data/examples/v201101/delete_bulk_mutate_job.rb +96 -0
  166. data/examples/v201101/delete_campaign.rb +87 -0
  167. data/examples/v201101/delete_experiment.rb +87 -0
  168. data/examples/v201101/delete_user_list.rb +87 -0
  169. data/examples/v201101/download_mcc_report.rb +93 -0
  170. data/examples/v201101/download_report.rb +71 -0
  171. data/examples/v201101/get_account_hierarchy.rb +112 -0
  172. data/examples/v201101/get_ad_group_bid_landscape.rb +103 -0
  173. data/examples/v201101/get_all_account_changes.rb +146 -0
  174. data/examples/v201101/get_all_active_ad_group_criteria.rb +106 -0
  175. data/examples/v201101/get_all_ad_extension_overrides.rb +91 -0
  176. data/examples/v201101/get_all_ad_group_criteria.rb +97 -0
  177. data/examples/v201101/get_all_ad_groups.rb +94 -0
  178. data/examples/v201101/get_all_ad_params.rb +89 -0
  179. data/examples/v201101/get_all_ads.rb +99 -0
  180. data/examples/v201101/get_all_campaign_ad_extensions.rb +96 -0
  181. data/examples/v201101/get_all_campaign_targets.rb +83 -0
  182. data/examples/v201101/get_all_campaigns.rb +86 -0
  183. data/examples/v201101/get_all_disapproved_ads.rb +102 -0
  184. data/examples/v201101/get_all_experiments.rb +98 -0
  185. data/examples/v201101/get_all_images.rb +90 -0
  186. data/examples/v201101/get_all_paused_campaigns.rb +92 -0
  187. data/examples/v201101/get_all_report_definitions.rb +84 -0
  188. data/examples/v201101/get_all_user_lists.rb +87 -0
  189. data/examples/v201101/get_all_videos.rb +87 -0
  190. data/examples/v201101/get_bulk_mutate_job.rb +106 -0
  191. data/examples/v201101/get_campaign_alerts.rb +103 -0
  192. data/examples/v201101/get_conversion_optimizer_eligibility.rb +102 -0
  193. data/examples/v201101/get_criterion_bid_landscape.rb +102 -0
  194. data/examples/v201101/get_geo_location_info.rb +108 -0
  195. data/examples/v201101/get_method_cost.rb +96 -0
  196. data/examples/v201101/get_operation_count.rb +88 -0
  197. data/examples/v201101/get_related_keywords.rb +115 -0
  198. data/examples/v201101/get_related_placements.rb +114 -0
  199. data/examples/v201101/get_report_fields.rb +81 -0
  200. data/examples/v201101/get_total_usage_units_per_month.rb +83 -0
  201. data/examples/v201101/get_traffic_estimates.rb +157 -0
  202. data/examples/v201101/get_unit_count.rb +88 -0
  203. data/examples/v201101/handle_partial_failures.rb +135 -0
  204. data/examples/v201101/handle_policy_violation_error.rb +146 -0
  205. data/examples/v201101/perform_bulk_mutate_job.rb +221 -0
  206. data/examples/v201101/promote_experiment.rb +88 -0
  207. data/examples/v201101/set_ad_params.rb +124 -0
  208. data/examples/v201101/set_campaign_targets.rb +111 -0
  209. data/examples/v201101/update_ad.rb +95 -0
  210. data/examples/v201101/update_ad_group.rb +90 -0
  211. data/examples/v201101/update_ad_group_criterion.rb +108 -0
  212. data/examples/v201101/update_campaign.rb +93 -0
  213. data/examples/v201101/update_user_list.rb +91 -0
  214. data/examples/v201101/upload_image.rb +97 -0
  215. data/lib/adwords_api.rb +273 -0
  216. data/lib/adwords_api/api_config.rb +270 -0
  217. data/lib/adwords_api/auth/v13_login_handler.rb +36 -0
  218. data/lib/adwords_api/credential_handler.rb +111 -0
  219. data/lib/adwords_api/errors.rb +85 -0
  220. data/lib/adwords_api/extensions.rb +245 -0
  221. data/lib/adwords_api/soap4r_response_handler.rb +121 -0
  222. data/lib/adwords_api/utils.rb +80 -0
  223. data/lib/adwords_api/v13/AccountService.rb +321 -0
  224. data/lib/adwords_api/v13/AccountServiceDriver.rb +87 -0
  225. data/lib/adwords_api/v13/AccountServiceMappingRegistry.rb +337 -0
  226. data/lib/adwords_api/v13/AccountServiceWrapper.rb +407 -0
  227. data/lib/adwords_api/v13/ReportService.rb +328 -0
  228. data/lib/adwords_api/v13/ReportServiceDriver.rb +103 -0
  229. data/lib/adwords_api/v13/ReportServiceMappingRegistry.rb +298 -0
  230. data/lib/adwords_api/v13/ReportServiceWrapper.rb +500 -0
  231. data/lib/adwords_api/v13/TrafficEstimatorService.rb +414 -0
  232. data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +79 -0
  233. data/lib/adwords_api/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
  234. data/lib/adwords_api/v13/TrafficEstimatorServiceWrapper.rb +402 -0
  235. data/lib/adwords_api/v200909/AdExtensionOverrideService.rb +1105 -0
  236. data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +63 -0
  237. data/lib/adwords_api/v200909/AdExtensionOverrideServiceMappingRegistry.rb +1265 -0
  238. data/lib/adwords_api/v200909/AdExtensionOverrideServiceWrapper.rb +332 -0
  239. data/lib/adwords_api/v200909/AdGroupAdService.rb +2603 -0
  240. data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +63 -0
  241. data/lib/adwords_api/v200909/AdGroupAdServiceMappingRegistry.rb +2755 -0
  242. data/lib/adwords_api/v200909/AdGroupAdServiceWrapper.rb +332 -0
  243. data/lib/adwords_api/v200909/AdGroupCriterionService.rb +1577 -0
  244. data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +63 -0
  245. data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +1821 -0
  246. data/lib/adwords_api/v200909/AdGroupCriterionServiceWrapper.rb +332 -0
  247. data/lib/adwords_api/v200909/AdGroupService.rb +1251 -0
  248. data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +63 -0
  249. data/lib/adwords_api/v200909/AdGroupServiceMappingRegistry.rb +1395 -0
  250. data/lib/adwords_api/v200909/AdGroupServiceWrapper.rb +332 -0
  251. data/lib/adwords_api/v200909/AdParamService.rb +765 -0
  252. data/lib/adwords_api/v200909/AdParamServiceDriver.rb +63 -0
  253. data/lib/adwords_api/v200909/AdParamServiceMappingRegistry.rb +927 -0
  254. data/lib/adwords_api/v200909/AdParamServiceWrapper.rb +332 -0
  255. data/lib/adwords_api/v200909/BulkMutateJobService.rb +4778 -0
  256. data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +63 -0
  257. data/lib/adwords_api/v200909/BulkMutateJobServiceMappingRegistry.rb +5077 -0
  258. data/lib/adwords_api/v200909/BulkMutateJobServiceWrapper.rb +332 -0
  259. data/lib/adwords_api/v200909/CampaignAdExtensionService.rb +1065 -0
  260. data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +63 -0
  261. data/lib/adwords_api/v200909/CampaignAdExtensionServiceMappingRegistry.rb +1273 -0
  262. data/lib/adwords_api/v200909/CampaignAdExtensionServiceWrapper.rb +332 -0
  263. data/lib/adwords_api/v200909/CampaignCriterionService.rb +1019 -0
  264. data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +63 -0
  265. data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +1237 -0
  266. data/lib/adwords_api/v200909/CampaignCriterionServiceWrapper.rb +332 -0
  267. data/lib/adwords_api/v200909/CampaignService.rb +1633 -0
  268. data/lib/adwords_api/v200909/CampaignServiceDriver.rb +63 -0
  269. data/lib/adwords_api/v200909/CampaignServiceMappingRegistry.rb +1785 -0
  270. data/lib/adwords_api/v200909/CampaignServiceWrapper.rb +332 -0
  271. data/lib/adwords_api/v200909/CampaignTargetService.rb +1435 -0
  272. data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +63 -0
  273. data/lib/adwords_api/v200909/CampaignTargetServiceMappingRegistry.rb +1569 -0
  274. data/lib/adwords_api/v200909/CampaignTargetServiceWrapper.rb +332 -0
  275. data/lib/adwords_api/v200909/GeoLocationService.rb +611 -0
  276. data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +55 -0
  277. data/lib/adwords_api/v200909/GeoLocationServiceMappingRegistry.rb +771 -0
  278. data/lib/adwords_api/v200909/GeoLocationServiceWrapper.rb +303 -0
  279. data/lib/adwords_api/v200909/InfoService.rb +605 -0
  280. data/lib/adwords_api/v200909/InfoServiceDriver.rb +55 -0
  281. data/lib/adwords_api/v200909/InfoServiceMappingRegistry.rb +764 -0
  282. data/lib/adwords_api/v200909/InfoServiceWrapper.rb +303 -0
  283. data/lib/adwords_api/v200909/TargetingIdeaService.rb +2253 -0
  284. data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +63 -0
  285. data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +2688 -0
  286. data/lib/adwords_api/v200909/TargetingIdeaServiceWrapper.rb +335 -0
  287. data/lib/adwords_api/v201003/AdExtensionOverrideService.rb +1301 -0
  288. data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +63 -0
  289. data/lib/adwords_api/v201003/AdExtensionOverrideServiceMappingRegistry.rb +1468 -0
  290. data/lib/adwords_api/v201003/AdExtensionOverrideServiceWrapper.rb +332 -0
  291. data/lib/adwords_api/v201003/AdGroupAdService.rb +2909 -0
  292. data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +63 -0
  293. data/lib/adwords_api/v201003/AdGroupAdServiceMappingRegistry.rb +2970 -0
  294. data/lib/adwords_api/v201003/AdGroupAdServiceWrapper.rb +332 -0
  295. data/lib/adwords_api/v201003/AdGroupCriterionService.rb +1762 -0
  296. data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +63 -0
  297. data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +1978 -0
  298. data/lib/adwords_api/v201003/AdGroupCriterionServiceWrapper.rb +332 -0
  299. data/lib/adwords_api/v201003/AdGroupService.rb +1421 -0
  300. data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +63 -0
  301. data/lib/adwords_api/v201003/AdGroupServiceMappingRegistry.rb +1546 -0
  302. data/lib/adwords_api/v201003/AdGroupServiceWrapper.rb +332 -0
  303. data/lib/adwords_api/v201003/AdParamService.rb +859 -0
  304. data/lib/adwords_api/v201003/AdParamServiceDriver.rb +63 -0
  305. data/lib/adwords_api/v201003/AdParamServiceMappingRegistry.rb +1002 -0
  306. data/lib/adwords_api/v201003/AdParamServiceWrapper.rb +332 -0
  307. data/lib/adwords_api/v201003/BidLandscapeService.rb +847 -0
  308. data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +55 -0
  309. data/lib/adwords_api/v201003/BidLandscapeServiceMappingRegistry.rb +958 -0
  310. data/lib/adwords_api/v201003/BidLandscapeServiceWrapper.rb +306 -0
  311. data/lib/adwords_api/v201003/BulkMutateJobService.rb +5401 -0
  312. data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +63 -0
  313. data/lib/adwords_api/v201003/BulkMutateJobServiceMappingRegistry.rb +5600 -0
  314. data/lib/adwords_api/v201003/BulkMutateJobServiceWrapper.rb +332 -0
  315. data/lib/adwords_api/v201003/CampaignAdExtensionService.rb +1255 -0
  316. data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +63 -0
  317. data/lib/adwords_api/v201003/CampaignAdExtensionServiceMappingRegistry.rb +1452 -0
  318. data/lib/adwords_api/v201003/CampaignAdExtensionServiceWrapper.rb +332 -0
  319. data/lib/adwords_api/v201003/CampaignCriterionService.rb +1145 -0
  320. data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +63 -0
  321. data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +1344 -0
  322. data/lib/adwords_api/v201003/CampaignCriterionServiceWrapper.rb +332 -0
  323. data/lib/adwords_api/v201003/CampaignService.rb +1901 -0
  324. data/lib/adwords_api/v201003/CampaignServiceDriver.rb +63 -0
  325. data/lib/adwords_api/v201003/CampaignServiceMappingRegistry.rb +2010 -0
  326. data/lib/adwords_api/v201003/CampaignServiceWrapper.rb +332 -0
  327. data/lib/adwords_api/v201003/CampaignTargetService.rb +1642 -0
  328. data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +63 -0
  329. data/lib/adwords_api/v201003/CampaignTargetServiceMappingRegistry.rb +1754 -0
  330. data/lib/adwords_api/v201003/CampaignTargetServiceWrapper.rb +332 -0
  331. data/lib/adwords_api/v201003/GeoLocationService.rb +692 -0
  332. data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +55 -0
  333. data/lib/adwords_api/v201003/GeoLocationServiceMappingRegistry.rb +840 -0
  334. data/lib/adwords_api/v201003/GeoLocationServiceWrapper.rb +303 -0
  335. data/lib/adwords_api/v201003/InfoService.rb +687 -0
  336. data/lib/adwords_api/v201003/InfoServiceDriver.rb +55 -0
  337. data/lib/adwords_api/v201003/InfoServiceMappingRegistry.rb +833 -0
  338. data/lib/adwords_api/v201003/InfoServiceWrapper.rb +303 -0
  339. data/lib/adwords_api/v201003/MediaService.rb +1192 -0
  340. data/lib/adwords_api/v201003/MediaServiceDriver.rb +63 -0
  341. data/lib/adwords_api/v201003/MediaServiceMappingRegistry.rb +1290 -0
  342. data/lib/adwords_api/v201003/MediaServiceWrapper.rb +332 -0
  343. data/lib/adwords_api/v201003/ReportDefinitionService.rb +905 -0
  344. data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +71 -0
  345. data/lib/adwords_api/v201003/ReportDefinitionServiceMappingRegistry.rb +1036 -0
  346. data/lib/adwords_api/v201003/ReportDefinitionServiceWrapper.rb +378 -0
  347. data/lib/adwords_api/v201003/TargetingIdeaService.rb +2517 -0
  348. data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +63 -0
  349. data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +2925 -0
  350. data/lib/adwords_api/v201003/TargetingIdeaServiceWrapper.rb +335 -0
  351. data/lib/adwords_api/v201008/AdExtensionOverrideService.rb +1383 -0
  352. data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +63 -0
  353. data/lib/adwords_api/v201008/AdExtensionOverrideServiceMappingRegistry.rb +1563 -0
  354. data/lib/adwords_api/v201008/AdExtensionOverrideServiceWrapper.rb +332 -0
  355. data/lib/adwords_api/v201008/AdGroupAdService.rb +2928 -0
  356. data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +63 -0
  357. data/lib/adwords_api/v201008/AdGroupAdServiceMappingRegistry.rb +2969 -0
  358. data/lib/adwords_api/v201008/AdGroupAdServiceWrapper.rb +332 -0
  359. data/lib/adwords_api/v201008/AdGroupCriterionService.rb +1981 -0
  360. data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +63 -0
  361. data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +2229 -0
  362. data/lib/adwords_api/v201008/AdGroupCriterionServiceWrapper.rb +332 -0
  363. data/lib/adwords_api/v201008/AdGroupService.rb +1548 -0
  364. data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +63 -0
  365. data/lib/adwords_api/v201008/AdGroupServiceMappingRegistry.rb +1687 -0
  366. data/lib/adwords_api/v201008/AdGroupServiceWrapper.rb +332 -0
  367. data/lib/adwords_api/v201008/AdParamService.rb +889 -0
  368. data/lib/adwords_api/v201008/AdParamServiceDriver.rb +63 -0
  369. data/lib/adwords_api/v201008/AdParamServiceMappingRegistry.rb +1041 -0
  370. data/lib/adwords_api/v201008/AdParamServiceWrapper.rb +332 -0
  371. data/lib/adwords_api/v201008/AlertService.rb +743 -0
  372. data/lib/adwords_api/v201008/AlertServiceDriver.rb +55 -0
  373. data/lib/adwords_api/v201008/AlertServiceMappingRegistry.rb +836 -0
  374. data/lib/adwords_api/v201008/AlertServiceWrapper.rb +303 -0
  375. data/lib/adwords_api/v201008/BidLandscapeService.rb +928 -0
  376. data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +55 -0
  377. data/lib/adwords_api/v201008/BidLandscapeServiceMappingRegistry.rb +1059 -0
  378. data/lib/adwords_api/v201008/BidLandscapeServiceWrapper.rb +306 -0
  379. data/lib/adwords_api/v201008/BulkMutateJobService.rb +6063 -0
  380. data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +63 -0
  381. data/lib/adwords_api/v201008/BulkMutateJobServiceMappingRegistry.rb +6265 -0
  382. data/lib/adwords_api/v201008/BulkMutateJobServiceWrapper.rb +332 -0
  383. data/lib/adwords_api/v201008/CampaignAdExtensionService.rb +1594 -0
  384. data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +63 -0
  385. data/lib/adwords_api/v201008/CampaignAdExtensionServiceMappingRegistry.rb +1789 -0
  386. data/lib/adwords_api/v201008/CampaignAdExtensionServiceWrapper.rb +332 -0
  387. data/lib/adwords_api/v201008/CampaignCriterionService.rb +1243 -0
  388. data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +63 -0
  389. data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +1467 -0
  390. data/lib/adwords_api/v201008/CampaignCriterionServiceWrapper.rb +332 -0
  391. data/lib/adwords_api/v201008/CampaignService.rb +1979 -0
  392. data/lib/adwords_api/v201008/CampaignServiceDriver.rb +63 -0
  393. data/lib/adwords_api/v201008/CampaignServiceMappingRegistry.rb +2089 -0
  394. data/lib/adwords_api/v201008/CampaignServiceWrapper.rb +332 -0
  395. data/lib/adwords_api/v201008/CampaignTargetService.rb +1651 -0
  396. data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +63 -0
  397. data/lib/adwords_api/v201008/CampaignTargetServiceMappingRegistry.rb +1757 -0
  398. data/lib/adwords_api/v201008/CampaignTargetServiceWrapper.rb +332 -0
  399. data/lib/adwords_api/v201008/CustomerSyncService.rb +693 -0
  400. data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +55 -0
  401. data/lib/adwords_api/v201008/CustomerSyncServiceMappingRegistry.rb +820 -0
  402. data/lib/adwords_api/v201008/CustomerSyncServiceWrapper.rb +303 -0
  403. data/lib/adwords_api/v201008/ExperimentService.rb +1124 -0
  404. data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +63 -0
  405. data/lib/adwords_api/v201008/ExperimentServiceMappingRegistry.rb +1281 -0
  406. data/lib/adwords_api/v201008/ExperimentServiceWrapper.rb +332 -0
  407. data/lib/adwords_api/v201008/GeoLocationService.rb +695 -0
  408. data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +55 -0
  409. data/lib/adwords_api/v201008/GeoLocationServiceMappingRegistry.rb +843 -0
  410. data/lib/adwords_api/v201008/GeoLocationServiceWrapper.rb +303 -0
  411. data/lib/adwords_api/v201008/InfoService.rb +690 -0
  412. data/lib/adwords_api/v201008/InfoServiceDriver.rb +55 -0
  413. data/lib/adwords_api/v201008/InfoServiceMappingRegistry.rb +836 -0
  414. data/lib/adwords_api/v201008/InfoServiceWrapper.rb +303 -0
  415. data/lib/adwords_api/v201008/MediaService.rb +1144 -0
  416. data/lib/adwords_api/v201008/MediaServiceDriver.rb +63 -0
  417. data/lib/adwords_api/v201008/MediaServiceMappingRegistry.rb +1241 -0
  418. data/lib/adwords_api/v201008/MediaServiceWrapper.rb +332 -0
  419. data/lib/adwords_api/v201008/ReportDefinitionService.rb +976 -0
  420. data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +71 -0
  421. data/lib/adwords_api/v201008/ReportDefinitionServiceMappingRegistry.rb +1115 -0
  422. data/lib/adwords_api/v201008/ReportDefinitionServiceWrapper.rb +378 -0
  423. data/lib/adwords_api/v201008/ServicedAccountService.rb +630 -0
  424. data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +55 -0
  425. data/lib/adwords_api/v201008/ServicedAccountServiceMappingRegistry.rb +752 -0
  426. data/lib/adwords_api/v201008/ServicedAccountServiceWrapper.rb +303 -0
  427. data/lib/adwords_api/v201008/TargetingIdeaService.rb +2645 -0
  428. data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +63 -0
  429. data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +3080 -0
  430. data/lib/adwords_api/v201008/TargetingIdeaServiceWrapper.rb +335 -0
  431. data/lib/adwords_api/v201008/TrafficEstimatorService.rb +1833 -0
  432. data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +55 -0
  433. data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +2124 -0
  434. data/lib/adwords_api/v201008/TrafficEstimatorServiceWrapper.rb +303 -0
  435. data/lib/adwords_api/v201008/UserListService.rb +846 -0
  436. data/lib/adwords_api/v201008/UserListServiceDriver.rb +63 -0
  437. data/lib/adwords_api/v201008/UserListServiceMappingRegistry.rb +915 -0
  438. data/lib/adwords_api/v201008/UserListServiceWrapper.rb +332 -0
  439. data/lib/adwords_api/v201101/AdExtensionOverrideService.rb +1399 -0
  440. data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +63 -0
  441. data/lib/adwords_api/v201101/AdExtensionOverrideServiceMappingRegistry.rb +1573 -0
  442. data/lib/adwords_api/v201101/AdExtensionOverrideServiceWrapper.rb +332 -0
  443. data/lib/adwords_api/v201101/AdGroupAdService.rb +2585 -0
  444. data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +63 -0
  445. data/lib/adwords_api/v201101/AdGroupAdServiceMappingRegistry.rb +2583 -0
  446. data/lib/adwords_api/v201101/AdGroupAdServiceWrapper.rb +332 -0
  447. data/lib/adwords_api/v201101/AdGroupCriterionService.rb +2099 -0
  448. data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +63 -0
  449. data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +2327 -0
  450. data/lib/adwords_api/v201101/AdGroupCriterionServiceWrapper.rb +332 -0
  451. data/lib/adwords_api/v201101/AdGroupService.rb +1610 -0
  452. data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +63 -0
  453. data/lib/adwords_api/v201101/AdGroupServiceMappingRegistry.rb +1765 -0
  454. data/lib/adwords_api/v201101/AdGroupServiceWrapper.rb +332 -0
  455. data/lib/adwords_api/v201101/AdParamService.rb +922 -0
  456. data/lib/adwords_api/v201101/AdParamServiceDriver.rb +63 -0
  457. data/lib/adwords_api/v201101/AdParamServiceMappingRegistry.rb +1077 -0
  458. data/lib/adwords_api/v201101/AdParamServiceWrapper.rb +332 -0
  459. data/lib/adwords_api/v201101/AlertService.rb +747 -0
  460. data/lib/adwords_api/v201101/AlertServiceDriver.rb +55 -0
  461. data/lib/adwords_api/v201101/AlertServiceMappingRegistry.rb +838 -0
  462. data/lib/adwords_api/v201101/AlertServiceWrapper.rb +303 -0
  463. data/lib/adwords_api/v201101/BulkMutateJobService.rb +6208 -0
  464. data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +63 -0
  465. data/lib/adwords_api/v201101/BulkMutateJobServiceMappingRegistry.rb +6433 -0
  466. data/lib/adwords_api/v201101/BulkMutateJobServiceWrapper.rb +332 -0
  467. data/lib/adwords_api/v201101/CampaignAdExtensionService.rb +1677 -0
  468. data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +63 -0
  469. data/lib/adwords_api/v201101/CampaignAdExtensionServiceMappingRegistry.rb +1855 -0
  470. data/lib/adwords_api/v201101/CampaignAdExtensionServiceWrapper.rb +332 -0
  471. data/lib/adwords_api/v201101/CampaignCriterionService.rb +1388 -0
  472. data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +63 -0
  473. data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +1601 -0
  474. data/lib/adwords_api/v201101/CampaignCriterionServiceWrapper.rb +332 -0
  475. data/lib/adwords_api/v201101/CampaignService.rb +2188 -0
  476. data/lib/adwords_api/v201101/CampaignServiceDriver.rb +63 -0
  477. data/lib/adwords_api/v201101/CampaignServiceMappingRegistry.rb +2301 -0
  478. data/lib/adwords_api/v201101/CampaignServiceWrapper.rb +332 -0
  479. data/lib/adwords_api/v201101/CampaignTargetService.rb +1629 -0
  480. data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +63 -0
  481. data/lib/adwords_api/v201101/CampaignTargetServiceMappingRegistry.rb +1725 -0
  482. data/lib/adwords_api/v201101/CampaignTargetServiceWrapper.rb +332 -0
  483. data/lib/adwords_api/v201101/CustomerSyncService.rb +694 -0
  484. data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +55 -0
  485. data/lib/adwords_api/v201101/CustomerSyncServiceMappingRegistry.rb +820 -0
  486. data/lib/adwords_api/v201101/CustomerSyncServiceWrapper.rb +303 -0
  487. data/lib/adwords_api/v201101/DataService.rb +1079 -0
  488. data/lib/adwords_api/v201101/DataServiceDriver.rb +63 -0
  489. data/lib/adwords_api/v201101/DataServiceMappingRegistry.rb +1177 -0
  490. data/lib/adwords_api/v201101/DataServiceWrapper.rb +338 -0
  491. data/lib/adwords_api/v201101/ExperimentService.rb +1256 -0
  492. data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +63 -0
  493. data/lib/adwords_api/v201101/ExperimentServiceMappingRegistry.rb +1417 -0
  494. data/lib/adwords_api/v201101/ExperimentServiceWrapper.rb +332 -0
  495. data/lib/adwords_api/v201101/GeoLocationService.rb +695 -0
  496. data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +55 -0
  497. data/lib/adwords_api/v201101/GeoLocationServiceMappingRegistry.rb +843 -0
  498. data/lib/adwords_api/v201101/GeoLocationServiceWrapper.rb +303 -0
  499. data/lib/adwords_api/v201101/InfoService.rb +690 -0
  500. data/lib/adwords_api/v201101/InfoServiceDriver.rb +55 -0
  501. data/lib/adwords_api/v201101/InfoServiceMappingRegistry.rb +836 -0
  502. data/lib/adwords_api/v201101/InfoServiceWrapper.rb +303 -0
  503. data/lib/adwords_api/v201101/MediaService.rb +1247 -0
  504. data/lib/adwords_api/v201101/MediaServiceDriver.rb +63 -0
  505. data/lib/adwords_api/v201101/MediaServiceMappingRegistry.rb +1357 -0
  506. data/lib/adwords_api/v201101/MediaServiceWrapper.rb +332 -0
  507. data/lib/adwords_api/v201101/ReportDefinitionService.rb +1121 -0
  508. data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +71 -0
  509. data/lib/adwords_api/v201101/ReportDefinitionServiceMappingRegistry.rb +1263 -0
  510. data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +364 -0
  511. data/lib/adwords_api/v201101/ServicedAccountService.rb +636 -0
  512. data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +55 -0
  513. data/lib/adwords_api/v201101/ServicedAccountServiceMappingRegistry.rb +756 -0
  514. data/lib/adwords_api/v201101/ServicedAccountServiceWrapper.rb +303 -0
  515. data/lib/adwords_api/v201101/TargetingIdeaService.rb +2827 -0
  516. data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +63 -0
  517. data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +3262 -0
  518. data/lib/adwords_api/v201101/TargetingIdeaServiceWrapper.rb +335 -0
  519. data/lib/adwords_api/v201101/TrafficEstimatorService.rb +1839 -0
  520. data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +55 -0
  521. data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +2128 -0
  522. data/lib/adwords_api/v201101/TrafficEstimatorServiceWrapper.rb +303 -0
  523. data/lib/adwords_api/v201101/UserListService.rb +1206 -0
  524. data/lib/adwords_api/v201101/UserListServiceDriver.rb +63 -0
  525. data/lib/adwords_api/v201101/UserListServiceMappingRegistry.rb +1323 -0
  526. data/lib/adwords_api/v201101/UserListServiceWrapper.rb +332 -0
  527. metadata +649 -0
@@ -0,0 +1,332 @@
1
+ # This file was automatically generated during the "rake generate" step of
2
+ # library setup.
3
+ require 'adwords_api/v201003/CampaignServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201003
7
+ module CampaignService
8
+
9
+ # Wrapper class for the v201003 CampaignService service.
10
+ # This class is automatically generated.
11
+ class CampaignServiceWrapper
12
+
13
+ # Holds the API object to which the wrapper belongs.
14
+ attr_reader :api
15
+
16
+ # Version and service utility fields.
17
+ attr_reader :version, :service
18
+
19
+ REGISTRY = AdwordsApi::V201003::CampaignService::DefaultMappingRegistry::LiteralRegistry
20
+ # This takes advantage of the code generated by soap4r to get the
21
+ # correct namespace for a given service. It accesses one of the fields
22
+ # in the description of the service's methods, which indicates the
23
+ # namespace.
24
+ # Since we're using a fixed version of soap4r (1.5.8), and this is
25
+ # automatically generated as part of the stub generation, it will
26
+ # always point to what we want.
27
+ NAMESPACE = 'https://adwords.google.com/api/adwords/cm/v201003'
28
+
29
+ # Holds a shortcut to the parent module.
30
+ # Use this to avoid typing the full class name when creating classes
31
+ # belonging to this service, e.g.
32
+ # service_object.module::ClassName
33
+ # instead of
34
+ # AdwordsApi::V201003::CampaignService::ClassName
35
+ # This will make it easier to migrate your code between API versions.
36
+ attr_reader :module
37
+
38
+ public
39
+
40
+ # Constructor for CampaignServiceWrapper.
41
+ #
42
+ # Args:
43
+ # - driver: SOAP::RPC::Driver object with the remote SOAP methods for
44
+ # this service
45
+ # - api: the API object to which the wrapper belongs
46
+ #
47
+ def initialize(driver, api)
48
+ @driver = driver
49
+ @api = api
50
+ @module = AdwordsApi::V201003::CampaignService
51
+ @version = :v201003
52
+ @service = :CampaignService
53
+ end
54
+
55
+ # Returns the namespace for this service.
56
+ def namespace
57
+ return NAMESPACE
58
+ end
59
+
60
+ private
61
+
62
+ # Converts from underscore_separated names to camelCase names.
63
+ #
64
+ # Args:
65
+ # - text: the text to be converted
66
+ #
67
+ def camel_case(text)
68
+ text.gsub(/_\w/) {|match| match[1..-1].upcase}
69
+ end
70
+
71
+ # Converts from camelCase names to underscore_separated names.
72
+ #
73
+ # Args:
74
+ # - text: the text to be converted
75
+ #
76
+ def underscore(text)
77
+ text.gsub(/[a-z0-9][A-Z]/) do |match|
78
+ match[0,1] + '_' + match[1,1].downcase
79
+ end
80
+ end
81
+
82
+ # Validates whether an object is of the correct type.
83
+ # This method is invoked by the hash to object converter during
84
+ # runtime to check the type validity of every object.
85
+ #
86
+ # Args:
87
+ # - object: the hash "object" being evaluated
88
+ # - type: the expected type (the class object itself)
89
+ #
90
+ # Returns:
91
+ # nil, upon success
92
+ #
93
+ # Raises:
94
+ # - ArgumentError: in case of an unexpected type
95
+ #
96
+ def validate_object(object, type)
97
+ return nil if object.is_a? type
98
+
99
+ wsdl_type_obj = type.new
100
+
101
+ if object.is_a? Hash
102
+ xsi_type = object[:xsi_type] or object['xsi_type']
103
+ if xsi_type
104
+ begin
105
+ subtype = @module.class_eval(xsi_type)
106
+ user_type_obj = subtype.new
107
+ rescue
108
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
109
+ "' is unknown"
110
+ end
111
+ unless user_type_obj.is_a? type
112
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
113
+ "' is not a subclass of " + type.to_s
114
+ end
115
+ else
116
+ object.each do |key, value|
117
+ if key.to_s != 'xsi_type'
118
+ if !wsdl_type_obj.respond_to?(camel_case(key.to_s).to_sym)
119
+ raise ArgumentError, "Unknown property '" + key.to_s +
120
+ "' for type " + type.to_s
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
126
+ return nil
127
+ end
128
+
129
+ # Sets a property on a real (soap4r-generated) object.
130
+ #
131
+ # Args:
132
+ # - object: the object being modified
133
+ # - property: the property being set
134
+ # - value: the value it's being set to
135
+ #
136
+ def set_object_property(object, property, value)
137
+ begin
138
+ object.send(property.to_s + '=', value)
139
+ rescue
140
+ object_class = object.class.name.split('::').last
141
+ error = AdsCommon::Errors::MissingPropertyError.new(
142
+ property, object_class)
143
+ message = "'Missing property `" + property.to_s +
144
+ "' for object class `" + object_class + "'"
145
+ raise(error, message)
146
+ end
147
+ end
148
+
149
+ public
150
+
151
+ # Converts dynamic objects (property hashes) into real soap4r objects.
152
+ # This is meant to be called when setting properties on a class, so
153
+ # the method receives an optional parameter specifying the class and
154
+ # property. This way, it's possible to determine the default type for
155
+ # the object if none is provided.
156
+ #
157
+ # Args:
158
+ # - object: the object being converted
159
+ # - parent_class: the class whose property is being set
160
+ # - property: the property being set
161
+ #
162
+ def convert_to_object(object, parent_class = nil, property = nil)
163
+ property = camel_case(property.to_s) if property
164
+ if object.is_a? Hash
165
+ # Process a hash.
166
+ specified_class = object[:xsi_type] or object['xsi_type']
167
+ default_class = nil
168
+ # Determine default class for this object, given the property
169
+ # being set.
170
+ if parent_class and property
171
+ parent = REGISTRY.schema_definition_from_class(parent_class)
172
+ element = parent.elements.entries.find do |entry|
173
+ entry.varname.to_s == property.to_s
174
+ end
175
+ default_class = element.mapped_class if element
176
+ end
177
+ validate_object(object, default_class)
178
+ real_class = nil
179
+ if specified_class
180
+ real_class = @module.class_eval(specified_class)
181
+ else
182
+ real_class = default_class
183
+ end
184
+ # Instance real object.
185
+ real_object = real_class.new
186
+ # Set each of its properties.
187
+ object.each do |entry, value|
188
+ entry = entry.to_s
189
+ unless entry == 'xsi_type'
190
+ if @api.config.read('service.use_ruby_names')
191
+ entry = camel_case(entry)
192
+ end
193
+ if value.is_a? Hash
194
+ # Recurse.
195
+ set_object_property(real_object, entry,
196
+ convert_to_object(value, real_class, entry))
197
+ elsif value.is_a? Array
198
+ set_object_property(real_object, entry,
199
+ value.map do |item|
200
+ # Recurse.
201
+ convert_to_object(item, real_class, entry)
202
+ end
203
+ )
204
+ else
205
+ set_object_property(real_object, entry, value)
206
+ end
207
+ end
208
+ end
209
+ return real_object
210
+ elsif object.is_a? Array
211
+ # Process an array
212
+ return object.map do |entry|
213
+ # Recurse.
214
+ convert_to_object(entry, parent_class, property)
215
+ end
216
+ else
217
+ return object
218
+ end
219
+ end
220
+
221
+ # Converts real soap4r objects into dynamic ones (property hashes).
222
+ # This is meant to be called for return objects of remote calls.
223
+ #
224
+ # Args:
225
+ # - object: the object being converted
226
+ #
227
+ def convert_from_object(object)
228
+ if object.class.name =~
229
+ /AdwordsApi::V201003::\w+::\w+/
230
+ # Handle soap4r object
231
+ object_class = REGISTRY.schema_definition_from_class(object.class)
232
+ if object_class.elements and !object_class.elements.entries.empty?
233
+ # Process complex object.
234
+ hash = {}
235
+ hash[:xsi_type] = object.class.name.split('::').last
236
+ object_class.elements.entries.each do |entry|
237
+ property = entry.varname.to_s
238
+ if object.respond_to? property and !property.include?('_Type')
239
+ value = object.send(property)
240
+ property_name = nil
241
+ if @api.config.read('service.use_ruby_names')
242
+ property_name = underscore(property).to_sym
243
+ else
244
+ property_name = property.to_sym
245
+ end
246
+ # Recurse.
247
+ hash[property_name] = convert_from_object(value) if value
248
+ end
249
+ end
250
+ return hash
251
+ else
252
+ # Process simple object.
253
+ parent = object.class.superclass
254
+ return parent.new(object)
255
+ end
256
+ elsif object.is_a? Array
257
+ # Handle arrays
258
+ return object.map do |entry|
259
+ # Recurse.
260
+ convert_from_object(entry)
261
+ end
262
+ else
263
+ # Handle native objects
264
+ return object
265
+ end
266
+ end
267
+
268
+
269
+ public
270
+
271
+ # Calls the {get}[http://code.google.com/apis/adwords/docs/reference/v201003/CampaignService.html#get] method of the CampaignService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/CampaignService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201003::CampaignService::CampaignSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201003::CampaignService::CampaignPage
279
+ #
280
+ # Raises:
281
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
282
+ #
283
+ def get(selector)
284
+ begin
285
+ arg_array = []
286
+ validate_object(selector, AdwordsApi::V201003::CampaignService::CampaignSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201003::CampaignService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201003::CampaignService::Get.new(*arg_array)
291
+ reply = convert_from_object(@driver.get(obj))
292
+ reply = reply[:rval] if reply.include?(:rval)
293
+ return reply
294
+ rescue SOAP::FaultError => fault
295
+ raise AdwordsApi::Errors.create_api_exception(fault,
296
+ self)
297
+ end
298
+ end
299
+
300
+ # Calls the {mutate}[http://code.google.com/apis/adwords/docs/reference/v201003/CampaignService.html#mutate] method of the CampaignService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/CampaignService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operations: SOAP::SOAPArray of AdwordsApi::V201003::CampaignService::CampaignOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201003::CampaignService::CampaignReturnValue
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def mutate(operations)
313
+ begin
314
+ arg_array = []
315
+ validate_object(operations, SOAP::SOAPArray)
316
+ arg_array << convert_to_object(operations, AdwordsApi::V201003::CampaignService::Mutate,
317
+ 'operations')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201003::CampaignService::Mutate.new(*arg_array)
320
+ reply = convert_from_object(@driver.mutate(obj))
321
+ reply = reply[:rval] if reply.include?(:rval)
322
+ return reply
323
+ rescue SOAP::FaultError => fault
324
+ raise AdwordsApi::Errors.create_api_exception(fault,
325
+ self)
326
+ end
327
+ end
328
+
329
+ end
330
+ end
331
+ end
332
+ end
@@ -0,0 +1,1642 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201003; module CampaignTargetService
4
+
5
+
6
+ # Address
7
+ # - streetAddress - SOAP::SOAPString
8
+ # - streetAddress2 - SOAP::SOAPString
9
+ # - cityName - SOAP::SOAPString
10
+ # - provinceCode - SOAP::SOAPString
11
+ # - provinceName - SOAP::SOAPString
12
+ # - postalCode - SOAP::SOAPString
13
+ # - countryCode - SOAP::SOAPString
14
+ class Address
15
+ attr_accessor :streetAddress
16
+ attr_accessor :streetAddress2
17
+ attr_accessor :cityName
18
+ attr_accessor :provinceCode
19
+ attr_accessor :provinceName
20
+ attr_accessor :postalCode
21
+ attr_accessor :countryCode
22
+
23
+ def initialize(streetAddress = nil, streetAddress2 = nil, cityName = nil, provinceCode = nil, provinceName = nil, postalCode = nil, countryCode = nil)
24
+ @streetAddress = streetAddress
25
+ @streetAddress2 = streetAddress2
26
+ @cityName = cityName
27
+ @provinceCode = provinceCode
28
+ @provinceName = provinceName
29
+ @postalCode = postalCode
30
+ @countryCode = countryCode
31
+ end
32
+ end
33
+
34
+ # GeoPoint
35
+ # - latitudeInMicroDegrees - SOAP::SOAPInt
36
+ # - longitudeInMicroDegrees - SOAP::SOAPInt
37
+ class GeoPoint
38
+ attr_accessor :latitudeInMicroDegrees
39
+ attr_accessor :longitudeInMicroDegrees
40
+
41
+ def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
42
+ @latitudeInMicroDegrees = latitudeInMicroDegrees
43
+ @longitudeInMicroDegrees = longitudeInMicroDegrees
44
+ end
45
+ end
46
+
47
+ # SoapHeader
48
+ # - authToken - SOAP::SOAPString
49
+ # - clientCustomerId - SOAP::SOAPString
50
+ # - clientEmail - SOAP::SOAPString
51
+ # - developerToken - SOAP::SOAPString
52
+ # - userAgent - SOAP::SOAPString
53
+ # - validateOnly - SOAP::SOAPBoolean
54
+ class SoapHeader
55
+ attr_accessor :authToken
56
+ attr_accessor :clientCustomerId
57
+ attr_accessor :clientEmail
58
+ attr_accessor :developerToken
59
+ attr_accessor :userAgent
60
+ attr_accessor :validateOnly
61
+
62
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
63
+ @authToken = authToken
64
+ @clientCustomerId = clientCustomerId
65
+ @clientEmail = clientEmail
66
+ @developerToken = developerToken
67
+ @userAgent = userAgent
68
+ @validateOnly = validateOnly
69
+ end
70
+ end
71
+
72
+ # SoapResponseHeader
73
+ # - requestId - SOAP::SOAPString
74
+ # - operations - SOAP::SOAPLong
75
+ # - responseTime - SOAP::SOAPLong
76
+ # - units - SOAP::SOAPLong
77
+ class SoapResponseHeader
78
+ attr_accessor :requestId
79
+ attr_accessor :operations
80
+ attr_accessor :responseTime
81
+ attr_accessor :units
82
+
83
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
84
+ @requestId = requestId
85
+ @operations = operations
86
+ @responseTime = responseTime
87
+ @units = units
88
+ end
89
+ end
90
+
91
+ # CampaignTargetSelector
92
+ # - campaignIds - SOAP::SOAPLong
93
+ class CampaignTargetSelector
94
+ attr_accessor :campaignIds
95
+
96
+ def initialize(campaignIds = [])
97
+ @campaignIds = campaignIds
98
+ end
99
+ end
100
+
101
+ # Target
102
+ # abstract
103
+ # - target_Type - SOAP::SOAPString
104
+ class Target
105
+ attr_accessor :target_Type
106
+
107
+ def initialize(target_Type = nil)
108
+ @target_Type = target_Type
109
+ end
110
+ end
111
+
112
+ # AdScheduleTarget
113
+ # - target_Type - SOAP::SOAPString
114
+ # - dayOfWeek - AdwordsApi::V201003::CampaignTargetService::DayOfWeek
115
+ # - startHour - SOAP::SOAPInt
116
+ # - startMinute - AdwordsApi::V201003::CampaignTargetService::MinuteOfHour
117
+ # - endHour - SOAP::SOAPInt
118
+ # - endMinute - AdwordsApi::V201003::CampaignTargetService::MinuteOfHour
119
+ # - bidMultiplier - SOAP::SOAPDouble
120
+ class AdScheduleTarget < Target
121
+ attr_accessor :target_Type
122
+ attr_accessor :dayOfWeek
123
+ attr_accessor :startHour
124
+ attr_accessor :startMinute
125
+ attr_accessor :endHour
126
+ attr_accessor :endMinute
127
+ attr_accessor :bidMultiplier
128
+
129
+ def initialize(target_Type = nil, dayOfWeek = nil, startHour = nil, startMinute = nil, endHour = nil, endMinute = nil, bidMultiplier = nil)
130
+ @target_Type = target_Type
131
+ @dayOfWeek = dayOfWeek
132
+ @startHour = startHour
133
+ @startMinute = startMinute
134
+ @endHour = endHour
135
+ @endMinute = endMinute
136
+ @bidMultiplier = bidMultiplier
137
+ end
138
+ end
139
+
140
+ # LanguageTarget
141
+ # - target_Type - SOAP::SOAPString
142
+ # - languageCode - SOAP::SOAPString
143
+ class LanguageTarget < Target
144
+ attr_accessor :target_Type
145
+ attr_accessor :languageCode
146
+
147
+ def initialize(target_Type = nil, languageCode = nil)
148
+ @target_Type = target_Type
149
+ @languageCode = languageCode
150
+ end
151
+ end
152
+
153
+ # MobileTarget
154
+ # abstract
155
+ # - target_Type - SOAP::SOAPString
156
+ class MobileTarget < Target
157
+ attr_accessor :target_Type
158
+
159
+ def initialize(target_Type = nil)
160
+ @target_Type = target_Type
161
+ end
162
+ end
163
+
164
+ # MobileCarrierTarget
165
+ # - target_Type - SOAP::SOAPString
166
+ # - carrierName - SOAP::SOAPString
167
+ # - countryCode - SOAP::SOAPString
168
+ class MobileCarrierTarget < MobileTarget
169
+ attr_accessor :target_Type
170
+ attr_accessor :carrierName
171
+ attr_accessor :countryCode
172
+
173
+ def initialize(target_Type = nil, carrierName = nil, countryCode = nil)
174
+ @target_Type = target_Type
175
+ @carrierName = carrierName
176
+ @countryCode = countryCode
177
+ end
178
+ end
179
+
180
+ # MobilePlatformTarget
181
+ # - target_Type - SOAP::SOAPString
182
+ # - platformName - SOAP::SOAPString
183
+ class MobilePlatformTarget < MobileTarget
184
+ attr_accessor :target_Type
185
+ attr_accessor :platformName
186
+
187
+ def initialize(target_Type = nil, platformName = nil)
188
+ @target_Type = target_Type
189
+ @platformName = platformName
190
+ end
191
+ end
192
+
193
+ # NetworkTarget
194
+ # - target_Type - SOAP::SOAPString
195
+ # - networkCoverageType - AdwordsApi::V201003::CampaignTargetService::NetworkCoverageType
196
+ class NetworkTarget < Target
197
+ attr_accessor :target_Type
198
+ attr_accessor :networkCoverageType
199
+
200
+ def initialize(target_Type = nil, networkCoverageType = nil)
201
+ @target_Type = target_Type
202
+ @networkCoverageType = networkCoverageType
203
+ end
204
+ end
205
+
206
+ # PlatformTarget
207
+ # - target_Type - SOAP::SOAPString
208
+ # - platformType - AdwordsApi::V201003::CampaignTargetService::PlatformType
209
+ class PlatformTarget < Target
210
+ attr_accessor :target_Type
211
+ attr_accessor :platformType
212
+
213
+ def initialize(target_Type = nil, platformType = nil)
214
+ @target_Type = target_Type
215
+ @platformType = platformType
216
+ end
217
+ end
218
+
219
+ # DemographicTarget
220
+ # abstract
221
+ # - target_Type - SOAP::SOAPString
222
+ # - bidModifier - SOAP::SOAPInt
223
+ class DemographicTarget < Target
224
+ attr_accessor :target_Type
225
+ attr_accessor :bidModifier
226
+
227
+ def initialize(target_Type = nil, bidModifier = nil)
228
+ @target_Type = target_Type
229
+ @bidModifier = bidModifier
230
+ end
231
+ end
232
+
233
+ # AgeTarget
234
+ # - target_Type - SOAP::SOAPString
235
+ # - bidModifier - SOAP::SOAPInt
236
+ # - age - AdwordsApi::V201003::CampaignTargetService::AgeTargetAge
237
+ class AgeTarget < DemographicTarget
238
+ attr_accessor :target_Type
239
+ attr_accessor :bidModifier
240
+ attr_accessor :age
241
+
242
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
243
+ @target_Type = target_Type
244
+ @bidModifier = bidModifier
245
+ @age = age
246
+ end
247
+ end
248
+
249
+ # GenderTarget
250
+ # - target_Type - SOAP::SOAPString
251
+ # - bidModifier - SOAP::SOAPInt
252
+ # - gender - AdwordsApi::V201003::CampaignTargetService::GenderTargetGender
253
+ class GenderTarget < DemographicTarget
254
+ attr_accessor :target_Type
255
+ attr_accessor :bidModifier
256
+ attr_accessor :gender
257
+
258
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
259
+ @target_Type = target_Type
260
+ @bidModifier = bidModifier
261
+ @gender = gender
262
+ end
263
+ end
264
+
265
+ # GeoTarget
266
+ # abstract
267
+ # - target_Type - SOAP::SOAPString
268
+ # - excluded - SOAP::SOAPBoolean
269
+ class GeoTarget < Target
270
+ attr_accessor :target_Type
271
+ attr_accessor :excluded
272
+
273
+ def initialize(target_Type = nil, excluded = nil)
274
+ @target_Type = target_Type
275
+ @excluded = excluded
276
+ end
277
+ end
278
+
279
+ # CityTarget
280
+ # - target_Type - SOAP::SOAPString
281
+ # - excluded - SOAP::SOAPBoolean
282
+ # - cityName - SOAP::SOAPString
283
+ # - provinceCode - SOAP::SOAPString
284
+ # - countryCode - SOAP::SOAPString
285
+ class CityTarget < GeoTarget
286
+ attr_accessor :target_Type
287
+ attr_accessor :excluded
288
+ attr_accessor :cityName
289
+ attr_accessor :provinceCode
290
+ attr_accessor :countryCode
291
+
292
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
293
+ @target_Type = target_Type
294
+ @excluded = excluded
295
+ @cityName = cityName
296
+ @provinceCode = provinceCode
297
+ @countryCode = countryCode
298
+ end
299
+ end
300
+
301
+ # CountryTarget
302
+ # - target_Type - SOAP::SOAPString
303
+ # - excluded - SOAP::SOAPBoolean
304
+ # - countryCode - SOAP::SOAPString
305
+ class CountryTarget < GeoTarget
306
+ attr_accessor :target_Type
307
+ attr_accessor :excluded
308
+ attr_accessor :countryCode
309
+
310
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
311
+ @target_Type = target_Type
312
+ @excluded = excluded
313
+ @countryCode = countryCode
314
+ end
315
+ end
316
+
317
+ # MetroTarget
318
+ # - target_Type - SOAP::SOAPString
319
+ # - excluded - SOAP::SOAPBoolean
320
+ # - metroCode - SOAP::SOAPString
321
+ class MetroTarget < GeoTarget
322
+ attr_accessor :target_Type
323
+ attr_accessor :excluded
324
+ attr_accessor :metroCode
325
+
326
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
327
+ @target_Type = target_Type
328
+ @excluded = excluded
329
+ @metroCode = metroCode
330
+ end
331
+ end
332
+
333
+ # PolygonTarget
334
+ # - target_Type - SOAP::SOAPString
335
+ # - excluded - SOAP::SOAPBoolean
336
+ # - vertices - AdwordsApi::V201003::CampaignTargetService::GeoPoint
337
+ class PolygonTarget < GeoTarget
338
+ attr_accessor :target_Type
339
+ attr_accessor :excluded
340
+ attr_accessor :vertices
341
+
342
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
343
+ @target_Type = target_Type
344
+ @excluded = excluded
345
+ @vertices = vertices
346
+ end
347
+ end
348
+
349
+ # ProvinceTarget
350
+ # - target_Type - SOAP::SOAPString
351
+ # - excluded - SOAP::SOAPBoolean
352
+ # - provinceCode - SOAP::SOAPString
353
+ class ProvinceTarget < GeoTarget
354
+ attr_accessor :target_Type
355
+ attr_accessor :excluded
356
+ attr_accessor :provinceCode
357
+
358
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
359
+ @target_Type = target_Type
360
+ @excluded = excluded
361
+ @provinceCode = provinceCode
362
+ end
363
+ end
364
+
365
+ # ProximityTarget
366
+ # - target_Type - SOAP::SOAPString
367
+ # - excluded - SOAP::SOAPBoolean
368
+ # - geoPoint - AdwordsApi::V201003::CampaignTargetService::GeoPoint
369
+ # - radiusDistanceUnits - AdwordsApi::V201003::CampaignTargetService::ProximityTargetDistanceUnits
370
+ # - radiusInUnits - SOAP::SOAPDouble
371
+ # - address - AdwordsApi::V201003::CampaignTargetService::Address
372
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
373
+ class ProximityTarget < GeoTarget
374
+ attr_accessor :target_Type
375
+ attr_accessor :excluded
376
+ attr_accessor :geoPoint
377
+ attr_accessor :radiusDistanceUnits
378
+ attr_accessor :radiusInUnits
379
+ attr_accessor :address
380
+ attr_accessor :allowServiceOfAddress
381
+
382
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
383
+ @target_Type = target_Type
384
+ @excluded = excluded
385
+ @geoPoint = geoPoint
386
+ @radiusDistanceUnits = radiusDistanceUnits
387
+ @radiusInUnits = radiusInUnits
388
+ @address = address
389
+ @allowServiceOfAddress = allowServiceOfAddress
390
+ end
391
+ end
392
+
393
+ # ApiError
394
+ # abstract
395
+ # - fieldPath - SOAP::SOAPString
396
+ # - trigger - SOAP::SOAPString
397
+ # - errorString - SOAP::SOAPString
398
+ # - apiError_Type - SOAP::SOAPString
399
+ class ApiError
400
+ attr_accessor :fieldPath
401
+ attr_accessor :trigger
402
+ attr_accessor :errorString
403
+ attr_accessor :apiError_Type
404
+
405
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
406
+ @fieldPath = fieldPath
407
+ @trigger = trigger
408
+ @errorString = errorString
409
+ @apiError_Type = apiError_Type
410
+ end
411
+ end
412
+
413
+ # AuthenticationError
414
+ # - fieldPath - SOAP::SOAPString
415
+ # - trigger - SOAP::SOAPString
416
+ # - errorString - SOAP::SOAPString
417
+ # - apiError_Type - SOAP::SOAPString
418
+ # - reason - AdwordsApi::V201003::CampaignTargetService::AuthenticationErrorReason
419
+ class AuthenticationError < ApiError
420
+ attr_accessor :fieldPath
421
+ attr_accessor :trigger
422
+ attr_accessor :errorString
423
+ attr_accessor :apiError_Type
424
+ attr_accessor :reason
425
+
426
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
427
+ @fieldPath = fieldPath
428
+ @trigger = trigger
429
+ @errorString = errorString
430
+ @apiError_Type = apiError_Type
431
+ @reason = reason
432
+ end
433
+ end
434
+
435
+ # AuthorizationError
436
+ # - fieldPath - SOAP::SOAPString
437
+ # - trigger - SOAP::SOAPString
438
+ # - errorString - SOAP::SOAPString
439
+ # - apiError_Type - SOAP::SOAPString
440
+ # - reason - AdwordsApi::V201003::CampaignTargetService::AuthorizationErrorReason
441
+ class AuthorizationError < ApiError
442
+ attr_accessor :fieldPath
443
+ attr_accessor :trigger
444
+ attr_accessor :errorString
445
+ attr_accessor :apiError_Type
446
+ attr_accessor :reason
447
+
448
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
449
+ @fieldPath = fieldPath
450
+ @trigger = trigger
451
+ @errorString = errorString
452
+ @apiError_Type = apiError_Type
453
+ @reason = reason
454
+ end
455
+ end
456
+
457
+ # BiddingError
458
+ # - fieldPath - SOAP::SOAPString
459
+ # - trigger - SOAP::SOAPString
460
+ # - errorString - SOAP::SOAPString
461
+ # - apiError_Type - SOAP::SOAPString
462
+ # - reason - AdwordsApi::V201003::CampaignTargetService::BiddingErrorReason
463
+ class BiddingError < ApiError
464
+ attr_accessor :fieldPath
465
+ attr_accessor :trigger
466
+ attr_accessor :errorString
467
+ attr_accessor :apiError_Type
468
+ attr_accessor :reason
469
+
470
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
471
+ @fieldPath = fieldPath
472
+ @trigger = trigger
473
+ @errorString = errorString
474
+ @apiError_Type = apiError_Type
475
+ @reason = reason
476
+ end
477
+ end
478
+
479
+ # CampaignError
480
+ # - fieldPath - SOAP::SOAPString
481
+ # - trigger - SOAP::SOAPString
482
+ # - errorString - SOAP::SOAPString
483
+ # - apiError_Type - SOAP::SOAPString
484
+ # - reason - AdwordsApi::V201003::CampaignTargetService::CampaignErrorReason
485
+ class CampaignError < ApiError
486
+ attr_accessor :fieldPath
487
+ attr_accessor :trigger
488
+ attr_accessor :errorString
489
+ attr_accessor :apiError_Type
490
+ attr_accessor :reason
491
+
492
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
493
+ @fieldPath = fieldPath
494
+ @trigger = trigger
495
+ @errorString = errorString
496
+ @apiError_Type = apiError_Type
497
+ @reason = reason
498
+ end
499
+ end
500
+
501
+ # ClientTermsError
502
+ # - fieldPath - SOAP::SOAPString
503
+ # - trigger - SOAP::SOAPString
504
+ # - errorString - SOAP::SOAPString
505
+ # - apiError_Type - SOAP::SOAPString
506
+ # - reason - AdwordsApi::V201003::CampaignTargetService::ClientTermsErrorReason
507
+ class ClientTermsError < ApiError
508
+ attr_accessor :fieldPath
509
+ attr_accessor :trigger
510
+ attr_accessor :errorString
511
+ attr_accessor :apiError_Type
512
+ attr_accessor :reason
513
+
514
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
515
+ @fieldPath = fieldPath
516
+ @trigger = trigger
517
+ @errorString = errorString
518
+ @apiError_Type = apiError_Type
519
+ @reason = reason
520
+ end
521
+ end
522
+
523
+ # DistinctError
524
+ # - fieldPath - SOAP::SOAPString
525
+ # - trigger - SOAP::SOAPString
526
+ # - errorString - SOAP::SOAPString
527
+ # - apiError_Type - SOAP::SOAPString
528
+ # - reason - AdwordsApi::V201003::CampaignTargetService::DistinctErrorReason
529
+ class DistinctError < ApiError
530
+ attr_accessor :fieldPath
531
+ attr_accessor :trigger
532
+ attr_accessor :errorString
533
+ attr_accessor :apiError_Type
534
+ attr_accessor :reason
535
+
536
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
537
+ @fieldPath = fieldPath
538
+ @trigger = trigger
539
+ @errorString = errorString
540
+ @apiError_Type = apiError_Type
541
+ @reason = reason
542
+ end
543
+ end
544
+
545
+ # EntityNotFound
546
+ # - fieldPath - SOAP::SOAPString
547
+ # - trigger - SOAP::SOAPString
548
+ # - errorString - SOAP::SOAPString
549
+ # - apiError_Type - SOAP::SOAPString
550
+ # - reason - AdwordsApi::V201003::CampaignTargetService::EntityNotFoundReason
551
+ class EntityNotFound < ApiError
552
+ attr_accessor :fieldPath
553
+ attr_accessor :trigger
554
+ attr_accessor :errorString
555
+ attr_accessor :apiError_Type
556
+ attr_accessor :reason
557
+
558
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
559
+ @fieldPath = fieldPath
560
+ @trigger = trigger
561
+ @errorString = errorString
562
+ @apiError_Type = apiError_Type
563
+ @reason = reason
564
+ end
565
+ end
566
+
567
+ # InternalApiError
568
+ # - fieldPath - SOAP::SOAPString
569
+ # - trigger - SOAP::SOAPString
570
+ # - errorString - SOAP::SOAPString
571
+ # - apiError_Type - SOAP::SOAPString
572
+ # - reason - AdwordsApi::V201003::CampaignTargetService::InternalApiErrorReason
573
+ class InternalApiError < ApiError
574
+ attr_accessor :fieldPath
575
+ attr_accessor :trigger
576
+ attr_accessor :errorString
577
+ attr_accessor :apiError_Type
578
+ attr_accessor :reason
579
+
580
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
581
+ @fieldPath = fieldPath
582
+ @trigger = trigger
583
+ @errorString = errorString
584
+ @apiError_Type = apiError_Type
585
+ @reason = reason
586
+ end
587
+ end
588
+
589
+ # NotEmptyError
590
+ # - fieldPath - SOAP::SOAPString
591
+ # - trigger - SOAP::SOAPString
592
+ # - errorString - SOAP::SOAPString
593
+ # - apiError_Type - SOAP::SOAPString
594
+ # - reason - AdwordsApi::V201003::CampaignTargetService::NotEmptyErrorReason
595
+ class NotEmptyError < ApiError
596
+ attr_accessor :fieldPath
597
+ attr_accessor :trigger
598
+ attr_accessor :errorString
599
+ attr_accessor :apiError_Type
600
+ attr_accessor :reason
601
+
602
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
603
+ @fieldPath = fieldPath
604
+ @trigger = trigger
605
+ @errorString = errorString
606
+ @apiError_Type = apiError_Type
607
+ @reason = reason
608
+ end
609
+ end
610
+
611
+ # NotWhitelistedError
612
+ # - fieldPath - SOAP::SOAPString
613
+ # - trigger - SOAP::SOAPString
614
+ # - errorString - SOAP::SOAPString
615
+ # - apiError_Type - SOAP::SOAPString
616
+ # - reason - AdwordsApi::V201003::CampaignTargetService::NotWhitelistedErrorReason
617
+ class NotWhitelistedError < ApiError
618
+ attr_accessor :fieldPath
619
+ attr_accessor :trigger
620
+ attr_accessor :errorString
621
+ attr_accessor :apiError_Type
622
+ attr_accessor :reason
623
+
624
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
625
+ @fieldPath = fieldPath
626
+ @trigger = trigger
627
+ @errorString = errorString
628
+ @apiError_Type = apiError_Type
629
+ @reason = reason
630
+ end
631
+ end
632
+
633
+ # NullError
634
+ # - fieldPath - SOAP::SOAPString
635
+ # - trigger - SOAP::SOAPString
636
+ # - errorString - SOAP::SOAPString
637
+ # - apiError_Type - SOAP::SOAPString
638
+ # - reason - AdwordsApi::V201003::CampaignTargetService::NullErrorReason
639
+ class NullError < ApiError
640
+ attr_accessor :fieldPath
641
+ attr_accessor :trigger
642
+ attr_accessor :errorString
643
+ attr_accessor :apiError_Type
644
+ attr_accessor :reason
645
+
646
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
647
+ @fieldPath = fieldPath
648
+ @trigger = trigger
649
+ @errorString = errorString
650
+ @apiError_Type = apiError_Type
651
+ @reason = reason
652
+ end
653
+ end
654
+
655
+ # OperationAccessDenied
656
+ # - fieldPath - SOAP::SOAPString
657
+ # - trigger - SOAP::SOAPString
658
+ # - errorString - SOAP::SOAPString
659
+ # - apiError_Type - SOAP::SOAPString
660
+ # - reason - AdwordsApi::V201003::CampaignTargetService::OperationAccessDeniedReason
661
+ class OperationAccessDenied < ApiError
662
+ attr_accessor :fieldPath
663
+ attr_accessor :trigger
664
+ attr_accessor :errorString
665
+ attr_accessor :apiError_Type
666
+ attr_accessor :reason
667
+
668
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
669
+ @fieldPath = fieldPath
670
+ @trigger = trigger
671
+ @errorString = errorString
672
+ @apiError_Type = apiError_Type
673
+ @reason = reason
674
+ end
675
+ end
676
+
677
+ # OperatorError
678
+ # - fieldPath - SOAP::SOAPString
679
+ # - trigger - SOAP::SOAPString
680
+ # - errorString - SOAP::SOAPString
681
+ # - apiError_Type - SOAP::SOAPString
682
+ # - reason - AdwordsApi::V201003::CampaignTargetService::OperatorErrorReason
683
+ class OperatorError < ApiError
684
+ attr_accessor :fieldPath
685
+ attr_accessor :trigger
686
+ attr_accessor :errorString
687
+ attr_accessor :apiError_Type
688
+ attr_accessor :reason
689
+
690
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
691
+ @fieldPath = fieldPath
692
+ @trigger = trigger
693
+ @errorString = errorString
694
+ @apiError_Type = apiError_Type
695
+ @reason = reason
696
+ end
697
+ end
698
+
699
+ # QuotaCheckError
700
+ # - fieldPath - SOAP::SOAPString
701
+ # - trigger - SOAP::SOAPString
702
+ # - errorString - SOAP::SOAPString
703
+ # - apiError_Type - SOAP::SOAPString
704
+ # - reason - AdwordsApi::V201003::CampaignTargetService::QuotaCheckErrorReason
705
+ class QuotaCheckError < ApiError
706
+ attr_accessor :fieldPath
707
+ attr_accessor :trigger
708
+ attr_accessor :errorString
709
+ attr_accessor :apiError_Type
710
+ attr_accessor :reason
711
+
712
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
713
+ @fieldPath = fieldPath
714
+ @trigger = trigger
715
+ @errorString = errorString
716
+ @apiError_Type = apiError_Type
717
+ @reason = reason
718
+ end
719
+ end
720
+
721
+ # QuotaError
722
+ # - fieldPath - SOAP::SOAPString
723
+ # - trigger - SOAP::SOAPString
724
+ # - errorString - SOAP::SOAPString
725
+ # - apiError_Type - SOAP::SOAPString
726
+ # - reason - AdwordsApi::V201003::CampaignTargetService::QuotaErrorReason
727
+ # - limit - SOAP::SOAPInt
728
+ class QuotaError < ApiError
729
+ attr_accessor :fieldPath
730
+ attr_accessor :trigger
731
+ attr_accessor :errorString
732
+ attr_accessor :apiError_Type
733
+ attr_accessor :reason
734
+ attr_accessor :limit
735
+
736
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, limit = nil)
737
+ @fieldPath = fieldPath
738
+ @trigger = trigger
739
+ @errorString = errorString
740
+ @apiError_Type = apiError_Type
741
+ @reason = reason
742
+ @limit = limit
743
+ end
744
+ end
745
+
746
+ # RangeError
747
+ # - fieldPath - SOAP::SOAPString
748
+ # - trigger - SOAP::SOAPString
749
+ # - errorString - SOAP::SOAPString
750
+ # - apiError_Type - SOAP::SOAPString
751
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RangeErrorReason
752
+ class C_RangeError < ApiError
753
+ attr_accessor :fieldPath
754
+ attr_accessor :trigger
755
+ attr_accessor :errorString
756
+ attr_accessor :apiError_Type
757
+ attr_accessor :reason
758
+
759
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
760
+ @fieldPath = fieldPath
761
+ @trigger = trigger
762
+ @errorString = errorString
763
+ @apiError_Type = apiError_Type
764
+ @reason = reason
765
+ end
766
+ end
767
+
768
+ # RateExceededError
769
+ # - fieldPath - SOAP::SOAPString
770
+ # - trigger - SOAP::SOAPString
771
+ # - errorString - SOAP::SOAPString
772
+ # - apiError_Type - SOAP::SOAPString
773
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RateExceededErrorReason
774
+ # - rateName - SOAP::SOAPString
775
+ # - rateScope - SOAP::SOAPString
776
+ # - retryAfterSeconds - SOAP::SOAPInt
777
+ class RateExceededError < ApiError
778
+ attr_accessor :fieldPath
779
+ attr_accessor :trigger
780
+ attr_accessor :errorString
781
+ attr_accessor :apiError_Type
782
+ attr_accessor :reason
783
+ attr_accessor :rateName
784
+ attr_accessor :rateScope
785
+ attr_accessor :retryAfterSeconds
786
+
787
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
788
+ @fieldPath = fieldPath
789
+ @trigger = trigger
790
+ @errorString = errorString
791
+ @apiError_Type = apiError_Type
792
+ @reason = reason
793
+ @rateName = rateName
794
+ @rateScope = rateScope
795
+ @retryAfterSeconds = retryAfterSeconds
796
+ end
797
+ end
798
+
799
+ # RegionCodeError
800
+ # - fieldPath - SOAP::SOAPString
801
+ # - trigger - SOAP::SOAPString
802
+ # - errorString - SOAP::SOAPString
803
+ # - apiError_Type - SOAP::SOAPString
804
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RegionCodeErrorReason
805
+ class RegionCodeError < ApiError
806
+ attr_accessor :fieldPath
807
+ attr_accessor :trigger
808
+ attr_accessor :errorString
809
+ attr_accessor :apiError_Type
810
+ attr_accessor :reason
811
+
812
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
813
+ @fieldPath = fieldPath
814
+ @trigger = trigger
815
+ @errorString = errorString
816
+ @apiError_Type = apiError_Type
817
+ @reason = reason
818
+ end
819
+ end
820
+
821
+ # RejectedError
822
+ # - fieldPath - SOAP::SOAPString
823
+ # - trigger - SOAP::SOAPString
824
+ # - errorString - SOAP::SOAPString
825
+ # - apiError_Type - SOAP::SOAPString
826
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RejectedErrorReason
827
+ class RejectedError < ApiError
828
+ attr_accessor :fieldPath
829
+ attr_accessor :trigger
830
+ attr_accessor :errorString
831
+ attr_accessor :apiError_Type
832
+ attr_accessor :reason
833
+
834
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
835
+ @fieldPath = fieldPath
836
+ @trigger = trigger
837
+ @errorString = errorString
838
+ @apiError_Type = apiError_Type
839
+ @reason = reason
840
+ end
841
+ end
842
+
843
+ # RequestError
844
+ # - fieldPath - SOAP::SOAPString
845
+ # - trigger - SOAP::SOAPString
846
+ # - errorString - SOAP::SOAPString
847
+ # - apiError_Type - SOAP::SOAPString
848
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RequestErrorReason
849
+ class RequestError < ApiError
850
+ attr_accessor :fieldPath
851
+ attr_accessor :trigger
852
+ attr_accessor :errorString
853
+ attr_accessor :apiError_Type
854
+ attr_accessor :reason
855
+
856
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
857
+ @fieldPath = fieldPath
858
+ @trigger = trigger
859
+ @errorString = errorString
860
+ @apiError_Type = apiError_Type
861
+ @reason = reason
862
+ end
863
+ end
864
+
865
+ # RequiredError
866
+ # - fieldPath - SOAP::SOAPString
867
+ # - trigger - SOAP::SOAPString
868
+ # - errorString - SOAP::SOAPString
869
+ # - apiError_Type - SOAP::SOAPString
870
+ # - reason - AdwordsApi::V201003::CampaignTargetService::RequiredErrorReason
871
+ class RequiredError < ApiError
872
+ attr_accessor :fieldPath
873
+ attr_accessor :trigger
874
+ attr_accessor :errorString
875
+ attr_accessor :apiError_Type
876
+ attr_accessor :reason
877
+
878
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
879
+ @fieldPath = fieldPath
880
+ @trigger = trigger
881
+ @errorString = errorString
882
+ @apiError_Type = apiError_Type
883
+ @reason = reason
884
+ end
885
+ end
886
+
887
+ # SizeLimitError
888
+ # - fieldPath - SOAP::SOAPString
889
+ # - trigger - SOAP::SOAPString
890
+ # - errorString - SOAP::SOAPString
891
+ # - apiError_Type - SOAP::SOAPString
892
+ # - reason - AdwordsApi::V201003::CampaignTargetService::SizeLimitErrorReason
893
+ class SizeLimitError < ApiError
894
+ attr_accessor :fieldPath
895
+ attr_accessor :trigger
896
+ attr_accessor :errorString
897
+ attr_accessor :apiError_Type
898
+ attr_accessor :reason
899
+
900
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
901
+ @fieldPath = fieldPath
902
+ @trigger = trigger
903
+ @errorString = errorString
904
+ @apiError_Type = apiError_Type
905
+ @reason = reason
906
+ end
907
+ end
908
+
909
+ # StringLengthError
910
+ # - fieldPath - SOAP::SOAPString
911
+ # - trigger - SOAP::SOAPString
912
+ # - errorString - SOAP::SOAPString
913
+ # - apiError_Type - SOAP::SOAPString
914
+ # - reason - AdwordsApi::V201003::CampaignTargetService::StringLengthErrorReason
915
+ class StringLengthError < ApiError
916
+ attr_accessor :fieldPath
917
+ attr_accessor :trigger
918
+ attr_accessor :errorString
919
+ attr_accessor :apiError_Type
920
+ attr_accessor :reason
921
+
922
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
923
+ @fieldPath = fieldPath
924
+ @trigger = trigger
925
+ @errorString = errorString
926
+ @apiError_Type = apiError_Type
927
+ @reason = reason
928
+ end
929
+ end
930
+
931
+ # TargetError
932
+ # - fieldPath - SOAP::SOAPString
933
+ # - trigger - SOAP::SOAPString
934
+ # - errorString - SOAP::SOAPString
935
+ # - apiError_Type - SOAP::SOAPString
936
+ # - reason - AdwordsApi::V201003::CampaignTargetService::TargetErrorReason
937
+ class TargetError < ApiError
938
+ attr_accessor :fieldPath
939
+ attr_accessor :trigger
940
+ attr_accessor :errorString
941
+ attr_accessor :apiError_Type
942
+ attr_accessor :reason
943
+
944
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
945
+ @fieldPath = fieldPath
946
+ @trigger = trigger
947
+ @errorString = errorString
948
+ @apiError_Type = apiError_Type
949
+ @reason = reason
950
+ end
951
+ end
952
+
953
+ # DatabaseError
954
+ # - fieldPath - SOAP::SOAPString
955
+ # - trigger - SOAP::SOAPString
956
+ # - errorString - SOAP::SOAPString
957
+ # - apiError_Type - SOAP::SOAPString
958
+ # - reason - AdwordsApi::V201003::CampaignTargetService::DatabaseErrorReason
959
+ class DatabaseError < ApiError
960
+ attr_accessor :fieldPath
961
+ attr_accessor :trigger
962
+ attr_accessor :errorString
963
+ attr_accessor :apiError_Type
964
+ attr_accessor :reason
965
+
966
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
967
+ @fieldPath = fieldPath
968
+ @trigger = trigger
969
+ @errorString = errorString
970
+ @apiError_Type = apiError_Type
971
+ @reason = reason
972
+ end
973
+ end
974
+
975
+ # ApplicationException
976
+ # - message - SOAP::SOAPString
977
+ # - applicationException_Type - SOAP::SOAPString
978
+ class ApplicationException
979
+ attr_accessor :message
980
+ attr_accessor :applicationException_Type
981
+
982
+ def initialize(message = nil, applicationException_Type = nil)
983
+ @message = message
984
+ @applicationException_Type = applicationException_Type
985
+ end
986
+ end
987
+
988
+ # ApiException
989
+ # - message - SOAP::SOAPString
990
+ # - applicationException_Type - SOAP::SOAPString
991
+ # - errors - AdwordsApi::V201003::CampaignTargetService::ApiError
992
+ class ApiException < ApplicationException
993
+ attr_accessor :message
994
+ attr_accessor :applicationException_Type
995
+ attr_accessor :errors
996
+
997
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
998
+ @message = message
999
+ @applicationException_Type = applicationException_Type
1000
+ @errors = errors
1001
+ end
1002
+ end
1003
+
1004
+ # TargetList
1005
+ # abstract
1006
+ # - campaignId - SOAP::SOAPLong
1007
+ # - targetList_Type - SOAP::SOAPString
1008
+ class TargetList
1009
+ attr_accessor :campaignId
1010
+ attr_accessor :targetList_Type
1011
+
1012
+ def initialize(campaignId = nil, targetList_Type = nil)
1013
+ @campaignId = campaignId
1014
+ @targetList_Type = targetList_Type
1015
+ end
1016
+ end
1017
+
1018
+ # AdScheduleTargetList
1019
+ # - campaignId - SOAP::SOAPLong
1020
+ # - targetList_Type - SOAP::SOAPString
1021
+ # - targets - AdwordsApi::V201003::CampaignTargetService::AdScheduleTarget
1022
+ class AdScheduleTargetList < TargetList
1023
+ attr_accessor :campaignId
1024
+ attr_accessor :targetList_Type
1025
+ attr_accessor :targets
1026
+
1027
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1028
+ @campaignId = campaignId
1029
+ @targetList_Type = targetList_Type
1030
+ @targets = targets
1031
+ end
1032
+ end
1033
+
1034
+ # DemographicTargetList
1035
+ # - campaignId - SOAP::SOAPLong
1036
+ # - targetList_Type - SOAP::SOAPString
1037
+ # - targets - AdwordsApi::V201003::CampaignTargetService::DemographicTarget
1038
+ class DemographicTargetList < TargetList
1039
+ attr_accessor :campaignId
1040
+ attr_accessor :targetList_Type
1041
+ attr_accessor :targets
1042
+
1043
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1044
+ @campaignId = campaignId
1045
+ @targetList_Type = targetList_Type
1046
+ @targets = targets
1047
+ end
1048
+ end
1049
+
1050
+ # GeoTargetList
1051
+ # - campaignId - SOAP::SOAPLong
1052
+ # - targetList_Type - SOAP::SOAPString
1053
+ # - targets - AdwordsApi::V201003::CampaignTargetService::GeoTarget
1054
+ class GeoTargetList < TargetList
1055
+ attr_accessor :campaignId
1056
+ attr_accessor :targetList_Type
1057
+ attr_accessor :targets
1058
+
1059
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1060
+ @campaignId = campaignId
1061
+ @targetList_Type = targetList_Type
1062
+ @targets = targets
1063
+ end
1064
+ end
1065
+
1066
+ # LanguageTargetList
1067
+ # - campaignId - SOAP::SOAPLong
1068
+ # - targetList_Type - SOAP::SOAPString
1069
+ # - targets - AdwordsApi::V201003::CampaignTargetService::LanguageTarget
1070
+ class LanguageTargetList < TargetList
1071
+ attr_accessor :campaignId
1072
+ attr_accessor :targetList_Type
1073
+ attr_accessor :targets
1074
+
1075
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1076
+ @campaignId = campaignId
1077
+ @targetList_Type = targetList_Type
1078
+ @targets = targets
1079
+ end
1080
+ end
1081
+
1082
+ # MobileTargetList
1083
+ # - campaignId - SOAP::SOAPLong
1084
+ # - targetList_Type - SOAP::SOAPString
1085
+ # - targets - AdwordsApi::V201003::CampaignTargetService::MobileTarget
1086
+ class MobileTargetList < TargetList
1087
+ attr_accessor :campaignId
1088
+ attr_accessor :targetList_Type
1089
+ attr_accessor :targets
1090
+
1091
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1092
+ @campaignId = campaignId
1093
+ @targetList_Type = targetList_Type
1094
+ @targets = targets
1095
+ end
1096
+ end
1097
+
1098
+ # NetworkTargetList
1099
+ # - campaignId - SOAP::SOAPLong
1100
+ # - targetList_Type - SOAP::SOAPString
1101
+ # - targets - AdwordsApi::V201003::CampaignTargetService::NetworkTarget
1102
+ class NetworkTargetList < TargetList
1103
+ attr_accessor :campaignId
1104
+ attr_accessor :targetList_Type
1105
+ attr_accessor :targets
1106
+
1107
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1108
+ @campaignId = campaignId
1109
+ @targetList_Type = targetList_Type
1110
+ @targets = targets
1111
+ end
1112
+ end
1113
+
1114
+ # PlatformTargetList
1115
+ # - campaignId - SOAP::SOAPLong
1116
+ # - targetList_Type - SOAP::SOAPString
1117
+ # - targets - AdwordsApi::V201003::CampaignTargetService::PlatformTarget
1118
+ class PlatformTargetList < TargetList
1119
+ attr_accessor :campaignId
1120
+ attr_accessor :targetList_Type
1121
+ attr_accessor :targets
1122
+
1123
+ def initialize(campaignId = nil, targetList_Type = nil, targets = [])
1124
+ @campaignId = campaignId
1125
+ @targetList_Type = targetList_Type
1126
+ @targets = targets
1127
+ end
1128
+ end
1129
+
1130
+ # ListReturnValue
1131
+ # abstract
1132
+ # - listReturnValue_Type - SOAP::SOAPString
1133
+ class ListReturnValue
1134
+ attr_accessor :listReturnValue_Type
1135
+
1136
+ def initialize(listReturnValue_Type = nil)
1137
+ @listReturnValue_Type = listReturnValue_Type
1138
+ end
1139
+ end
1140
+
1141
+ # CampaignTargetReturnValue
1142
+ # - listReturnValue_Type - SOAP::SOAPString
1143
+ # - value - AdwordsApi::V201003::CampaignTargetService::TargetList
1144
+ class CampaignTargetReturnValue < ListReturnValue
1145
+ attr_accessor :listReturnValue_Type
1146
+ attr_accessor :value
1147
+
1148
+ def initialize(listReturnValue_Type = nil, value = [])
1149
+ @listReturnValue_Type = listReturnValue_Type
1150
+ @value = value
1151
+ end
1152
+ end
1153
+
1154
+ # Operation
1155
+ # abstract
1156
+ # - operator - AdwordsApi::V201003::CampaignTargetService::Operator
1157
+ # - operation_Type - SOAP::SOAPString
1158
+ class Operation
1159
+ attr_accessor :operator
1160
+ attr_accessor :operation_Type
1161
+
1162
+ def initialize(operator = nil, operation_Type = nil)
1163
+ @operator = operator
1164
+ @operation_Type = operation_Type
1165
+ end
1166
+ end
1167
+
1168
+ # CampaignTargetOperation
1169
+ # - operator - AdwordsApi::V201003::CampaignTargetService::Operator
1170
+ # - operation_Type - SOAP::SOAPString
1171
+ # - operand - AdwordsApi::V201003::CampaignTargetService::TargetList
1172
+ class CampaignTargetOperation < Operation
1173
+ attr_accessor :operator
1174
+ attr_accessor :operation_Type
1175
+ attr_accessor :operand
1176
+
1177
+ def initialize(operator = nil, operation_Type = nil, operand = nil)
1178
+ @operator = operator
1179
+ @operation_Type = operation_Type
1180
+ @operand = operand
1181
+ end
1182
+ end
1183
+
1184
+ # Page
1185
+ # abstract
1186
+ # - totalNumEntries - SOAP::SOAPInt
1187
+ # - page_Type - SOAP::SOAPString
1188
+ class Page
1189
+ attr_accessor :totalNumEntries
1190
+ attr_accessor :page_Type
1191
+
1192
+ def initialize(totalNumEntries = nil, page_Type = nil)
1193
+ @totalNumEntries = totalNumEntries
1194
+ @page_Type = page_Type
1195
+ end
1196
+ end
1197
+
1198
+ # CampaignTargetPage
1199
+ # - totalNumEntries - SOAP::SOAPInt
1200
+ # - page_Type - SOAP::SOAPString
1201
+ # - entries - AdwordsApi::V201003::CampaignTargetService::TargetList
1202
+ class CampaignTargetPage < Page
1203
+ attr_accessor :totalNumEntries
1204
+ attr_accessor :page_Type
1205
+ attr_accessor :entries
1206
+
1207
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
1208
+ @totalNumEntries = totalNumEntries
1209
+ @page_Type = page_Type
1210
+ @entries = entries
1211
+ end
1212
+ end
1213
+
1214
+ # AgeTarget.Age
1215
+ class AgeTargetAge < ::String
1216
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
1217
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
1218
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
1219
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
1220
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
1221
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
1222
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
1223
+ end
1224
+
1225
+ # AuthenticationError.Reason
1226
+ class AuthenticationErrorReason < ::String
1227
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
1228
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
1229
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
1230
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
1231
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
1232
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
1233
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
1234
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
1235
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
1236
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
1237
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
1238
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
1239
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
1240
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
1241
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
1242
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
1243
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
1244
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
1245
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
1246
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
1247
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
1248
+ end
1249
+
1250
+ # AuthorizationError.Reason
1251
+ class AuthorizationErrorReason < ::String
1252
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
1253
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
1254
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
1255
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
1256
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
1257
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
1258
+ end
1259
+
1260
+ # BiddingError.Reason
1261
+ class BiddingErrorReason < ::String
1262
+ ADGROUPS_DO_NOT_MATCH_CONSTRAINT = BiddingErrorReason.new("ADGROUPS_DO_NOT_MATCH_CONSTRAINT")
1263
+ AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER = BiddingErrorReason.new("AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER")
1264
+ BAD_BID_COMBINATION = BiddingErrorReason.new("BAD_BID_COMBINATION")
1265
+ BIDS_DO_NOT_FULFILL_SPEC = BiddingErrorReason.new("BIDS_DO_NOT_FULFILL_SPEC")
1266
+ BID_AMOUNT_REQUIRED = BiddingErrorReason.new("BID_AMOUNT_REQUIRED")
1267
+ BID_ERROR = BiddingErrorReason.new("BID_ERROR")
1268
+ BID_INCOMPATIBLE_WITH_ADGROUP = BiddingErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")
1269
+ BID_TOO_BIG = BiddingErrorReason.new("BID_TOO_BIG")
1270
+ BID_TOO_HIGH_FOR_DAILY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_DAILY_BUDGET")
1271
+ BID_TOO_HIGH_FOR_MONTHLY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_MONTHLY_BUDGET")
1272
+ BID_TOO_MANY_FRACTIONAL_DIGITS = BiddingErrorReason.new("BID_TOO_MANY_FRACTIONAL_DIGITS")
1273
+ BID_TOO_SMALL = BiddingErrorReason.new("BID_TOO_SMALL")
1274
+ BID_TO_POSITION_NOT_ENABLED = BiddingErrorReason.new("BID_TO_POSITION_NOT_ENABLED")
1275
+ BID_UNIVERSAL_CRITERIA_EXPECTED = BiddingErrorReason.new("BID_UNIVERSAL_CRITERIA_EXPECTED")
1276
+ BOTTOM_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("BOTTOM_POSITION_OUT_OF_RANGE")
1277
+ CAMPAIGN_ALREADY_SET = BiddingErrorReason.new("CAMPAIGN_ALREADY_SET")
1278
+ CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER = BiddingErrorReason.new("CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER")
1279
+ CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER = BiddingErrorReason.new("CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER")
1280
+ CANNOT_EXCLUDE_DEFAULT = BiddingErrorReason.new("CANNOT_EXCLUDE_DEFAULT")
1281
+ CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL = BiddingErrorReason.new("CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL")
1282
+ CANNOT_SET_SITE_MAX_CPC = BiddingErrorReason.new("CANNOT_SET_SITE_MAX_CPC")
1283
+ CANNOT_TARGET_AND_EXCLUDE = BiddingErrorReason.new("CANNOT_TARGET_AND_EXCLUDE")
1284
+ CANNOT_TARGET_UNIVERSE = BiddingErrorReason.new("CANNOT_TARGET_UNIVERSE")
1285
+ CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING = BiddingErrorReason.new("CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING")
1286
+ CRITERION_NOT_TARGETED = BiddingErrorReason.new("CRITERION_NOT_TARGETED")
1287
+ CURRENCY_MISMATCH = BiddingErrorReason.new("CURRENCY_MISMATCH")
1288
+ GOAL_DOES_NOT_FULFILL_SPEC = BiddingErrorReason.new("GOAL_DOES_NOT_FULFILL_SPEC")
1289
+ GOAL_VALIDATION_FAILED = BiddingErrorReason.new("GOAL_VALIDATION_FAILED")
1290
+ ILLEGAL_URL = BiddingErrorReason.new("ILLEGAL_URL")
1291
+ MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER")
1292
+ MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS = BiddingErrorReason.new("MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS")
1293
+ NETWORK_NOT_OVERRIDEABLE = BiddingErrorReason.new("NETWORK_NOT_OVERRIDEABLE")
1294
+ NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION = BiddingErrorReason.new("NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION")
1295
+ NON_POSITIVE_BID = BiddingErrorReason.new("NON_POSITIVE_BID")
1296
+ NO_DESTINATION_URL_SPECIFIED = BiddingErrorReason.new("NO_DESTINATION_URL_SPECIFIED")
1297
+ NO_EFFECTIVE_BID = BiddingErrorReason.new("NO_EFFECTIVE_BID")
1298
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK")
1299
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA")
1300
+ PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER")
1301
+ POSITION_PREFERENCE_NOT_ENABLED = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_ENABLED")
1302
+ POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE")
1303
+ PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM = BiddingErrorReason.new("PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM")
1304
+ PREFERRED_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("PREFERRED_POSITION_OUT_OF_RANGE")
1305
+ PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE = BiddingErrorReason.new("PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE")
1306
+ PROXY_NOT_ENABLED = BiddingErrorReason.new("PROXY_NOT_ENABLED")
1307
+ TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER")
1308
+ TRANSITION_DOES_NOT_SUPPORT_GOAL = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_GOAL")
1309
+ TRANSITION_DOES_NOT_SUPPORT_OPTION = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_OPTION")
1310
+ UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION")
1311
+ UNSUPPORTED_STYLE = BiddingErrorReason.new("UNSUPPORTED_STYLE")
1312
+ UNSUPPORTED_STYLE_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_STYLE_TRANSITION")
1313
+ end
1314
+
1315
+ # CampaignError.Reason
1316
+ class CampaignErrorReason < ::String
1317
+ AFTER_MAXIMUM_ALLOWABLE_DATE = CampaignErrorReason.new("AFTER_MAXIMUM_ALLOWABLE_DATE")
1318
+ CANNOT_ADD_CAMPAIGN_WITH_CONVERSION_OPTIMIZER_BIDDING_STRATEGY = CampaignErrorReason.new("CANNOT_ADD_CAMPAIGN_WITH_CONVERSION_OPTIMIZER_BIDDING_STRATEGY")
1319
+ CANNOT_CHANGE_CAMPAIGN_TYPE = CampaignErrorReason.new("CANNOT_CHANGE_CAMPAIGN_TYPE")
1320
+ CANNOT_CHANGE_TV_CAMPAIGN = CampaignErrorReason.new("CANNOT_CHANGE_TV_CAMPAIGN")
1321
+ CANNOT_GO_BACK_TO_INCOMPLETE = CampaignErrorReason.new("CANNOT_GO_BACK_TO_INCOMPLETE")
1322
+ CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = CampaignErrorReason.new("CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED")
1323
+ CANNOT_SET_ACCELERATED_DELIVERY_FOR_BUDGET_OPTIMIZER_CAMPAIGN = CampaignErrorReason.new("CANNOT_SET_ACCELERATED_DELIVERY_FOR_BUDGET_OPTIMIZER_CAMPAIGN")
1324
+ CANNOT_SET_DATE_TO_PAST = CampaignErrorReason.new("CANNOT_SET_DATE_TO_PAST")
1325
+ CANNOT_SET_POSITION_PREFERENCE_IF_NOT_SEARCH_TARGETED = CampaignErrorReason.new("CANNOT_SET_POSITION_PREFERENCE_IF_NOT_SEARCH_TARGETED")
1326
+ CURRENCY_NOT_VALID_FOR_ACCOUNT = CampaignErrorReason.new("CURRENCY_NOT_VALID_FOR_ACCOUNT")
1327
+ DUPLICATE_CAMPAIGN_NAME = CampaignErrorReason.new("DUPLICATE_CAMPAIGN_NAME")
1328
+ FREQUENCY_CAP_LEVEL_CANNOT_BE_NULL = CampaignErrorReason.new("FREQUENCY_CAP_LEVEL_CANNOT_BE_NULL")
1329
+ FREQUENCY_CAP_TIME_UNIT_CANNOT_BE_NULL = CampaignErrorReason.new("FREQUENCY_CAP_TIME_UNIT_CANNOT_BE_NULL")
1330
+ INCOMPATIBLE_CAMPAIGN_FIELD = CampaignErrorReason.new("INCOMPATIBLE_CAMPAIGN_FIELD")
1331
+ INVALID_AD_SERVING_OPTIMIZATION_STATUS = CampaignErrorReason.new("INVALID_AD_SERVING_OPTIMIZATION_STATUS")
1332
+ INVALID_CAMPAIGN_NAME = CampaignErrorReason.new("INVALID_CAMPAIGN_NAME")
1333
+ INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = CampaignErrorReason.new("INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED")
1334
+ KEYWORD_QUOTA_EXCEEDED = CampaignErrorReason.new("KEYWORD_QUOTA_EXCEEDED")
1335
+ MAX_IMPRESSIONS_NOT_IN_RANGE = CampaignErrorReason.new("MAX_IMPRESSIONS_NOT_IN_RANGE")
1336
+ START_DATE_AFTER_END_DATE = CampaignErrorReason.new("START_DATE_AFTER_END_DATE")
1337
+ TIME_UNIT_NOT_SUPPORTED = CampaignErrorReason.new("TIME_UNIT_NOT_SUPPORTED")
1338
+ UNKNOWN = CampaignErrorReason.new("UNKNOWN")
1339
+ USE_BIDDING_TRANSITION_FIELD_INSTEAD_TO_SWITCH_BIDDING_STRATEGY = CampaignErrorReason.new("USE_BIDDING_TRANSITION_FIELD_INSTEAD_TO_SWITCH_BIDDING_STRATEGY")
1340
+ end
1341
+
1342
+ # ClientTermsError.Reason
1343
+ class ClientTermsErrorReason < ::String
1344
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
1345
+ end
1346
+
1347
+ # DatabaseError.Reason
1348
+ class DatabaseErrorReason < ::String
1349
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
1350
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
1351
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
1352
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
1353
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
1354
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
1355
+ end
1356
+
1357
+ # DayOfWeek
1358
+ class DayOfWeek < ::String
1359
+ FRIDAY = DayOfWeek.new("FRIDAY")
1360
+ MONDAY = DayOfWeek.new("MONDAY")
1361
+ SATURDAY = DayOfWeek.new("SATURDAY")
1362
+ SUNDAY = DayOfWeek.new("SUNDAY")
1363
+ THURSDAY = DayOfWeek.new("THURSDAY")
1364
+ TUESDAY = DayOfWeek.new("TUESDAY")
1365
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
1366
+ end
1367
+
1368
+ # DistinctError.Reason
1369
+ class DistinctErrorReason < ::String
1370
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
1371
+ end
1372
+
1373
+ # EntityNotFound.Reason
1374
+ class EntityNotFoundReason < ::String
1375
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
1376
+ end
1377
+
1378
+ # GenderTarget.Gender
1379
+ class GenderTargetGender < ::String
1380
+ FEMALE = GenderTargetGender.new("FEMALE")
1381
+ MALE = GenderTargetGender.new("MALE")
1382
+ end
1383
+
1384
+ # InternalApiError.Reason
1385
+ class InternalApiErrorReason < ::String
1386
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
1387
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
1388
+ end
1389
+
1390
+ # MinuteOfHour
1391
+ class MinuteOfHour < ::String
1392
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
1393
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
1394
+ THIRTY = MinuteOfHour.new("THIRTY")
1395
+ ZERO = MinuteOfHour.new("ZERO")
1396
+ end
1397
+
1398
+ # NetworkCoverageType
1399
+ class NetworkCoverageType < ::String
1400
+ CONTENT_CONTEXTUAL = NetworkCoverageType.new("CONTENT_CONTEXTUAL")
1401
+ CONTENT_NETWORK = NetworkCoverageType.new("CONTENT_NETWORK")
1402
+ CPA_REFERRAL = NetworkCoverageType.new("CPA_REFERRAL")
1403
+ GOOGLE_SEARCH = NetworkCoverageType.new("GOOGLE_SEARCH")
1404
+ SEARCH_NETWORK = NetworkCoverageType.new("SEARCH_NETWORK")
1405
+ end
1406
+
1407
+ # NotEmptyError.Reason
1408
+ class NotEmptyErrorReason < ::String
1409
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
1410
+ end
1411
+
1412
+ # NotWhitelistedError.Reason
1413
+ class NotWhitelistedErrorReason < ::String
1414
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
1415
+ end
1416
+
1417
+ # NullError.Reason
1418
+ class NullErrorReason < ::String
1419
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
1420
+ end
1421
+
1422
+ # OperationAccessDenied.Reason
1423
+ class OperationAccessDeniedReason < ::String
1424
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
1425
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
1426
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
1427
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
1428
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
1429
+ end
1430
+
1431
+ # Operator
1432
+ class Operator < ::String
1433
+ ADD = Operator.new("ADD")
1434
+ REMOVE = Operator.new("REMOVE")
1435
+ SET = Operator.new("SET")
1436
+ end
1437
+
1438
+ # OperatorError.Reason
1439
+ class OperatorErrorReason < ::String
1440
+ OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
1441
+ end
1442
+
1443
+ # PlatformType
1444
+ class PlatformType < ::String
1445
+ DESKTOP = PlatformType.new("DESKTOP")
1446
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
1447
+ end
1448
+
1449
+ # ProximityTarget.DistanceUnits
1450
+ class ProximityTargetDistanceUnits < ::String
1451
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
1452
+ MILES = ProximityTargetDistanceUnits.new("MILES")
1453
+ end
1454
+
1455
+ # QuotaCheckError.Reason
1456
+ class QuotaCheckErrorReason < ::String
1457
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
1458
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
1459
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
1460
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
1461
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
1462
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
1463
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
1464
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
1465
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
1466
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
1467
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
1468
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
1469
+ end
1470
+
1471
+ # QuotaError.Reason
1472
+ class QuotaErrorReason < ::String
1473
+ TOO_MANY_ADGROUPS_PER_CAMPAIGN = QuotaErrorReason.new("TOO_MANY_ADGROUPS_PER_CAMPAIGN")
1474
+ TOO_MANY_CAMPAIGNS_PER_ACCOUNT = QuotaErrorReason.new("TOO_MANY_CAMPAIGNS_PER_ACCOUNT")
1475
+ TOO_MANY_CONVERSION_TYPES_PER_ACCOUNT = QuotaErrorReason.new("TOO_MANY_CONVERSION_TYPES_PER_ACCOUNT")
1476
+ TOO_MANY_KEYWORDS_PER_ADGROUP = QuotaErrorReason.new("TOO_MANY_KEYWORDS_PER_ADGROUP")
1477
+ TOO_MANY_KEYWORDS_PER_CAMPAIGN = QuotaErrorReason.new("TOO_MANY_KEYWORDS_PER_CAMPAIGN")
1478
+ TOO_MANY_KEYWORDS_PER_CUSTOMER = QuotaErrorReason.new("TOO_MANY_KEYWORDS_PER_CUSTOMER")
1479
+ TOO_MANY_SITES_PER_ADGROUP = QuotaErrorReason.new("TOO_MANY_SITES_PER_ADGROUP")
1480
+ TOO_MANY_SITES_PER_CAMPAIGN = QuotaErrorReason.new("TOO_MANY_SITES_PER_CAMPAIGN")
1481
+ end
1482
+
1483
+ # RangeError.Reason
1484
+ class RangeErrorReason < ::String
1485
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
1486
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
1487
+ end
1488
+
1489
+ # RateExceededError.Reason
1490
+ class RateExceededErrorReason < ::String
1491
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
1492
+ end
1493
+
1494
+ # RegionCodeError.Reason
1495
+ class RegionCodeErrorReason < ::String
1496
+ INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
1497
+ end
1498
+
1499
+ # RejectedError.Reason
1500
+ class RejectedErrorReason < ::String
1501
+ UNKNOWN_VALUE = RejectedErrorReason.new("UNKNOWN_VALUE")
1502
+ end
1503
+
1504
+ # RequestError.Reason
1505
+ class RequestErrorReason < ::String
1506
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
1507
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
1508
+ end
1509
+
1510
+ # RequiredError.Reason
1511
+ class RequiredErrorReason < ::String
1512
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
1513
+ end
1514
+
1515
+ # SizeLimitError.Reason
1516
+ class SizeLimitErrorReason < ::String
1517
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
1518
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
1519
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
1520
+ end
1521
+
1522
+ # StringLengthError.Reason
1523
+ class StringLengthErrorReason < ::String
1524
+ TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
1525
+ TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
1526
+ end
1527
+
1528
+ # TargetError.Reason
1529
+ class TargetErrorReason < ::String
1530
+ AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER")
1531
+ AD_SCHEDULE_BID_MULTIPLIER_MALFORMED = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_MALFORMED")
1532
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG")
1533
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS")
1534
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL")
1535
+ AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = TargetErrorReason.new("AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT")
1536
+ AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK = TargetErrorReason.new("AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK")
1537
+ AD_SCHEDULE_INCOMPATIBILITY = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBILITY")
1538
+ AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER")
1539
+ AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = TargetErrorReason.new("AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS")
1540
+ AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK = TargetErrorReason.new("AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK")
1541
+ AD_SCHEDULE_INVALID_TIME_INTERVAL = TargetErrorReason.new("AD_SCHEDULE_INVALID_TIME_INTERVAL")
1542
+ AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES = TargetErrorReason.new("AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES")
1543
+ AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED = TargetErrorReason.new("AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED")
1544
+ AD_SCHEDULE_TIME_INTERVALS_OVERLAP = TargetErrorReason.new("AD_SCHEDULE_TIME_INTERVALS_OVERLAP")
1545
+ CANNOT_EXCLUDE_CITY = TargetErrorReason.new("CANNOT_EXCLUDE_CITY")
1546
+ CANNOT_EXCLUDE_IF_NOT_TARGETED = TargetErrorReason.new("CANNOT_EXCLUDE_IF_NOT_TARGETED")
1547
+ CANNOT_EXCLUDE_METRO = TargetErrorReason.new("CANNOT_EXCLUDE_METRO")
1548
+ CANNOT_EXCLUDE_PROVINCE = TargetErrorReason.new("CANNOT_EXCLUDE_PROVINCE")
1549
+ CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE = TargetErrorReason.new("CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE")
1550
+ CANNOT_TARGET_AGE_WITHOUT_GENDER = TargetErrorReason.new("CANNOT_TARGET_AGE_WITHOUT_GENDER")
1551
+ CANNOT_TARGET_CITY = TargetErrorReason.new("CANNOT_TARGET_CITY")
1552
+ CANNOT_TARGET_COUNTRY = TargetErrorReason.new("CANNOT_TARGET_COUNTRY")
1553
+ CANNOT_TARGET_COVERAGE = TargetErrorReason.new("CANNOT_TARGET_COVERAGE")
1554
+ CANNOT_TARGET_GENDER_WITHOUT_AGE = TargetErrorReason.new("CANNOT_TARGET_GENDER_WITHOUT_AGE")
1555
+ CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = TargetErrorReason.new("CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN")
1556
+ CANNOT_TARGET_LANGUAGE = TargetErrorReason.new("CANNOT_TARGET_LANGUAGE")
1557
+ CANNOT_TARGET_METRO = TargetErrorReason.new("CANNOT_TARGET_METRO")
1558
+ CANNOT_TARGET_MOBILE_CARRIER = TargetErrorReason.new("CANNOT_TARGET_MOBILE_CARRIER")
1559
+ CANNOT_TARGET_PROVINCE = TargetErrorReason.new("CANNOT_TARGET_PROVINCE")
1560
+ CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH = TargetErrorReason.new("CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH")
1561
+ CANNOT_TARGET_SYNDICATABLE_TYPES = TargetErrorReason.new("CANNOT_TARGET_SYNDICATABLE_TYPES")
1562
+ CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES = TargetErrorReason.new("CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES")
1563
+ DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500 = TargetErrorReason.new("DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500")
1564
+ INVALID_CITYNAME_LENGTH = TargetErrorReason.new("INVALID_CITYNAME_LENGTH")
1565
+ INVALID_CITY_CODE = TargetErrorReason.new("INVALID_CITY_CODE")
1566
+ INVALID_LANGUAGE_CODE = TargetErrorReason.new("INVALID_LANGUAGE_CODE")
1567
+ INVALID_LATITUDE = TargetErrorReason.new("INVALID_LATITUDE")
1568
+ INVALID_LONGITUDE = TargetErrorReason.new("INVALID_LONGITUDE")
1569
+ INVALID_METRO_CODE = TargetErrorReason.new("INVALID_METRO_CODE")
1570
+ INVALID_MOBILE_CARRIER = TargetErrorReason.new("INVALID_MOBILE_CARRIER")
1571
+ INVALID_MOBILE_PLATFORM = TargetErrorReason.new("INVALID_MOBILE_PLATFORM")
1572
+ INVALID_POSTALCODE_LENGTH = TargetErrorReason.new("INVALID_POSTALCODE_LENGTH")
1573
+ INVALID_PROVINCE_CODE = TargetErrorReason.new("INVALID_PROVINCE_CODE")
1574
+ INVALID_PROXIMITY_RADIUS = TargetErrorReason.new("INVALID_PROXIMITY_RADIUS")
1575
+ INVALID_REGIONCODE_LENGTH = TargetErrorReason.new("INVALID_REGIONCODE_LENGTH")
1576
+ INVALID_REGIONNAME_LENGTH = TargetErrorReason.new("INVALID_REGIONNAME_LENGTH")
1577
+ INVALID_STREETADDRESS_LENGTH = TargetErrorReason.new("INVALID_STREETADDRESS_LENGTH")
1578
+ MULTIPLE_OCCURRENCES_OF_SAME_TARGET = TargetErrorReason.new("MULTIPLE_OCCURRENCES_OF_SAME_TARGET")
1579
+ POLYGON_DUPLICATE_VERTICES = TargetErrorReason.new("POLYGON_DUPLICATE_VERTICES")
1580
+ POLYGON_EDGES_INTERSECT = TargetErrorReason.new("POLYGON_EDGES_INTERSECT")
1581
+ POLYGON_TOO_FEW_VERTICES = TargetErrorReason.new("POLYGON_TOO_FEW_VERTICES")
1582
+ POLYGON_TOO_LARGE = TargetErrorReason.new("POLYGON_TOO_LARGE")
1583
+ POLYGON_TOO_MANY_VERTICES = TargetErrorReason.new("POLYGON_TOO_MANY_VERTICES")
1584
+ TARGETING_CROSS_COUNTRY_REGIONAL = TargetErrorReason.new("TARGETING_CROSS_COUNTRY_REGIONAL")
1585
+ TARGETING_EXCLUSION_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_EXCLUSION_NOT_SUPPORTED")
1586
+ TARGETING_INCOMPATIBLE_LOCATION_TYPES = TargetErrorReason.new("TARGETING_INCOMPATIBLE_LOCATION_TYPES")
1587
+ TARGETING_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_NOT_SUPPORTED")
1588
+ TARGETING_TOO_MANY_REGIONS = TargetErrorReason.new("TARGETING_TOO_MANY_REGIONS")
1589
+ TARGETING_VALIDATION_FAILED = TargetErrorReason.new("TARGETING_VALIDATION_FAILED")
1590
+ TARGET_ERROR = TargetErrorReason.new("TARGET_ERROR")
1591
+ TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET")
1592
+ TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET")
1593
+ TOO_MANY_EXCLUDED_LOCATIONS = TargetErrorReason.new("TOO_MANY_EXCLUDED_LOCATIONS")
1594
+ TOO_MANY_TARGETED_LOCATIONS = TargetErrorReason.new("TOO_MANY_TARGETED_LOCATIONS")
1595
+ WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL")
1596
+ WARNING_NOW_REQUIRES_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_NOW_REQUIRES_CHINESE_APPROVAL")
1597
+ WARNING_NOW_TARGETS_CHINA = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINA")
1598
+ WARNING_NOW_TARGETS_CHINESE = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINESE")
1599
+ end
1600
+
1601
+ # get
1602
+ # - selector - AdwordsApi::V201003::CampaignTargetService::CampaignTargetSelector
1603
+ class Get #:nodoc: all
1604
+ attr_accessor :selector
1605
+
1606
+ def initialize(selector = nil)
1607
+ @selector = selector
1608
+ end
1609
+ end
1610
+
1611
+ # getResponse
1612
+ # - rval - AdwordsApi::V201003::CampaignTargetService::CampaignTargetPage
1613
+ class GetResponse #:nodoc: all
1614
+ attr_accessor :rval
1615
+
1616
+ def initialize(rval = nil)
1617
+ @rval = rval
1618
+ end
1619
+ end
1620
+
1621
+ # mutate
1622
+ # - operations - AdwordsApi::V201003::CampaignTargetService::CampaignTargetOperation
1623
+ class Mutate #:nodoc: all
1624
+ attr_accessor :operations
1625
+
1626
+ def initialize(operations = [])
1627
+ @operations = operations
1628
+ end
1629
+ end
1630
+
1631
+ # mutateResponse
1632
+ # - rval - AdwordsApi::V201003::CampaignTargetService::CampaignTargetReturnValue
1633
+ class MutateResponse #:nodoc: all
1634
+ attr_accessor :rval
1635
+
1636
+ def initialize(rval = nil)
1637
+ @rval = rval
1638
+ end
1639
+ end
1640
+
1641
+
1642
+ end; end; end