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/v201008/AdExtensionOverrideServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201008
7
+ module AdExtensionOverrideService
8
+
9
+ # Wrapper class for the v201008 AdExtensionOverrideService service.
10
+ # This class is automatically generated.
11
+ class AdExtensionOverrideServiceWrapper
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::V201008::AdExtensionOverrideService::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/v201008'
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::V201008::AdExtensionOverrideService::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 AdExtensionOverrideServiceWrapper.
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::V201008::AdExtensionOverrideService
51
+ @version = :v201008
52
+ @service = :AdExtensionOverrideService
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::V201008::\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/v201008/AdExtensionOverrideService.html#get] method of the AdExtensionOverrideService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201008/AdExtensionOverrideService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201008::AdExtensionOverrideService::AdExtensionOverrideSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201008::AdExtensionOverrideService::AdExtensionOverridePage
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::V201008::AdExtensionOverrideService::AdExtensionOverrideSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201008::AdExtensionOverrideService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201008::AdExtensionOverrideService::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/v201008/AdExtensionOverrideService.html#mutate] method of the AdExtensionOverrideService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201008/AdExtensionOverrideService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operations: SOAP::SOAPArray of AdwordsApi::V201008::AdExtensionOverrideService::AdExtensionOverrideOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201008::AdExtensionOverrideService::AdExtensionOverrideReturnValue
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::V201008::AdExtensionOverrideService::Mutate,
317
+ 'operations')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201008::AdExtensionOverrideService::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,2928 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201008; module AdGroupAdService
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
+ # DateRange
35
+ # - min - SOAP::SOAPString
36
+ # - max - SOAP::SOAPString
37
+ class DateRange
38
+ attr_accessor :min
39
+ attr_accessor :max
40
+
41
+ def initialize(min = nil, max = nil)
42
+ @min = min
43
+ @max = max
44
+ end
45
+ end
46
+
47
+ # Dimensions
48
+ # - width - SOAP::SOAPInt
49
+ # - height - SOAP::SOAPInt
50
+ class Dimensions
51
+ attr_accessor :width
52
+ attr_accessor :height
53
+
54
+ def initialize(width = nil, height = nil)
55
+ @width = width
56
+ @height = height
57
+ end
58
+ end
59
+
60
+ # GeoPoint
61
+ # - latitudeInMicroDegrees - SOAP::SOAPInt
62
+ # - longitudeInMicroDegrees - SOAP::SOAPInt
63
+ class GeoPoint
64
+ attr_accessor :latitudeInMicroDegrees
65
+ attr_accessor :longitudeInMicroDegrees
66
+
67
+ def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
68
+ @latitudeInMicroDegrees = latitudeInMicroDegrees
69
+ @longitudeInMicroDegrees = longitudeInMicroDegrees
70
+ end
71
+ end
72
+
73
+ # Media_Size_DimensionsMapEntry
74
+ # - key - AdwordsApi::V201008::AdGroupAdService::MediaSize
75
+ # - value - AdwordsApi::V201008::AdGroupAdService::Dimensions
76
+ class Media_Size_DimensionsMapEntry
77
+ attr_accessor :key
78
+ attr_accessor :value
79
+
80
+ def initialize(key = nil, value = nil)
81
+ @key = key
82
+ @value = value
83
+ end
84
+ end
85
+
86
+ # Media_Size_StringMapEntry
87
+ # - key - AdwordsApi::V201008::AdGroupAdService::MediaSize
88
+ # - value - SOAP::SOAPString
89
+ class Media_Size_StringMapEntry
90
+ attr_accessor :key
91
+ attr_accessor :value
92
+
93
+ def initialize(key = nil, value = nil)
94
+ @key = key
95
+ @value = value
96
+ end
97
+ end
98
+
99
+ # Paging
100
+ # - startIndex - SOAP::SOAPInt
101
+ # - numberResults - SOAP::SOAPInt
102
+ class Paging
103
+ attr_accessor :startIndex
104
+ attr_accessor :numberResults
105
+
106
+ def initialize(startIndex = nil, numberResults = nil)
107
+ @startIndex = startIndex
108
+ @numberResults = numberResults
109
+ end
110
+ end
111
+
112
+ # PolicyViolationError.Part
113
+ # - index - SOAP::SOAPInt
114
+ # - length - SOAP::SOAPInt
115
+ class PolicyViolationErrorPart
116
+ attr_accessor :index
117
+ attr_accessor :length
118
+
119
+ def initialize(index = nil, length = nil)
120
+ @index = index
121
+ @length = length
122
+ end
123
+ end
124
+
125
+ # PolicyViolationKey
126
+ # - policyName - SOAP::SOAPString
127
+ # - violatingText - SOAP::SOAPString
128
+ class PolicyViolationKey
129
+ attr_accessor :policyName
130
+ attr_accessor :violatingText
131
+
132
+ def initialize(policyName = nil, violatingText = nil)
133
+ @policyName = policyName
134
+ @violatingText = violatingText
135
+ end
136
+ end
137
+
138
+ # SoapHeader
139
+ # - authToken - SOAP::SOAPString
140
+ # - clientCustomerId - SOAP::SOAPString
141
+ # - clientEmail - SOAP::SOAPString
142
+ # - developerToken - SOAP::SOAPString
143
+ # - userAgent - SOAP::SOAPString
144
+ # - validateOnly - SOAP::SOAPBoolean
145
+ # - partialFailure - SOAP::SOAPBoolean
146
+ class SoapHeader
147
+ attr_accessor :authToken
148
+ attr_accessor :clientCustomerId
149
+ attr_accessor :clientEmail
150
+ attr_accessor :developerToken
151
+ attr_accessor :userAgent
152
+ attr_accessor :validateOnly
153
+ attr_accessor :partialFailure
154
+
155
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil, partialFailure = nil)
156
+ @authToken = authToken
157
+ @clientCustomerId = clientCustomerId
158
+ @clientEmail = clientEmail
159
+ @developerToken = developerToken
160
+ @userAgent = userAgent
161
+ @validateOnly = validateOnly
162
+ @partialFailure = partialFailure
163
+ end
164
+ end
165
+
166
+ # SoapResponseHeader
167
+ # - requestId - SOAP::SOAPString
168
+ # - operations - SOAP::SOAPLong
169
+ # - responseTime - SOAP::SOAPLong
170
+ # - units - SOAP::SOAPLong
171
+ class SoapResponseHeader
172
+ attr_accessor :requestId
173
+ attr_accessor :operations
174
+ attr_accessor :responseTime
175
+ attr_accessor :units
176
+
177
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
178
+ @requestId = requestId
179
+ @operations = operations
180
+ @responseTime = responseTime
181
+ @units = units
182
+ end
183
+ end
184
+
185
+ # StatsSelector
186
+ # - dateRange - AdwordsApi::V201008::AdGroupAdService::DateRange
187
+ # - statsSelector_Type - SOAP::SOAPString
188
+ class StatsSelector
189
+ attr_accessor :dateRange
190
+ attr_accessor :statsSelector_Type
191
+
192
+ def initialize(dateRange = nil, statsSelector_Type = nil)
193
+ @dateRange = dateRange
194
+ @statsSelector_Type = statsSelector_Type
195
+ end
196
+ end
197
+
198
+ # AdStatsSelector
199
+ # - dateRange - AdwordsApi::V201008::AdGroupAdService::DateRange
200
+ # - statsSelector_Type - SOAP::SOAPString
201
+ class AdStatsSelector < StatsSelector
202
+ attr_accessor :dateRange
203
+ attr_accessor :statsSelector_Type
204
+
205
+ def initialize(dateRange = nil, statsSelector_Type = nil)
206
+ @dateRange = dateRange
207
+ @statsSelector_Type = statsSelector_Type
208
+ end
209
+ end
210
+
211
+ # AdUnionId
212
+ # - id - SOAP::SOAPLong
213
+ # - adUnionId_Type - SOAP::SOAPString
214
+ class AdUnionId
215
+ attr_accessor :id
216
+ attr_accessor :adUnionId_Type
217
+
218
+ def initialize(id = nil, adUnionId_Type = nil)
219
+ @id = id
220
+ @adUnionId_Type = adUnionId_Type
221
+ end
222
+ end
223
+
224
+ # TempAdUnionId
225
+ # - id - SOAP::SOAPLong
226
+ # - adUnionId_Type - SOAP::SOAPString
227
+ class TempAdUnionId < AdUnionId
228
+ attr_accessor :id
229
+ attr_accessor :adUnionId_Type
230
+
231
+ def initialize(id = nil, adUnionId_Type = nil)
232
+ @id = id
233
+ @adUnionId_Type = adUnionId_Type
234
+ end
235
+ end
236
+
237
+ # ComparableValue
238
+ # abstract
239
+ # - comparableValue_Type - SOAP::SOAPString
240
+ class ComparableValue
241
+ attr_accessor :comparableValue_Type
242
+
243
+ def initialize(comparableValue_Type = nil)
244
+ @comparableValue_Type = comparableValue_Type
245
+ end
246
+ end
247
+
248
+ # Money
249
+ # - comparableValue_Type - SOAP::SOAPString
250
+ # - microAmount - SOAP::SOAPLong
251
+ class Money < ComparableValue
252
+ attr_accessor :comparableValue_Type
253
+ attr_accessor :microAmount
254
+
255
+ def initialize(comparableValue_Type = nil, microAmount = nil)
256
+ @comparableValue_Type = comparableValue_Type
257
+ @microAmount = microAmount
258
+ end
259
+ end
260
+
261
+ # NumberValue
262
+ # abstract
263
+ # - comparableValue_Type - SOAP::SOAPString
264
+ class NumberValue < ComparableValue
265
+ attr_accessor :comparableValue_Type
266
+
267
+ def initialize(comparableValue_Type = nil)
268
+ @comparableValue_Type = comparableValue_Type
269
+ end
270
+ end
271
+
272
+ # DoubleValue
273
+ # - comparableValue_Type - SOAP::SOAPString
274
+ # - number - SOAP::SOAPDouble
275
+ class DoubleValue < NumberValue
276
+ attr_accessor :comparableValue_Type
277
+ attr_accessor :number
278
+
279
+ def initialize(comparableValue_Type = nil, number = nil)
280
+ @comparableValue_Type = comparableValue_Type
281
+ @number = number
282
+ end
283
+ end
284
+
285
+ # LongValue
286
+ # - comparableValue_Type - SOAP::SOAPString
287
+ # - number - SOAP::SOAPLong
288
+ class LongValue < NumberValue
289
+ attr_accessor :comparableValue_Type
290
+ attr_accessor :number
291
+
292
+ def initialize(comparableValue_Type = nil, number = nil)
293
+ @comparableValue_Type = comparableValue_Type
294
+ @number = number
295
+ end
296
+ end
297
+
298
+ # ExemptionRequest
299
+ # - key - AdwordsApi::V201008::AdGroupAdService::PolicyViolationKey
300
+ class ExemptionRequest
301
+ attr_accessor :key
302
+
303
+ def initialize(key = nil)
304
+ @key = key
305
+ end
306
+ end
307
+
308
+ # Media
309
+ # - mediaId - SOAP::SOAPLong
310
+ # - type - AdwordsApi::V201008::AdGroupAdService::MediaMediaType
311
+ # - referenceId - SOAP::SOAPLong
312
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Media_Size_DimensionsMapEntry
313
+ # - urls - AdwordsApi::V201008::AdGroupAdService::Media_Size_StringMapEntry
314
+ # - mimeType - AdwordsApi::V201008::AdGroupAdService::MediaMimeType
315
+ # - sourceUrl - SOAP::SOAPString
316
+ # - name - SOAP::SOAPString
317
+ # - fileSize - SOAP::SOAPLong
318
+ # - creationTime - SOAP::SOAPString
319
+ # - media_Type - SOAP::SOAPString
320
+ class Media
321
+ attr_accessor :mediaId
322
+ attr_accessor :type
323
+ attr_accessor :referenceId
324
+ attr_accessor :dimensions
325
+ attr_accessor :urls
326
+ attr_accessor :mimeType
327
+ attr_accessor :sourceUrl
328
+ attr_accessor :name
329
+ attr_accessor :fileSize
330
+ attr_accessor :creationTime
331
+ attr_accessor :media_Type
332
+
333
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil)
334
+ @mediaId = mediaId
335
+ @type = type
336
+ @referenceId = referenceId
337
+ @dimensions = dimensions
338
+ @urls = urls
339
+ @mimeType = mimeType
340
+ @sourceUrl = sourceUrl
341
+ @name = name
342
+ @fileSize = fileSize
343
+ @creationTime = creationTime
344
+ @media_Type = media_Type
345
+ end
346
+ end
347
+
348
+ # Audio
349
+ # - mediaId - SOAP::SOAPLong
350
+ # - type - AdwordsApi::V201008::AdGroupAdService::MediaMediaType
351
+ # - referenceId - SOAP::SOAPLong
352
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Media_Size_DimensionsMapEntry
353
+ # - urls - AdwordsApi::V201008::AdGroupAdService::Media_Size_StringMapEntry
354
+ # - mimeType - AdwordsApi::V201008::AdGroupAdService::MediaMimeType
355
+ # - sourceUrl - SOAP::SOAPString
356
+ # - name - SOAP::SOAPString
357
+ # - fileSize - SOAP::SOAPLong
358
+ # - creationTime - SOAP::SOAPString
359
+ # - media_Type - SOAP::SOAPString
360
+ # - durationMillis - SOAP::SOAPLong
361
+ # - streamingUrl - SOAP::SOAPString
362
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
363
+ class Audio < Media
364
+ attr_accessor :mediaId
365
+ attr_accessor :type
366
+ attr_accessor :referenceId
367
+ attr_accessor :dimensions
368
+ attr_accessor :urls
369
+ attr_accessor :mimeType
370
+ attr_accessor :sourceUrl
371
+ attr_accessor :name
372
+ attr_accessor :fileSize
373
+ attr_accessor :creationTime
374
+ attr_accessor :media_Type
375
+ attr_accessor :durationMillis
376
+ attr_accessor :streamingUrl
377
+ attr_accessor :readyToPlayOnTheWeb
378
+
379
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil)
380
+ @mediaId = mediaId
381
+ @type = type
382
+ @referenceId = referenceId
383
+ @dimensions = dimensions
384
+ @urls = urls
385
+ @mimeType = mimeType
386
+ @sourceUrl = sourceUrl
387
+ @name = name
388
+ @fileSize = fileSize
389
+ @creationTime = creationTime
390
+ @media_Type = media_Type
391
+ @durationMillis = durationMillis
392
+ @streamingUrl = streamingUrl
393
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
394
+ end
395
+ end
396
+
397
+ # Image
398
+ # - mediaId - SOAP::SOAPLong
399
+ # - type - AdwordsApi::V201008::AdGroupAdService::MediaMediaType
400
+ # - referenceId - SOAP::SOAPLong
401
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Media_Size_DimensionsMapEntry
402
+ # - urls - AdwordsApi::V201008::AdGroupAdService::Media_Size_StringMapEntry
403
+ # - mimeType - AdwordsApi::V201008::AdGroupAdService::MediaMimeType
404
+ # - sourceUrl - SOAP::SOAPString
405
+ # - name - SOAP::SOAPString
406
+ # - fileSize - SOAP::SOAPLong
407
+ # - creationTime - SOAP::SOAPString
408
+ # - media_Type - SOAP::SOAPString
409
+ # - data - SOAP::SOAPBase64
410
+ class Image < Media
411
+ attr_accessor :mediaId
412
+ attr_accessor :type
413
+ attr_accessor :referenceId
414
+ attr_accessor :dimensions
415
+ attr_accessor :urls
416
+ attr_accessor :mimeType
417
+ attr_accessor :sourceUrl
418
+ attr_accessor :name
419
+ attr_accessor :fileSize
420
+ attr_accessor :creationTime
421
+ attr_accessor :media_Type
422
+ attr_accessor :data
423
+
424
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, data = nil)
425
+ @mediaId = mediaId
426
+ @type = type
427
+ @referenceId = referenceId
428
+ @dimensions = dimensions
429
+ @urls = urls
430
+ @mimeType = mimeType
431
+ @sourceUrl = sourceUrl
432
+ @name = name
433
+ @fileSize = fileSize
434
+ @creationTime = creationTime
435
+ @media_Type = media_Type
436
+ @data = data
437
+ end
438
+ end
439
+
440
+ # Video
441
+ # - mediaId - SOAP::SOAPLong
442
+ # - type - AdwordsApi::V201008::AdGroupAdService::MediaMediaType
443
+ # - referenceId - SOAP::SOAPLong
444
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Media_Size_DimensionsMapEntry
445
+ # - urls - AdwordsApi::V201008::AdGroupAdService::Media_Size_StringMapEntry
446
+ # - mimeType - AdwordsApi::V201008::AdGroupAdService::MediaMimeType
447
+ # - sourceUrl - SOAP::SOAPString
448
+ # - name - SOAP::SOAPString
449
+ # - fileSize - SOAP::SOAPLong
450
+ # - creationTime - SOAP::SOAPString
451
+ # - media_Type - SOAP::SOAPString
452
+ # - durationMillis - SOAP::SOAPLong
453
+ # - streamingUrl - SOAP::SOAPString
454
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
455
+ # - industryStandardCommercialIdentifier - SOAP::SOAPString
456
+ # - advertisingId - SOAP::SOAPString
457
+ # - youTubeVideoIdString - SOAP::SOAPString
458
+ class Video < Media
459
+ attr_accessor :mediaId
460
+ attr_accessor :type
461
+ attr_accessor :referenceId
462
+ attr_accessor :dimensions
463
+ attr_accessor :urls
464
+ attr_accessor :mimeType
465
+ attr_accessor :sourceUrl
466
+ attr_accessor :name
467
+ attr_accessor :fileSize
468
+ attr_accessor :creationTime
469
+ attr_accessor :media_Type
470
+ attr_accessor :durationMillis
471
+ attr_accessor :streamingUrl
472
+ attr_accessor :readyToPlayOnTheWeb
473
+ attr_accessor :industryStandardCommercialIdentifier
474
+ attr_accessor :advertisingId
475
+ attr_accessor :youTubeVideoIdString
476
+
477
+ def initialize(mediaId = nil, type = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, name = nil, fileSize = nil, creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil, industryStandardCommercialIdentifier = nil, advertisingId = nil, youTubeVideoIdString = nil)
478
+ @mediaId = mediaId
479
+ @type = type
480
+ @referenceId = referenceId
481
+ @dimensions = dimensions
482
+ @urls = urls
483
+ @mimeType = mimeType
484
+ @sourceUrl = sourceUrl
485
+ @name = name
486
+ @fileSize = fileSize
487
+ @creationTime = creationTime
488
+ @media_Type = media_Type
489
+ @durationMillis = durationMillis
490
+ @streamingUrl = streamingUrl
491
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
492
+ @industryStandardCommercialIdentifier = industryStandardCommercialIdentifier
493
+ @advertisingId = advertisingId
494
+ @youTubeVideoIdString = youTubeVideoIdString
495
+ end
496
+ end
497
+
498
+ # Stats
499
+ # - startDate - SOAP::SOAPString
500
+ # - endDate - SOAP::SOAPString
501
+ # - network - AdwordsApi::V201008::AdGroupAdService::StatsNetwork
502
+ # - clicks - SOAP::SOAPLong
503
+ # - impressions - SOAP::SOAPLong
504
+ # - cost - AdwordsApi::V201008::AdGroupAdService::Money
505
+ # - averagePosition - SOAP::SOAPDouble
506
+ # - averageCpc - AdwordsApi::V201008::AdGroupAdService::Money
507
+ # - averageCpm - AdwordsApi::V201008::AdGroupAdService::Money
508
+ # - ctr - SOAP::SOAPDouble
509
+ # - conversions - SOAP::SOAPLong
510
+ # - conversionRate - SOAP::SOAPDouble
511
+ # - costPerConversion - AdwordsApi::V201008::AdGroupAdService::Money
512
+ # - conversionsManyPerClick - SOAP::SOAPLong
513
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
514
+ # - costPerConversionManyPerClick - AdwordsApi::V201008::AdGroupAdService::Money
515
+ # - viewThroughConversions - SOAP::SOAPLong
516
+ # - totalConvValue - SOAP::SOAPLong
517
+ # - valuePerConv - SOAP::SOAPDouble
518
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
519
+ # - stats_Type - SOAP::SOAPString
520
+ class Stats
521
+ attr_accessor :startDate
522
+ attr_accessor :endDate
523
+ attr_accessor :network
524
+ attr_accessor :clicks
525
+ attr_accessor :impressions
526
+ attr_accessor :cost
527
+ attr_accessor :averagePosition
528
+ attr_accessor :averageCpc
529
+ attr_accessor :averageCpm
530
+ attr_accessor :ctr
531
+ attr_accessor :conversions
532
+ attr_accessor :conversionRate
533
+ attr_accessor :costPerConversion
534
+ attr_accessor :conversionsManyPerClick
535
+ attr_accessor :conversionRateManyPerClick
536
+ attr_accessor :costPerConversionManyPerClick
537
+ attr_accessor :viewThroughConversions
538
+ attr_accessor :totalConvValue
539
+ attr_accessor :valuePerConv
540
+ attr_accessor :valuePerConvManyPerClick
541
+ attr_accessor :stats_Type
542
+
543
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, viewThroughConversions = nil, totalConvValue = nil, valuePerConv = nil, valuePerConvManyPerClick = nil, stats_Type = nil)
544
+ @startDate = startDate
545
+ @endDate = endDate
546
+ @network = network
547
+ @clicks = clicks
548
+ @impressions = impressions
549
+ @cost = cost
550
+ @averagePosition = averagePosition
551
+ @averageCpc = averageCpc
552
+ @averageCpm = averageCpm
553
+ @ctr = ctr
554
+ @conversions = conversions
555
+ @conversionRate = conversionRate
556
+ @costPerConversion = costPerConversion
557
+ @conversionsManyPerClick = conversionsManyPerClick
558
+ @conversionRateManyPerClick = conversionRateManyPerClick
559
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
560
+ @viewThroughConversions = viewThroughConversions
561
+ @totalConvValue = totalConvValue
562
+ @valuePerConv = valuePerConv
563
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
564
+ @stats_Type = stats_Type
565
+ end
566
+ end
567
+
568
+ # AdExtensionOverrideStats
569
+ # - startDate - SOAP::SOAPString
570
+ # - endDate - SOAP::SOAPString
571
+ # - network - AdwordsApi::V201008::AdGroupAdService::StatsNetwork
572
+ # - clicks - SOAP::SOAPLong
573
+ # - impressions - SOAP::SOAPLong
574
+ # - cost - AdwordsApi::V201008::AdGroupAdService::Money
575
+ # - averagePosition - SOAP::SOAPDouble
576
+ # - averageCpc - AdwordsApi::V201008::AdGroupAdService::Money
577
+ # - averageCpm - AdwordsApi::V201008::AdGroupAdService::Money
578
+ # - ctr - SOAP::SOAPDouble
579
+ # - conversions - SOAP::SOAPLong
580
+ # - conversionRate - SOAP::SOAPDouble
581
+ # - costPerConversion - AdwordsApi::V201008::AdGroupAdService::Money
582
+ # - conversionsManyPerClick - SOAP::SOAPLong
583
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
584
+ # - costPerConversionManyPerClick - AdwordsApi::V201008::AdGroupAdService::Money
585
+ # - viewThroughConversions - SOAP::SOAPLong
586
+ # - totalConvValue - SOAP::SOAPLong
587
+ # - valuePerConv - SOAP::SOAPDouble
588
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
589
+ # - stats_Type - SOAP::SOAPString
590
+ class AdExtensionOverrideStats < Stats
591
+ attr_accessor :startDate
592
+ attr_accessor :endDate
593
+ attr_accessor :network
594
+ attr_accessor :clicks
595
+ attr_accessor :impressions
596
+ attr_accessor :cost
597
+ attr_accessor :averagePosition
598
+ attr_accessor :averageCpc
599
+ attr_accessor :averageCpm
600
+ attr_accessor :ctr
601
+ attr_accessor :conversions
602
+ attr_accessor :conversionRate
603
+ attr_accessor :costPerConversion
604
+ attr_accessor :conversionsManyPerClick
605
+ attr_accessor :conversionRateManyPerClick
606
+ attr_accessor :costPerConversionManyPerClick
607
+ attr_accessor :viewThroughConversions
608
+ attr_accessor :totalConvValue
609
+ attr_accessor :valuePerConv
610
+ attr_accessor :valuePerConvManyPerClick
611
+ attr_accessor :stats_Type
612
+
613
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, viewThroughConversions = nil, totalConvValue = nil, valuePerConv = nil, valuePerConvManyPerClick = nil, stats_Type = nil)
614
+ @startDate = startDate
615
+ @endDate = endDate
616
+ @network = network
617
+ @clicks = clicks
618
+ @impressions = impressions
619
+ @cost = cost
620
+ @averagePosition = averagePosition
621
+ @averageCpc = averageCpc
622
+ @averageCpm = averageCpm
623
+ @ctr = ctr
624
+ @conversions = conversions
625
+ @conversionRate = conversionRate
626
+ @costPerConversion = costPerConversion
627
+ @conversionsManyPerClick = conversionsManyPerClick
628
+ @conversionRateManyPerClick = conversionRateManyPerClick
629
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
630
+ @viewThroughConversions = viewThroughConversions
631
+ @totalConvValue = totalConvValue
632
+ @valuePerConv = valuePerConv
633
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
634
+ @stats_Type = stats_Type
635
+ end
636
+ end
637
+
638
+ # AdStats
639
+ # - startDate - SOAP::SOAPString
640
+ # - endDate - SOAP::SOAPString
641
+ # - network - AdwordsApi::V201008::AdGroupAdService::StatsNetwork
642
+ # - clicks - SOAP::SOAPLong
643
+ # - impressions - SOAP::SOAPLong
644
+ # - cost - AdwordsApi::V201008::AdGroupAdService::Money
645
+ # - averagePosition - SOAP::SOAPDouble
646
+ # - averageCpc - AdwordsApi::V201008::AdGroupAdService::Money
647
+ # - averageCpm - AdwordsApi::V201008::AdGroupAdService::Money
648
+ # - ctr - SOAP::SOAPDouble
649
+ # - conversions - SOAP::SOAPLong
650
+ # - conversionRate - SOAP::SOAPDouble
651
+ # - costPerConversion - AdwordsApi::V201008::AdGroupAdService::Money
652
+ # - conversionsManyPerClick - SOAP::SOAPLong
653
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
654
+ # - costPerConversionManyPerClick - AdwordsApi::V201008::AdGroupAdService::Money
655
+ # - viewThroughConversions - SOAP::SOAPLong
656
+ # - totalConvValue - SOAP::SOAPLong
657
+ # - valuePerConv - SOAP::SOAPDouble
658
+ # - valuePerConvManyPerClick - SOAP::SOAPDouble
659
+ # - stats_Type - SOAP::SOAPString
660
+ # - percentServed - SOAP::SOAPDouble
661
+ class AdStats < Stats
662
+ attr_accessor :startDate
663
+ attr_accessor :endDate
664
+ attr_accessor :network
665
+ attr_accessor :clicks
666
+ attr_accessor :impressions
667
+ attr_accessor :cost
668
+ attr_accessor :averagePosition
669
+ attr_accessor :averageCpc
670
+ attr_accessor :averageCpm
671
+ attr_accessor :ctr
672
+ attr_accessor :conversions
673
+ attr_accessor :conversionRate
674
+ attr_accessor :costPerConversion
675
+ attr_accessor :conversionsManyPerClick
676
+ attr_accessor :conversionRateManyPerClick
677
+ attr_accessor :costPerConversionManyPerClick
678
+ attr_accessor :viewThroughConversions
679
+ attr_accessor :totalConvValue
680
+ attr_accessor :valuePerConv
681
+ attr_accessor :valuePerConvManyPerClick
682
+ attr_accessor :stats_Type
683
+ attr_accessor :percentServed
684
+
685
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, viewThroughConversions = nil, totalConvValue = nil, valuePerConv = nil, valuePerConvManyPerClick = nil, stats_Type = nil, percentServed = nil)
686
+ @startDate = startDate
687
+ @endDate = endDate
688
+ @network = network
689
+ @clicks = clicks
690
+ @impressions = impressions
691
+ @cost = cost
692
+ @averagePosition = averagePosition
693
+ @averageCpc = averageCpc
694
+ @averageCpm = averageCpm
695
+ @ctr = ctr
696
+ @conversions = conversions
697
+ @conversionRate = conversionRate
698
+ @costPerConversion = costPerConversion
699
+ @conversionsManyPerClick = conversionsManyPerClick
700
+ @conversionRateManyPerClick = conversionRateManyPerClick
701
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
702
+ @viewThroughConversions = viewThroughConversions
703
+ @totalConvValue = totalConvValue
704
+ @valuePerConv = valuePerConv
705
+ @valuePerConvManyPerClick = valuePerConvManyPerClick
706
+ @stats_Type = stats_Type
707
+ @percentServed = percentServed
708
+ end
709
+ end
710
+
711
+ # Target
712
+ # abstract
713
+ # - target_Type - SOAP::SOAPString
714
+ class Target
715
+ attr_accessor :target_Type
716
+
717
+ def initialize(target_Type = nil)
718
+ @target_Type = target_Type
719
+ end
720
+ end
721
+
722
+ # AdScheduleTarget
723
+ # - target_Type - SOAP::SOAPString
724
+ # - dayOfWeek - AdwordsApi::V201008::AdGroupAdService::DayOfWeek
725
+ # - startHour - SOAP::SOAPInt
726
+ # - startMinute - AdwordsApi::V201008::AdGroupAdService::MinuteOfHour
727
+ # - endHour - SOAP::SOAPInt
728
+ # - endMinute - AdwordsApi::V201008::AdGroupAdService::MinuteOfHour
729
+ # - bidMultiplier - SOAP::SOAPDouble
730
+ class AdScheduleTarget < Target
731
+ attr_accessor :target_Type
732
+ attr_accessor :dayOfWeek
733
+ attr_accessor :startHour
734
+ attr_accessor :startMinute
735
+ attr_accessor :endHour
736
+ attr_accessor :endMinute
737
+ attr_accessor :bidMultiplier
738
+
739
+ def initialize(target_Type = nil, dayOfWeek = nil, startHour = nil, startMinute = nil, endHour = nil, endMinute = nil, bidMultiplier = nil)
740
+ @target_Type = target_Type
741
+ @dayOfWeek = dayOfWeek
742
+ @startHour = startHour
743
+ @startMinute = startMinute
744
+ @endHour = endHour
745
+ @endMinute = endMinute
746
+ @bidMultiplier = bidMultiplier
747
+ end
748
+ end
749
+
750
+ # LanguageTarget
751
+ # - target_Type - SOAP::SOAPString
752
+ # - languageCode - SOAP::SOAPString
753
+ class LanguageTarget < Target
754
+ attr_accessor :target_Type
755
+ attr_accessor :languageCode
756
+
757
+ def initialize(target_Type = nil, languageCode = nil)
758
+ @target_Type = target_Type
759
+ @languageCode = languageCode
760
+ end
761
+ end
762
+
763
+ # MobileTarget
764
+ # abstract
765
+ # - target_Type - SOAP::SOAPString
766
+ class MobileTarget < Target
767
+ attr_accessor :target_Type
768
+
769
+ def initialize(target_Type = nil)
770
+ @target_Type = target_Type
771
+ end
772
+ end
773
+
774
+ # MobileCarrierTarget
775
+ # - target_Type - SOAP::SOAPString
776
+ # - carrierName - SOAP::SOAPString
777
+ # - countryCode - SOAP::SOAPString
778
+ class MobileCarrierTarget < MobileTarget
779
+ attr_accessor :target_Type
780
+ attr_accessor :carrierName
781
+ attr_accessor :countryCode
782
+
783
+ def initialize(target_Type = nil, carrierName = nil, countryCode = nil)
784
+ @target_Type = target_Type
785
+ @carrierName = carrierName
786
+ @countryCode = countryCode
787
+ end
788
+ end
789
+
790
+ # MobilePlatformTarget
791
+ # - target_Type - SOAP::SOAPString
792
+ # - platformName - SOAP::SOAPString
793
+ class MobilePlatformTarget < MobileTarget
794
+ attr_accessor :target_Type
795
+ attr_accessor :platformName
796
+
797
+ def initialize(target_Type = nil, platformName = nil)
798
+ @target_Type = target_Type
799
+ @platformName = platformName
800
+ end
801
+ end
802
+
803
+ # NetworkTarget
804
+ # - target_Type - SOAP::SOAPString
805
+ # - networkCoverageType - AdwordsApi::V201008::AdGroupAdService::NetworkCoverageType
806
+ class NetworkTarget < Target
807
+ attr_accessor :target_Type
808
+ attr_accessor :networkCoverageType
809
+
810
+ def initialize(target_Type = nil, networkCoverageType = nil)
811
+ @target_Type = target_Type
812
+ @networkCoverageType = networkCoverageType
813
+ end
814
+ end
815
+
816
+ # PlatformTarget
817
+ # - target_Type - SOAP::SOAPString
818
+ # - platformType - AdwordsApi::V201008::AdGroupAdService::PlatformType
819
+ class PlatformTarget < Target
820
+ attr_accessor :target_Type
821
+ attr_accessor :platformType
822
+
823
+ def initialize(target_Type = nil, platformType = nil)
824
+ @target_Type = target_Type
825
+ @platformType = platformType
826
+ end
827
+ end
828
+
829
+ # DemographicTarget
830
+ # abstract
831
+ # - target_Type - SOAP::SOAPString
832
+ # - bidModifier - SOAP::SOAPInt
833
+ class DemographicTarget < Target
834
+ attr_accessor :target_Type
835
+ attr_accessor :bidModifier
836
+
837
+ def initialize(target_Type = nil, bidModifier = nil)
838
+ @target_Type = target_Type
839
+ @bidModifier = bidModifier
840
+ end
841
+ end
842
+
843
+ # AgeTarget
844
+ # - target_Type - SOAP::SOAPString
845
+ # - bidModifier - SOAP::SOAPInt
846
+ # - age - AdwordsApi::V201008::AdGroupAdService::AgeTargetAge
847
+ class AgeTarget < DemographicTarget
848
+ attr_accessor :target_Type
849
+ attr_accessor :bidModifier
850
+ attr_accessor :age
851
+
852
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
853
+ @target_Type = target_Type
854
+ @bidModifier = bidModifier
855
+ @age = age
856
+ end
857
+ end
858
+
859
+ # GenderTarget
860
+ # - target_Type - SOAP::SOAPString
861
+ # - bidModifier - SOAP::SOAPInt
862
+ # - gender - AdwordsApi::V201008::AdGroupAdService::GenderTargetGender
863
+ class GenderTarget < DemographicTarget
864
+ attr_accessor :target_Type
865
+ attr_accessor :bidModifier
866
+ attr_accessor :gender
867
+
868
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
869
+ @target_Type = target_Type
870
+ @bidModifier = bidModifier
871
+ @gender = gender
872
+ end
873
+ end
874
+
875
+ # GeoTarget
876
+ # abstract
877
+ # - target_Type - SOAP::SOAPString
878
+ # - excluded - SOAP::SOAPBoolean
879
+ class GeoTarget < Target
880
+ attr_accessor :target_Type
881
+ attr_accessor :excluded
882
+
883
+ def initialize(target_Type = nil, excluded = nil)
884
+ @target_Type = target_Type
885
+ @excluded = excluded
886
+ end
887
+ end
888
+
889
+ # CityTarget
890
+ # - target_Type - SOAP::SOAPString
891
+ # - excluded - SOAP::SOAPBoolean
892
+ # - cityName - SOAP::SOAPString
893
+ # - provinceCode - SOAP::SOAPString
894
+ # - countryCode - SOAP::SOAPString
895
+ class CityTarget < GeoTarget
896
+ attr_accessor :target_Type
897
+ attr_accessor :excluded
898
+ attr_accessor :cityName
899
+ attr_accessor :provinceCode
900
+ attr_accessor :countryCode
901
+
902
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
903
+ @target_Type = target_Type
904
+ @excluded = excluded
905
+ @cityName = cityName
906
+ @provinceCode = provinceCode
907
+ @countryCode = countryCode
908
+ end
909
+ end
910
+
911
+ # CountryTarget
912
+ # - target_Type - SOAP::SOAPString
913
+ # - excluded - SOAP::SOAPBoolean
914
+ # - countryCode - SOAP::SOAPString
915
+ class CountryTarget < GeoTarget
916
+ attr_accessor :target_Type
917
+ attr_accessor :excluded
918
+ attr_accessor :countryCode
919
+
920
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
921
+ @target_Type = target_Type
922
+ @excluded = excluded
923
+ @countryCode = countryCode
924
+ end
925
+ end
926
+
927
+ # MetroTarget
928
+ # - target_Type - SOAP::SOAPString
929
+ # - excluded - SOAP::SOAPBoolean
930
+ # - metroCode - SOAP::SOAPString
931
+ class MetroTarget < GeoTarget
932
+ attr_accessor :target_Type
933
+ attr_accessor :excluded
934
+ attr_accessor :metroCode
935
+
936
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
937
+ @target_Type = target_Type
938
+ @excluded = excluded
939
+ @metroCode = metroCode
940
+ end
941
+ end
942
+
943
+ # PolygonTarget
944
+ # - target_Type - SOAP::SOAPString
945
+ # - excluded - SOAP::SOAPBoolean
946
+ # - vertices - AdwordsApi::V201008::AdGroupAdService::GeoPoint
947
+ class PolygonTarget < GeoTarget
948
+ attr_accessor :target_Type
949
+ attr_accessor :excluded
950
+ attr_accessor :vertices
951
+
952
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
953
+ @target_Type = target_Type
954
+ @excluded = excluded
955
+ @vertices = vertices
956
+ end
957
+ end
958
+
959
+ # ProvinceTarget
960
+ # - target_Type - SOAP::SOAPString
961
+ # - excluded - SOAP::SOAPBoolean
962
+ # - provinceCode - SOAP::SOAPString
963
+ class ProvinceTarget < GeoTarget
964
+ attr_accessor :target_Type
965
+ attr_accessor :excluded
966
+ attr_accessor :provinceCode
967
+
968
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
969
+ @target_Type = target_Type
970
+ @excluded = excluded
971
+ @provinceCode = provinceCode
972
+ end
973
+ end
974
+
975
+ # ProximityTarget
976
+ # - target_Type - SOAP::SOAPString
977
+ # - excluded - SOAP::SOAPBoolean
978
+ # - geoPoint - AdwordsApi::V201008::AdGroupAdService::GeoPoint
979
+ # - radiusDistanceUnits - AdwordsApi::V201008::AdGroupAdService::ProximityTargetDistanceUnits
980
+ # - radiusInUnits - SOAP::SOAPDouble
981
+ # - address - AdwordsApi::V201008::AdGroupAdService::Address
982
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
983
+ class ProximityTarget < GeoTarget
984
+ attr_accessor :target_Type
985
+ attr_accessor :excluded
986
+ attr_accessor :geoPoint
987
+ attr_accessor :radiusDistanceUnits
988
+ attr_accessor :radiusInUnits
989
+ attr_accessor :address
990
+ attr_accessor :allowServiceOfAddress
991
+
992
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
993
+ @target_Type = target_Type
994
+ @excluded = excluded
995
+ @geoPoint = geoPoint
996
+ @radiusDistanceUnits = radiusDistanceUnits
997
+ @radiusInUnits = radiusInUnits
998
+ @address = address
999
+ @allowServiceOfAddress = allowServiceOfAddress
1000
+ end
1001
+ end
1002
+
1003
+ # TemplateElementField
1004
+ # - name - SOAP::SOAPString
1005
+ # - type - AdwordsApi::V201008::AdGroupAdService::TemplateElementFieldType
1006
+ # - fieldText - SOAP::SOAPString
1007
+ # - fieldMedia - AdwordsApi::V201008::AdGroupAdService::Media
1008
+ class TemplateElementField
1009
+ attr_accessor :name
1010
+ attr_accessor :type
1011
+ attr_accessor :fieldText
1012
+ attr_accessor :fieldMedia
1013
+
1014
+ def initialize(name = nil, type = nil, fieldText = nil, fieldMedia = nil)
1015
+ @name = name
1016
+ @type = type
1017
+ @fieldText = fieldText
1018
+ @fieldMedia = fieldMedia
1019
+ end
1020
+ end
1021
+
1022
+ # ApiError
1023
+ # abstract
1024
+ # - fieldPath - SOAP::SOAPString
1025
+ # - trigger - SOAP::SOAPString
1026
+ # - errorString - SOAP::SOAPString
1027
+ # - apiError_Type - SOAP::SOAPString
1028
+ class ApiError
1029
+ attr_accessor :fieldPath
1030
+ attr_accessor :trigger
1031
+ attr_accessor :errorString
1032
+ attr_accessor :apiError_Type
1033
+
1034
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
1035
+ @fieldPath = fieldPath
1036
+ @trigger = trigger
1037
+ @errorString = errorString
1038
+ @apiError_Type = apiError_Type
1039
+ end
1040
+ end
1041
+
1042
+ # AdError
1043
+ # - fieldPath - SOAP::SOAPString
1044
+ # - trigger - SOAP::SOAPString
1045
+ # - errorString - SOAP::SOAPString
1046
+ # - apiError_Type - SOAP::SOAPString
1047
+ # - reason - AdwordsApi::V201008::AdGroupAdService::AdErrorReason
1048
+ class AdError < ApiError
1049
+ attr_accessor :fieldPath
1050
+ attr_accessor :trigger
1051
+ attr_accessor :errorString
1052
+ attr_accessor :apiError_Type
1053
+ attr_accessor :reason
1054
+
1055
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1056
+ @fieldPath = fieldPath
1057
+ @trigger = trigger
1058
+ @errorString = errorString
1059
+ @apiError_Type = apiError_Type
1060
+ @reason = reason
1061
+ end
1062
+ end
1063
+
1064
+ # AdGroupAdError
1065
+ # - fieldPath - SOAP::SOAPString
1066
+ # - trigger - SOAP::SOAPString
1067
+ # - errorString - SOAP::SOAPString
1068
+ # - apiError_Type - SOAP::SOAPString
1069
+ # - reason - AdwordsApi::V201008::AdGroupAdService::AdGroupAdErrorReason
1070
+ class AdGroupAdError < ApiError
1071
+ attr_accessor :fieldPath
1072
+ attr_accessor :trigger
1073
+ attr_accessor :errorString
1074
+ attr_accessor :apiError_Type
1075
+ attr_accessor :reason
1076
+
1077
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1078
+ @fieldPath = fieldPath
1079
+ @trigger = trigger
1080
+ @errorString = errorString
1081
+ @apiError_Type = apiError_Type
1082
+ @reason = reason
1083
+ end
1084
+ end
1085
+
1086
+ # AuthenticationError
1087
+ # - fieldPath - SOAP::SOAPString
1088
+ # - trigger - SOAP::SOAPString
1089
+ # - errorString - SOAP::SOAPString
1090
+ # - apiError_Type - SOAP::SOAPString
1091
+ # - reason - AdwordsApi::V201008::AdGroupAdService::AuthenticationErrorReason
1092
+ class AuthenticationError < ApiError
1093
+ attr_accessor :fieldPath
1094
+ attr_accessor :trigger
1095
+ attr_accessor :errorString
1096
+ attr_accessor :apiError_Type
1097
+ attr_accessor :reason
1098
+
1099
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1100
+ @fieldPath = fieldPath
1101
+ @trigger = trigger
1102
+ @errorString = errorString
1103
+ @apiError_Type = apiError_Type
1104
+ @reason = reason
1105
+ end
1106
+ end
1107
+
1108
+ # AuthorizationError
1109
+ # - fieldPath - SOAP::SOAPString
1110
+ # - trigger - SOAP::SOAPString
1111
+ # - errorString - SOAP::SOAPString
1112
+ # - apiError_Type - SOAP::SOAPString
1113
+ # - reason - AdwordsApi::V201008::AdGroupAdService::AuthorizationErrorReason
1114
+ class AuthorizationError < ApiError
1115
+ attr_accessor :fieldPath
1116
+ attr_accessor :trigger
1117
+ attr_accessor :errorString
1118
+ attr_accessor :apiError_Type
1119
+ attr_accessor :reason
1120
+
1121
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1122
+ @fieldPath = fieldPath
1123
+ @trigger = trigger
1124
+ @errorString = errorString
1125
+ @apiError_Type = apiError_Type
1126
+ @reason = reason
1127
+ end
1128
+ end
1129
+
1130
+ # ClientTermsError
1131
+ # - fieldPath - SOAP::SOAPString
1132
+ # - trigger - SOAP::SOAPString
1133
+ # - errorString - SOAP::SOAPString
1134
+ # - apiError_Type - SOAP::SOAPString
1135
+ # - reason - AdwordsApi::V201008::AdGroupAdService::ClientTermsErrorReason
1136
+ class ClientTermsError < ApiError
1137
+ attr_accessor :fieldPath
1138
+ attr_accessor :trigger
1139
+ attr_accessor :errorString
1140
+ attr_accessor :apiError_Type
1141
+ attr_accessor :reason
1142
+
1143
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1144
+ @fieldPath = fieldPath
1145
+ @trigger = trigger
1146
+ @errorString = errorString
1147
+ @apiError_Type = apiError_Type
1148
+ @reason = reason
1149
+ end
1150
+ end
1151
+
1152
+ # DateError
1153
+ # - fieldPath - SOAP::SOAPString
1154
+ # - trigger - SOAP::SOAPString
1155
+ # - errorString - SOAP::SOAPString
1156
+ # - apiError_Type - SOAP::SOAPString
1157
+ # - reason - AdwordsApi::V201008::AdGroupAdService::DateErrorReason
1158
+ class DateError < ApiError
1159
+ attr_accessor :fieldPath
1160
+ attr_accessor :trigger
1161
+ attr_accessor :errorString
1162
+ attr_accessor :apiError_Type
1163
+ attr_accessor :reason
1164
+
1165
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1166
+ @fieldPath = fieldPath
1167
+ @trigger = trigger
1168
+ @errorString = errorString
1169
+ @apiError_Type = apiError_Type
1170
+ @reason = reason
1171
+ end
1172
+ end
1173
+
1174
+ # DistinctError
1175
+ # - fieldPath - SOAP::SOAPString
1176
+ # - trigger - SOAP::SOAPString
1177
+ # - errorString - SOAP::SOAPString
1178
+ # - apiError_Type - SOAP::SOAPString
1179
+ # - reason - AdwordsApi::V201008::AdGroupAdService::DistinctErrorReason
1180
+ class DistinctError < ApiError
1181
+ attr_accessor :fieldPath
1182
+ attr_accessor :trigger
1183
+ attr_accessor :errorString
1184
+ attr_accessor :apiError_Type
1185
+ attr_accessor :reason
1186
+
1187
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1188
+ @fieldPath = fieldPath
1189
+ @trigger = trigger
1190
+ @errorString = errorString
1191
+ @apiError_Type = apiError_Type
1192
+ @reason = reason
1193
+ end
1194
+ end
1195
+
1196
+ # EntityCountLimitExceeded
1197
+ # - fieldPath - SOAP::SOAPString
1198
+ # - trigger - SOAP::SOAPString
1199
+ # - errorString - SOAP::SOAPString
1200
+ # - apiError_Type - SOAP::SOAPString
1201
+ # - reason - AdwordsApi::V201008::AdGroupAdService::EntityCountLimitExceededReason
1202
+ # - enclosingId - SOAP::SOAPString
1203
+ # - limit - SOAP::SOAPInt
1204
+ class EntityCountLimitExceeded < ApiError
1205
+ attr_accessor :fieldPath
1206
+ attr_accessor :trigger
1207
+ attr_accessor :errorString
1208
+ attr_accessor :apiError_Type
1209
+ attr_accessor :reason
1210
+ attr_accessor :enclosingId
1211
+ attr_accessor :limit
1212
+
1213
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
1214
+ @fieldPath = fieldPath
1215
+ @trigger = trigger
1216
+ @errorString = errorString
1217
+ @apiError_Type = apiError_Type
1218
+ @reason = reason
1219
+ @enclosingId = enclosingId
1220
+ @limit = limit
1221
+ end
1222
+ end
1223
+
1224
+ # AdGroupAdCountLimitExceeded
1225
+ # - fieldPath - SOAP::SOAPString
1226
+ # - trigger - SOAP::SOAPString
1227
+ # - errorString - SOAP::SOAPString
1228
+ # - apiError_Type - SOAP::SOAPString
1229
+ # - reason - AdwordsApi::V201008::AdGroupAdService::EntityCountLimitExceededReason
1230
+ # - enclosingId - SOAP::SOAPString
1231
+ # - limit - SOAP::SOAPInt
1232
+ class AdGroupAdCountLimitExceeded < EntityCountLimitExceeded
1233
+ attr_accessor :fieldPath
1234
+ attr_accessor :trigger
1235
+ attr_accessor :errorString
1236
+ attr_accessor :apiError_Type
1237
+ attr_accessor :reason
1238
+ attr_accessor :enclosingId
1239
+ attr_accessor :limit
1240
+
1241
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
1242
+ @fieldPath = fieldPath
1243
+ @trigger = trigger
1244
+ @errorString = errorString
1245
+ @apiError_Type = apiError_Type
1246
+ @reason = reason
1247
+ @enclosingId = enclosingId
1248
+ @limit = limit
1249
+ end
1250
+ end
1251
+
1252
+ # EntityNotFound
1253
+ # - fieldPath - SOAP::SOAPString
1254
+ # - trigger - SOAP::SOAPString
1255
+ # - errorString - SOAP::SOAPString
1256
+ # - apiError_Type - SOAP::SOAPString
1257
+ # - reason - AdwordsApi::V201008::AdGroupAdService::EntityNotFoundReason
1258
+ class EntityNotFound < ApiError
1259
+ attr_accessor :fieldPath
1260
+ attr_accessor :trigger
1261
+ attr_accessor :errorString
1262
+ attr_accessor :apiError_Type
1263
+ attr_accessor :reason
1264
+
1265
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1266
+ @fieldPath = fieldPath
1267
+ @trigger = trigger
1268
+ @errorString = errorString
1269
+ @apiError_Type = apiError_Type
1270
+ @reason = reason
1271
+ end
1272
+ end
1273
+
1274
+ # IdError
1275
+ # - fieldPath - SOAP::SOAPString
1276
+ # - trigger - SOAP::SOAPString
1277
+ # - errorString - SOAP::SOAPString
1278
+ # - apiError_Type - SOAP::SOAPString
1279
+ # - reason - AdwordsApi::V201008::AdGroupAdService::IdErrorReason
1280
+ class IdError < ApiError
1281
+ attr_accessor :fieldPath
1282
+ attr_accessor :trigger
1283
+ attr_accessor :errorString
1284
+ attr_accessor :apiError_Type
1285
+ attr_accessor :reason
1286
+
1287
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1288
+ @fieldPath = fieldPath
1289
+ @trigger = trigger
1290
+ @errorString = errorString
1291
+ @apiError_Type = apiError_Type
1292
+ @reason = reason
1293
+ end
1294
+ end
1295
+
1296
+ # ImageError
1297
+ # - fieldPath - SOAP::SOAPString
1298
+ # - trigger - SOAP::SOAPString
1299
+ # - errorString - SOAP::SOAPString
1300
+ # - apiError_Type - SOAP::SOAPString
1301
+ # - reason - AdwordsApi::V201008::AdGroupAdService::ImageErrorReason
1302
+ class ImageError < ApiError
1303
+ attr_accessor :fieldPath
1304
+ attr_accessor :trigger
1305
+ attr_accessor :errorString
1306
+ attr_accessor :apiError_Type
1307
+ attr_accessor :reason
1308
+
1309
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1310
+ @fieldPath = fieldPath
1311
+ @trigger = trigger
1312
+ @errorString = errorString
1313
+ @apiError_Type = apiError_Type
1314
+ @reason = reason
1315
+ end
1316
+ end
1317
+
1318
+ # InternalApiError
1319
+ # - fieldPath - SOAP::SOAPString
1320
+ # - trigger - SOAP::SOAPString
1321
+ # - errorString - SOAP::SOAPString
1322
+ # - apiError_Type - SOAP::SOAPString
1323
+ # - reason - AdwordsApi::V201008::AdGroupAdService::InternalApiErrorReason
1324
+ class InternalApiError < ApiError
1325
+ attr_accessor :fieldPath
1326
+ attr_accessor :trigger
1327
+ attr_accessor :errorString
1328
+ attr_accessor :apiError_Type
1329
+ attr_accessor :reason
1330
+
1331
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1332
+ @fieldPath = fieldPath
1333
+ @trigger = trigger
1334
+ @errorString = errorString
1335
+ @apiError_Type = apiError_Type
1336
+ @reason = reason
1337
+ end
1338
+ end
1339
+
1340
+ # MediaError
1341
+ # - fieldPath - SOAP::SOAPString
1342
+ # - trigger - SOAP::SOAPString
1343
+ # - errorString - SOAP::SOAPString
1344
+ # - apiError_Type - SOAP::SOAPString
1345
+ # - reason - AdwordsApi::V201008::AdGroupAdService::MediaErrorReason
1346
+ class MediaError < ApiError
1347
+ attr_accessor :fieldPath
1348
+ attr_accessor :trigger
1349
+ attr_accessor :errorString
1350
+ attr_accessor :apiError_Type
1351
+ attr_accessor :reason
1352
+
1353
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1354
+ @fieldPath = fieldPath
1355
+ @trigger = trigger
1356
+ @errorString = errorString
1357
+ @apiError_Type = apiError_Type
1358
+ @reason = reason
1359
+ end
1360
+ end
1361
+
1362
+ # NewEntityCreationError
1363
+ # - fieldPath - SOAP::SOAPString
1364
+ # - trigger - SOAP::SOAPString
1365
+ # - errorString - SOAP::SOAPString
1366
+ # - apiError_Type - SOAP::SOAPString
1367
+ # - reason - AdwordsApi::V201008::AdGroupAdService::NewEntityCreationErrorReason
1368
+ class NewEntityCreationError < ApiError
1369
+ attr_accessor :fieldPath
1370
+ attr_accessor :trigger
1371
+ attr_accessor :errorString
1372
+ attr_accessor :apiError_Type
1373
+ attr_accessor :reason
1374
+
1375
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1376
+ @fieldPath = fieldPath
1377
+ @trigger = trigger
1378
+ @errorString = errorString
1379
+ @apiError_Type = apiError_Type
1380
+ @reason = reason
1381
+ end
1382
+ end
1383
+
1384
+ # NotEmptyError
1385
+ # - fieldPath - SOAP::SOAPString
1386
+ # - trigger - SOAP::SOAPString
1387
+ # - errorString - SOAP::SOAPString
1388
+ # - apiError_Type - SOAP::SOAPString
1389
+ # - reason - AdwordsApi::V201008::AdGroupAdService::NotEmptyErrorReason
1390
+ class NotEmptyError < ApiError
1391
+ attr_accessor :fieldPath
1392
+ attr_accessor :trigger
1393
+ attr_accessor :errorString
1394
+ attr_accessor :apiError_Type
1395
+ attr_accessor :reason
1396
+
1397
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1398
+ @fieldPath = fieldPath
1399
+ @trigger = trigger
1400
+ @errorString = errorString
1401
+ @apiError_Type = apiError_Type
1402
+ @reason = reason
1403
+ end
1404
+ end
1405
+
1406
+ # NotWhitelistedError
1407
+ # - fieldPath - SOAP::SOAPString
1408
+ # - trigger - SOAP::SOAPString
1409
+ # - errorString - SOAP::SOAPString
1410
+ # - apiError_Type - SOAP::SOAPString
1411
+ # - reason - AdwordsApi::V201008::AdGroupAdService::NotWhitelistedErrorReason
1412
+ class NotWhitelistedError < ApiError
1413
+ attr_accessor :fieldPath
1414
+ attr_accessor :trigger
1415
+ attr_accessor :errorString
1416
+ attr_accessor :apiError_Type
1417
+ attr_accessor :reason
1418
+
1419
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1420
+ @fieldPath = fieldPath
1421
+ @trigger = trigger
1422
+ @errorString = errorString
1423
+ @apiError_Type = apiError_Type
1424
+ @reason = reason
1425
+ end
1426
+ end
1427
+
1428
+ # NullError
1429
+ # - fieldPath - SOAP::SOAPString
1430
+ # - trigger - SOAP::SOAPString
1431
+ # - errorString - SOAP::SOAPString
1432
+ # - apiError_Type - SOAP::SOAPString
1433
+ # - reason - AdwordsApi::V201008::AdGroupAdService::NullErrorReason
1434
+ class NullError < ApiError
1435
+ attr_accessor :fieldPath
1436
+ attr_accessor :trigger
1437
+ attr_accessor :errorString
1438
+ attr_accessor :apiError_Type
1439
+ attr_accessor :reason
1440
+
1441
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1442
+ @fieldPath = fieldPath
1443
+ @trigger = trigger
1444
+ @errorString = errorString
1445
+ @apiError_Type = apiError_Type
1446
+ @reason = reason
1447
+ end
1448
+ end
1449
+
1450
+ # OperationAccessDenied
1451
+ # - fieldPath - SOAP::SOAPString
1452
+ # - trigger - SOAP::SOAPString
1453
+ # - errorString - SOAP::SOAPString
1454
+ # - apiError_Type - SOAP::SOAPString
1455
+ # - reason - AdwordsApi::V201008::AdGroupAdService::OperationAccessDeniedReason
1456
+ class OperationAccessDenied < ApiError
1457
+ attr_accessor :fieldPath
1458
+ attr_accessor :trigger
1459
+ attr_accessor :errorString
1460
+ attr_accessor :apiError_Type
1461
+ attr_accessor :reason
1462
+
1463
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1464
+ @fieldPath = fieldPath
1465
+ @trigger = trigger
1466
+ @errorString = errorString
1467
+ @apiError_Type = apiError_Type
1468
+ @reason = reason
1469
+ end
1470
+ end
1471
+
1472
+ # PagingError
1473
+ # - fieldPath - SOAP::SOAPString
1474
+ # - trigger - SOAP::SOAPString
1475
+ # - errorString - SOAP::SOAPString
1476
+ # - apiError_Type - SOAP::SOAPString
1477
+ # - reason - AdwordsApi::V201008::AdGroupAdService::PagingErrorReason
1478
+ class PagingError < ApiError
1479
+ attr_accessor :fieldPath
1480
+ attr_accessor :trigger
1481
+ attr_accessor :errorString
1482
+ attr_accessor :apiError_Type
1483
+ attr_accessor :reason
1484
+
1485
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1486
+ @fieldPath = fieldPath
1487
+ @trigger = trigger
1488
+ @errorString = errorString
1489
+ @apiError_Type = apiError_Type
1490
+ @reason = reason
1491
+ end
1492
+ end
1493
+
1494
+ # QuotaCheckError
1495
+ # - fieldPath - SOAP::SOAPString
1496
+ # - trigger - SOAP::SOAPString
1497
+ # - errorString - SOAP::SOAPString
1498
+ # - apiError_Type - SOAP::SOAPString
1499
+ # - reason - AdwordsApi::V201008::AdGroupAdService::QuotaCheckErrorReason
1500
+ class QuotaCheckError < ApiError
1501
+ attr_accessor :fieldPath
1502
+ attr_accessor :trigger
1503
+ attr_accessor :errorString
1504
+ attr_accessor :apiError_Type
1505
+ attr_accessor :reason
1506
+
1507
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1508
+ @fieldPath = fieldPath
1509
+ @trigger = trigger
1510
+ @errorString = errorString
1511
+ @apiError_Type = apiError_Type
1512
+ @reason = reason
1513
+ end
1514
+ end
1515
+
1516
+ # RangeError
1517
+ # - fieldPath - SOAP::SOAPString
1518
+ # - trigger - SOAP::SOAPString
1519
+ # - errorString - SOAP::SOAPString
1520
+ # - apiError_Type - SOAP::SOAPString
1521
+ # - reason - AdwordsApi::V201008::AdGroupAdService::RangeErrorReason
1522
+ class C_RangeError < ApiError
1523
+ attr_accessor :fieldPath
1524
+ attr_accessor :trigger
1525
+ attr_accessor :errorString
1526
+ attr_accessor :apiError_Type
1527
+ attr_accessor :reason
1528
+
1529
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1530
+ @fieldPath = fieldPath
1531
+ @trigger = trigger
1532
+ @errorString = errorString
1533
+ @apiError_Type = apiError_Type
1534
+ @reason = reason
1535
+ end
1536
+ end
1537
+
1538
+ # RateExceededError
1539
+ # - fieldPath - SOAP::SOAPString
1540
+ # - trigger - SOAP::SOAPString
1541
+ # - errorString - SOAP::SOAPString
1542
+ # - apiError_Type - SOAP::SOAPString
1543
+ # - reason - AdwordsApi::V201008::AdGroupAdService::RateExceededErrorReason
1544
+ # - rateName - SOAP::SOAPString
1545
+ # - rateScope - SOAP::SOAPString
1546
+ # - retryAfterSeconds - SOAP::SOAPInt
1547
+ class RateExceededError < ApiError
1548
+ attr_accessor :fieldPath
1549
+ attr_accessor :trigger
1550
+ attr_accessor :errorString
1551
+ attr_accessor :apiError_Type
1552
+ attr_accessor :reason
1553
+ attr_accessor :rateName
1554
+ attr_accessor :rateScope
1555
+ attr_accessor :retryAfterSeconds
1556
+
1557
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
1558
+ @fieldPath = fieldPath
1559
+ @trigger = trigger
1560
+ @errorString = errorString
1561
+ @apiError_Type = apiError_Type
1562
+ @reason = reason
1563
+ @rateName = rateName
1564
+ @rateScope = rateScope
1565
+ @retryAfterSeconds = retryAfterSeconds
1566
+ end
1567
+ end
1568
+
1569
+ # ReadOnlyError
1570
+ # - fieldPath - SOAP::SOAPString
1571
+ # - trigger - SOAP::SOAPString
1572
+ # - errorString - SOAP::SOAPString
1573
+ # - apiError_Type - SOAP::SOAPString
1574
+ # - reason - AdwordsApi::V201008::AdGroupAdService::ReadOnlyErrorReason
1575
+ class ReadOnlyError < ApiError
1576
+ attr_accessor :fieldPath
1577
+ attr_accessor :trigger
1578
+ attr_accessor :errorString
1579
+ attr_accessor :apiError_Type
1580
+ attr_accessor :reason
1581
+
1582
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1583
+ @fieldPath = fieldPath
1584
+ @trigger = trigger
1585
+ @errorString = errorString
1586
+ @apiError_Type = apiError_Type
1587
+ @reason = reason
1588
+ end
1589
+ end
1590
+
1591
+ # RequestError
1592
+ # - fieldPath - SOAP::SOAPString
1593
+ # - trigger - SOAP::SOAPString
1594
+ # - errorString - SOAP::SOAPString
1595
+ # - apiError_Type - SOAP::SOAPString
1596
+ # - reason - AdwordsApi::V201008::AdGroupAdService::RequestErrorReason
1597
+ class RequestError < ApiError
1598
+ attr_accessor :fieldPath
1599
+ attr_accessor :trigger
1600
+ attr_accessor :errorString
1601
+ attr_accessor :apiError_Type
1602
+ attr_accessor :reason
1603
+
1604
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1605
+ @fieldPath = fieldPath
1606
+ @trigger = trigger
1607
+ @errorString = errorString
1608
+ @apiError_Type = apiError_Type
1609
+ @reason = reason
1610
+ end
1611
+ end
1612
+
1613
+ # RequiredError
1614
+ # - fieldPath - SOAP::SOAPString
1615
+ # - trigger - SOAP::SOAPString
1616
+ # - errorString - SOAP::SOAPString
1617
+ # - apiError_Type - SOAP::SOAPString
1618
+ # - reason - AdwordsApi::V201008::AdGroupAdService::RequiredErrorReason
1619
+ class RequiredError < ApiError
1620
+ attr_accessor :fieldPath
1621
+ attr_accessor :trigger
1622
+ attr_accessor :errorString
1623
+ attr_accessor :apiError_Type
1624
+ attr_accessor :reason
1625
+
1626
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1627
+ @fieldPath = fieldPath
1628
+ @trigger = trigger
1629
+ @errorString = errorString
1630
+ @apiError_Type = apiError_Type
1631
+ @reason = reason
1632
+ end
1633
+ end
1634
+
1635
+ # SizeLimitError
1636
+ # - fieldPath - SOAP::SOAPString
1637
+ # - trigger - SOAP::SOAPString
1638
+ # - errorString - SOAP::SOAPString
1639
+ # - apiError_Type - SOAP::SOAPString
1640
+ # - reason - AdwordsApi::V201008::AdGroupAdService::SizeLimitErrorReason
1641
+ class SizeLimitError < ApiError
1642
+ attr_accessor :fieldPath
1643
+ attr_accessor :trigger
1644
+ attr_accessor :errorString
1645
+ attr_accessor :apiError_Type
1646
+ attr_accessor :reason
1647
+
1648
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1649
+ @fieldPath = fieldPath
1650
+ @trigger = trigger
1651
+ @errorString = errorString
1652
+ @apiError_Type = apiError_Type
1653
+ @reason = reason
1654
+ end
1655
+ end
1656
+
1657
+ # StatsQueryError
1658
+ # - fieldPath - SOAP::SOAPString
1659
+ # - trigger - SOAP::SOAPString
1660
+ # - errorString - SOAP::SOAPString
1661
+ # - apiError_Type - SOAP::SOAPString
1662
+ # - reason - AdwordsApi::V201008::AdGroupAdService::StatsQueryErrorReason
1663
+ class StatsQueryError < ApiError
1664
+ attr_accessor :fieldPath
1665
+ attr_accessor :trigger
1666
+ attr_accessor :errorString
1667
+ attr_accessor :apiError_Type
1668
+ attr_accessor :reason
1669
+
1670
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1671
+ @fieldPath = fieldPath
1672
+ @trigger = trigger
1673
+ @errorString = errorString
1674
+ @apiError_Type = apiError_Type
1675
+ @reason = reason
1676
+ end
1677
+ end
1678
+
1679
+ # DatabaseError
1680
+ # - fieldPath - SOAP::SOAPString
1681
+ # - trigger - SOAP::SOAPString
1682
+ # - errorString - SOAP::SOAPString
1683
+ # - apiError_Type - SOAP::SOAPString
1684
+ # - reason - AdwordsApi::V201008::AdGroupAdService::DatabaseErrorReason
1685
+ class DatabaseError < ApiError
1686
+ attr_accessor :fieldPath
1687
+ attr_accessor :trigger
1688
+ attr_accessor :errorString
1689
+ attr_accessor :apiError_Type
1690
+ attr_accessor :reason
1691
+
1692
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1693
+ @fieldPath = fieldPath
1694
+ @trigger = trigger
1695
+ @errorString = errorString
1696
+ @apiError_Type = apiError_Type
1697
+ @reason = reason
1698
+ end
1699
+ end
1700
+
1701
+ # PolicyViolationError
1702
+ # - fieldPath - SOAP::SOAPString
1703
+ # - trigger - SOAP::SOAPString
1704
+ # - errorString - SOAP::SOAPString
1705
+ # - apiError_Type - SOAP::SOAPString
1706
+ # - key - AdwordsApi::V201008::AdGroupAdService::PolicyViolationKey
1707
+ # - externalPolicyName - SOAP::SOAPString
1708
+ # - externalPolicyUrl - SOAP::SOAPString
1709
+ # - externalPolicyDescription - SOAP::SOAPString
1710
+ # - isExemptable - SOAP::SOAPBoolean
1711
+ # - violatingParts - AdwordsApi::V201008::AdGroupAdService::PolicyViolationErrorPart
1712
+ class PolicyViolationError < ApiError
1713
+ attr_accessor :fieldPath
1714
+ attr_accessor :trigger
1715
+ attr_accessor :errorString
1716
+ attr_accessor :apiError_Type
1717
+ attr_accessor :key
1718
+ attr_accessor :externalPolicyName
1719
+ attr_accessor :externalPolicyUrl
1720
+ attr_accessor :externalPolicyDescription
1721
+ attr_accessor :isExemptable
1722
+ attr_accessor :violatingParts
1723
+
1724
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1725
+ @fieldPath = fieldPath
1726
+ @trigger = trigger
1727
+ @errorString = errorString
1728
+ @apiError_Type = apiError_Type
1729
+ @key = key
1730
+ @externalPolicyName = externalPolicyName
1731
+ @externalPolicyUrl = externalPolicyUrl
1732
+ @externalPolicyDescription = externalPolicyDescription
1733
+ @isExemptable = isExemptable
1734
+ @violatingParts = violatingParts
1735
+ end
1736
+ end
1737
+
1738
+ # ApplicationException
1739
+ # - message - SOAP::SOAPString
1740
+ # - applicationException_Type - SOAP::SOAPString
1741
+ class ApplicationException
1742
+ attr_accessor :message
1743
+ attr_accessor :applicationException_Type
1744
+
1745
+ def initialize(message = nil, applicationException_Type = nil)
1746
+ @message = message
1747
+ @applicationException_Type = applicationException_Type
1748
+ end
1749
+ end
1750
+
1751
+ # ApiException
1752
+ # - message - SOAP::SOAPString
1753
+ # - applicationException_Type - SOAP::SOAPString
1754
+ # - errors - AdwordsApi::V201008::AdGroupAdService::ApiError
1755
+ class ApiException < ApplicationException
1756
+ attr_accessor :message
1757
+ attr_accessor :applicationException_Type
1758
+ attr_accessor :errors
1759
+
1760
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1761
+ @message = message
1762
+ @applicationException_Type = applicationException_Type
1763
+ @errors = errors
1764
+ end
1765
+ end
1766
+
1767
+ # TemplateElement
1768
+ # - uniqueName - SOAP::SOAPString
1769
+ # - fields - AdwordsApi::V201008::AdGroupAdService::TemplateElementField
1770
+ class TemplateElement
1771
+ attr_accessor :uniqueName
1772
+ attr_accessor :fields
1773
+
1774
+ def initialize(uniqueName = nil, fields = [])
1775
+ @uniqueName = uniqueName
1776
+ @fields = fields
1777
+ end
1778
+ end
1779
+
1780
+ # AdGroupAdSelector
1781
+ # - campaignIds - SOAP::SOAPLong
1782
+ # - adGroupIds - SOAP::SOAPLong
1783
+ # - adIds - SOAP::SOAPLong
1784
+ # - statuses - AdwordsApi::V201008::AdGroupAdService::AdGroupAdStatus
1785
+ # - statsSelector - AdwordsApi::V201008::AdGroupAdService::AdStatsSelector
1786
+ # - paging - AdwordsApi::V201008::AdGroupAdService::Paging
1787
+ class AdGroupAdSelector
1788
+ attr_accessor :campaignIds
1789
+ attr_accessor :adGroupIds
1790
+ attr_accessor :adIds
1791
+ attr_accessor :statuses
1792
+ attr_accessor :statsSelector
1793
+ attr_accessor :paging
1794
+
1795
+ def initialize(campaignIds = [], adGroupIds = [], adIds = [], statuses = [], statsSelector = nil, paging = nil)
1796
+ @campaignIds = campaignIds
1797
+ @adGroupIds = adGroupIds
1798
+ @adIds = adIds
1799
+ @statuses = statuses
1800
+ @statsSelector = statsSelector
1801
+ @paging = paging
1802
+ end
1803
+ end
1804
+
1805
+ # Ad
1806
+ # - id - SOAP::SOAPLong
1807
+ # - url - SOAP::SOAPString
1808
+ # - displayUrl - SOAP::SOAPString
1809
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1810
+ # - disapprovalReasons - SOAP::SOAPString
1811
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1812
+ # - ad_Type - SOAP::SOAPString
1813
+ class Ad
1814
+ attr_accessor :id
1815
+ attr_accessor :url
1816
+ attr_accessor :displayUrl
1817
+ attr_accessor :approvalStatus
1818
+ attr_accessor :disapprovalReasons
1819
+ attr_accessor :trademarkDisapproved
1820
+ attr_accessor :ad_Type
1821
+
1822
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil)
1823
+ @id = id
1824
+ @url = url
1825
+ @displayUrl = displayUrl
1826
+ @approvalStatus = approvalStatus
1827
+ @disapprovalReasons = disapprovalReasons
1828
+ @trademarkDisapproved = trademarkDisapproved
1829
+ @ad_Type = ad_Type
1830
+ end
1831
+ end
1832
+
1833
+ # DeprecatedAd
1834
+ # - id - SOAP::SOAPLong
1835
+ # - url - SOAP::SOAPString
1836
+ # - displayUrl - SOAP::SOAPString
1837
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1838
+ # - disapprovalReasons - SOAP::SOAPString
1839
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1840
+ # - ad_Type - SOAP::SOAPString
1841
+ # - name - SOAP::SOAPString
1842
+ # - type - AdwordsApi::V201008::AdGroupAdService::DeprecatedAdType
1843
+ class DeprecatedAd < Ad
1844
+ attr_accessor :id
1845
+ attr_accessor :url
1846
+ attr_accessor :displayUrl
1847
+ attr_accessor :approvalStatus
1848
+ attr_accessor :disapprovalReasons
1849
+ attr_accessor :trademarkDisapproved
1850
+ attr_accessor :ad_Type
1851
+ attr_accessor :name
1852
+ attr_accessor :type
1853
+
1854
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, type = nil)
1855
+ @id = id
1856
+ @url = url
1857
+ @displayUrl = displayUrl
1858
+ @approvalStatus = approvalStatus
1859
+ @disapprovalReasons = disapprovalReasons
1860
+ @trademarkDisapproved = trademarkDisapproved
1861
+ @ad_Type = ad_Type
1862
+ @name = name
1863
+ @type = type
1864
+ end
1865
+ end
1866
+
1867
+ # MobileAd
1868
+ # - id - SOAP::SOAPLong
1869
+ # - url - SOAP::SOAPString
1870
+ # - displayUrl - SOAP::SOAPString
1871
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1872
+ # - disapprovalReasons - SOAP::SOAPString
1873
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1874
+ # - ad_Type - SOAP::SOAPString
1875
+ # - headline - SOAP::SOAPString
1876
+ # - description - SOAP::SOAPString
1877
+ # - markupLanguages - AdwordsApi::V201008::AdGroupAdService::MarkupLanguageType
1878
+ # - mobileCarriers - SOAP::SOAPString
1879
+ # - businessName - SOAP::SOAPString
1880
+ # - countryCode - SOAP::SOAPString
1881
+ # - phoneNumber - SOAP::SOAPString
1882
+ class MobileAd < Ad
1883
+ attr_accessor :id
1884
+ attr_accessor :url
1885
+ attr_accessor :displayUrl
1886
+ attr_accessor :approvalStatus
1887
+ attr_accessor :disapprovalReasons
1888
+ attr_accessor :trademarkDisapproved
1889
+ attr_accessor :ad_Type
1890
+ attr_accessor :headline
1891
+ attr_accessor :description
1892
+ attr_accessor :markupLanguages
1893
+ attr_accessor :mobileCarriers
1894
+ attr_accessor :businessName
1895
+ attr_accessor :countryCode
1896
+ attr_accessor :phoneNumber
1897
+
1898
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, headline = nil, description = nil, markupLanguages = [], mobileCarriers = [], businessName = nil, countryCode = nil, phoneNumber = nil)
1899
+ @id = id
1900
+ @url = url
1901
+ @displayUrl = displayUrl
1902
+ @approvalStatus = approvalStatus
1903
+ @disapprovalReasons = disapprovalReasons
1904
+ @trademarkDisapproved = trademarkDisapproved
1905
+ @ad_Type = ad_Type
1906
+ @headline = headline
1907
+ @description = description
1908
+ @markupLanguages = markupLanguages
1909
+ @mobileCarriers = mobileCarriers
1910
+ @businessName = businessName
1911
+ @countryCode = countryCode
1912
+ @phoneNumber = phoneNumber
1913
+ end
1914
+ end
1915
+
1916
+ # ProductAd
1917
+ # - id - SOAP::SOAPLong
1918
+ # - url - SOAP::SOAPString
1919
+ # - displayUrl - SOAP::SOAPString
1920
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1921
+ # - disapprovalReasons - SOAP::SOAPString
1922
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1923
+ # - ad_Type - SOAP::SOAPString
1924
+ # - promotionLine - SOAP::SOAPString
1925
+ class ProductAd < Ad
1926
+ attr_accessor :id
1927
+ attr_accessor :url
1928
+ attr_accessor :displayUrl
1929
+ attr_accessor :approvalStatus
1930
+ attr_accessor :disapprovalReasons
1931
+ attr_accessor :trademarkDisapproved
1932
+ attr_accessor :ad_Type
1933
+ attr_accessor :promotionLine
1934
+
1935
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, promotionLine = nil)
1936
+ @id = id
1937
+ @url = url
1938
+ @displayUrl = displayUrl
1939
+ @approvalStatus = approvalStatus
1940
+ @disapprovalReasons = disapprovalReasons
1941
+ @trademarkDisapproved = trademarkDisapproved
1942
+ @ad_Type = ad_Type
1943
+ @promotionLine = promotionLine
1944
+ end
1945
+ end
1946
+
1947
+ # TextAd
1948
+ # - id - SOAP::SOAPLong
1949
+ # - url - SOAP::SOAPString
1950
+ # - displayUrl - SOAP::SOAPString
1951
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1952
+ # - disapprovalReasons - SOAP::SOAPString
1953
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1954
+ # - ad_Type - SOAP::SOAPString
1955
+ # - headline - SOAP::SOAPString
1956
+ # - description1 - SOAP::SOAPString
1957
+ # - description2 - SOAP::SOAPString
1958
+ class TextAd < Ad
1959
+ attr_accessor :id
1960
+ attr_accessor :url
1961
+ attr_accessor :displayUrl
1962
+ attr_accessor :approvalStatus
1963
+ attr_accessor :disapprovalReasons
1964
+ attr_accessor :trademarkDisapproved
1965
+ attr_accessor :ad_Type
1966
+ attr_accessor :headline
1967
+ attr_accessor :description1
1968
+ attr_accessor :description2
1969
+
1970
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, headline = nil, description1 = nil, description2 = nil)
1971
+ @id = id
1972
+ @url = url
1973
+ @displayUrl = displayUrl
1974
+ @approvalStatus = approvalStatus
1975
+ @disapprovalReasons = disapprovalReasons
1976
+ @trademarkDisapproved = trademarkDisapproved
1977
+ @ad_Type = ad_Type
1978
+ @headline = headline
1979
+ @description1 = description1
1980
+ @description2 = description2
1981
+ end
1982
+ end
1983
+
1984
+ # MobileImageAd
1985
+ # - id - SOAP::SOAPLong
1986
+ # - url - SOAP::SOAPString
1987
+ # - displayUrl - SOAP::SOAPString
1988
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
1989
+ # - disapprovalReasons - SOAP::SOAPString
1990
+ # - trademarkDisapproved - SOAP::SOAPBoolean
1991
+ # - ad_Type - SOAP::SOAPString
1992
+ # - markupLanguages - AdwordsApi::V201008::AdGroupAdService::MarkupLanguageType
1993
+ # - mobileCarriers - SOAP::SOAPString
1994
+ # - image - AdwordsApi::V201008::AdGroupAdService::Image
1995
+ class MobileImageAd < Ad
1996
+ attr_accessor :id
1997
+ attr_accessor :url
1998
+ attr_accessor :displayUrl
1999
+ attr_accessor :approvalStatus
2000
+ attr_accessor :disapprovalReasons
2001
+ attr_accessor :trademarkDisapproved
2002
+ attr_accessor :ad_Type
2003
+ attr_accessor :markupLanguages
2004
+ attr_accessor :mobileCarriers
2005
+ attr_accessor :image
2006
+
2007
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, markupLanguages = [], mobileCarriers = [], image = nil)
2008
+ @id = id
2009
+ @url = url
2010
+ @displayUrl = displayUrl
2011
+ @approvalStatus = approvalStatus
2012
+ @disapprovalReasons = disapprovalReasons
2013
+ @trademarkDisapproved = trademarkDisapproved
2014
+ @ad_Type = ad_Type
2015
+ @markupLanguages = markupLanguages
2016
+ @mobileCarriers = mobileCarriers
2017
+ @image = image
2018
+ end
2019
+ end
2020
+
2021
+ # RichMediaAd
2022
+ # abstract
2023
+ # - id - SOAP::SOAPLong
2024
+ # - url - SOAP::SOAPString
2025
+ # - displayUrl - SOAP::SOAPString
2026
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
2027
+ # - disapprovalReasons - SOAP::SOAPString
2028
+ # - trademarkDisapproved - SOAP::SOAPBoolean
2029
+ # - ad_Type - SOAP::SOAPString
2030
+ # - name - SOAP::SOAPString
2031
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Dimensions
2032
+ # - snippet - SOAP::SOAPString
2033
+ # - impressionBeaconUrl - SOAP::SOAPString
2034
+ # - certifiedVendorFormatId - SOAP::SOAPLong
2035
+ class RichMediaAd < Ad
2036
+ attr_accessor :id
2037
+ attr_accessor :url
2038
+ attr_accessor :displayUrl
2039
+ attr_accessor :approvalStatus
2040
+ attr_accessor :disapprovalReasons
2041
+ attr_accessor :trademarkDisapproved
2042
+ attr_accessor :ad_Type
2043
+ attr_accessor :name
2044
+ attr_accessor :dimensions
2045
+ attr_accessor :snippet
2046
+ attr_accessor :impressionBeaconUrl
2047
+ attr_accessor :certifiedVendorFormatId
2048
+
2049
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, dimensions = nil, snippet = nil, impressionBeaconUrl = nil, certifiedVendorFormatId = nil)
2050
+ @id = id
2051
+ @url = url
2052
+ @displayUrl = displayUrl
2053
+ @approvalStatus = approvalStatus
2054
+ @disapprovalReasons = disapprovalReasons
2055
+ @trademarkDisapproved = trademarkDisapproved
2056
+ @ad_Type = ad_Type
2057
+ @name = name
2058
+ @dimensions = dimensions
2059
+ @snippet = snippet
2060
+ @impressionBeaconUrl = impressionBeaconUrl
2061
+ @certifiedVendorFormatId = certifiedVendorFormatId
2062
+ end
2063
+ end
2064
+
2065
+ # ThirdPartyRedirectAd
2066
+ # - id - SOAP::SOAPLong
2067
+ # - url - SOAP::SOAPString
2068
+ # - displayUrl - SOAP::SOAPString
2069
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
2070
+ # - disapprovalReasons - SOAP::SOAPString
2071
+ # - trademarkDisapproved - SOAP::SOAPBoolean
2072
+ # - ad_Type - SOAP::SOAPString
2073
+ # - name - SOAP::SOAPString
2074
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Dimensions
2075
+ # - snippet - SOAP::SOAPString
2076
+ # - impressionBeaconUrl - SOAP::SOAPString
2077
+ # - certifiedVendorFormatId - SOAP::SOAPLong
2078
+ # - isCookieTargeted - SOAP::SOAPBoolean
2079
+ # - isUserInterestTargeted - SOAP::SOAPBoolean
2080
+ # - isTagged - SOAP::SOAPBoolean
2081
+ # - videoTypes - AdwordsApi::V201008::AdGroupAdService::VideoType
2082
+ class ThirdPartyRedirectAd < RichMediaAd
2083
+ attr_accessor :id
2084
+ attr_accessor :url
2085
+ attr_accessor :displayUrl
2086
+ attr_accessor :approvalStatus
2087
+ attr_accessor :disapprovalReasons
2088
+ attr_accessor :trademarkDisapproved
2089
+ attr_accessor :ad_Type
2090
+ attr_accessor :name
2091
+ attr_accessor :dimensions
2092
+ attr_accessor :snippet
2093
+ attr_accessor :impressionBeaconUrl
2094
+ attr_accessor :certifiedVendorFormatId
2095
+ attr_accessor :isCookieTargeted
2096
+ attr_accessor :isUserInterestTargeted
2097
+ attr_accessor :isTagged
2098
+ attr_accessor :videoTypes
2099
+
2100
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, name = nil, dimensions = nil, snippet = nil, impressionBeaconUrl = nil, certifiedVendorFormatId = nil, isCookieTargeted = nil, isUserInterestTargeted = nil, isTagged = nil, videoTypes = [])
2101
+ @id = id
2102
+ @url = url
2103
+ @displayUrl = displayUrl
2104
+ @approvalStatus = approvalStatus
2105
+ @disapprovalReasons = disapprovalReasons
2106
+ @trademarkDisapproved = trademarkDisapproved
2107
+ @ad_Type = ad_Type
2108
+ @name = name
2109
+ @dimensions = dimensions
2110
+ @snippet = snippet
2111
+ @impressionBeaconUrl = impressionBeaconUrl
2112
+ @certifiedVendorFormatId = certifiedVendorFormatId
2113
+ @isCookieTargeted = isCookieTargeted
2114
+ @isUserInterestTargeted = isUserInterestTargeted
2115
+ @isTagged = isTagged
2116
+ @videoTypes = videoTypes
2117
+ end
2118
+ end
2119
+
2120
+ # ImageAd
2121
+ # - id - SOAP::SOAPLong
2122
+ # - url - SOAP::SOAPString
2123
+ # - displayUrl - SOAP::SOAPString
2124
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
2125
+ # - disapprovalReasons - SOAP::SOAPString
2126
+ # - trademarkDisapproved - SOAP::SOAPBoolean
2127
+ # - ad_Type - SOAP::SOAPString
2128
+ # - image - AdwordsApi::V201008::AdGroupAdService::Image
2129
+ # - name - SOAP::SOAPString
2130
+ # - adToCopyImageFrom - SOAP::SOAPLong
2131
+ class ImageAd < Ad
2132
+ attr_accessor :id
2133
+ attr_accessor :url
2134
+ attr_accessor :displayUrl
2135
+ attr_accessor :approvalStatus
2136
+ attr_accessor :disapprovalReasons
2137
+ attr_accessor :trademarkDisapproved
2138
+ attr_accessor :ad_Type
2139
+ attr_accessor :image
2140
+ attr_accessor :name
2141
+ attr_accessor :adToCopyImageFrom
2142
+
2143
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, image = nil, name = nil, adToCopyImageFrom = nil)
2144
+ @id = id
2145
+ @url = url
2146
+ @displayUrl = displayUrl
2147
+ @approvalStatus = approvalStatus
2148
+ @disapprovalReasons = disapprovalReasons
2149
+ @trademarkDisapproved = trademarkDisapproved
2150
+ @ad_Type = ad_Type
2151
+ @image = image
2152
+ @name = name
2153
+ @adToCopyImageFrom = adToCopyImageFrom
2154
+ end
2155
+ end
2156
+
2157
+ # LocalBusinessAd
2158
+ # - id - SOAP::SOAPLong
2159
+ # - url - SOAP::SOAPString
2160
+ # - displayUrl - SOAP::SOAPString
2161
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
2162
+ # - disapprovalReasons - SOAP::SOAPString
2163
+ # - trademarkDisapproved - SOAP::SOAPBoolean
2164
+ # - ad_Type - SOAP::SOAPString
2165
+ # - fullBusinessName - SOAP::SOAPString
2166
+ # - phoneNumber - SOAP::SOAPString
2167
+ # - streetAddress - SOAP::SOAPString
2168
+ # - city - SOAP::SOAPString
2169
+ # - region - SOAP::SOAPString
2170
+ # - regionCode - SOAP::SOAPString
2171
+ # - postalCode - SOAP::SOAPString
2172
+ # - countryCode - SOAP::SOAPString
2173
+ # - businessName - SOAP::SOAPString
2174
+ # - description1 - SOAP::SOAPString
2175
+ # - description2 - SOAP::SOAPString
2176
+ # - target - AdwordsApi::V201008::AdGroupAdService::ProximityTarget
2177
+ # - businessImage - AdwordsApi::V201008::AdGroupAdService::Image
2178
+ # - icon - AdwordsApi::V201008::AdGroupAdService::Image
2179
+ class LocalBusinessAd < Ad
2180
+ attr_accessor :id
2181
+ attr_accessor :url
2182
+ attr_accessor :displayUrl
2183
+ attr_accessor :approvalStatus
2184
+ attr_accessor :disapprovalReasons
2185
+ attr_accessor :trademarkDisapproved
2186
+ attr_accessor :ad_Type
2187
+ attr_accessor :fullBusinessName
2188
+ attr_accessor :phoneNumber
2189
+ attr_accessor :streetAddress
2190
+ attr_accessor :city
2191
+ attr_accessor :region
2192
+ attr_accessor :regionCode
2193
+ attr_accessor :postalCode
2194
+ attr_accessor :countryCode
2195
+ attr_accessor :businessName
2196
+ attr_accessor :description1
2197
+ attr_accessor :description2
2198
+ attr_accessor :target
2199
+ attr_accessor :businessImage
2200
+ attr_accessor :icon
2201
+
2202
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, fullBusinessName = nil, phoneNumber = nil, streetAddress = nil, city = nil, region = nil, regionCode = nil, postalCode = nil, countryCode = nil, businessName = nil, description1 = nil, description2 = nil, target = nil, businessImage = nil, icon = nil)
2203
+ @id = id
2204
+ @url = url
2205
+ @displayUrl = displayUrl
2206
+ @approvalStatus = approvalStatus
2207
+ @disapprovalReasons = disapprovalReasons
2208
+ @trademarkDisapproved = trademarkDisapproved
2209
+ @ad_Type = ad_Type
2210
+ @fullBusinessName = fullBusinessName
2211
+ @phoneNumber = phoneNumber
2212
+ @streetAddress = streetAddress
2213
+ @city = city
2214
+ @region = region
2215
+ @regionCode = regionCode
2216
+ @postalCode = postalCode
2217
+ @countryCode = countryCode
2218
+ @businessName = businessName
2219
+ @description1 = description1
2220
+ @description2 = description2
2221
+ @target = target
2222
+ @businessImage = businessImage
2223
+ @icon = icon
2224
+ end
2225
+ end
2226
+
2227
+ # TemplateAd
2228
+ # - id - SOAP::SOAPLong
2229
+ # - url - SOAP::SOAPString
2230
+ # - displayUrl - SOAP::SOAPString
2231
+ # - approvalStatus - AdwordsApi::V201008::AdGroupAdService::AdApprovalStatus
2232
+ # - disapprovalReasons - SOAP::SOAPString
2233
+ # - trademarkDisapproved - SOAP::SOAPBoolean
2234
+ # - ad_Type - SOAP::SOAPString
2235
+ # - templateId - SOAP::SOAPLong
2236
+ # - adUnionId - AdwordsApi::V201008::AdGroupAdService::AdUnionId
2237
+ # - templateElements - AdwordsApi::V201008::AdGroupAdService::TemplateElement
2238
+ # - dimensions - AdwordsApi::V201008::AdGroupAdService::Dimensions
2239
+ # - name - SOAP::SOAPString
2240
+ # - duration - SOAP::SOAPInt
2241
+ class TemplateAd < Ad
2242
+ attr_accessor :id
2243
+ attr_accessor :url
2244
+ attr_accessor :displayUrl
2245
+ attr_accessor :approvalStatus
2246
+ attr_accessor :disapprovalReasons
2247
+ attr_accessor :trademarkDisapproved
2248
+ attr_accessor :ad_Type
2249
+ attr_accessor :templateId
2250
+ attr_accessor :adUnionId
2251
+ attr_accessor :templateElements
2252
+ attr_accessor :dimensions
2253
+ attr_accessor :name
2254
+ attr_accessor :duration
2255
+
2256
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], trademarkDisapproved = nil, ad_Type = nil, templateId = nil, adUnionId = nil, templateElements = [], dimensions = nil, name = nil, duration = nil)
2257
+ @id = id
2258
+ @url = url
2259
+ @displayUrl = displayUrl
2260
+ @approvalStatus = approvalStatus
2261
+ @disapprovalReasons = disapprovalReasons
2262
+ @trademarkDisapproved = trademarkDisapproved
2263
+ @ad_Type = ad_Type
2264
+ @templateId = templateId
2265
+ @adUnionId = adUnionId
2266
+ @templateElements = templateElements
2267
+ @dimensions = dimensions
2268
+ @name = name
2269
+ @duration = duration
2270
+ end
2271
+ end
2272
+
2273
+ # AdGroupAd
2274
+ # - adGroupId - SOAP::SOAPLong
2275
+ # - ad - AdwordsApi::V201008::AdGroupAdService::Ad
2276
+ # - status - AdwordsApi::V201008::AdGroupAdService::AdGroupAdStatus
2277
+ # - stats - AdwordsApi::V201008::AdGroupAdService::AdStats
2278
+ class AdGroupAd
2279
+ attr_accessor :adGroupId
2280
+ attr_accessor :ad
2281
+ attr_accessor :status
2282
+ attr_accessor :stats
2283
+
2284
+ def initialize(adGroupId = nil, ad = nil, status = nil, stats = nil)
2285
+ @adGroupId = adGroupId
2286
+ @ad = ad
2287
+ @status = status
2288
+ @stats = stats
2289
+ end
2290
+ end
2291
+
2292
+ # ListReturnValue
2293
+ # abstract
2294
+ # - listReturnValue_Type - SOAP::SOAPString
2295
+ class ListReturnValue
2296
+ attr_accessor :listReturnValue_Type
2297
+
2298
+ def initialize(listReturnValue_Type = nil)
2299
+ @listReturnValue_Type = listReturnValue_Type
2300
+ end
2301
+ end
2302
+
2303
+ # AdGroupAdReturnValue
2304
+ # - listReturnValue_Type - SOAP::SOAPString
2305
+ # - value - AdwordsApi::V201008::AdGroupAdService::AdGroupAd
2306
+ class AdGroupAdReturnValue < ListReturnValue
2307
+ attr_accessor :listReturnValue_Type
2308
+ attr_accessor :value
2309
+
2310
+ def initialize(listReturnValue_Type = nil, value = [])
2311
+ @listReturnValue_Type = listReturnValue_Type
2312
+ @value = value
2313
+ end
2314
+ end
2315
+
2316
+ # Operation
2317
+ # abstract
2318
+ # - operator - AdwordsApi::V201008::AdGroupAdService::Operator
2319
+ # - operation_Type - SOAP::SOAPString
2320
+ class Operation
2321
+ attr_accessor :operator
2322
+ attr_accessor :operation_Type
2323
+
2324
+ def initialize(operator = nil, operation_Type = nil)
2325
+ @operator = operator
2326
+ @operation_Type = operation_Type
2327
+ end
2328
+ end
2329
+
2330
+ # AdGroupAdOperation
2331
+ # - operator - AdwordsApi::V201008::AdGroupAdService::Operator
2332
+ # - operation_Type - SOAP::SOAPString
2333
+ # - operand - AdwordsApi::V201008::AdGroupAdService::AdGroupAd
2334
+ # - exemptionRequests - AdwordsApi::V201008::AdGroupAdService::ExemptionRequest
2335
+ class AdGroupAdOperation < Operation
2336
+ attr_accessor :operator
2337
+ attr_accessor :operation_Type
2338
+ attr_accessor :operand
2339
+ attr_accessor :exemptionRequests
2340
+
2341
+ def initialize(operator = nil, operation_Type = nil, operand = nil, exemptionRequests = [])
2342
+ @operator = operator
2343
+ @operation_Type = operation_Type
2344
+ @operand = operand
2345
+ @exemptionRequests = exemptionRequests
2346
+ end
2347
+ end
2348
+
2349
+ # Page
2350
+ # abstract
2351
+ # - totalNumEntries - SOAP::SOAPInt
2352
+ # - page_Type - SOAP::SOAPString
2353
+ class Page
2354
+ attr_accessor :totalNumEntries
2355
+ attr_accessor :page_Type
2356
+
2357
+ def initialize(totalNumEntries = nil, page_Type = nil)
2358
+ @totalNumEntries = totalNumEntries
2359
+ @page_Type = page_Type
2360
+ end
2361
+ end
2362
+
2363
+ # AdGroupAdPage
2364
+ # - totalNumEntries - SOAP::SOAPInt
2365
+ # - page_Type - SOAP::SOAPString
2366
+ # - entries - AdwordsApi::V201008::AdGroupAdService::AdGroupAd
2367
+ class AdGroupAdPage < Page
2368
+ attr_accessor :totalNumEntries
2369
+ attr_accessor :page_Type
2370
+ attr_accessor :entries
2371
+
2372
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
2373
+ @totalNumEntries = totalNumEntries
2374
+ @page_Type = page_Type
2375
+ @entries = entries
2376
+ end
2377
+ end
2378
+
2379
+ # Ad.ApprovalStatus
2380
+ class AdApprovalStatus < ::String
2381
+ APPROVED = AdApprovalStatus.new("APPROVED")
2382
+ DISAPPROVED = AdApprovalStatus.new("DISAPPROVED")
2383
+ FAMILY_SAFE = AdApprovalStatus.new("FAMILY_SAFE")
2384
+ NON_FAMILY_SAFE = AdApprovalStatus.new("NON_FAMILY_SAFE")
2385
+ PORN = AdApprovalStatus.new("PORN")
2386
+ UNCHECKED = AdApprovalStatus.new("UNCHECKED")
2387
+ end
2388
+
2389
+ # AdError.Reason
2390
+ class AdErrorReason < ::String
2391
+ ADDRESS_INVALID = AdErrorReason.new("ADDRESS_INVALID")
2392
+ ADDRESS_NOT_COMPLETE = AdErrorReason.new("ADDRESS_NOT_COMPLETE")
2393
+ APPROXIMATELY_TOO_LONG = AdErrorReason.new("APPROXIMATELY_TOO_LONG")
2394
+ APPROXIMATELY_TOO_SHORT = AdErrorReason.new("APPROXIMATELY_TOO_SHORT")
2395
+ AUDIO_ERROR = AdErrorReason.new("AUDIO_ERROR")
2396
+ BAD_SNIPPET = AdErrorReason.new("BAD_SNIPPET")
2397
+ CANNOT_SET_BUSINESS_NAME_IF_URL_SET = AdErrorReason.new("CANNOT_SET_BUSINESS_NAME_IF_URL_SET")
2398
+ CANNOT_SET_URL = AdErrorReason.new("CANNOT_SET_URL")
2399
+ CUSTOMER_NOT_APPROVED_MOBILEADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_MOBILEADS")
2400
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS")
2401
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS")
2402
+ CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = AdErrorReason.new("CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL")
2403
+ DIMENSION_ALREADY_IN_UNION = AdErrorReason.new("DIMENSION_ALREADY_IN_UNION")
2404
+ DIMENSION_MUST_BE_SET = AdErrorReason.new("DIMENSION_MUST_BE_SET")
2405
+ DIMENSION_NOT_IN_UNION = AdErrorReason.new("DIMENSION_NOT_IN_UNION")
2406
+ DISPLAY_URL_CANNOT_BE_SPECIFIED = AdErrorReason.new("DISPLAY_URL_CANNOT_BE_SPECIFIED")
2407
+ DOMESTIC_PHONE_NUMBER_FORMAT = AdErrorReason.new("DOMESTIC_PHONE_NUMBER_FORMAT")
2408
+ ELEMENT_NOT_PRESENT = AdErrorReason.new("ELEMENT_NOT_PRESENT")
2409
+ EMERGENCY_PHONE_NUMBER = AdErrorReason.new("EMERGENCY_PHONE_NUMBER")
2410
+ EMPTY_FIELD = AdErrorReason.new("EMPTY_FIELD")
2411
+ FIELD_NOT_PRESENT = AdErrorReason.new("FIELD_NOT_PRESENT")
2412
+ IMAGE_ERROR = AdErrorReason.new("IMAGE_ERROR")
2413
+ INCONSISTENT_STATUS_IN_TEMPLATE_UNION = AdErrorReason.new("INCONSISTENT_STATUS_IN_TEMPLATE_UNION")
2414
+ INCORRECT_LENGTH = AdErrorReason.new("INCORRECT_LENGTH")
2415
+ INVALID_AD_ADDRESS_CAMPAIGN_TARGET = AdErrorReason.new("INVALID_AD_ADDRESS_CAMPAIGN_TARGET")
2416
+ INVALID_AD_TYPE = AdErrorReason.new("INVALID_AD_TYPE")
2417
+ INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE")
2418
+ INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_TEXT")
2419
+ INVALID_COUNTRY_CODE = AdErrorReason.new("INVALID_COUNTRY_CODE")
2420
+ INVALID_FORMAT = AdErrorReason.new("INVALID_FORMAT")
2421
+ INVALID_INPUT = AdErrorReason.new("INVALID_INPUT")
2422
+ INVALID_MARKUP_LANGUAGE = AdErrorReason.new("INVALID_MARKUP_LANGUAGE")
2423
+ INVALID_MOBILE_CARRIER = AdErrorReason.new("INVALID_MOBILE_CARRIER")
2424
+ INVALID_MOBILE_CARRIER_TARGET = AdErrorReason.new("INVALID_MOBILE_CARRIER_TARGET")
2425
+ INVALID_NUMBER_OF_ELEMENTS = AdErrorReason.new("INVALID_NUMBER_OF_ELEMENTS")
2426
+ INVALID_PHONE_NUMBER_FORMAT = AdErrorReason.new("INVALID_PHONE_NUMBER_FORMAT")
2427
+ INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = AdErrorReason.new("INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID")
2428
+ INVALID_TEMPLATE_DATA = AdErrorReason.new("INVALID_TEMPLATE_DATA")
2429
+ INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = AdErrorReason.new("INVALID_TEMPLATE_ELEMENT_FIELD_TYPE")
2430
+ INVALID_TEMPLATE_ID = AdErrorReason.new("INVALID_TEMPLATE_ID")
2431
+ INVALID_YOUTUBE_DISPLAY_URL = AdErrorReason.new("INVALID_YOUTUBE_DISPLAY_URL")
2432
+ LINE_TOO_WIDE = AdErrorReason.new("LINE_TOO_WIDE")
2433
+ MARKUP_LANGUAGES_PRESENT = AdErrorReason.new("MARKUP_LANGUAGES_PRESENT")
2434
+ MISSING_ADDRESS_COMPONENT = AdErrorReason.new("MISSING_ADDRESS_COMPONENT")
2435
+ MISSING_ADVERTISEMENT_NAME = AdErrorReason.new("MISSING_ADVERTISEMENT_NAME")
2436
+ MISSING_BUSINESS_NAME = AdErrorReason.new("MISSING_BUSINESS_NAME")
2437
+ MISSING_DESCRIPTION1 = AdErrorReason.new("MISSING_DESCRIPTION1")
2438
+ MISSING_DESCRIPTION2 = AdErrorReason.new("MISSING_DESCRIPTION2")
2439
+ MISSING_DESTINATION_URL = AdErrorReason.new("MISSING_DESTINATION_URL")
2440
+ MISSING_DIMENSION = AdErrorReason.new("MISSING_DIMENSION")
2441
+ MISSING_DISPLAY_URL = AdErrorReason.new("MISSING_DISPLAY_URL")
2442
+ MISSING_HEADLINE = AdErrorReason.new("MISSING_HEADLINE")
2443
+ MISSING_HEIGHT = AdErrorReason.new("MISSING_HEIGHT")
2444
+ MISSING_IMAGE = AdErrorReason.new("MISSING_IMAGE")
2445
+ MISSING_MARKUP_LANGUAGES = AdErrorReason.new("MISSING_MARKUP_LANGUAGES")
2446
+ MISSING_MOBILE_CARRIER = AdErrorReason.new("MISSING_MOBILE_CARRIER")
2447
+ MISSING_PHONE = AdErrorReason.new("MISSING_PHONE")
2448
+ MISSING_REQUIRED_TEMPLATE_FIELDS = AdErrorReason.new("MISSING_REQUIRED_TEMPLATE_FIELDS")
2449
+ MISSING_TEMPLATE_FIELD_VALUE = AdErrorReason.new("MISSING_TEMPLATE_FIELD_VALUE")
2450
+ MISSING_TEXT = AdErrorReason.new("MISSING_TEXT")
2451
+ MISSING_URL_AND_PHONE = AdErrorReason.new("MISSING_URL_AND_PHONE")
2452
+ MISSING_VISIBLE_URL = AdErrorReason.new("MISSING_VISIBLE_URL")
2453
+ MISSING_WIDTH = AdErrorReason.new("MISSING_WIDTH")
2454
+ MUST_USE_TEMP_AD_UNION_ID_ON_ADD = AdErrorReason.new("MUST_USE_TEMP_AD_UNION_ID_ON_ADD")
2455
+ TOO_LONG = AdErrorReason.new("TOO_LONG")
2456
+ TOO_SHORT = AdErrorReason.new("TOO_SHORT")
2457
+ UNION_DIMENSIONS_CANNOT_CHANGE = AdErrorReason.new("UNION_DIMENSIONS_CANNOT_CHANGE")
2458
+ UNKNOWN_ADDRESS_COMPONENT = AdErrorReason.new("UNKNOWN_ADDRESS_COMPONENT")
2459
+ UNKNOWN_FIELD_NAME = AdErrorReason.new("UNKNOWN_FIELD_NAME")
2460
+ UNKNOWN_UNIQUE_NAME = AdErrorReason.new("UNKNOWN_UNIQUE_NAME")
2461
+ UNSUPPORTED_DIMENSIONS = AdErrorReason.new("UNSUPPORTED_DIMENSIONS")
2462
+ URL_HOST_NAME_TOO_LONG = AdErrorReason.new("URL_HOST_NAME_TOO_LONG")
2463
+ URL_INVALID_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_INVALID_TOP_LEVEL_DOMAIN")
2464
+ URL_MALFORMED = AdErrorReason.new("URL_MALFORMED")
2465
+ URL_NO_HOST = AdErrorReason.new("URL_NO_HOST")
2466
+ URL_NO_SCHEME = AdErrorReason.new("URL_NO_SCHEME")
2467
+ URL_NO_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_NO_TOP_LEVEL_DOMAIN")
2468
+ URL_PATH_NOT_ALLOWED = AdErrorReason.new("URL_PATH_NOT_ALLOWED")
2469
+ URL_PORT_NOT_ALLOWED = AdErrorReason.new("URL_PORT_NOT_ALLOWED")
2470
+ URL_QUERY_NOT_ALLOWED = AdErrorReason.new("URL_QUERY_NOT_ALLOWED")
2471
+ USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = AdErrorReason.new("USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE")
2472
+ VALUE_NOT_IN_RANGE = AdErrorReason.new("VALUE_NOT_IN_RANGE")
2473
+ VIDEO_RETRIEVAL_ERROR = AdErrorReason.new("VIDEO_RETRIEVAL_ERROR")
2474
+ end
2475
+
2476
+ # AdGroupAd.Status
2477
+ class AdGroupAdStatus < ::String
2478
+ DISABLED = AdGroupAdStatus.new("DISABLED")
2479
+ ENABLED = AdGroupAdStatus.new("ENABLED")
2480
+ PAUSED = AdGroupAdStatus.new("PAUSED")
2481
+ end
2482
+
2483
+ # AdGroupAdError.Reason
2484
+ class AdGroupAdErrorReason < ::String
2485
+ AD_NOT_UNDER_ADGROUP = AdGroupAdErrorReason.new("AD_NOT_UNDER_ADGROUP")
2486
+ CANNOT_CREATE_DEPRECATED_ADS = AdGroupAdErrorReason.new("CANNOT_CREATE_DEPRECATED_ADS")
2487
+ CANNOT_OPERATE_ON_DELETED_ADGROUPAD = AdGroupAdErrorReason.new("CANNOT_OPERATE_ON_DELETED_ADGROUPAD")
2488
+ EMPTY_FIELD = AdGroupAdErrorReason.new("EMPTY_FIELD")
2489
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = AdGroupAdErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2490
+ UNSUPPORTED_OPERATION = AdGroupAdErrorReason.new("UNSUPPORTED_OPERATION")
2491
+ end
2492
+
2493
+ # AgeTarget.Age
2494
+ class AgeTargetAge < ::String
2495
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
2496
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
2497
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
2498
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
2499
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
2500
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
2501
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
2502
+ end
2503
+
2504
+ # AuthenticationError.Reason
2505
+ class AuthenticationErrorReason < ::String
2506
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
2507
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
2508
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
2509
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
2510
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
2511
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
2512
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
2513
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
2514
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
2515
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
2516
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
2517
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
2518
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
2519
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
2520
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
2521
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
2522
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
2523
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
2524
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
2525
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
2526
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
2527
+ end
2528
+
2529
+ # AuthorizationError.Reason
2530
+ class AuthorizationErrorReason < ::String
2531
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
2532
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
2533
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
2534
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
2535
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
2536
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
2537
+ end
2538
+
2539
+ # ClientTermsError.Reason
2540
+ class ClientTermsErrorReason < ::String
2541
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
2542
+ end
2543
+
2544
+ # DatabaseError.Reason
2545
+ class DatabaseErrorReason < ::String
2546
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
2547
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
2548
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
2549
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
2550
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
2551
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
2552
+ end
2553
+
2554
+ # DateError.Reason
2555
+ class DateErrorReason < ::String
2556
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
2557
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
2558
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
2559
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
2560
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
2561
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
2562
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
2563
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
2564
+ end
2565
+
2566
+ # DayOfWeek
2567
+ class DayOfWeek < ::String
2568
+ FRIDAY = DayOfWeek.new("FRIDAY")
2569
+ MONDAY = DayOfWeek.new("MONDAY")
2570
+ SATURDAY = DayOfWeek.new("SATURDAY")
2571
+ SUNDAY = DayOfWeek.new("SUNDAY")
2572
+ THURSDAY = DayOfWeek.new("THURSDAY")
2573
+ TUESDAY = DayOfWeek.new("TUESDAY")
2574
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
2575
+ end
2576
+
2577
+ # DeprecatedAd.Type
2578
+ class DeprecatedAdType < ::String
2579
+ AUDIO = DeprecatedAdType.new("AUDIO")
2580
+ CLICK_TO_CALL = DeprecatedAdType.new("CLICK_TO_CALL")
2581
+ FROOGLE = DeprecatedAdType.new("FROOGLE")
2582
+ GADGET = DeprecatedAdType.new("GADGET")
2583
+ GADGET_TEMPLATE = DeprecatedAdType.new("GADGET_TEMPLATE")
2584
+ IN_STREAM_VIDEO = DeprecatedAdType.new("IN_STREAM_VIDEO")
2585
+ PRINT = DeprecatedAdType.new("PRINT")
2586
+ TEXT_LINK = DeprecatedAdType.new("TEXT_LINK")
2587
+ TEXT_WIDE = DeprecatedAdType.new("TEXT_WIDE")
2588
+ TEXT_WITH_VIDEO = DeprecatedAdType.new("TEXT_WITH_VIDEO")
2589
+ VIDEO = DeprecatedAdType.new("VIDEO")
2590
+ end
2591
+
2592
+ # DistinctError.Reason
2593
+ class DistinctErrorReason < ::String
2594
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
2595
+ end
2596
+
2597
+ # EntityCountLimitExceeded.Reason
2598
+ class EntityCountLimitExceededReason < ::String
2599
+ ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
2600
+ ADGROUP_DISPLAY_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_DISPLAY_AD_LIMIT")
2601
+ ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
2602
+ ADGROUP_TEXT_AD_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_TEXT_AD_LIMIT")
2603
+ CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
2604
+ UNKNOWN = EntityCountLimitExceededReason.new("UNKNOWN")
2605
+ end
2606
+
2607
+ # EntityNotFound.Reason
2608
+ class EntityNotFoundReason < ::String
2609
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
2610
+ end
2611
+
2612
+ # GenderTarget.Gender
2613
+ class GenderTargetGender < ::String
2614
+ FEMALE = GenderTargetGender.new("FEMALE")
2615
+ MALE = GenderTargetGender.new("MALE")
2616
+ end
2617
+
2618
+ # IdError.Reason
2619
+ class IdErrorReason < ::String
2620
+ NOT_FOUND = IdErrorReason.new("NOT_FOUND")
2621
+ end
2622
+
2623
+ # ImageError.Reason
2624
+ class ImageErrorReason < ::String
2625
+ ANIMATED_NOT_ALLOWED = ImageErrorReason.new("ANIMATED_NOT_ALLOWED")
2626
+ ANIMATED_VISUAL_EFFECT = ImageErrorReason.new("ANIMATED_VISUAL_EFFECT")
2627
+ ANIMATION_TOO_LONG = ImageErrorReason.new("ANIMATION_TOO_LONG")
2628
+ BAD_REQUEST = ImageErrorReason.new("BAD_REQUEST")
2629
+ CMYK_JPEG_NOT_ALLOWED = ImageErrorReason.new("CMYK_JPEG_NOT_ALLOWED")
2630
+ ERROR_STORING_IMAGE = ImageErrorReason.new("ERROR_STORING_IMAGE")
2631
+ FILE_TOO_LARGE = ImageErrorReason.new("FILE_TOO_LARGE")
2632
+ FLASH_BAD_GETURL_TARGET = ImageErrorReason.new("FLASH_BAD_GETURL_TARGET")
2633
+ FLASH_ERROR = ImageErrorReason.new("FLASH_ERROR")
2634
+ FLASH_HAS_MOUSE_TRACKING = ImageErrorReason.new("FLASH_HAS_MOUSE_TRACKING")
2635
+ FLASH_HAS_NETWORK_METHODS = ImageErrorReason.new("FLASH_HAS_NETWORK_METHODS")
2636
+ FLASH_HAS_NETWORK_OBJECTS = ImageErrorReason.new("FLASH_HAS_NETWORK_OBJECTS")
2637
+ FLASH_HAS_RANDOM_NUM = ImageErrorReason.new("FLASH_HAS_RANDOM_NUM")
2638
+ FLASH_HAS_URL = ImageErrorReason.new("FLASH_HAS_URL")
2639
+ FLASH_NOT_ALLOWED = ImageErrorReason.new("FLASH_NOT_ALLOWED")
2640
+ FLASH_SELF_TARGETS = ImageErrorReason.new("FLASH_SELF_TARGETS")
2641
+ FLASH_VERSION_NOT_SUPPORTED = ImageErrorReason.new("FLASH_VERSION_NOT_SUPPORTED")
2642
+ FLASH_WITHOUT_CLICKTAG = ImageErrorReason.new("FLASH_WITHOUT_CLICKTAG")
2643
+ IMAGE_DATA_TOO_LARGE = ImageErrorReason.new("IMAGE_DATA_TOO_LARGE")
2644
+ IMAGE_PROCESSING_ERROR = ImageErrorReason.new("IMAGE_PROCESSING_ERROR")
2645
+ IMAGE_TOO_SMALL = ImageErrorReason.new("IMAGE_TOO_SMALL")
2646
+ INVALID_IMAGE = ImageErrorReason.new("INVALID_IMAGE")
2647
+ INVALID_INPUT = ImageErrorReason.new("INVALID_INPUT")
2648
+ LAYOUT_PROBLEM = ImageErrorReason.new("LAYOUT_PROBLEM")
2649
+ PROBLEM_READING_FILE = ImageErrorReason.new("PROBLEM_READING_FILE")
2650
+ PROBLEM_READING_IMAGE_FILE = ImageErrorReason.new("PROBLEM_READING_IMAGE_FILE")
2651
+ SERVER_ERROR = ImageErrorReason.new("SERVER_ERROR")
2652
+ STORAGE_ERROR = ImageErrorReason.new("STORAGE_ERROR")
2653
+ UNEXPECTED_SIZE = ImageErrorReason.new("UNEXPECTED_SIZE")
2654
+ end
2655
+
2656
+ # InternalApiError.Reason
2657
+ class InternalApiErrorReason < ::String
2658
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
2659
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
2660
+ end
2661
+
2662
+ # MarkupLanguageType
2663
+ class MarkupLanguageType < ::String
2664
+ CHTML = MarkupLanguageType.new("CHTML")
2665
+ HTML = MarkupLanguageType.new("HTML")
2666
+ WML = MarkupLanguageType.new("WML")
2667
+ XHTML = MarkupLanguageType.new("XHTML")
2668
+ end
2669
+
2670
+ # Media.MediaType
2671
+ class MediaMediaType < ::String
2672
+ AUDIO = MediaMediaType.new("AUDIO")
2673
+ DYNAMIC_IMAGE = MediaMediaType.new("DYNAMIC_IMAGE")
2674
+ ICON = MediaMediaType.new("ICON")
2675
+ IMAGE = MediaMediaType.new("IMAGE")
2676
+ STANDARD_ICON = MediaMediaType.new("STANDARD_ICON")
2677
+ VIDEO = MediaMediaType.new("VIDEO")
2678
+ end
2679
+
2680
+ # Media.MimeType
2681
+ class MediaMimeType < ::String
2682
+ AUDIO_MP3 = MediaMimeType.new("AUDIO_MP3")
2683
+ AUDIO_WAV = MediaMimeType.new("AUDIO_WAV")
2684
+ FLASH = MediaMimeType.new("FLASH")
2685
+ IMAGE_GIF = MediaMimeType.new("IMAGE_GIF")
2686
+ IMAGE_JPEG = MediaMimeType.new("IMAGE_JPEG")
2687
+ IMAGE_PNG = MediaMimeType.new("IMAGE_PNG")
2688
+ MSEXCEL = MediaMimeType.new("MSEXCEL")
2689
+ MSWORD = MediaMimeType.new("MSWORD")
2690
+ PDF = MediaMimeType.new("PDF")
2691
+ RTF = MediaMimeType.new("RTF")
2692
+ TEXT_HTML = MediaMimeType.new("TEXT_HTML")
2693
+ end
2694
+
2695
+ # Media.Size
2696
+ class MediaSize < ::String
2697
+ FULL = MediaSize.new("FULL")
2698
+ PREVIEW = MediaSize.new("PREVIEW")
2699
+ SHRUNKEN = MediaSize.new("SHRUNKEN")
2700
+ VIDEO_THUMBNAIL = MediaSize.new("VIDEO_THUMBNAIL")
2701
+ end
2702
+
2703
+ # MediaError.Reason
2704
+ class MediaErrorReason < ::String
2705
+ CANNOT_ADD_STANDARD_ICON = MediaErrorReason.new("CANNOT_ADD_STANDARD_ICON")
2706
+ DUPLICATE_MEDIA = MediaErrorReason.new("DUPLICATE_MEDIA")
2707
+ EMPTY_FIELD = MediaErrorReason.new("EMPTY_FIELD")
2708
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = MediaErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2709
+ FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = MediaErrorReason.new("FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE")
2710
+ INVALID_MEDIA_ID = MediaErrorReason.new("INVALID_MEDIA_ID")
2711
+ INVALID_MEDIA_SUB_TYPE = MediaErrorReason.new("INVALID_MEDIA_SUB_TYPE")
2712
+ INVALID_MEDIA_TYPE = MediaErrorReason.new("INVALID_MEDIA_TYPE")
2713
+ INVALID_REFERENCE_ID = MediaErrorReason.new("INVALID_REFERENCE_ID")
2714
+ INVALID_YOU_TUBE_ID = MediaErrorReason.new("INVALID_YOU_TUBE_ID")
2715
+ MEDIA_FAILED_TRANSCODING = MediaErrorReason.new("MEDIA_FAILED_TRANSCODING")
2716
+ MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = MediaErrorReason.new("MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE")
2717
+ NO_FIELDS_SPECIFIED = MediaErrorReason.new("NO_FIELDS_SPECIFIED")
2718
+ NULL_REFERENCE_ID_AND_MEDIA_ID = MediaErrorReason.new("NULL_REFERENCE_ID_AND_MEDIA_ID")
2719
+ TOO_LONG = MediaErrorReason.new("TOO_LONG")
2720
+ UNSUPPORTED_OPERATION = MediaErrorReason.new("UNSUPPORTED_OPERATION")
2721
+ UNSUPPORTED_TYPE = MediaErrorReason.new("UNSUPPORTED_TYPE")
2722
+ YOU_TUBE_SERVICE_UNAVAILABLE = MediaErrorReason.new("YOU_TUBE_SERVICE_UNAVAILABLE")
2723
+ YOU_TUBE_VIDEO_NOT_FOUND = MediaErrorReason.new("YOU_TUBE_VIDEO_NOT_FOUND")
2724
+ end
2725
+
2726
+ # MinuteOfHour
2727
+ class MinuteOfHour < ::String
2728
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
2729
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
2730
+ THIRTY = MinuteOfHour.new("THIRTY")
2731
+ ZERO = MinuteOfHour.new("ZERO")
2732
+ end
2733
+
2734
+ # NetworkCoverageType
2735
+ class NetworkCoverageType < ::String
2736
+ CONTENT_CONTEXTUAL = NetworkCoverageType.new("CONTENT_CONTEXTUAL")
2737
+ CONTENT_NETWORK = NetworkCoverageType.new("CONTENT_NETWORK")
2738
+ CPA_REFERRAL = NetworkCoverageType.new("CPA_REFERRAL")
2739
+ GOOGLE_SEARCH = NetworkCoverageType.new("GOOGLE_SEARCH")
2740
+ SEARCH_NETWORK = NetworkCoverageType.new("SEARCH_NETWORK")
2741
+ UNKNOWN = NetworkCoverageType.new("UNKNOWN")
2742
+ end
2743
+
2744
+ # NewEntityCreationError.Reason
2745
+ class NewEntityCreationErrorReason < ::String
2746
+ CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
2747
+ end
2748
+
2749
+ # NotEmptyError.Reason
2750
+ class NotEmptyErrorReason < ::String
2751
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
2752
+ end
2753
+
2754
+ # NotWhitelistedError.Reason
2755
+ class NotWhitelistedErrorReason < ::String
2756
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
2757
+ end
2758
+
2759
+ # NullError.Reason
2760
+ class NullErrorReason < ::String
2761
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
2762
+ end
2763
+
2764
+ # OperationAccessDenied.Reason
2765
+ class OperationAccessDeniedReason < ::String
2766
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
2767
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
2768
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
2769
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
2770
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
2771
+ end
2772
+
2773
+ # Operator
2774
+ class Operator < ::String
2775
+ ADD = Operator.new("ADD")
2776
+ REMOVE = Operator.new("REMOVE")
2777
+ SET = Operator.new("SET")
2778
+ end
2779
+
2780
+ # PagingError.Reason
2781
+ class PagingErrorReason < ::String
2782
+ NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
2783
+ START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
2784
+ UNKNOWN = PagingErrorReason.new("UNKNOWN")
2785
+ end
2786
+
2787
+ # PlatformType
2788
+ class PlatformType < ::String
2789
+ DESKTOP = PlatformType.new("DESKTOP")
2790
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
2791
+ UNKNOWN = PlatformType.new("UNKNOWN")
2792
+ end
2793
+
2794
+ # ProximityTarget.DistanceUnits
2795
+ class ProximityTargetDistanceUnits < ::String
2796
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
2797
+ MILES = ProximityTargetDistanceUnits.new("MILES")
2798
+ end
2799
+
2800
+ # QuotaCheckError.Reason
2801
+ class QuotaCheckErrorReason < ::String
2802
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
2803
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
2804
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
2805
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
2806
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
2807
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
2808
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
2809
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
2810
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
2811
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
2812
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
2813
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
2814
+ end
2815
+
2816
+ # RangeError.Reason
2817
+ class RangeErrorReason < ::String
2818
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
2819
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
2820
+ end
2821
+
2822
+ # RateExceededError.Reason
2823
+ class RateExceededErrorReason < ::String
2824
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
2825
+ end
2826
+
2827
+ # ReadOnlyError.Reason
2828
+ class ReadOnlyErrorReason < ::String
2829
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
2830
+ end
2831
+
2832
+ # RequestError.Reason
2833
+ class RequestErrorReason < ::String
2834
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
2835
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
2836
+ end
2837
+
2838
+ # RequiredError.Reason
2839
+ class RequiredErrorReason < ::String
2840
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
2841
+ end
2842
+
2843
+ # SizeLimitError.Reason
2844
+ class SizeLimitErrorReason < ::String
2845
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
2846
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
2847
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
2848
+ end
2849
+
2850
+ # Stats.Network
2851
+ class StatsNetwork < ::String
2852
+ ALL = StatsNetwork.new("ALL")
2853
+ CONTENT = StatsNetwork.new("CONTENT")
2854
+ CONTENT_KEYWORD_BID = StatsNetwork.new("CONTENT_KEYWORD_BID")
2855
+ CONTENT_PLACEMENT_BID = StatsNetwork.new("CONTENT_PLACEMENT_BID")
2856
+ GOOGLE_SEARCH = StatsNetwork.new("GOOGLE_SEARCH")
2857
+ SEARCH = StatsNetwork.new("SEARCH")
2858
+ SEARCH_NETWORK = StatsNetwork.new("SEARCH_NETWORK")
2859
+ UNKNOWN = StatsNetwork.new("UNKNOWN")
2860
+ end
2861
+
2862
+ # StatsQueryError.Reason
2863
+ class StatsQueryErrorReason < ::String
2864
+ DATE_NOT_IN_VALID_RANGE = StatsQueryErrorReason.new("DATE_NOT_IN_VALID_RANGE")
2865
+ end
2866
+
2867
+ # TemplateElementField.Type
2868
+ class TemplateElementFieldType < ::String
2869
+ ADDRESS = TemplateElementFieldType.new("ADDRESS")
2870
+ AUDIO = TemplateElementFieldType.new("AUDIO")
2871
+ ENUM = TemplateElementFieldType.new("ENUM")
2872
+ IMAGE = TemplateElementFieldType.new("IMAGE")
2873
+ TEXT = TemplateElementFieldType.new("TEXT")
2874
+ URL = TemplateElementFieldType.new("URL")
2875
+ VIDEO = TemplateElementFieldType.new("VIDEO")
2876
+ VISIBLE_URL = TemplateElementFieldType.new("VISIBLE_URL")
2877
+ end
2878
+
2879
+ # VideoType
2880
+ class VideoType < ::String
2881
+ ADOBE = VideoType.new("ADOBE")
2882
+ QUICKTIME = VideoType.new("QUICKTIME")
2883
+ REALPLAYER = VideoType.new("REALPLAYER")
2884
+ WINDOWSMEDIA = VideoType.new("WINDOWSMEDIA")
2885
+ end
2886
+
2887
+ # get
2888
+ # - selector - AdwordsApi::V201008::AdGroupAdService::AdGroupAdSelector
2889
+ class Get #:nodoc: all
2890
+ attr_accessor :selector
2891
+
2892
+ def initialize(selector = nil)
2893
+ @selector = selector
2894
+ end
2895
+ end
2896
+
2897
+ # getResponse
2898
+ # - rval - AdwordsApi::V201008::AdGroupAdService::AdGroupAdPage
2899
+ class GetResponse #:nodoc: all
2900
+ attr_accessor :rval
2901
+
2902
+ def initialize(rval = nil)
2903
+ @rval = rval
2904
+ end
2905
+ end
2906
+
2907
+ # mutate
2908
+ # - operations - AdwordsApi::V201008::AdGroupAdService::AdGroupAdOperation
2909
+ class Mutate #:nodoc: all
2910
+ attr_accessor :operations
2911
+
2912
+ def initialize(operations = [])
2913
+ @operations = operations
2914
+ end
2915
+ end
2916
+
2917
+ # mutateResponse
2918
+ # - rval - AdwordsApi::V201008::AdGroupAdService::AdGroupAdReturnValue
2919
+ class MutateResponse #:nodoc: all
2920
+ attr_accessor :rval
2921
+
2922
+ def initialize(rval = nil)
2923
+ @rval = rval
2924
+ end
2925
+ end
2926
+
2927
+
2928
+ end; end; end