google-adwords-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +178 -0
- data/Rakefile +117 -0
- data/adwords_api.yml +21 -0
- data/examples/v200909/add_ad_extension_override.rb +91 -0
- data/examples/v200909/add_ad_group.rb +98 -0
- data/examples/v200909/add_ad_group_criteria.rb +117 -0
- data/examples/v200909/add_ads.rb +129 -0
- data/examples/v200909/add_campaign.rb +101 -0
- data/examples/v200909/add_campaign_ad_extension.rb +130 -0
- data/examples/v200909/add_negative_campaign_criterion.rb +96 -0
- data/examples/v200909/check_campaigns.rb +132 -0
- data/examples/v200909/delete_ad.rb +94 -0
- data/examples/v200909/delete_ad_group.rb +86 -0
- data/examples/v200909/delete_ad_group_criterion.rb +95 -0
- data/examples/v200909/delete_campaign.rb +87 -0
- data/examples/v200909/get_all_active_ad_group_criteria.rb +93 -0
- data/examples/v200909/get_all_ad_extension_overrides.rb +91 -0
- data/examples/v200909/get_all_ad_group_criteria.rb +91 -0
- data/examples/v200909/get_all_ad_groups.rb +88 -0
- data/examples/v200909/get_all_ad_params.rb +89 -0
- data/examples/v200909/get_all_ads.rb +88 -0
- data/examples/v200909/get_all_campaign_ad_extensions.rb +90 -0
- data/examples/v200909/get_all_campaign_targets.rb +83 -0
- data/examples/v200909/get_all_campaigns.rb +83 -0
- data/examples/v200909/get_all_disapproved_ads.rb +94 -0
- data/examples/v200909/get_all_paused_campaigns.rb +86 -0
- data/examples/v200909/get_conversion_optimizer_eligibility.rb +112 -0
- data/examples/v200909/get_geo_location_info.rb +108 -0
- data/examples/v200909/get_method_cost.rb +96 -0
- data/examples/v200909/get_operation_count.rb +88 -0
- data/examples/v200909/get_related_keywords.rb +115 -0
- data/examples/v200909/get_related_placements.rb +114 -0
- data/examples/v200909/get_total_usage_units_per_month.rb +83 -0
- data/examples/v200909/get_unit_count.rb +88 -0
- data/examples/v200909/perform_bulk_mutate_job.rb +221 -0
- data/examples/v200909/set_ad_params.rb +124 -0
- data/examples/v200909/set_campaign_targets.rb +125 -0
- data/examples/v200909/update_ad.rb +95 -0
- data/examples/v200909/update_ad_group.rb +90 -0
- data/examples/v200909/update_ad_group_criterion.rb +108 -0
- data/examples/v200909/update_campaign.rb +93 -0
- data/examples/v201003/add_ad_extension_override.rb +91 -0
- data/examples/v201003/add_ad_group.rb +98 -0
- data/examples/v201003/add_ad_group_criteria.rb +117 -0
- data/examples/v201003/add_ads.rb +182 -0
- data/examples/v201003/add_campaign.rb +101 -0
- data/examples/v201003/add_campaign_ad_extension.rb +130 -0
- data/examples/v201003/add_keywords_performance_report_definition.rb +108 -0
- data/examples/v201003/add_negative_campaign_criterion.rb +96 -0
- data/examples/v201003/check_campaigns.rb +132 -0
- data/examples/v201003/delete_ad.rb +94 -0
- data/examples/v201003/delete_ad_group.rb +86 -0
- data/examples/v201003/delete_ad_group_criterion.rb +95 -0
- data/examples/v201003/delete_campaign.rb +87 -0
- data/examples/v201003/download_report.rb +71 -0
- data/examples/v201003/get_all_active_ad_group_criteria.rb +93 -0
- data/examples/v201003/get_all_ad_extension_overrides.rb +91 -0
- data/examples/v201003/get_all_ad_group_criteria.rb +91 -0
- data/examples/v201003/get_all_ad_groups.rb +88 -0
- data/examples/v201003/get_all_ad_params.rb +89 -0
- data/examples/v201003/get_all_ads.rb +91 -0
- data/examples/v201003/get_all_campaign_ad_extensions.rb +90 -0
- data/examples/v201003/get_all_campaign_targets.rb +83 -0
- data/examples/v201003/get_all_campaigns.rb +83 -0
- data/examples/v201003/get_all_disapproved_ads.rb +94 -0
- data/examples/v201003/get_all_images.rb +88 -0
- data/examples/v201003/get_all_paused_campaigns.rb +86 -0
- data/examples/v201003/get_all_report_definitions.rb +84 -0
- data/examples/v201003/get_all_videos.rb +85 -0
- data/examples/v201003/get_conversion_optimizer_eligibility.rb +112 -0
- data/examples/v201003/get_criterion_bid_landscape.rb +105 -0
- data/examples/v201003/get_geo_location_info.rb +108 -0
- data/examples/v201003/get_method_cost.rb +96 -0
- data/examples/v201003/get_operation_count.rb +88 -0
- data/examples/v201003/get_related_keywords.rb +115 -0
- data/examples/v201003/get_related_placements.rb +114 -0
- data/examples/v201003/get_report_fields.rb +81 -0
- data/examples/v201003/get_total_usage_units_per_month.rb +83 -0
- data/examples/v201003/get_unit_count.rb +88 -0
- data/examples/v201003/perform_bulk_mutate_job.rb +221 -0
- data/examples/v201003/set_ad_params.rb +124 -0
- data/examples/v201003/set_campaign_targets.rb +125 -0
- data/examples/v201003/update_ad.rb +95 -0
- data/examples/v201003/update_ad_group.rb +90 -0
- data/examples/v201003/update_ad_group_criterion.rb +108 -0
- data/examples/v201003/update_campaign.rb +92 -0
- data/examples/v201003/upload_image.rb +97 -0
- data/examples/v201008/add_ad_extension_override.rb +91 -0
- data/examples/v201008/add_ad_group.rb +98 -0
- data/examples/v201008/add_ad_group_criteria.rb +117 -0
- data/examples/v201008/add_ads.rb +182 -0
- data/examples/v201008/add_campaign.rb +101 -0
- data/examples/v201008/add_campaign_ad_extension.rb +130 -0
- data/examples/v201008/add_experiment.rb +162 -0
- data/examples/v201008/add_keywords_performance_report_definition.rb +108 -0
- data/examples/v201008/add_negative_campaign_criterion.rb +96 -0
- data/examples/v201008/add_user_list.rb +96 -0
- data/examples/v201008/check_campaigns.rb +132 -0
- data/examples/v201008/delete_ad.rb +94 -0
- data/examples/v201008/delete_ad_group.rb +86 -0
- data/examples/v201008/delete_ad_group_criterion.rb +95 -0
- data/examples/v201008/delete_bulk_mutate_job.rb +96 -0
- data/examples/v201008/delete_campaign.rb +87 -0
- data/examples/v201008/delete_experiment.rb +87 -0
- data/examples/v201008/delete_user_list.rb +87 -0
- data/examples/v201008/download_report.rb +71 -0
- data/examples/v201008/get_account_hierarchy.rb +112 -0
- data/examples/v201008/get_all_account_changes.rb +144 -0
- data/examples/v201008/get_all_active_ad_group_criteria.rb +93 -0
- data/examples/v201008/get_all_ad_extension_overrides.rb +91 -0
- data/examples/v201008/get_all_ad_group_criteria.rb +91 -0
- data/examples/v201008/get_all_ad_groups.rb +88 -0
- data/examples/v201008/get_all_ad_params.rb +89 -0
- data/examples/v201008/get_all_ads.rb +91 -0
- data/examples/v201008/get_all_campaign_ad_extensions.rb +90 -0
- data/examples/v201008/get_all_campaign_targets.rb +83 -0
- data/examples/v201008/get_all_campaigns.rb +83 -0
- data/examples/v201008/get_all_disapproved_ads.rb +94 -0
- data/examples/v201008/get_all_experiments.rb +93 -0
- data/examples/v201008/get_all_images.rb +88 -0
- data/examples/v201008/get_all_paused_campaigns.rb +86 -0
- data/examples/v201008/get_all_report_definitions.rb +84 -0
- data/examples/v201008/get_all_user_lists.rb +84 -0
- data/examples/v201008/get_all_videos.rb +85 -0
- data/examples/v201008/get_bulk_mutate_job.rb +106 -0
- data/examples/v201008/get_campaign_alerts.rb +103 -0
- data/examples/v201008/get_conversion_optimizer_eligibility.rb +97 -0
- data/examples/v201008/get_criterion_bid_landscape.rb +105 -0
- data/examples/v201008/get_geo_location_info.rb +108 -0
- data/examples/v201008/get_method_cost.rb +96 -0
- data/examples/v201008/get_operation_count.rb +88 -0
- data/examples/v201008/get_related_keywords.rb +115 -0
- data/examples/v201008/get_related_placements.rb +114 -0
- data/examples/v201008/get_report_fields.rb +81 -0
- data/examples/v201008/get_total_usage_units_per_month.rb +83 -0
- data/examples/v201008/get_traffic_estimates.rb +156 -0
- data/examples/v201008/get_unit_count.rb +88 -0
- data/examples/v201008/handle_partial_failures.rb +135 -0
- data/examples/v201008/handle_policy_violation_error.rb +146 -0
- data/examples/v201008/perform_bulk_mutate_job.rb +221 -0
- data/examples/v201008/promote_experiment.rb +88 -0
- data/examples/v201008/set_ad_params.rb +124 -0
- data/examples/v201008/set_campaign_targets.rb +125 -0
- data/examples/v201008/update_ad.rb +95 -0
- data/examples/v201008/update_ad_group.rb +90 -0
- data/examples/v201008/update_ad_group_criterion.rb +108 -0
- data/examples/v201008/update_campaign.rb +93 -0
- data/examples/v201008/update_user_list.rb +91 -0
- data/examples/v201008/upload_image.rb +97 -0
- data/examples/v201101/add_ad_extension_override.rb +91 -0
- data/examples/v201101/add_ad_group.rb +98 -0
- data/examples/v201101/add_ad_group_criteria.rb +117 -0
- data/examples/v201101/add_ads.rb +182 -0
- data/examples/v201101/add_campaign.rb +108 -0
- data/examples/v201101/add_campaign_ad_extension.rb +130 -0
- data/examples/v201101/add_experiment.rb +162 -0
- data/examples/v201101/add_keywords_performance_report_definition.rb +108 -0
- data/examples/v201101/add_mcc_report_definition.rb +103 -0
- data/examples/v201101/add_negative_campaign_criterion.rb +96 -0
- data/examples/v201101/add_user_list.rb +96 -0
- data/examples/v201101/check_campaigns.rb +132 -0
- data/examples/v201101/delete_ad.rb +94 -0
- data/examples/v201101/delete_ad_group.rb +86 -0
- data/examples/v201101/delete_ad_group_criterion.rb +95 -0
- data/examples/v201101/delete_bulk_mutate_job.rb +96 -0
- data/examples/v201101/delete_campaign.rb +87 -0
- data/examples/v201101/delete_experiment.rb +87 -0
- data/examples/v201101/delete_user_list.rb +87 -0
- data/examples/v201101/download_mcc_report.rb +93 -0
- data/examples/v201101/download_report.rb +71 -0
- data/examples/v201101/get_account_hierarchy.rb +112 -0
- data/examples/v201101/get_ad_group_bid_landscape.rb +103 -0
- data/examples/v201101/get_all_account_changes.rb +146 -0
- data/examples/v201101/get_all_active_ad_group_criteria.rb +106 -0
- data/examples/v201101/get_all_ad_extension_overrides.rb +91 -0
- data/examples/v201101/get_all_ad_group_criteria.rb +97 -0
- data/examples/v201101/get_all_ad_groups.rb +94 -0
- data/examples/v201101/get_all_ad_params.rb +89 -0
- data/examples/v201101/get_all_ads.rb +99 -0
- data/examples/v201101/get_all_campaign_ad_extensions.rb +96 -0
- data/examples/v201101/get_all_campaign_targets.rb +83 -0
- data/examples/v201101/get_all_campaigns.rb +86 -0
- data/examples/v201101/get_all_disapproved_ads.rb +102 -0
- data/examples/v201101/get_all_experiments.rb +98 -0
- data/examples/v201101/get_all_images.rb +90 -0
- data/examples/v201101/get_all_paused_campaigns.rb +92 -0
- data/examples/v201101/get_all_report_definitions.rb +84 -0
- data/examples/v201101/get_all_user_lists.rb +87 -0
- data/examples/v201101/get_all_videos.rb +87 -0
- data/examples/v201101/get_bulk_mutate_job.rb +106 -0
- data/examples/v201101/get_campaign_alerts.rb +103 -0
- data/examples/v201101/get_conversion_optimizer_eligibility.rb +102 -0
- data/examples/v201101/get_criterion_bid_landscape.rb +102 -0
- data/examples/v201101/get_geo_location_info.rb +108 -0
- data/examples/v201101/get_method_cost.rb +96 -0
- data/examples/v201101/get_operation_count.rb +88 -0
- data/examples/v201101/get_related_keywords.rb +115 -0
- data/examples/v201101/get_related_placements.rb +114 -0
- data/examples/v201101/get_report_fields.rb +81 -0
- data/examples/v201101/get_total_usage_units_per_month.rb +83 -0
- data/examples/v201101/get_traffic_estimates.rb +157 -0
- data/examples/v201101/get_unit_count.rb +88 -0
- data/examples/v201101/handle_partial_failures.rb +135 -0
- data/examples/v201101/handle_policy_violation_error.rb +146 -0
- data/examples/v201101/perform_bulk_mutate_job.rb +221 -0
- data/examples/v201101/promote_experiment.rb +88 -0
- data/examples/v201101/set_ad_params.rb +124 -0
- data/examples/v201101/set_campaign_targets.rb +111 -0
- data/examples/v201101/update_ad.rb +95 -0
- data/examples/v201101/update_ad_group.rb +90 -0
- data/examples/v201101/update_ad_group_criterion.rb +108 -0
- data/examples/v201101/update_campaign.rb +93 -0
- data/examples/v201101/update_user_list.rb +91 -0
- data/examples/v201101/upload_image.rb +97 -0
- data/lib/adwords_api.rb +273 -0
- data/lib/adwords_api/api_config.rb +270 -0
- data/lib/adwords_api/auth/v13_login_handler.rb +36 -0
- data/lib/adwords_api/credential_handler.rb +111 -0
- data/lib/adwords_api/errors.rb +85 -0
- data/lib/adwords_api/extensions.rb +245 -0
- data/lib/adwords_api/soap4r_response_handler.rb +121 -0
- data/lib/adwords_api/utils.rb +80 -0
- data/lib/adwords_api/v13/AccountService.rb +321 -0
- data/lib/adwords_api/v13/AccountServiceDriver.rb +87 -0
- data/lib/adwords_api/v13/AccountServiceMappingRegistry.rb +337 -0
- data/lib/adwords_api/v13/AccountServiceWrapper.rb +407 -0
- data/lib/adwords_api/v13/ReportService.rb +328 -0
- data/lib/adwords_api/v13/ReportServiceDriver.rb +103 -0
- data/lib/adwords_api/v13/ReportServiceMappingRegistry.rb +298 -0
- data/lib/adwords_api/v13/ReportServiceWrapper.rb +500 -0
- data/lib/adwords_api/v13/TrafficEstimatorService.rb +414 -0
- data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +79 -0
- data/lib/adwords_api/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
- data/lib/adwords_api/v13/TrafficEstimatorServiceWrapper.rb +402 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideService.rb +1105 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceMappingRegistry.rb +1265 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/AdGroupAdService.rb +2603 -0
- data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/AdGroupAdServiceMappingRegistry.rb +2755 -0
- data/lib/adwords_api/v200909/AdGroupAdServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/AdGroupCriterionService.rb +1577 -0
- data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +1821 -0
- data/lib/adwords_api/v200909/AdGroupCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/AdGroupService.rb +1251 -0
- data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/AdGroupServiceMappingRegistry.rb +1395 -0
- data/lib/adwords_api/v200909/AdGroupServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/AdParamService.rb +765 -0
- data/lib/adwords_api/v200909/AdParamServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/AdParamServiceMappingRegistry.rb +927 -0
- data/lib/adwords_api/v200909/AdParamServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/BulkMutateJobService.rb +4778 -0
- data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/BulkMutateJobServiceMappingRegistry.rb +5077 -0
- data/lib/adwords_api/v200909/BulkMutateJobServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionService.rb +1065 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceMappingRegistry.rb +1273 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/CampaignCriterionService.rb +1019 -0
- data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +1237 -0
- data/lib/adwords_api/v200909/CampaignCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/CampaignService.rb +1633 -0
- data/lib/adwords_api/v200909/CampaignServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/CampaignServiceMappingRegistry.rb +1785 -0
- data/lib/adwords_api/v200909/CampaignServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/CampaignTargetService.rb +1435 -0
- data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/CampaignTargetServiceMappingRegistry.rb +1569 -0
- data/lib/adwords_api/v200909/CampaignTargetServiceWrapper.rb +332 -0
- data/lib/adwords_api/v200909/GeoLocationService.rb +611 -0
- data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +55 -0
- data/lib/adwords_api/v200909/GeoLocationServiceMappingRegistry.rb +771 -0
- data/lib/adwords_api/v200909/GeoLocationServiceWrapper.rb +303 -0
- data/lib/adwords_api/v200909/InfoService.rb +605 -0
- data/lib/adwords_api/v200909/InfoServiceDriver.rb +55 -0
- data/lib/adwords_api/v200909/InfoServiceMappingRegistry.rb +764 -0
- data/lib/adwords_api/v200909/InfoServiceWrapper.rb +303 -0
- data/lib/adwords_api/v200909/TargetingIdeaService.rb +2253 -0
- data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +63 -0
- data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +2688 -0
- data/lib/adwords_api/v200909/TargetingIdeaServiceWrapper.rb +335 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideService.rb +1301 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceMappingRegistry.rb +1468 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/AdGroupAdService.rb +2909 -0
- data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/AdGroupAdServiceMappingRegistry.rb +2970 -0
- data/lib/adwords_api/v201003/AdGroupAdServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/AdGroupCriterionService.rb +1762 -0
- data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +1978 -0
- data/lib/adwords_api/v201003/AdGroupCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/AdGroupService.rb +1421 -0
- data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/AdGroupServiceMappingRegistry.rb +1546 -0
- data/lib/adwords_api/v201003/AdGroupServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/AdParamService.rb +859 -0
- data/lib/adwords_api/v201003/AdParamServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/AdParamServiceMappingRegistry.rb +1002 -0
- data/lib/adwords_api/v201003/AdParamServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/BidLandscapeService.rb +847 -0
- data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +55 -0
- data/lib/adwords_api/v201003/BidLandscapeServiceMappingRegistry.rb +958 -0
- data/lib/adwords_api/v201003/BidLandscapeServiceWrapper.rb +306 -0
- data/lib/adwords_api/v201003/BulkMutateJobService.rb +5401 -0
- data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/BulkMutateJobServiceMappingRegistry.rb +5600 -0
- data/lib/adwords_api/v201003/BulkMutateJobServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionService.rb +1255 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceMappingRegistry.rb +1452 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/CampaignCriterionService.rb +1145 -0
- data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +1344 -0
- data/lib/adwords_api/v201003/CampaignCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/CampaignService.rb +1901 -0
- data/lib/adwords_api/v201003/CampaignServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/CampaignServiceMappingRegistry.rb +2010 -0
- data/lib/adwords_api/v201003/CampaignServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/CampaignTargetService.rb +1642 -0
- data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/CampaignTargetServiceMappingRegistry.rb +1754 -0
- data/lib/adwords_api/v201003/CampaignTargetServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/GeoLocationService.rb +692 -0
- data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +55 -0
- data/lib/adwords_api/v201003/GeoLocationServiceMappingRegistry.rb +840 -0
- data/lib/adwords_api/v201003/GeoLocationServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201003/InfoService.rb +687 -0
- data/lib/adwords_api/v201003/InfoServiceDriver.rb +55 -0
- data/lib/adwords_api/v201003/InfoServiceMappingRegistry.rb +833 -0
- data/lib/adwords_api/v201003/InfoServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201003/MediaService.rb +1192 -0
- data/lib/adwords_api/v201003/MediaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/MediaServiceMappingRegistry.rb +1290 -0
- data/lib/adwords_api/v201003/MediaServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201003/ReportDefinitionService.rb +905 -0
- data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +71 -0
- data/lib/adwords_api/v201003/ReportDefinitionServiceMappingRegistry.rb +1036 -0
- data/lib/adwords_api/v201003/ReportDefinitionServiceWrapper.rb +378 -0
- data/lib/adwords_api/v201003/TargetingIdeaService.rb +2517 -0
- data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +2925 -0
- data/lib/adwords_api/v201003/TargetingIdeaServiceWrapper.rb +335 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideService.rb +1383 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceMappingRegistry.rb +1563 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/AdGroupAdService.rb +2928 -0
- data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/AdGroupAdServiceMappingRegistry.rb +2969 -0
- data/lib/adwords_api/v201008/AdGroupAdServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/AdGroupCriterionService.rb +1981 -0
- data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +2229 -0
- data/lib/adwords_api/v201008/AdGroupCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/AdGroupService.rb +1548 -0
- data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/AdGroupServiceMappingRegistry.rb +1687 -0
- data/lib/adwords_api/v201008/AdGroupServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/AdParamService.rb +889 -0
- data/lib/adwords_api/v201008/AdParamServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/AdParamServiceMappingRegistry.rb +1041 -0
- data/lib/adwords_api/v201008/AdParamServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/AlertService.rb +743 -0
- data/lib/adwords_api/v201008/AlertServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/AlertServiceMappingRegistry.rb +836 -0
- data/lib/adwords_api/v201008/AlertServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/BidLandscapeService.rb +928 -0
- data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/BidLandscapeServiceMappingRegistry.rb +1059 -0
- data/lib/adwords_api/v201008/BidLandscapeServiceWrapper.rb +306 -0
- data/lib/adwords_api/v201008/BulkMutateJobService.rb +6063 -0
- data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/BulkMutateJobServiceMappingRegistry.rb +6265 -0
- data/lib/adwords_api/v201008/BulkMutateJobServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionService.rb +1594 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceMappingRegistry.rb +1789 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/CampaignCriterionService.rb +1243 -0
- data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +1467 -0
- data/lib/adwords_api/v201008/CampaignCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/CampaignService.rb +1979 -0
- data/lib/adwords_api/v201008/CampaignServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/CampaignServiceMappingRegistry.rb +2089 -0
- data/lib/adwords_api/v201008/CampaignServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/CampaignTargetService.rb +1651 -0
- data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/CampaignTargetServiceMappingRegistry.rb +1757 -0
- data/lib/adwords_api/v201008/CampaignTargetServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/CustomerSyncService.rb +693 -0
- data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/CustomerSyncServiceMappingRegistry.rb +820 -0
- data/lib/adwords_api/v201008/CustomerSyncServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/ExperimentService.rb +1124 -0
- data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/ExperimentServiceMappingRegistry.rb +1281 -0
- data/lib/adwords_api/v201008/ExperimentServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/GeoLocationService.rb +695 -0
- data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/GeoLocationServiceMappingRegistry.rb +843 -0
- data/lib/adwords_api/v201008/GeoLocationServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/InfoService.rb +690 -0
- data/lib/adwords_api/v201008/InfoServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/InfoServiceMappingRegistry.rb +836 -0
- data/lib/adwords_api/v201008/InfoServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/MediaService.rb +1144 -0
- data/lib/adwords_api/v201008/MediaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/MediaServiceMappingRegistry.rb +1241 -0
- data/lib/adwords_api/v201008/MediaServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201008/ReportDefinitionService.rb +976 -0
- data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +71 -0
- data/lib/adwords_api/v201008/ReportDefinitionServiceMappingRegistry.rb +1115 -0
- data/lib/adwords_api/v201008/ReportDefinitionServiceWrapper.rb +378 -0
- data/lib/adwords_api/v201008/ServicedAccountService.rb +630 -0
- data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/ServicedAccountServiceMappingRegistry.rb +752 -0
- data/lib/adwords_api/v201008/ServicedAccountServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/TargetingIdeaService.rb +2645 -0
- data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +3080 -0
- data/lib/adwords_api/v201008/TargetingIdeaServiceWrapper.rb +335 -0
- data/lib/adwords_api/v201008/TrafficEstimatorService.rb +1833 -0
- data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +55 -0
- data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +2124 -0
- data/lib/adwords_api/v201008/TrafficEstimatorServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201008/UserListService.rb +846 -0
- data/lib/adwords_api/v201008/UserListServiceDriver.rb +63 -0
- data/lib/adwords_api/v201008/UserListServiceMappingRegistry.rb +915 -0
- data/lib/adwords_api/v201008/UserListServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideService.rb +1399 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceMappingRegistry.rb +1573 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AdGroupAdService.rb +2585 -0
- data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/AdGroupAdServiceMappingRegistry.rb +2583 -0
- data/lib/adwords_api/v201101/AdGroupAdServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AdGroupCriterionService.rb +2099 -0
- data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +2327 -0
- data/lib/adwords_api/v201101/AdGroupCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AdGroupService.rb +1610 -0
- data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/AdGroupServiceMappingRegistry.rb +1765 -0
- data/lib/adwords_api/v201101/AdGroupServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AdParamService.rb +922 -0
- data/lib/adwords_api/v201101/AdParamServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/AdParamServiceMappingRegistry.rb +1077 -0
- data/lib/adwords_api/v201101/AdParamServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/AlertService.rb +747 -0
- data/lib/adwords_api/v201101/AlertServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/AlertServiceMappingRegistry.rb +838 -0
- data/lib/adwords_api/v201101/AlertServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/BulkMutateJobService.rb +6208 -0
- data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/BulkMutateJobServiceMappingRegistry.rb +6433 -0
- data/lib/adwords_api/v201101/BulkMutateJobServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionService.rb +1677 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceMappingRegistry.rb +1855 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/CampaignCriterionService.rb +1388 -0
- data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +1601 -0
- data/lib/adwords_api/v201101/CampaignCriterionServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/CampaignService.rb +2188 -0
- data/lib/adwords_api/v201101/CampaignServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/CampaignServiceMappingRegistry.rb +2301 -0
- data/lib/adwords_api/v201101/CampaignServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/CampaignTargetService.rb +1629 -0
- data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/CampaignTargetServiceMappingRegistry.rb +1725 -0
- data/lib/adwords_api/v201101/CampaignTargetServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/CustomerSyncService.rb +694 -0
- data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/CustomerSyncServiceMappingRegistry.rb +820 -0
- data/lib/adwords_api/v201101/CustomerSyncServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/DataService.rb +1079 -0
- data/lib/adwords_api/v201101/DataServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/DataServiceMappingRegistry.rb +1177 -0
- data/lib/adwords_api/v201101/DataServiceWrapper.rb +338 -0
- data/lib/adwords_api/v201101/ExperimentService.rb +1256 -0
- data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/ExperimentServiceMappingRegistry.rb +1417 -0
- data/lib/adwords_api/v201101/ExperimentServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/GeoLocationService.rb +695 -0
- data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/GeoLocationServiceMappingRegistry.rb +843 -0
- data/lib/adwords_api/v201101/GeoLocationServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/InfoService.rb +690 -0
- data/lib/adwords_api/v201101/InfoServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/InfoServiceMappingRegistry.rb +836 -0
- data/lib/adwords_api/v201101/InfoServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/MediaService.rb +1247 -0
- data/lib/adwords_api/v201101/MediaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/MediaServiceMappingRegistry.rb +1357 -0
- data/lib/adwords_api/v201101/MediaServiceWrapper.rb +332 -0
- data/lib/adwords_api/v201101/ReportDefinitionService.rb +1121 -0
- data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +71 -0
- data/lib/adwords_api/v201101/ReportDefinitionServiceMappingRegistry.rb +1263 -0
- data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +364 -0
- data/lib/adwords_api/v201101/ServicedAccountService.rb +636 -0
- data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/ServicedAccountServiceMappingRegistry.rb +756 -0
- data/lib/adwords_api/v201101/ServicedAccountServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/TargetingIdeaService.rb +2827 -0
- data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +3262 -0
- data/lib/adwords_api/v201101/TargetingIdeaServiceWrapper.rb +335 -0
- data/lib/adwords_api/v201101/TrafficEstimatorService.rb +1839 -0
- data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +55 -0
- data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +2128 -0
- data/lib/adwords_api/v201101/TrafficEstimatorServiceWrapper.rb +303 -0
- data/lib/adwords_api/v201101/UserListService.rb +1206 -0
- data/lib/adwords_api/v201101/UserListServiceDriver.rb +63 -0
- data/lib/adwords_api/v201101/UserListServiceMappingRegistry.rb +1323 -0
- data/lib/adwords_api/v201101/UserListServiceWrapper.rb +332 -0
- metadata +649 -0
@@ -0,0 +1,332 @@
|
|
1
|
+
# This file was automatically generated during the "rake generate" step of
|
2
|
+
# library setup.
|
3
|
+
require 'adwords_api/v201003/BulkMutateJobServiceDriver.rb'
|
4
|
+
|
5
|
+
module AdwordsApi
|
6
|
+
module V201003
|
7
|
+
module BulkMutateJobService
|
8
|
+
|
9
|
+
# Wrapper class for the v201003 BulkMutateJobService service.
|
10
|
+
# This class is automatically generated.
|
11
|
+
class BulkMutateJobServiceWrapper
|
12
|
+
|
13
|
+
# Holds the API object to which the wrapper belongs.
|
14
|
+
attr_reader :api
|
15
|
+
|
16
|
+
# Version and service utility fields.
|
17
|
+
attr_reader :version, :service
|
18
|
+
|
19
|
+
REGISTRY = AdwordsApi::V201003::BulkMutateJobService::DefaultMappingRegistry::LiteralRegistry
|
20
|
+
# This takes advantage of the code generated by soap4r to get the
|
21
|
+
# correct namespace for a given service. It accesses one of the fields
|
22
|
+
# in the description of the service's methods, which indicates the
|
23
|
+
# namespace.
|
24
|
+
# Since we're using a fixed version of soap4r (1.5.8), and this is
|
25
|
+
# automatically generated as part of the stub generation, it will
|
26
|
+
# always point to what we want.
|
27
|
+
NAMESPACE = 'https://adwords.google.com/api/adwords/cm/v201003'
|
28
|
+
|
29
|
+
# Holds a shortcut to the parent module.
|
30
|
+
# Use this to avoid typing the full class name when creating classes
|
31
|
+
# belonging to this service, e.g.
|
32
|
+
# service_object.module::ClassName
|
33
|
+
# instead of
|
34
|
+
# AdwordsApi::V201003::BulkMutateJobService::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 BulkMutateJobServiceWrapper.
|
41
|
+
#
|
42
|
+
# Args:
|
43
|
+
# - driver: SOAP::RPC::Driver object with the remote SOAP methods for
|
44
|
+
# this service
|
45
|
+
# - api: the API object to which the wrapper belongs
|
46
|
+
#
|
47
|
+
def initialize(driver, api)
|
48
|
+
@driver = driver
|
49
|
+
@api = api
|
50
|
+
@module = AdwordsApi::V201003::BulkMutateJobService
|
51
|
+
@version = :v201003
|
52
|
+
@service = :BulkMutateJobService
|
53
|
+
end
|
54
|
+
|
55
|
+
# Returns the namespace for this service.
|
56
|
+
def namespace
|
57
|
+
return NAMESPACE
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
# Converts from underscore_separated names to camelCase names.
|
63
|
+
#
|
64
|
+
# Args:
|
65
|
+
# - text: the text to be converted
|
66
|
+
#
|
67
|
+
def camel_case(text)
|
68
|
+
text.gsub(/_\w/) {|match| match[1..-1].upcase}
|
69
|
+
end
|
70
|
+
|
71
|
+
# Converts from camelCase names to underscore_separated names.
|
72
|
+
#
|
73
|
+
# Args:
|
74
|
+
# - text: the text to be converted
|
75
|
+
#
|
76
|
+
def underscore(text)
|
77
|
+
text.gsub(/[a-z0-9][A-Z]/) do |match|
|
78
|
+
match[0,1] + '_' + match[1,1].downcase
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Validates whether an object is of the correct type.
|
83
|
+
# This method is invoked by the hash to object converter during
|
84
|
+
# runtime to check the type validity of every object.
|
85
|
+
#
|
86
|
+
# Args:
|
87
|
+
# - object: the hash "object" being evaluated
|
88
|
+
# - type: the expected type (the class object itself)
|
89
|
+
#
|
90
|
+
# Returns:
|
91
|
+
# nil, upon success
|
92
|
+
#
|
93
|
+
# Raises:
|
94
|
+
# - ArgumentError: in case of an unexpected type
|
95
|
+
#
|
96
|
+
def validate_object(object, type)
|
97
|
+
return nil if object.is_a? type
|
98
|
+
|
99
|
+
wsdl_type_obj = type.new
|
100
|
+
|
101
|
+
if object.is_a? Hash
|
102
|
+
xsi_type = object[:xsi_type] or object['xsi_type']
|
103
|
+
if xsi_type
|
104
|
+
begin
|
105
|
+
subtype = @module.class_eval(xsi_type)
|
106
|
+
user_type_obj = subtype.new
|
107
|
+
rescue
|
108
|
+
raise ArgumentError, "Specified xsi_type '" + xsi_type +
|
109
|
+
"' is unknown"
|
110
|
+
end
|
111
|
+
unless user_type_obj.is_a? type
|
112
|
+
raise ArgumentError, "Specified xsi_type '" + xsi_type +
|
113
|
+
"' is not a subclass of " + type.to_s
|
114
|
+
end
|
115
|
+
else
|
116
|
+
object.each do |key, value|
|
117
|
+
if key.to_s != 'xsi_type'
|
118
|
+
if !wsdl_type_obj.respond_to?(camel_case(key.to_s).to_sym)
|
119
|
+
raise ArgumentError, "Unknown property '" + key.to_s +
|
120
|
+
"' for type " + type.to_s
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
return nil
|
127
|
+
end
|
128
|
+
|
129
|
+
# Sets a property on a real (soap4r-generated) object.
|
130
|
+
#
|
131
|
+
# Args:
|
132
|
+
# - object: the object being modified
|
133
|
+
# - property: the property being set
|
134
|
+
# - value: the value it's being set to
|
135
|
+
#
|
136
|
+
def set_object_property(object, property, value)
|
137
|
+
begin
|
138
|
+
object.send(property.to_s + '=', value)
|
139
|
+
rescue
|
140
|
+
object_class = object.class.name.split('::').last
|
141
|
+
error = AdsCommon::Errors::MissingPropertyError.new(
|
142
|
+
property, object_class)
|
143
|
+
message = "'Missing property `" + property.to_s +
|
144
|
+
"' for object class `" + object_class + "'"
|
145
|
+
raise(error, message)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
public
|
150
|
+
|
151
|
+
# Converts dynamic objects (property hashes) into real soap4r objects.
|
152
|
+
# This is meant to be called when setting properties on a class, so
|
153
|
+
# the method receives an optional parameter specifying the class and
|
154
|
+
# property. This way, it's possible to determine the default type for
|
155
|
+
# the object if none is provided.
|
156
|
+
#
|
157
|
+
# Args:
|
158
|
+
# - object: the object being converted
|
159
|
+
# - parent_class: the class whose property is being set
|
160
|
+
# - property: the property being set
|
161
|
+
#
|
162
|
+
def convert_to_object(object, parent_class = nil, property = nil)
|
163
|
+
property = camel_case(property.to_s) if property
|
164
|
+
if object.is_a? Hash
|
165
|
+
# Process a hash.
|
166
|
+
specified_class = object[:xsi_type] or object['xsi_type']
|
167
|
+
default_class = nil
|
168
|
+
# Determine default class for this object, given the property
|
169
|
+
# being set.
|
170
|
+
if parent_class and property
|
171
|
+
parent = REGISTRY.schema_definition_from_class(parent_class)
|
172
|
+
element = parent.elements.entries.find do |entry|
|
173
|
+
entry.varname.to_s == property.to_s
|
174
|
+
end
|
175
|
+
default_class = element.mapped_class if element
|
176
|
+
end
|
177
|
+
validate_object(object, default_class)
|
178
|
+
real_class = nil
|
179
|
+
if specified_class
|
180
|
+
real_class = @module.class_eval(specified_class)
|
181
|
+
else
|
182
|
+
real_class = default_class
|
183
|
+
end
|
184
|
+
# Instance real object.
|
185
|
+
real_object = real_class.new
|
186
|
+
# Set each of its properties.
|
187
|
+
object.each do |entry, value|
|
188
|
+
entry = entry.to_s
|
189
|
+
unless entry == 'xsi_type'
|
190
|
+
if @api.config.read('service.use_ruby_names')
|
191
|
+
entry = camel_case(entry)
|
192
|
+
end
|
193
|
+
if value.is_a? Hash
|
194
|
+
# Recurse.
|
195
|
+
set_object_property(real_object, entry,
|
196
|
+
convert_to_object(value, real_class, entry))
|
197
|
+
elsif value.is_a? Array
|
198
|
+
set_object_property(real_object, entry,
|
199
|
+
value.map do |item|
|
200
|
+
# Recurse.
|
201
|
+
convert_to_object(item, real_class, entry)
|
202
|
+
end
|
203
|
+
)
|
204
|
+
else
|
205
|
+
set_object_property(real_object, entry, value)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
return real_object
|
210
|
+
elsif object.is_a? Array
|
211
|
+
# Process an array
|
212
|
+
return object.map do |entry|
|
213
|
+
# Recurse.
|
214
|
+
convert_to_object(entry, parent_class, property)
|
215
|
+
end
|
216
|
+
else
|
217
|
+
return object
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Converts real soap4r objects into dynamic ones (property hashes).
|
222
|
+
# This is meant to be called for return objects of remote calls.
|
223
|
+
#
|
224
|
+
# Args:
|
225
|
+
# - object: the object being converted
|
226
|
+
#
|
227
|
+
def convert_from_object(object)
|
228
|
+
if object.class.name =~
|
229
|
+
/AdwordsApi::V201003::\w+::\w+/
|
230
|
+
# Handle soap4r object
|
231
|
+
object_class = REGISTRY.schema_definition_from_class(object.class)
|
232
|
+
if object_class.elements and !object_class.elements.entries.empty?
|
233
|
+
# Process complex object.
|
234
|
+
hash = {}
|
235
|
+
hash[:xsi_type] = object.class.name.split('::').last
|
236
|
+
object_class.elements.entries.each do |entry|
|
237
|
+
property = entry.varname.to_s
|
238
|
+
if object.respond_to? property and !property.include?('_Type')
|
239
|
+
value = object.send(property)
|
240
|
+
property_name = nil
|
241
|
+
if @api.config.read('service.use_ruby_names')
|
242
|
+
property_name = underscore(property).to_sym
|
243
|
+
else
|
244
|
+
property_name = property.to_sym
|
245
|
+
end
|
246
|
+
# Recurse.
|
247
|
+
hash[property_name] = convert_from_object(value) if value
|
248
|
+
end
|
249
|
+
end
|
250
|
+
return hash
|
251
|
+
else
|
252
|
+
# Process simple object.
|
253
|
+
parent = object.class.superclass
|
254
|
+
return parent.new(object)
|
255
|
+
end
|
256
|
+
elsif object.is_a? Array
|
257
|
+
# Handle arrays
|
258
|
+
return object.map do |entry|
|
259
|
+
# Recurse.
|
260
|
+
convert_from_object(entry)
|
261
|
+
end
|
262
|
+
else
|
263
|
+
# Handle native objects
|
264
|
+
return object
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
|
269
|
+
public
|
270
|
+
|
271
|
+
# Calls the {get}[http://code.google.com/apis/adwords/docs/reference/v201003/BulkMutateJobService.html#get] method of the BulkMutateJobService service.
|
272
|
+
# Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/BulkMutateJobService.html#get].
|
273
|
+
#
|
274
|
+
# Args:
|
275
|
+
# - selector: AdwordsApi::V201003::BulkMutateJobService::BulkMutateJobSelector
|
276
|
+
#
|
277
|
+
# Returns:
|
278
|
+
# - rval: SOAP::SOAPArray of AdwordsApi::V201003::BulkMutateJobService::BulkMutateJob
|
279
|
+
#
|
280
|
+
# Raises:
|
281
|
+
# Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
|
282
|
+
#
|
283
|
+
def get(selector)
|
284
|
+
begin
|
285
|
+
arg_array = []
|
286
|
+
validate_object(selector, AdwordsApi::V201003::BulkMutateJobService::BulkMutateJobSelector)
|
287
|
+
arg_array << convert_to_object(selector, AdwordsApi::V201003::BulkMutateJobService::Get,
|
288
|
+
'selector')
|
289
|
+
# Construct request object and make API call
|
290
|
+
obj = AdwordsApi::V201003::BulkMutateJobService::Get.new(*arg_array)
|
291
|
+
reply = convert_from_object(@driver.get(obj))
|
292
|
+
reply = reply[:rval] if reply.include?(:rval)
|
293
|
+
return reply
|
294
|
+
rescue SOAP::FaultError => fault
|
295
|
+
raise AdwordsApi::Errors.create_api_exception(fault,
|
296
|
+
self)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# Calls the {mutate}[http://code.google.com/apis/adwords/docs/reference/v201003/BulkMutateJobService.html#mutate] method of the BulkMutateJobService service.
|
301
|
+
# Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/BulkMutateJobService.html#mutate].
|
302
|
+
#
|
303
|
+
# Args:
|
304
|
+
# - operation: AdwordsApi::V201003::BulkMutateJobService::JobOperation
|
305
|
+
#
|
306
|
+
# Returns:
|
307
|
+
# - rval: AdwordsApi::V201003::BulkMutateJobService::BulkMutateJob
|
308
|
+
#
|
309
|
+
# Raises:
|
310
|
+
# Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
|
311
|
+
#
|
312
|
+
def mutate(operation)
|
313
|
+
begin
|
314
|
+
arg_array = []
|
315
|
+
validate_object(operation, AdwordsApi::V201003::BulkMutateJobService::JobOperation)
|
316
|
+
arg_array << convert_to_object(operation, AdwordsApi::V201003::BulkMutateJobService::Mutate,
|
317
|
+
'operation')
|
318
|
+
# Construct request object and make API call
|
319
|
+
obj = AdwordsApi::V201003::BulkMutateJobService::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,1255 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module AdwordsApi; module V201003; module CampaignAdExtensionService
|
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
|
+
# GeoPoint
|
48
|
+
# - latitudeInMicroDegrees - SOAP::SOAPInt
|
49
|
+
# - longitudeInMicroDegrees - SOAP::SOAPInt
|
50
|
+
class GeoPoint
|
51
|
+
attr_accessor :latitudeInMicroDegrees
|
52
|
+
attr_accessor :longitudeInMicroDegrees
|
53
|
+
|
54
|
+
def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
|
55
|
+
@latitudeInMicroDegrees = latitudeInMicroDegrees
|
56
|
+
@longitudeInMicroDegrees = longitudeInMicroDegrees
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# Paging
|
61
|
+
# - startIndex - SOAP::SOAPInt
|
62
|
+
# - numberResults - SOAP::SOAPInt
|
63
|
+
class Paging
|
64
|
+
attr_accessor :startIndex
|
65
|
+
attr_accessor :numberResults
|
66
|
+
|
67
|
+
def initialize(startIndex = nil, numberResults = nil)
|
68
|
+
@startIndex = startIndex
|
69
|
+
@numberResults = numberResults
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Sitelink
|
74
|
+
# - displayText - SOAP::SOAPString
|
75
|
+
# - destinationUrl - SOAP::SOAPString
|
76
|
+
class Sitelink
|
77
|
+
attr_accessor :displayText
|
78
|
+
attr_accessor :destinationUrl
|
79
|
+
|
80
|
+
def initialize(displayText = nil, destinationUrl = nil)
|
81
|
+
@displayText = displayText
|
82
|
+
@destinationUrl = destinationUrl
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# SoapHeader
|
87
|
+
# - authToken - SOAP::SOAPString
|
88
|
+
# - clientCustomerId - SOAP::SOAPString
|
89
|
+
# - clientEmail - SOAP::SOAPString
|
90
|
+
# - developerToken - SOAP::SOAPString
|
91
|
+
# - userAgent - SOAP::SOAPString
|
92
|
+
# - validateOnly - SOAP::SOAPBoolean
|
93
|
+
class SoapHeader
|
94
|
+
attr_accessor :authToken
|
95
|
+
attr_accessor :clientCustomerId
|
96
|
+
attr_accessor :clientEmail
|
97
|
+
attr_accessor :developerToken
|
98
|
+
attr_accessor :userAgent
|
99
|
+
attr_accessor :validateOnly
|
100
|
+
|
101
|
+
def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
|
102
|
+
@authToken = authToken
|
103
|
+
@clientCustomerId = clientCustomerId
|
104
|
+
@clientEmail = clientEmail
|
105
|
+
@developerToken = developerToken
|
106
|
+
@userAgent = userAgent
|
107
|
+
@validateOnly = validateOnly
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# SoapResponseHeader
|
112
|
+
# - requestId - SOAP::SOAPString
|
113
|
+
# - operations - SOAP::SOAPLong
|
114
|
+
# - responseTime - SOAP::SOAPLong
|
115
|
+
# - units - SOAP::SOAPLong
|
116
|
+
class SoapResponseHeader
|
117
|
+
attr_accessor :requestId
|
118
|
+
attr_accessor :operations
|
119
|
+
attr_accessor :responseTime
|
120
|
+
attr_accessor :units
|
121
|
+
|
122
|
+
def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
|
123
|
+
@requestId = requestId
|
124
|
+
@operations = operations
|
125
|
+
@responseTime = responseTime
|
126
|
+
@units = units
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# StatsSelector
|
131
|
+
# - dateRange - AdwordsApi::V201003::CampaignAdExtensionService::DateRange
|
132
|
+
# - statsSelector_Type - SOAP::SOAPString
|
133
|
+
class StatsSelector
|
134
|
+
attr_accessor :dateRange
|
135
|
+
attr_accessor :statsSelector_Type
|
136
|
+
|
137
|
+
def initialize(dateRange = nil, statsSelector_Type = nil)
|
138
|
+
@dateRange = dateRange
|
139
|
+
@statsSelector_Type = statsSelector_Type
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# CampaignAdExtensionStatsSelector
|
144
|
+
# - dateRange - AdwordsApi::V201003::CampaignAdExtensionService::DateRange
|
145
|
+
# - statsSelector_Type - SOAP::SOAPString
|
146
|
+
class CampaignAdExtensionStatsSelector < StatsSelector
|
147
|
+
attr_accessor :dateRange
|
148
|
+
attr_accessor :statsSelector_Type
|
149
|
+
|
150
|
+
def initialize(dateRange = nil, statsSelector_Type = nil)
|
151
|
+
@dateRange = dateRange
|
152
|
+
@statsSelector_Type = statsSelector_Type
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# ApiError
|
157
|
+
# abstract
|
158
|
+
# - fieldPath - SOAP::SOAPString
|
159
|
+
# - trigger - SOAP::SOAPString
|
160
|
+
# - errorString - SOAP::SOAPString
|
161
|
+
# - apiError_Type - SOAP::SOAPString
|
162
|
+
class ApiError
|
163
|
+
attr_accessor :fieldPath
|
164
|
+
attr_accessor :trigger
|
165
|
+
attr_accessor :errorString
|
166
|
+
attr_accessor :apiError_Type
|
167
|
+
|
168
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
|
169
|
+
@fieldPath = fieldPath
|
170
|
+
@trigger = trigger
|
171
|
+
@errorString = errorString
|
172
|
+
@apiError_Type = apiError_Type
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# AdExtensionError
|
177
|
+
# - fieldPath - SOAP::SOAPString
|
178
|
+
# - trigger - SOAP::SOAPString
|
179
|
+
# - errorString - SOAP::SOAPString
|
180
|
+
# - apiError_Type - SOAP::SOAPString
|
181
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::AdExtensionErrorReason
|
182
|
+
class AdExtensionError < ApiError
|
183
|
+
attr_accessor :fieldPath
|
184
|
+
attr_accessor :trigger
|
185
|
+
attr_accessor :errorString
|
186
|
+
attr_accessor :apiError_Type
|
187
|
+
attr_accessor :reason
|
188
|
+
|
189
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
190
|
+
@fieldPath = fieldPath
|
191
|
+
@trigger = trigger
|
192
|
+
@errorString = errorString
|
193
|
+
@apiError_Type = apiError_Type
|
194
|
+
@reason = reason
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# AuthenticationError
|
199
|
+
# - fieldPath - SOAP::SOAPString
|
200
|
+
# - trigger - SOAP::SOAPString
|
201
|
+
# - errorString - SOAP::SOAPString
|
202
|
+
# - apiError_Type - SOAP::SOAPString
|
203
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::AuthenticationErrorReason
|
204
|
+
class AuthenticationError < ApiError
|
205
|
+
attr_accessor :fieldPath
|
206
|
+
attr_accessor :trigger
|
207
|
+
attr_accessor :errorString
|
208
|
+
attr_accessor :apiError_Type
|
209
|
+
attr_accessor :reason
|
210
|
+
|
211
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
212
|
+
@fieldPath = fieldPath
|
213
|
+
@trigger = trigger
|
214
|
+
@errorString = errorString
|
215
|
+
@apiError_Type = apiError_Type
|
216
|
+
@reason = reason
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# AuthorizationError
|
221
|
+
# - fieldPath - SOAP::SOAPString
|
222
|
+
# - trigger - SOAP::SOAPString
|
223
|
+
# - errorString - SOAP::SOAPString
|
224
|
+
# - apiError_Type - SOAP::SOAPString
|
225
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::AuthorizationErrorReason
|
226
|
+
class AuthorizationError < ApiError
|
227
|
+
attr_accessor :fieldPath
|
228
|
+
attr_accessor :trigger
|
229
|
+
attr_accessor :errorString
|
230
|
+
attr_accessor :apiError_Type
|
231
|
+
attr_accessor :reason
|
232
|
+
|
233
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
234
|
+
@fieldPath = fieldPath
|
235
|
+
@trigger = trigger
|
236
|
+
@errorString = errorString
|
237
|
+
@apiError_Type = apiError_Type
|
238
|
+
@reason = reason
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# CampaignAdExtensionError
|
243
|
+
# - fieldPath - SOAP::SOAPString
|
244
|
+
# - trigger - SOAP::SOAPString
|
245
|
+
# - errorString - SOAP::SOAPString
|
246
|
+
# - apiError_Type - SOAP::SOAPString
|
247
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionErrorReason
|
248
|
+
class CampaignAdExtensionError < ApiError
|
249
|
+
attr_accessor :fieldPath
|
250
|
+
attr_accessor :trigger
|
251
|
+
attr_accessor :errorString
|
252
|
+
attr_accessor :apiError_Type
|
253
|
+
attr_accessor :reason
|
254
|
+
|
255
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
256
|
+
@fieldPath = fieldPath
|
257
|
+
@trigger = trigger
|
258
|
+
@errorString = errorString
|
259
|
+
@apiError_Type = apiError_Type
|
260
|
+
@reason = reason
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
# ClientTermsError
|
265
|
+
# - fieldPath - SOAP::SOAPString
|
266
|
+
# - trigger - SOAP::SOAPString
|
267
|
+
# - errorString - SOAP::SOAPString
|
268
|
+
# - apiError_Type - SOAP::SOAPString
|
269
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::ClientTermsErrorReason
|
270
|
+
class ClientTermsError < ApiError
|
271
|
+
attr_accessor :fieldPath
|
272
|
+
attr_accessor :trigger
|
273
|
+
attr_accessor :errorString
|
274
|
+
attr_accessor :apiError_Type
|
275
|
+
attr_accessor :reason
|
276
|
+
|
277
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
278
|
+
@fieldPath = fieldPath
|
279
|
+
@trigger = trigger
|
280
|
+
@errorString = errorString
|
281
|
+
@apiError_Type = apiError_Type
|
282
|
+
@reason = reason
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# DistinctError
|
287
|
+
# - fieldPath - SOAP::SOAPString
|
288
|
+
# - trigger - SOAP::SOAPString
|
289
|
+
# - errorString - SOAP::SOAPString
|
290
|
+
# - apiError_Type - SOAP::SOAPString
|
291
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::DistinctErrorReason
|
292
|
+
class DistinctError < ApiError
|
293
|
+
attr_accessor :fieldPath
|
294
|
+
attr_accessor :trigger
|
295
|
+
attr_accessor :errorString
|
296
|
+
attr_accessor :apiError_Type
|
297
|
+
attr_accessor :reason
|
298
|
+
|
299
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
300
|
+
@fieldPath = fieldPath
|
301
|
+
@trigger = trigger
|
302
|
+
@errorString = errorString
|
303
|
+
@apiError_Type = apiError_Type
|
304
|
+
@reason = reason
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# EntityNotFound
|
309
|
+
# - fieldPath - SOAP::SOAPString
|
310
|
+
# - trigger - SOAP::SOAPString
|
311
|
+
# - errorString - SOAP::SOAPString
|
312
|
+
# - apiError_Type - SOAP::SOAPString
|
313
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::EntityNotFoundReason
|
314
|
+
class EntityNotFound < ApiError
|
315
|
+
attr_accessor :fieldPath
|
316
|
+
attr_accessor :trigger
|
317
|
+
attr_accessor :errorString
|
318
|
+
attr_accessor :apiError_Type
|
319
|
+
attr_accessor :reason
|
320
|
+
|
321
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
322
|
+
@fieldPath = fieldPath
|
323
|
+
@trigger = trigger
|
324
|
+
@errorString = errorString
|
325
|
+
@apiError_Type = apiError_Type
|
326
|
+
@reason = reason
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# InternalApiError
|
331
|
+
# - fieldPath - SOAP::SOAPString
|
332
|
+
# - trigger - SOAP::SOAPString
|
333
|
+
# - errorString - SOAP::SOAPString
|
334
|
+
# - apiError_Type - SOAP::SOAPString
|
335
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::InternalApiErrorReason
|
336
|
+
class InternalApiError < ApiError
|
337
|
+
attr_accessor :fieldPath
|
338
|
+
attr_accessor :trigger
|
339
|
+
attr_accessor :errorString
|
340
|
+
attr_accessor :apiError_Type
|
341
|
+
attr_accessor :reason
|
342
|
+
|
343
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
344
|
+
@fieldPath = fieldPath
|
345
|
+
@trigger = trigger
|
346
|
+
@errorString = errorString
|
347
|
+
@apiError_Type = apiError_Type
|
348
|
+
@reason = reason
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# NotEmptyError
|
353
|
+
# - fieldPath - SOAP::SOAPString
|
354
|
+
# - trigger - SOAP::SOAPString
|
355
|
+
# - errorString - SOAP::SOAPString
|
356
|
+
# - apiError_Type - SOAP::SOAPString
|
357
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::NotEmptyErrorReason
|
358
|
+
class NotEmptyError < ApiError
|
359
|
+
attr_accessor :fieldPath
|
360
|
+
attr_accessor :trigger
|
361
|
+
attr_accessor :errorString
|
362
|
+
attr_accessor :apiError_Type
|
363
|
+
attr_accessor :reason
|
364
|
+
|
365
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
366
|
+
@fieldPath = fieldPath
|
367
|
+
@trigger = trigger
|
368
|
+
@errorString = errorString
|
369
|
+
@apiError_Type = apiError_Type
|
370
|
+
@reason = reason
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# NotWhitelistedError
|
375
|
+
# - fieldPath - SOAP::SOAPString
|
376
|
+
# - trigger - SOAP::SOAPString
|
377
|
+
# - errorString - SOAP::SOAPString
|
378
|
+
# - apiError_Type - SOAP::SOAPString
|
379
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::NotWhitelistedErrorReason
|
380
|
+
class NotWhitelistedError < ApiError
|
381
|
+
attr_accessor :fieldPath
|
382
|
+
attr_accessor :trigger
|
383
|
+
attr_accessor :errorString
|
384
|
+
attr_accessor :apiError_Type
|
385
|
+
attr_accessor :reason
|
386
|
+
|
387
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
388
|
+
@fieldPath = fieldPath
|
389
|
+
@trigger = trigger
|
390
|
+
@errorString = errorString
|
391
|
+
@apiError_Type = apiError_Type
|
392
|
+
@reason = reason
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
# NullError
|
397
|
+
# - fieldPath - SOAP::SOAPString
|
398
|
+
# - trigger - SOAP::SOAPString
|
399
|
+
# - errorString - SOAP::SOAPString
|
400
|
+
# - apiError_Type - SOAP::SOAPString
|
401
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::NullErrorReason
|
402
|
+
class NullError < ApiError
|
403
|
+
attr_accessor :fieldPath
|
404
|
+
attr_accessor :trigger
|
405
|
+
attr_accessor :errorString
|
406
|
+
attr_accessor :apiError_Type
|
407
|
+
attr_accessor :reason
|
408
|
+
|
409
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
410
|
+
@fieldPath = fieldPath
|
411
|
+
@trigger = trigger
|
412
|
+
@errorString = errorString
|
413
|
+
@apiError_Type = apiError_Type
|
414
|
+
@reason = reason
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# OperationAccessDenied
|
419
|
+
# - fieldPath - SOAP::SOAPString
|
420
|
+
# - trigger - SOAP::SOAPString
|
421
|
+
# - errorString - SOAP::SOAPString
|
422
|
+
# - apiError_Type - SOAP::SOAPString
|
423
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::OperationAccessDeniedReason
|
424
|
+
class OperationAccessDenied < ApiError
|
425
|
+
attr_accessor :fieldPath
|
426
|
+
attr_accessor :trigger
|
427
|
+
attr_accessor :errorString
|
428
|
+
attr_accessor :apiError_Type
|
429
|
+
attr_accessor :reason
|
430
|
+
|
431
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
432
|
+
@fieldPath = fieldPath
|
433
|
+
@trigger = trigger
|
434
|
+
@errorString = errorString
|
435
|
+
@apiError_Type = apiError_Type
|
436
|
+
@reason = reason
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
# OperatorError
|
441
|
+
# - fieldPath - SOAP::SOAPString
|
442
|
+
# - trigger - SOAP::SOAPString
|
443
|
+
# - errorString - SOAP::SOAPString
|
444
|
+
# - apiError_Type - SOAP::SOAPString
|
445
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::OperatorErrorReason
|
446
|
+
class OperatorError < ApiError
|
447
|
+
attr_accessor :fieldPath
|
448
|
+
attr_accessor :trigger
|
449
|
+
attr_accessor :errorString
|
450
|
+
attr_accessor :apiError_Type
|
451
|
+
attr_accessor :reason
|
452
|
+
|
453
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
454
|
+
@fieldPath = fieldPath
|
455
|
+
@trigger = trigger
|
456
|
+
@errorString = errorString
|
457
|
+
@apiError_Type = apiError_Type
|
458
|
+
@reason = reason
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
# PagingError
|
463
|
+
# - fieldPath - SOAP::SOAPString
|
464
|
+
# - trigger - SOAP::SOAPString
|
465
|
+
# - errorString - SOAP::SOAPString
|
466
|
+
# - apiError_Type - SOAP::SOAPString
|
467
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::PagingErrorReason
|
468
|
+
class PagingError < ApiError
|
469
|
+
attr_accessor :fieldPath
|
470
|
+
attr_accessor :trigger
|
471
|
+
attr_accessor :errorString
|
472
|
+
attr_accessor :apiError_Type
|
473
|
+
attr_accessor :reason
|
474
|
+
|
475
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
476
|
+
@fieldPath = fieldPath
|
477
|
+
@trigger = trigger
|
478
|
+
@errorString = errorString
|
479
|
+
@apiError_Type = apiError_Type
|
480
|
+
@reason = reason
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# QuotaCheckError
|
485
|
+
# - fieldPath - SOAP::SOAPString
|
486
|
+
# - trigger - SOAP::SOAPString
|
487
|
+
# - errorString - SOAP::SOAPString
|
488
|
+
# - apiError_Type - SOAP::SOAPString
|
489
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::QuotaCheckErrorReason
|
490
|
+
class QuotaCheckError < ApiError
|
491
|
+
attr_accessor :fieldPath
|
492
|
+
attr_accessor :trigger
|
493
|
+
attr_accessor :errorString
|
494
|
+
attr_accessor :apiError_Type
|
495
|
+
attr_accessor :reason
|
496
|
+
|
497
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
498
|
+
@fieldPath = fieldPath
|
499
|
+
@trigger = trigger
|
500
|
+
@errorString = errorString
|
501
|
+
@apiError_Type = apiError_Type
|
502
|
+
@reason = reason
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
# RangeError
|
507
|
+
# - fieldPath - SOAP::SOAPString
|
508
|
+
# - trigger - SOAP::SOAPString
|
509
|
+
# - errorString - SOAP::SOAPString
|
510
|
+
# - apiError_Type - SOAP::SOAPString
|
511
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::RangeErrorReason
|
512
|
+
class C_RangeError < ApiError
|
513
|
+
attr_accessor :fieldPath
|
514
|
+
attr_accessor :trigger
|
515
|
+
attr_accessor :errorString
|
516
|
+
attr_accessor :apiError_Type
|
517
|
+
attr_accessor :reason
|
518
|
+
|
519
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
520
|
+
@fieldPath = fieldPath
|
521
|
+
@trigger = trigger
|
522
|
+
@errorString = errorString
|
523
|
+
@apiError_Type = apiError_Type
|
524
|
+
@reason = reason
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
# RateExceededError
|
529
|
+
# - fieldPath - SOAP::SOAPString
|
530
|
+
# - trigger - SOAP::SOAPString
|
531
|
+
# - errorString - SOAP::SOAPString
|
532
|
+
# - apiError_Type - SOAP::SOAPString
|
533
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::RateExceededErrorReason
|
534
|
+
# - rateName - SOAP::SOAPString
|
535
|
+
# - rateScope - SOAP::SOAPString
|
536
|
+
# - retryAfterSeconds - SOAP::SOAPInt
|
537
|
+
class RateExceededError < ApiError
|
538
|
+
attr_accessor :fieldPath
|
539
|
+
attr_accessor :trigger
|
540
|
+
attr_accessor :errorString
|
541
|
+
attr_accessor :apiError_Type
|
542
|
+
attr_accessor :reason
|
543
|
+
attr_accessor :rateName
|
544
|
+
attr_accessor :rateScope
|
545
|
+
attr_accessor :retryAfterSeconds
|
546
|
+
|
547
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
|
548
|
+
@fieldPath = fieldPath
|
549
|
+
@trigger = trigger
|
550
|
+
@errorString = errorString
|
551
|
+
@apiError_Type = apiError_Type
|
552
|
+
@reason = reason
|
553
|
+
@rateName = rateName
|
554
|
+
@rateScope = rateScope
|
555
|
+
@retryAfterSeconds = retryAfterSeconds
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
# ReadOnlyError
|
560
|
+
# - fieldPath - SOAP::SOAPString
|
561
|
+
# - trigger - SOAP::SOAPString
|
562
|
+
# - errorString - SOAP::SOAPString
|
563
|
+
# - apiError_Type - SOAP::SOAPString
|
564
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::ReadOnlyErrorReason
|
565
|
+
class ReadOnlyError < ApiError
|
566
|
+
attr_accessor :fieldPath
|
567
|
+
attr_accessor :trigger
|
568
|
+
attr_accessor :errorString
|
569
|
+
attr_accessor :apiError_Type
|
570
|
+
attr_accessor :reason
|
571
|
+
|
572
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
573
|
+
@fieldPath = fieldPath
|
574
|
+
@trigger = trigger
|
575
|
+
@errorString = errorString
|
576
|
+
@apiError_Type = apiError_Type
|
577
|
+
@reason = reason
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
581
|
+
# RegionCodeError
|
582
|
+
# - fieldPath - SOAP::SOAPString
|
583
|
+
# - trigger - SOAP::SOAPString
|
584
|
+
# - errorString - SOAP::SOAPString
|
585
|
+
# - apiError_Type - SOAP::SOAPString
|
586
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::RegionCodeErrorReason
|
587
|
+
class RegionCodeError < ApiError
|
588
|
+
attr_accessor :fieldPath
|
589
|
+
attr_accessor :trigger
|
590
|
+
attr_accessor :errorString
|
591
|
+
attr_accessor :apiError_Type
|
592
|
+
attr_accessor :reason
|
593
|
+
|
594
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
595
|
+
@fieldPath = fieldPath
|
596
|
+
@trigger = trigger
|
597
|
+
@errorString = errorString
|
598
|
+
@apiError_Type = apiError_Type
|
599
|
+
@reason = reason
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# RequestError
|
604
|
+
# - fieldPath - SOAP::SOAPString
|
605
|
+
# - trigger - SOAP::SOAPString
|
606
|
+
# - errorString - SOAP::SOAPString
|
607
|
+
# - apiError_Type - SOAP::SOAPString
|
608
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::RequestErrorReason
|
609
|
+
class RequestError < ApiError
|
610
|
+
attr_accessor :fieldPath
|
611
|
+
attr_accessor :trigger
|
612
|
+
attr_accessor :errorString
|
613
|
+
attr_accessor :apiError_Type
|
614
|
+
attr_accessor :reason
|
615
|
+
|
616
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
617
|
+
@fieldPath = fieldPath
|
618
|
+
@trigger = trigger
|
619
|
+
@errorString = errorString
|
620
|
+
@apiError_Type = apiError_Type
|
621
|
+
@reason = reason
|
622
|
+
end
|
623
|
+
end
|
624
|
+
|
625
|
+
# RequiredError
|
626
|
+
# - fieldPath - SOAP::SOAPString
|
627
|
+
# - trigger - SOAP::SOAPString
|
628
|
+
# - errorString - SOAP::SOAPString
|
629
|
+
# - apiError_Type - SOAP::SOAPString
|
630
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::RequiredErrorReason
|
631
|
+
class RequiredError < ApiError
|
632
|
+
attr_accessor :fieldPath
|
633
|
+
attr_accessor :trigger
|
634
|
+
attr_accessor :errorString
|
635
|
+
attr_accessor :apiError_Type
|
636
|
+
attr_accessor :reason
|
637
|
+
|
638
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
639
|
+
@fieldPath = fieldPath
|
640
|
+
@trigger = trigger
|
641
|
+
@errorString = errorString
|
642
|
+
@apiError_Type = apiError_Type
|
643
|
+
@reason = reason
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
647
|
+
# SizeLimitError
|
648
|
+
# - fieldPath - SOAP::SOAPString
|
649
|
+
# - trigger - SOAP::SOAPString
|
650
|
+
# - errorString - SOAP::SOAPString
|
651
|
+
# - apiError_Type - SOAP::SOAPString
|
652
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::SizeLimitErrorReason
|
653
|
+
class SizeLimitError < ApiError
|
654
|
+
attr_accessor :fieldPath
|
655
|
+
attr_accessor :trigger
|
656
|
+
attr_accessor :errorString
|
657
|
+
attr_accessor :apiError_Type
|
658
|
+
attr_accessor :reason
|
659
|
+
|
660
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
661
|
+
@fieldPath = fieldPath
|
662
|
+
@trigger = trigger
|
663
|
+
@errorString = errorString
|
664
|
+
@apiError_Type = apiError_Type
|
665
|
+
@reason = reason
|
666
|
+
end
|
667
|
+
end
|
668
|
+
|
669
|
+
# StringLengthError
|
670
|
+
# - fieldPath - SOAP::SOAPString
|
671
|
+
# - trigger - SOAP::SOAPString
|
672
|
+
# - errorString - SOAP::SOAPString
|
673
|
+
# - apiError_Type - SOAP::SOAPString
|
674
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::StringLengthErrorReason
|
675
|
+
class StringLengthError < ApiError
|
676
|
+
attr_accessor :fieldPath
|
677
|
+
attr_accessor :trigger
|
678
|
+
attr_accessor :errorString
|
679
|
+
attr_accessor :apiError_Type
|
680
|
+
attr_accessor :reason
|
681
|
+
|
682
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
683
|
+
@fieldPath = fieldPath
|
684
|
+
@trigger = trigger
|
685
|
+
@errorString = errorString
|
686
|
+
@apiError_Type = apiError_Type
|
687
|
+
@reason = reason
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
691
|
+
# DatabaseError
|
692
|
+
# - fieldPath - SOAP::SOAPString
|
693
|
+
# - trigger - SOAP::SOAPString
|
694
|
+
# - errorString - SOAP::SOAPString
|
695
|
+
# - apiError_Type - SOAP::SOAPString
|
696
|
+
# - reason - AdwordsApi::V201003::CampaignAdExtensionService::DatabaseErrorReason
|
697
|
+
class DatabaseError < ApiError
|
698
|
+
attr_accessor :fieldPath
|
699
|
+
attr_accessor :trigger
|
700
|
+
attr_accessor :errorString
|
701
|
+
attr_accessor :apiError_Type
|
702
|
+
attr_accessor :reason
|
703
|
+
|
704
|
+
def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
|
705
|
+
@fieldPath = fieldPath
|
706
|
+
@trigger = trigger
|
707
|
+
@errorString = errorString
|
708
|
+
@apiError_Type = apiError_Type
|
709
|
+
@reason = reason
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
713
|
+
# ApplicationException
|
714
|
+
# - message - SOAP::SOAPString
|
715
|
+
# - applicationException_Type - SOAP::SOAPString
|
716
|
+
class ApplicationException
|
717
|
+
attr_accessor :message
|
718
|
+
attr_accessor :applicationException_Type
|
719
|
+
|
720
|
+
def initialize(message = nil, applicationException_Type = nil)
|
721
|
+
@message = message
|
722
|
+
@applicationException_Type = applicationException_Type
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
# ApiException
|
727
|
+
# - message - SOAP::SOAPString
|
728
|
+
# - applicationException_Type - SOAP::SOAPString
|
729
|
+
# - errors - AdwordsApi::V201003::CampaignAdExtensionService::ApiError
|
730
|
+
class ApiException < ApplicationException
|
731
|
+
attr_accessor :message
|
732
|
+
attr_accessor :applicationException_Type
|
733
|
+
attr_accessor :errors
|
734
|
+
|
735
|
+
def initialize(message = nil, applicationException_Type = nil, errors = [])
|
736
|
+
@message = message
|
737
|
+
@applicationException_Type = applicationException_Type
|
738
|
+
@errors = errors
|
739
|
+
end
|
740
|
+
end
|
741
|
+
|
742
|
+
# CampaignAdExtensionSelector
|
743
|
+
# - statsSelector - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionStatsSelector
|
744
|
+
# - campaignIds - SOAP::SOAPLong
|
745
|
+
# - adExtensionIds - SOAP::SOAPLong
|
746
|
+
# - statuses - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionStatus
|
747
|
+
# - paging - AdwordsApi::V201003::CampaignAdExtensionService::Paging
|
748
|
+
class CampaignAdExtensionSelector
|
749
|
+
attr_accessor :statsSelector
|
750
|
+
attr_accessor :campaignIds
|
751
|
+
attr_accessor :adExtensionIds
|
752
|
+
attr_accessor :statuses
|
753
|
+
attr_accessor :paging
|
754
|
+
|
755
|
+
def initialize(statsSelector = nil, campaignIds = [], adExtensionIds = [], statuses = [], paging = nil)
|
756
|
+
@statsSelector = statsSelector
|
757
|
+
@campaignIds = campaignIds
|
758
|
+
@adExtensionIds = adExtensionIds
|
759
|
+
@statuses = statuses
|
760
|
+
@paging = paging
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
# AdExtension
|
765
|
+
# - id - SOAP::SOAPLong
|
766
|
+
# - adExtension_Type - SOAP::SOAPString
|
767
|
+
class AdExtension
|
768
|
+
attr_accessor :id
|
769
|
+
attr_accessor :adExtension_Type
|
770
|
+
|
771
|
+
def initialize(id = nil, adExtension_Type = nil)
|
772
|
+
@id = id
|
773
|
+
@adExtension_Type = adExtension_Type
|
774
|
+
end
|
775
|
+
end
|
776
|
+
|
777
|
+
# LocationExtension
|
778
|
+
# - id - SOAP::SOAPLong
|
779
|
+
# - adExtension_Type - SOAP::SOAPString
|
780
|
+
# - address - AdwordsApi::V201003::CampaignAdExtensionService::Address
|
781
|
+
# - geoPoint - AdwordsApi::V201003::CampaignAdExtensionService::GeoPoint
|
782
|
+
# - encodedLocation - SOAP::SOAPBase64
|
783
|
+
# - companyName - SOAP::SOAPString
|
784
|
+
# - phoneNumber - SOAP::SOAPString
|
785
|
+
# - source - AdwordsApi::V201003::CampaignAdExtensionService::LocationExtensionSource
|
786
|
+
# - iconMediaId - SOAP::SOAPLong
|
787
|
+
# - imageMediaId - SOAP::SOAPLong
|
788
|
+
class LocationExtension < AdExtension
|
789
|
+
attr_accessor :id
|
790
|
+
attr_accessor :adExtension_Type
|
791
|
+
attr_accessor :address
|
792
|
+
attr_accessor :geoPoint
|
793
|
+
attr_accessor :encodedLocation
|
794
|
+
attr_accessor :companyName
|
795
|
+
attr_accessor :phoneNumber
|
796
|
+
attr_accessor :source
|
797
|
+
attr_accessor :iconMediaId
|
798
|
+
attr_accessor :imageMediaId
|
799
|
+
|
800
|
+
def initialize(id = nil, adExtension_Type = nil, address = nil, geoPoint = nil, encodedLocation = nil, companyName = nil, phoneNumber = nil, source = nil, iconMediaId = nil, imageMediaId = nil)
|
801
|
+
@id = id
|
802
|
+
@adExtension_Type = adExtension_Type
|
803
|
+
@address = address
|
804
|
+
@geoPoint = geoPoint
|
805
|
+
@encodedLocation = encodedLocation
|
806
|
+
@companyName = companyName
|
807
|
+
@phoneNumber = phoneNumber
|
808
|
+
@source = source
|
809
|
+
@iconMediaId = iconMediaId
|
810
|
+
@imageMediaId = imageMediaId
|
811
|
+
end
|
812
|
+
end
|
813
|
+
|
814
|
+
# MobileExtension
|
815
|
+
# - id - SOAP::SOAPLong
|
816
|
+
# - adExtension_Type - SOAP::SOAPString
|
817
|
+
# - phoneNumber - SOAP::SOAPString
|
818
|
+
# - countryCode - SOAP::SOAPString
|
819
|
+
class MobileExtension < AdExtension
|
820
|
+
attr_accessor :id
|
821
|
+
attr_accessor :adExtension_Type
|
822
|
+
attr_accessor :phoneNumber
|
823
|
+
attr_accessor :countryCode
|
824
|
+
|
825
|
+
def initialize(id = nil, adExtension_Type = nil, phoneNumber = nil, countryCode = nil)
|
826
|
+
@id = id
|
827
|
+
@adExtension_Type = adExtension_Type
|
828
|
+
@phoneNumber = phoneNumber
|
829
|
+
@countryCode = countryCode
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
# SitelinksExtension
|
834
|
+
# - id - SOAP::SOAPLong
|
835
|
+
# - adExtension_Type - SOAP::SOAPString
|
836
|
+
# - sitelinks - AdwordsApi::V201003::CampaignAdExtensionService::Sitelink
|
837
|
+
class SitelinksExtension < AdExtension
|
838
|
+
attr_accessor :id
|
839
|
+
attr_accessor :adExtension_Type
|
840
|
+
attr_accessor :sitelinks
|
841
|
+
|
842
|
+
def initialize(id = nil, adExtension_Type = nil, sitelinks = [])
|
843
|
+
@id = id
|
844
|
+
@adExtension_Type = adExtension_Type
|
845
|
+
@sitelinks = sitelinks
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
849
|
+
# LocationSyncExtension
|
850
|
+
# - id - SOAP::SOAPLong
|
851
|
+
# - adExtension_Type - SOAP::SOAPString
|
852
|
+
# - email - SOAP::SOAPString
|
853
|
+
# - authToken - SOAP::SOAPString
|
854
|
+
# - iconMediaId - SOAP::SOAPLong
|
855
|
+
# - shouldSyncUrl - SOAP::SOAPBoolean
|
856
|
+
class LocationSyncExtension < AdExtension
|
857
|
+
attr_accessor :id
|
858
|
+
attr_accessor :adExtension_Type
|
859
|
+
attr_accessor :email
|
860
|
+
attr_accessor :authToken
|
861
|
+
attr_accessor :iconMediaId
|
862
|
+
attr_accessor :shouldSyncUrl
|
863
|
+
|
864
|
+
def initialize(id = nil, adExtension_Type = nil, email = nil, authToken = nil, iconMediaId = nil, shouldSyncUrl = nil)
|
865
|
+
@id = id
|
866
|
+
@adExtension_Type = adExtension_Type
|
867
|
+
@email = email
|
868
|
+
@authToken = authToken
|
869
|
+
@iconMediaId = iconMediaId
|
870
|
+
@shouldSyncUrl = shouldSyncUrl
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
874
|
+
# CampaignAdExtension
|
875
|
+
# - campaignId - SOAP::SOAPLong
|
876
|
+
# - adExtension - AdwordsApi::V201003::CampaignAdExtensionService::AdExtension
|
877
|
+
# - status - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionStatus
|
878
|
+
# - approvalStatus - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionApprovalStatus
|
879
|
+
class CampaignAdExtension
|
880
|
+
attr_accessor :campaignId
|
881
|
+
attr_accessor :adExtension
|
882
|
+
attr_accessor :status
|
883
|
+
attr_accessor :approvalStatus
|
884
|
+
|
885
|
+
def initialize(campaignId = nil, adExtension = nil, status = nil, approvalStatus = nil)
|
886
|
+
@campaignId = campaignId
|
887
|
+
@adExtension = adExtension
|
888
|
+
@status = status
|
889
|
+
@approvalStatus = approvalStatus
|
890
|
+
end
|
891
|
+
end
|
892
|
+
|
893
|
+
# ListReturnValue
|
894
|
+
# abstract
|
895
|
+
# - listReturnValue_Type - SOAP::SOAPString
|
896
|
+
class ListReturnValue
|
897
|
+
attr_accessor :listReturnValue_Type
|
898
|
+
|
899
|
+
def initialize(listReturnValue_Type = nil)
|
900
|
+
@listReturnValue_Type = listReturnValue_Type
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
904
|
+
# CampaignAdExtensionReturnValue
|
905
|
+
# - listReturnValue_Type - SOAP::SOAPString
|
906
|
+
# - value - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtension
|
907
|
+
class CampaignAdExtensionReturnValue < ListReturnValue
|
908
|
+
attr_accessor :listReturnValue_Type
|
909
|
+
attr_accessor :value
|
910
|
+
|
911
|
+
def initialize(listReturnValue_Type = nil, value = [])
|
912
|
+
@listReturnValue_Type = listReturnValue_Type
|
913
|
+
@value = value
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
917
|
+
# Operation
|
918
|
+
# abstract
|
919
|
+
# - operator - AdwordsApi::V201003::CampaignAdExtensionService::Operator
|
920
|
+
# - operation_Type - SOAP::SOAPString
|
921
|
+
class Operation
|
922
|
+
attr_accessor :operator
|
923
|
+
attr_accessor :operation_Type
|
924
|
+
|
925
|
+
def initialize(operator = nil, operation_Type = nil)
|
926
|
+
@operator = operator
|
927
|
+
@operation_Type = operation_Type
|
928
|
+
end
|
929
|
+
end
|
930
|
+
|
931
|
+
# CampaignAdExtensionOperation
|
932
|
+
# - operator - AdwordsApi::V201003::CampaignAdExtensionService::Operator
|
933
|
+
# - operation_Type - SOAP::SOAPString
|
934
|
+
# - operand - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtension
|
935
|
+
class CampaignAdExtensionOperation < Operation
|
936
|
+
attr_accessor :operator
|
937
|
+
attr_accessor :operation_Type
|
938
|
+
attr_accessor :operand
|
939
|
+
|
940
|
+
def initialize(operator = nil, operation_Type = nil, operand = nil)
|
941
|
+
@operator = operator
|
942
|
+
@operation_Type = operation_Type
|
943
|
+
@operand = operand
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
947
|
+
# Page
|
948
|
+
# abstract
|
949
|
+
# - totalNumEntries - SOAP::SOAPInt
|
950
|
+
# - page_Type - SOAP::SOAPString
|
951
|
+
class Page
|
952
|
+
attr_accessor :totalNumEntries
|
953
|
+
attr_accessor :page_Type
|
954
|
+
|
955
|
+
def initialize(totalNumEntries = nil, page_Type = nil)
|
956
|
+
@totalNumEntries = totalNumEntries
|
957
|
+
@page_Type = page_Type
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
961
|
+
# CampaignAdExtensionPage
|
962
|
+
# - totalNumEntries - SOAP::SOAPInt
|
963
|
+
# - page_Type - SOAP::SOAPString
|
964
|
+
# - entries - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtension
|
965
|
+
class CampaignAdExtensionPage < Page
|
966
|
+
attr_accessor :totalNumEntries
|
967
|
+
attr_accessor :page_Type
|
968
|
+
attr_accessor :entries
|
969
|
+
|
970
|
+
def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
|
971
|
+
@totalNumEntries = totalNumEntries
|
972
|
+
@page_Type = page_Type
|
973
|
+
@entries = entries
|
974
|
+
end
|
975
|
+
end
|
976
|
+
|
977
|
+
# AdExtensionError.Reason
|
978
|
+
class AdExtensionErrorReason < ::String
|
979
|
+
ACCOUNT_DELETED = AdExtensionErrorReason.new("ACCOUNT_DELETED")
|
980
|
+
CANNOT_HAVE_MULTIPLE_LOCATION_SYNC_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_LOCATION_SYNC_EXTENSIONS_PER_CAMPAIGN")
|
981
|
+
CANNOT_HAVE_MULTIPLE_MOBILE_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_MOBILE_EXTENSIONS_PER_CAMPAIGN")
|
982
|
+
CANNOT_HAVE_MULTIPLE_SITELINKS_EXTENSIONS_PER_CAMPAIGN = AdExtensionErrorReason.new("CANNOT_HAVE_MULTIPLE_SITELINKS_EXTENSIONS_PER_CAMPAIGN")
|
983
|
+
INVALID_AUTH_TOKEN_FOR_EMAIL = AdExtensionErrorReason.new("INVALID_AUTH_TOKEN_FOR_EMAIL")
|
984
|
+
INVALID_COUNTRY_CODE = AdExtensionErrorReason.new("INVALID_COUNTRY_CODE")
|
985
|
+
INVALID_DESTINATION_URL = AdExtensionErrorReason.new("INVALID_DESTINATION_URL")
|
986
|
+
INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = AdExtensionErrorReason.new("INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")
|
987
|
+
INVALID_EMAIL = AdExtensionErrorReason.new("INVALID_EMAIL")
|
988
|
+
INVALID_ENCODED_LOCATION = AdExtensionErrorReason.new("INVALID_ENCODED_LOCATION")
|
989
|
+
INVALID_ICON_DIMENSIONS = AdExtensionErrorReason.new("INVALID_ICON_DIMENSIONS")
|
990
|
+
INVALID_ID = AdExtensionErrorReason.new("INVALID_ID")
|
991
|
+
INVALID_IMAGE_DIMENSIONS = AdExtensionErrorReason.new("INVALID_IMAGE_DIMENSIONS")
|
992
|
+
INVALID_INPUT = AdExtensionErrorReason.new("INVALID_INPUT")
|
993
|
+
INVALID_LATITUDE = AdExtensionErrorReason.new("INVALID_LATITUDE")
|
994
|
+
INVALID_LONGITUDE = AdExtensionErrorReason.new("INVALID_LONGITUDE")
|
995
|
+
INVALID_PHONE_NUMBER = AdExtensionErrorReason.new("INVALID_PHONE_NUMBER")
|
996
|
+
INVALID_TOLL_PHONE_NUMBER_FORMAT = AdExtensionErrorReason.new("INVALID_TOLL_PHONE_NUMBER_FORMAT")
|
997
|
+
MEDIA_DOES_NOT_BELONG_TO_ACCOUNT = AdExtensionErrorReason.new("MEDIA_DOES_NOT_BELONG_TO_ACCOUNT")
|
998
|
+
MEDIA_NOT_ICON_TYPE = AdExtensionErrorReason.new("MEDIA_NOT_ICON_TYPE")
|
999
|
+
MEDIA_NOT_IMAGE_TYPE = AdExtensionErrorReason.new("MEDIA_NOT_IMAGE_TYPE")
|
1000
|
+
MISSING_ADVERTISER_NAME = AdExtensionErrorReason.new("MISSING_ADVERTISER_NAME")
|
1001
|
+
MISSING_AUTH_TOKEN = AdExtensionErrorReason.new("MISSING_AUTH_TOKEN")
|
1002
|
+
MISSING_CITY_NAME = AdExtensionErrorReason.new("MISSING_CITY_NAME")
|
1003
|
+
MISSING_COUNTRY_CODE = AdExtensionErrorReason.new("MISSING_COUNTRY_CODE")
|
1004
|
+
MISSING_EMAIL = AdExtensionErrorReason.new("MISSING_EMAIL")
|
1005
|
+
MISSING_ENCODED_LOCATION = AdExtensionErrorReason.new("MISSING_ENCODED_LOCATION")
|
1006
|
+
MISSING_POSTAL_CODE = AdExtensionErrorReason.new("MISSING_POSTAL_CODE")
|
1007
|
+
MISSING_STREET_ADDRESS = AdExtensionErrorReason.new("MISSING_STREET_ADDRESS")
|
1008
|
+
NUM_LOCATION_EXTENSIONS_OVER_LIMIT = AdExtensionErrorReason.new("NUM_LOCATION_EXTENSIONS_OVER_LIMIT")
|
1009
|
+
PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = AdExtensionErrorReason.new("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")
|
1010
|
+
PREMIUM_RATE_NUMBER_NOT_ALLOWED = AdExtensionErrorReason.new("PREMIUM_RATE_NUMBER_NOT_ALLOWED")
|
1011
|
+
TOO_LONG = AdExtensionErrorReason.new("TOO_LONG")
|
1012
|
+
USER_NOT_PERMITTED_TO_CREATE_LBC_SYNC_LOCATION_EXTENSION = AdExtensionErrorReason.new("USER_NOT_PERMITTED_TO_CREATE_LBC_SYNC_LOCATION_EXTENSION")
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# AuthenticationError.Reason
|
1016
|
+
class AuthenticationErrorReason < ::String
|
1017
|
+
AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
|
1018
|
+
CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
|
1019
|
+
CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
|
1020
|
+
CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
|
1021
|
+
CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
|
1022
|
+
CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
|
1023
|
+
CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
|
1024
|
+
FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
|
1025
|
+
FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
|
1026
|
+
GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
|
1027
|
+
GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
|
1028
|
+
GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
|
1029
|
+
LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
|
1030
|
+
LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
|
1031
|
+
NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
|
1032
|
+
OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
|
1033
|
+
OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
|
1034
|
+
OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
|
1035
|
+
OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
|
1036
|
+
OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
|
1037
|
+
USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# AuthorizationError.Reason
|
1041
|
+
class AuthorizationErrorReason < ::String
|
1042
|
+
EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
|
1043
|
+
NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
|
1044
|
+
NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
|
1045
|
+
UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
|
1046
|
+
USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
|
1047
|
+
USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# CampaignAdExtension.ApprovalStatus
|
1051
|
+
class CampaignAdExtensionApprovalStatus < ::String
|
1052
|
+
APPROVED = CampaignAdExtensionApprovalStatus.new("APPROVED")
|
1053
|
+
DISAPPROVED = CampaignAdExtensionApprovalStatus.new("DISAPPROVED")
|
1054
|
+
UNCHECKED = CampaignAdExtensionApprovalStatus.new("UNCHECKED")
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
# CampaignAdExtension.Status
|
1058
|
+
class CampaignAdExtensionStatus < ::String
|
1059
|
+
ACTIVE = CampaignAdExtensionStatus.new("ACTIVE")
|
1060
|
+
DELETED = CampaignAdExtensionStatus.new("DELETED")
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# CampaignAdExtensionError.Reason
|
1064
|
+
class CampaignAdExtensionErrorReason < ::String
|
1065
|
+
ADEXTENSION_NOT_UNDER_CAMPAIGN = CampaignAdExtensionErrorReason.new("ADEXTENSION_NOT_UNDER_CAMPAIGN")
|
1066
|
+
CANNOT_ADD_DELETED_CAMPAIGN_ADEXTENSION = CampaignAdExtensionErrorReason.new("CANNOT_ADD_DELETED_CAMPAIGN_ADEXTENSION")
|
1067
|
+
CANNOT_OPERATE_ON_DELETED_CAMPAIGN_ADEXTENSION = CampaignAdExtensionErrorReason.new("CANNOT_OPERATE_ON_DELETED_CAMPAIGN_ADEXTENSION")
|
1068
|
+
INVALID_ADEXTENSION_ID = CampaignAdExtensionErrorReason.new("INVALID_ADEXTENSION_ID")
|
1069
|
+
MISSING_ADEXTENSION_ID = CampaignAdExtensionErrorReason.new("MISSING_ADEXTENSION_ID")
|
1070
|
+
MUST_USE_CONCRETE_ADEXTENSION_DURING_ADD = CampaignAdExtensionErrorReason.new("MUST_USE_CONCRETE_ADEXTENSION_DURING_ADD")
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# ClientTermsError.Reason
|
1074
|
+
class ClientTermsErrorReason < ::String
|
1075
|
+
INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# DatabaseError.Reason
|
1079
|
+
class DatabaseErrorReason < ::String
|
1080
|
+
CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
|
1081
|
+
CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
|
1082
|
+
DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
|
1083
|
+
DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
|
1084
|
+
PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
|
1085
|
+
UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# DistinctError.Reason
|
1089
|
+
class DistinctErrorReason < ::String
|
1090
|
+
DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# EntityNotFound.Reason
|
1094
|
+
class EntityNotFoundReason < ::String
|
1095
|
+
INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# InternalApiError.Reason
|
1099
|
+
class InternalApiErrorReason < ::String
|
1100
|
+
UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
|
1101
|
+
UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# LocationExtension.Source
|
1105
|
+
class LocationExtensionSource < ::String
|
1106
|
+
ADWORDS_FRONTEND = LocationExtensionSource.new("ADWORDS_FRONTEND")
|
1107
|
+
LBC_SYNC = LocationExtensionSource.new("LBC_SYNC")
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# NotEmptyError.Reason
|
1111
|
+
class NotEmptyErrorReason < ::String
|
1112
|
+
EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# NotWhitelistedError.Reason
|
1116
|
+
class NotWhitelistedErrorReason < ::String
|
1117
|
+
CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# NullError.Reason
|
1121
|
+
class NullErrorReason < ::String
|
1122
|
+
NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# OperationAccessDenied.Reason
|
1126
|
+
class OperationAccessDeniedReason < ::String
|
1127
|
+
ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
|
1128
|
+
ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
|
1129
|
+
REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
|
1130
|
+
SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
|
1131
|
+
UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Operator
|
1135
|
+
class Operator < ::String
|
1136
|
+
ADD = Operator.new("ADD")
|
1137
|
+
REMOVE = Operator.new("REMOVE")
|
1138
|
+
SET = Operator.new("SET")
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# OperatorError.Reason
|
1142
|
+
class OperatorErrorReason < ::String
|
1143
|
+
OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# PagingError.Reason
|
1147
|
+
class PagingErrorReason < ::String
|
1148
|
+
NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
|
1149
|
+
START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
|
1150
|
+
UNKNOWN = PagingErrorReason.new("UNKNOWN")
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# QuotaCheckError.Reason
|
1154
|
+
class QuotaCheckErrorReason < ::String
|
1155
|
+
ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
|
1156
|
+
ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
|
1157
|
+
ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
|
1158
|
+
INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
|
1159
|
+
INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
|
1160
|
+
INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
|
1161
|
+
INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
|
1162
|
+
INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
|
1163
|
+
INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
|
1164
|
+
INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
|
1165
|
+
MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
|
1166
|
+
QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# RangeError.Reason
|
1170
|
+
class RangeErrorReason < ::String
|
1171
|
+
TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
|
1172
|
+
TOO_LOW = RangeErrorReason.new("TOO_LOW")
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# RateExceededError.Reason
|
1176
|
+
class RateExceededErrorReason < ::String
|
1177
|
+
RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# ReadOnlyError.Reason
|
1181
|
+
class ReadOnlyErrorReason < ::String
|
1182
|
+
READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# RegionCodeError.Reason
|
1186
|
+
class RegionCodeErrorReason < ::String
|
1187
|
+
INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# RequestError.Reason
|
1191
|
+
class RequestErrorReason < ::String
|
1192
|
+
INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
|
1193
|
+
UNKNOWN = RequestErrorReason.new("UNKNOWN")
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# RequiredError.Reason
|
1197
|
+
class RequiredErrorReason < ::String
|
1198
|
+
REQUIRED = RequiredErrorReason.new("REQUIRED")
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# SizeLimitError.Reason
|
1202
|
+
class SizeLimitErrorReason < ::String
|
1203
|
+
REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
|
1204
|
+
RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
|
1205
|
+
UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
# StringLengthError.Reason
|
1209
|
+
class StringLengthErrorReason < ::String
|
1210
|
+
TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
|
1211
|
+
TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
# get
|
1215
|
+
# - selector - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionSelector
|
1216
|
+
class Get #:nodoc: all
|
1217
|
+
attr_accessor :selector
|
1218
|
+
|
1219
|
+
def initialize(selector = nil)
|
1220
|
+
@selector = selector
|
1221
|
+
end
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
# getResponse
|
1225
|
+
# - rval - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionPage
|
1226
|
+
class GetResponse #:nodoc: all
|
1227
|
+
attr_accessor :rval
|
1228
|
+
|
1229
|
+
def initialize(rval = nil)
|
1230
|
+
@rval = rval
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# mutate
|
1235
|
+
# - operations - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionOperation
|
1236
|
+
class Mutate #:nodoc: all
|
1237
|
+
attr_accessor :operations
|
1238
|
+
|
1239
|
+
def initialize(operations = [])
|
1240
|
+
@operations = operations
|
1241
|
+
end
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
# mutateResponse
|
1245
|
+
# - rval - AdwordsApi::V201003::CampaignAdExtensionService::CampaignAdExtensionReturnValue
|
1246
|
+
class MutateResponse #:nodoc: all
|
1247
|
+
attr_accessor :rval
|
1248
|
+
|
1249
|
+
def initialize(rval = nil)
|
1250
|
+
@rval = rval
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
|
1255
|
+
end; end; end
|