google-adwords-api 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +9 -0
- data/README +26 -10
- data/Rakefile +1 -1
- data/examples/v200909/add_ad_group.rb +2 -2
- data/examples/v200909/add_ads.rb +4 -4
- data/examples/v200909/add_campaign.rb +2 -2
- data/examples/v200909/check_campaigns.rb +4 -4
- data/examples/v201003/add_ad_group.rb +2 -2
- data/examples/v201003/add_ads.rb +6 -6
- data/examples/v201003/add_campaign.rb +2 -2
- data/examples/v201003/add_keywords_performance_report_definition.rb +2 -2
- data/examples/v201003/check_campaigns.rb +4 -4
- data/examples/v201008/add_ad_group.rb +2 -2
- data/examples/v201008/add_ads.rb +7 -7
- data/examples/v201008/add_campaign.rb +2 -2
- data/examples/v201008/add_experiment.rb +5 -5
- data/examples/v201008/add_keywords_performance_report_definition.rb +2 -2
- data/examples/v201008/add_user_list.rb +2 -2
- data/examples/v201008/check_campaigns.rb +4 -4
- data/examples/v201008/get_account_hierarchy.rb +8 -11
- data/examples/v201101/add_ad_group.rb +2 -2
- data/examples/v201101/add_ads.rb +6 -6
- data/examples/v201101/add_campaign.rb +2 -2
- data/examples/v201101/add_conversion.rb +4 -4
- data/examples/v201101/add_experiment.rb +5 -5
- data/examples/v201101/add_keywords_performance_report_definition.rb +2 -2
- data/examples/v201101/add_user_list.rb +3 -3
- data/examples/v201101/check_campaigns.rb +4 -4
- data/examples/v201101/get_account_hierarchy.rb +7 -9
- data/examples/v201109/add_ad_extension_override.rb +82 -0
- data/examples/v201109/add_ad_group.rb +89 -0
- data/examples/v201109/add_ad_group_criteria.rb +109 -0
- data/examples/v201109/add_ads.rb +174 -0
- data/examples/v201109/add_campaign.rb +99 -0
- data/examples/v201109/add_campaign_ad_extension.rb +121 -0
- data/examples/v201109/add_campaign_targeting_criteria.rb +102 -0
- data/examples/{v201101/add_mcc_report_definition.rb → v201109/add_conversion.rb} +26 -28
- data/examples/v201109/add_experiment.rb +153 -0
- data/examples/v201109/add_negative_campaign_criterion.rb +87 -0
- data/examples/v201109/add_user_list.rb +113 -0
- data/examples/v201109/check_campaigns.rb +123 -0
- data/examples/v201109/delete_ad.rb +85 -0
- data/examples/v201109/delete_ad_group.rb +77 -0
- data/examples/v201109/delete_ad_group_criterion.rb +86 -0
- data/examples/v201109/delete_bulk_mutate_job.rb +87 -0
- data/examples/v201109/delete_campaign.rb +78 -0
- data/examples/v201109/delete_experiment.rb +78 -0
- data/examples/v201109/delete_user_list.rb +78 -0
- data/examples/v201109/download_adhoc_report.rb +79 -0
- data/examples/v201109/download_report.rb +67 -0
- data/examples/v201109/get_account_hierarchy.rb +93 -0
- data/examples/v201109/get_ad_group_bid_landscape.rb +94 -0
- data/examples/v201109/get_all_account_changes.rb +137 -0
- data/examples/v201109/get_all_active_ad_group_criteria.rb +98 -0
- data/examples/v201109/get_all_ad_extension_overrides.rb +82 -0
- data/examples/v201109/get_all_ad_group_criteria.rb +90 -0
- data/examples/v201109/get_all_ad_groups.rb +85 -0
- data/examples/v201109/get_all_ad_params.rb +86 -0
- data/examples/v201109/get_all_ads.rb +90 -0
- data/examples/v201109/get_all_campaign_ad_extensions.rb +87 -0
- data/examples/v201109/get_all_campaign_targets.rb +74 -0
- data/examples/v201109/get_all_campaigns.rb +77 -0
- data/examples/v201109/get_all_carriers.rb +72 -0
- data/examples/v201109/get_all_conversions.rb +79 -0
- data/examples/v201109/get_all_disapproved_ads.rb +93 -0
- data/examples/v201109/get_all_experiments.rb +89 -0
- data/examples/v201109/get_all_images.rb +82 -0
- data/examples/v201109/get_all_languages.rb +73 -0
- data/examples/v201109/get_all_paused_campaigns.rb +83 -0
- data/examples/v201109/get_all_report_definitions.rb +75 -0
- data/examples/v201109/get_all_user_lists.rb +78 -0
- data/examples/v201109/get_all_videos.rb +78 -0
- data/examples/v201109/get_bulk_mutate_job.rb +97 -0
- data/examples/v201109/get_campaign_alerts.rb +95 -0
- data/examples/v201109/get_client_customer_id.rb +87 -0
- data/examples/v201109/get_conversion_optimizer_eligibility.rb +93 -0
- data/examples/v201109/get_criterion_bid_landscape.rb +93 -0
- data/examples/v201109/get_geo_location_info.rb +99 -0
- data/examples/v201109/get_keyword_opportunities.rb +95 -0
- data/examples/v201109/get_location_criteria.rb +103 -0
- data/examples/v201109/get_method_cost.rb +87 -0
- data/examples/v201109/get_operation_count.rb +79 -0
- data/examples/v201109/get_related_keywords.rb +108 -0
- data/examples/v201109/get_related_placements.rb +107 -0
- data/examples/v201109/get_report_fields.rb +72 -0
- data/examples/v201109/get_total_usage_units_per_month.rb +74 -0
- data/examples/v201109/get_traffic_estimates.rb +129 -0
- data/examples/v201109/get_unit_count.rb +81 -0
- data/examples/v201109/handle_partial_failures.rb +127 -0
- data/examples/v201109/handle_policy_violation_error.rb +138 -0
- data/examples/v201109/handle_second_factor.rb +87 -0
- data/examples/v201109/oauth_handling.rb +95 -0
- data/examples/v201109/perform_bulk_mutate_job.rb +212 -0
- data/examples/v201109/perform_mutate_job.rb +177 -0
- data/examples/v201109/promote_experiment.rb +79 -0
- data/examples/v201109/set_ad_params.rb +115 -0
- data/examples/v201109/update_ad.rb +86 -0
- data/examples/v201109/update_ad_group.rb +81 -0
- data/examples/v201109/update_ad_group_criterion.rb +99 -0
- data/examples/v201109/update_campaign.rb +84 -0
- data/examples/v201109/update_conversion.rb +87 -0
- data/examples/v201109/update_user_list.rb +82 -0
- data/examples/v201109/upload_image.rb +90 -0
- data/lib/adwords_api.rb +54 -50
- data/lib/adwords_api/api_config.rb +70 -14
- data/lib/adwords_api/credential_handler.rb +32 -13
- data/lib/adwords_api/errors.rb +12 -0
- data/lib/adwords_api/extensions.rb +8 -118
- data/lib/adwords_api/report_utils.rb +198 -0
- data/lib/adwords_api/utils.rb +5 -2
- data/lib/adwords_api/v13/account_service.rb +11 -11
- data/lib/adwords_api/v13/account_service_registry.rb +5 -3
- data/lib/adwords_api/v13/report_service.rb +15 -15
- data/lib/adwords_api/v13/report_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/ad_extension_override_service.rb +5 -5
- data/lib/adwords_api/v200909/ad_extension_override_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/ad_group_ad_service.rb +5 -5
- data/lib/adwords_api/v200909/ad_group_ad_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/ad_group_criterion_service.rb +5 -5
- data/lib/adwords_api/v200909/ad_group_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/ad_group_service.rb +5 -5
- data/lib/adwords_api/v200909/ad_group_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/ad_param_service.rb +5 -5
- data/lib/adwords_api/v200909/ad_param_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/bulk_mutate_job_service.rb +5 -5
- data/lib/adwords_api/v200909/bulk_mutate_job_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/campaign_ad_extension_service.rb +5 -5
- data/lib/adwords_api/v200909/campaign_ad_extension_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/campaign_criterion_service.rb +5 -5
- data/lib/adwords_api/v200909/campaign_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/campaign_service.rb +5 -5
- data/lib/adwords_api/v200909/campaign_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/campaign_target_service.rb +5 -5
- data/lib/adwords_api/v200909/campaign_target_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/geo_location_service.rb +3 -3
- data/lib/adwords_api/v200909/geo_location_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/info_service.rb +3 -3
- data/lib/adwords_api/v200909/info_service_registry.rb +5 -3
- data/lib/adwords_api/v200909/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v200909/targeting_idea_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/ad_extension_override_service.rb +5 -5
- data/lib/adwords_api/v201003/ad_extension_override_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/ad_group_ad_service.rb +5 -5
- data/lib/adwords_api/v201003/ad_group_ad_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/ad_group_criterion_service.rb +5 -5
- data/lib/adwords_api/v201003/ad_group_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/ad_group_service.rb +5 -5
- data/lib/adwords_api/v201003/ad_group_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/ad_param_service.rb +5 -5
- data/lib/adwords_api/v201003/ad_param_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/bid_landscape_service.rb +3 -3
- data/lib/adwords_api/v201003/bid_landscape_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/bulk_mutate_job_service.rb +5 -5
- data/lib/adwords_api/v201003/bulk_mutate_job_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/campaign_ad_extension_service.rb +5 -5
- data/lib/adwords_api/v201003/campaign_ad_extension_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/campaign_criterion_service.rb +5 -5
- data/lib/adwords_api/v201003/campaign_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/campaign_service.rb +5 -5
- data/lib/adwords_api/v201003/campaign_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/campaign_target_service.rb +5 -5
- data/lib/adwords_api/v201003/campaign_target_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/geo_location_service.rb +3 -3
- data/lib/adwords_api/v201003/geo_location_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/info_service.rb +3 -3
- data/lib/adwords_api/v201003/info_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/media_service.rb +5 -5
- data/lib/adwords_api/v201003/media_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/report_definition_service.rb +7 -7
- data/lib/adwords_api/v201003/report_definition_service_registry.rb +5 -3
- data/lib/adwords_api/v201003/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201003/targeting_idea_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/ad_extension_override_service.rb +5 -5
- data/lib/adwords_api/v201008/ad_extension_override_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/ad_group_ad_service.rb +5 -5
- data/lib/adwords_api/v201008/ad_group_ad_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/ad_group_criterion_service.rb +5 -5
- data/lib/adwords_api/v201008/ad_group_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/ad_group_service.rb +5 -5
- data/lib/adwords_api/v201008/ad_group_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/ad_param_service.rb +5 -5
- data/lib/adwords_api/v201008/ad_param_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/alert_service.rb +3 -3
- data/lib/adwords_api/v201008/alert_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/bid_landscape_service.rb +3 -3
- data/lib/adwords_api/v201008/bid_landscape_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/bulk_mutate_job_service.rb +5 -5
- data/lib/adwords_api/v201008/bulk_mutate_job_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/campaign_ad_extension_service.rb +5 -5
- data/lib/adwords_api/v201008/campaign_ad_extension_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/campaign_criterion_service.rb +5 -5
- data/lib/adwords_api/v201008/campaign_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/campaign_service.rb +5 -5
- data/lib/adwords_api/v201008/campaign_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/campaign_target_service.rb +5 -5
- data/lib/adwords_api/v201008/campaign_target_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/customer_sync_service.rb +3 -3
- data/lib/adwords_api/v201008/customer_sync_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/experiment_service.rb +5 -5
- data/lib/adwords_api/v201008/experiment_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/geo_location_service.rb +3 -3
- data/lib/adwords_api/v201008/geo_location_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/info_service.rb +3 -3
- data/lib/adwords_api/v201008/info_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/media_service.rb +5 -5
- data/lib/adwords_api/v201008/media_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/report_definition_service.rb +7 -7
- data/lib/adwords_api/v201008/report_definition_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/serviced_account_service.rb +3 -3
- data/lib/adwords_api/v201008/serviced_account_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201008/targeting_idea_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/traffic_estimator_service.rb +3 -3
- data/lib/adwords_api/v201008/traffic_estimator_service_registry.rb +5 -3
- data/lib/adwords_api/v201008/user_list_service.rb +5 -5
- data/lib/adwords_api/v201008/user_list_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/ad_extension_override_service.rb +5 -5
- data/lib/adwords_api/v201101/ad_extension_override_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/ad_group_ad_service.rb +5 -5
- data/lib/adwords_api/v201101/ad_group_ad_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/ad_group_criterion_service.rb +5 -5
- data/lib/adwords_api/v201101/ad_group_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/ad_group_service.rb +5 -5
- data/lib/adwords_api/v201101/ad_group_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/ad_param_service.rb +5 -5
- data/lib/adwords_api/v201101/ad_param_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/alert_service.rb +3 -3
- data/lib/adwords_api/v201101/alert_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/bulk_mutate_job_service.rb +5 -5
- data/lib/adwords_api/v201101/bulk_mutate_job_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/bulk_opportunity_service.rb +3 -3
- data/lib/adwords_api/v201101/bulk_opportunity_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/campaign_ad_extension_service.rb +5 -5
- data/lib/adwords_api/v201101/campaign_ad_extension_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/campaign_criterion_service.rb +5 -5
- data/lib/adwords_api/v201101/campaign_criterion_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/campaign_service.rb +5 -5
- data/lib/adwords_api/v201101/campaign_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/campaign_target_service.rb +5 -5
- data/lib/adwords_api/v201101/campaign_target_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/conversion_tracker_service.rb +5 -5
- data/lib/adwords_api/v201101/conversion_tracker_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/customer_sync_service.rb +3 -3
- data/lib/adwords_api/v201101/customer_sync_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/data_service.rb +5 -5
- data/lib/adwords_api/v201101/data_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/experiment_service.rb +5 -5
- data/lib/adwords_api/v201101/experiment_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/geo_location_service.rb +3 -3
- data/lib/adwords_api/v201101/geo_location_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/info_service.rb +3 -3
- data/lib/adwords_api/v201101/info_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/media_service.rb +5 -5
- data/lib/adwords_api/v201101/media_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/report_definition_service.rb +7 -15
- data/lib/adwords_api/v201101/report_definition_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/serviced_account_service.rb +3 -3
- data/lib/adwords_api/v201101/serviced_account_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/targeting_idea_service.rb +5 -5
- data/lib/adwords_api/v201101/targeting_idea_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/traffic_estimator_service.rb +3 -3
- data/lib/adwords_api/v201101/traffic_estimator_service_registry.rb +5 -3
- data/lib/adwords_api/v201101/user_list_service.rb +5 -5
- data/lib/adwords_api/v201101/user_list_service_registry.rb +5 -3
- data/lib/adwords_api/v201109/ad_extension_override_service.rb +36 -0
- data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/ad_group_ad_service.rb +36 -0
- data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/ad_group_criterion_service.rb +36 -0
- data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/ad_group_service.rb +36 -0
- data/lib/adwords_api/v201109/ad_group_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/ad_param_service.rb +36 -0
- data/lib/adwords_api/v201109/ad_param_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/alert_service.rb +32 -0
- data/lib/adwords_api/v201109/alert_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +36 -0
- data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/bulk_opportunity_service.rb +32 -0
- data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +36 -0
- data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/campaign_criterion_service.rb +36 -0
- data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/campaign_service.rb +36 -0
- data/lib/adwords_api/v201109/campaign_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/campaign_target_service.rb +36 -0
- data/lib/adwords_api/v201109/campaign_target_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/constant_data_service.rb +36 -0
- data/lib/adwords_api/v201109/constant_data_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/conversion_tracker_service.rb +36 -0
- data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/customer_sync_service.rb +32 -0
- data/lib/adwords_api/v201109/customer_sync_service_registry.rb +45 -0
- data/lib/adwords_api/v201109/data_service.rb +36 -0
- data/lib/adwords_api/v201109/data_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/experiment_service.rb +36 -0
- data/lib/adwords_api/v201109/experiment_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/geo_location_service.rb +32 -0
- data/lib/adwords_api/v201109/geo_location_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/info_service.rb +32 -0
- data/lib/adwords_api/v201109/info_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/location_criterion_service.rb +32 -0
- data/lib/adwords_api/v201109/location_criterion_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/media_service.rb +36 -0
- data/lib/adwords_api/v201109/media_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/mutate_job_service.rb +40 -0
- data/lib/adwords_api/v201109/mutate_job_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/report_definition_service.rb +45 -0
- data/lib/adwords_api/v201109/report_definition_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/serviced_account_service.rb +32 -0
- data/lib/adwords_api/v201109/serviced_account_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/targeting_idea_service.rb +36 -0
- data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/traffic_estimator_service.rb +32 -0
- data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +44 -0
- data/lib/adwords_api/v201109/user_list_service.rb +36 -0
- data/lib/adwords_api/v201109/user_list_service_registry.rb +44 -0
- data/test/bugs/test_issue_00000031.rb +78 -0
- metadata +467 -342
- data/examples/v201101/download_mcc_report.rb +0 -113
- data/examples/v201101/download_mcc_report_as_file.rb +0 -114
- data/lib/adwords_api/v13/traffic_estimator_service.rb +0 -44
- data/lib/adwords_api/v13/traffic_estimator_service_registry.rb +0 -39
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:37:35.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/experiment_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module ExperimentService
|
12
|
+
class ExperimentService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(*args, &block)
|
19
|
+
return execute_action('get', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def mutate(*args, &block)
|
23
|
+
return execute_action('mutate', args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def get_service_registry()
|
29
|
+
return ExperimentServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::ExperimentService
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end; end; end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:37:35.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module ExperimentService
|
11
|
+
class ExperimentServiceRegistry
|
12
|
+
EXPERIMENTSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"ExperimentPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"ExperimentOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"ExperimentReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
|
13
|
+
EXPERIMENTSERVICE_TYPES = {:Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :ExperimentReturnValue=>{:fields=>[{:type=>"Experiment", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :ExperimentPage=>{:fields=>[{:type=>"Experiment", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :ExperimentSummaryStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:ad_groups_count}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criteria_count}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_ads_count}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :Experiment=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:control_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"ExperimentStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ExperimentServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:serving_status}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:query_percentage}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:last_modified_date_time}, {:type=>"ExperimentSummaryStats", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_summary_stats}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :ExperimentOperation=>{:fields=>[{:type=>"Experiment", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}}
|
14
|
+
EXPERIMENTSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return EXPERIMENTSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return EXPERIMENTSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return EXPERIMENTSERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Base class for exceptions.
|
30
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
31
|
+
attr_reader :message # string
|
32
|
+
attr_reader :application_exception_type # string
|
33
|
+
end
|
34
|
+
|
35
|
+
# Exception class for holding a list of service errors.
|
36
|
+
class ApiException < ApplicationException
|
37
|
+
attr_reader :errors # ApiError
|
38
|
+
def initialize(exception_fault)
|
39
|
+
@array_fields ||= []
|
40
|
+
@array_fields << 'errors'
|
41
|
+
super(exception_fault)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end; end; end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:40.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/geo_location_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module GeoLocationService
|
12
|
+
class GeoLocationService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(*args, &block)
|
19
|
+
return execute_action('get', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def get_service_registry()
|
25
|
+
return GeoLocationServiceRegistry
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_module()
|
29
|
+
return AdwordsApi::V201109::GeoLocationService
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end; end; end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:40.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module GeoLocationService
|
11
|
+
class GeoLocationServiceRegistry
|
12
|
+
GEOLOCATIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"GeoLocationSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"GeoLocation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
|
13
|
+
GEOLOCATIONSERVICE_TYPES = {:GeoLocationSelector=>{:fields=>[{:type=>"Address", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:addresses}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :InvalidGeoLocation=>{:fields=>[], :base=>"GeoLocation"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address2}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:latitude_in_micro_degrees}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:longitude_in_micro_degrees}]}, :GeoLocation=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:encoded_location}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:geo_location_type}]}}
|
14
|
+
GEOLOCATIONSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return GEOLOCATIONSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return GEOLOCATIONSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return GEOLOCATIONSERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Base class for exceptions.
|
30
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
31
|
+
attr_reader :message # string
|
32
|
+
attr_reader :application_exception_type # string
|
33
|
+
end
|
34
|
+
|
35
|
+
# Exception class for holding a list of service errors.
|
36
|
+
class ApiException < ApplicationException
|
37
|
+
attr_reader :errors # ApiError
|
38
|
+
def initialize(exception_fault)
|
39
|
+
@array_fields ||= []
|
40
|
+
@array_fields << 'errors'
|
41
|
+
super(exception_fault)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end; end; end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:48.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/info_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module InfoService
|
12
|
+
class InfoService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/info/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(*args, &block)
|
19
|
+
return execute_action('get', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def get_service_registry()
|
25
|
+
return InfoServiceRegistry
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_module()
|
29
|
+
return AdwordsApi::V201109::InfoService
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end; end; end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:48.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module InfoService
|
11
|
+
class InfoServiceRegistry
|
12
|
+
INFOSERVICE_METHODS = {:get=>{:input=>[{:type=>"InfoSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"ApiUsageInfo", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
|
13
|
+
INFOSERVICE_TYPES = {:DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}], :ns=>0}, :InfoSelector=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:client_emails}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:client_customer_ids}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:include_sub_accounts}, {:type=>"ApiUsageType", :max_occurs=>1, :min_occurs=>0, :name=>:api_usage_type}]}, :ApiUsageInfo=>{:fields=>[{:type=>"ApiUsageRecord", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:api_usage_records}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:cost}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}], :ns=>0}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :ns=>0, :base=>"ApiError"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}], :ns=>0}, :ApiUsageRecord=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:cost}]}}
|
14
|
+
INFOSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201109"]
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return INFOSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return INFOSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return INFOSERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Base class for exceptions.
|
30
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
31
|
+
attr_reader :message # string
|
32
|
+
attr_reader :application_exception_type # string
|
33
|
+
end
|
34
|
+
|
35
|
+
# Exception class for holding a list of service errors.
|
36
|
+
class ApiException < ApplicationException
|
37
|
+
attr_reader :errors # ApiError
|
38
|
+
def initialize(exception_fault)
|
39
|
+
@array_fields ||= []
|
40
|
+
@array_fields << 'errors'
|
41
|
+
super(exception_fault)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end; end; end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:37:33.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/location_criterion_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module LocationCriterionService
|
12
|
+
class LocationCriterionService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(*args, &block)
|
19
|
+
return execute_action('get', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def get_service_registry()
|
25
|
+
return LocationCriterionServiceRegistry
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_module()
|
29
|
+
return AdwordsApi::V201109::LocationCriterionService
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end; end; end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:37:33.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module LocationCriterionService
|
11
|
+
class LocationCriterionServiceRegistry
|
12
|
+
LOCATIONCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"LocationCriterion", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
|
13
|
+
LOCATIONCRITERIONSERVICE_TYPES = {:Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :DateRange=>{:fields=>[{:type=>"Date", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"Date", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :LocationCriterion=>{:fields=>[{:type=>"Location", :max_occurs=>1, :min_occurs=>0, :name=>:location}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:canonical_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:reach}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:locale}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:search_term}]}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}, {:type=>"KeywordMatchType", :max_occurs=>1, :min_occurs=>0, :name=>:match_type}], :base=>"Criterion"}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}], :base=>"Criterion"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_name}], :base=>"Criterion"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Date=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:year}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:month}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:day}]}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_membership_status}], :base=>"Criterion"}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :base=>"Criterion"}, :Location=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:location_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:display_type}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_obsolete}, {:type=>"Location", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:parent_locations}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:path}], :base=>"Criterion"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"Criterion.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_type}]}}
|
14
|
+
LOCATIONCRITERIONSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return LOCATIONCRITERIONSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return LOCATIONCRITERIONSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return LOCATIONCRITERIONSERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Base class for exceptions.
|
30
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
31
|
+
attr_reader :message # string
|
32
|
+
attr_reader :application_exception_type # string
|
33
|
+
end
|
34
|
+
|
35
|
+
# Exception class for holding a list of service errors.
|
36
|
+
class ApiException < ApplicationException
|
37
|
+
attr_reader :errors # ApiError
|
38
|
+
def initialize(exception_fault)
|
39
|
+
@array_fields ||= []
|
40
|
+
@array_fields << 'errors'
|
41
|
+
super(exception_fault)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end; end; end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:28.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/media_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module MediaService
|
12
|
+
class MediaService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def upload(*args, &block)
|
19
|
+
return execute_action('upload', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get(*args, &block)
|
23
|
+
return execute_action('get', args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def get_service_registry()
|
29
|
+
return MediaServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::MediaService
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end; end; end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:28.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module MediaService
|
11
|
+
class MediaServiceRegistry
|
12
|
+
MEDIASERVICE_METHODS = {:upload=>{:input=>[{:type=>"Media", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:media}], :output=>{:fields=>[{:type=>"Media", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"upload_response"}}, :get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"MediaPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
|
13
|
+
MEDIASERVICE_TYPES = {:Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :Dimensions=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:width}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:height}]}, :Media=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:media_id}, {:type=>"Media.MediaType", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:reference_id}, {:type=>"Media_Size_DimensionsMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:dimensions}, {:type=>"Media_Size_StringMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:urls}, {:type=>"Media.MimeType", :max_occurs=>1, :min_occurs=>0, :name=>:mime_type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:source_url}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:file_size}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:creation_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:media_type}]}, :Image=>{:fields=>[{:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:data}], :base=>"Media"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:service_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:method_name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :MediaPage=>{:fields=>[{:type=>"Media", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}]}, :Video=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:industry_standard_commercial_identifier}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:advertising_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:you_tube_video_id_string}], :base=>"Media"}, :Audio=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}], :base=>"Media"}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}}
|
14
|
+
MEDIASERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return MEDIASERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return MEDIASERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return MEDIASERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Base class for exceptions.
|
30
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
31
|
+
attr_reader :message # string
|
32
|
+
attr_reader :application_exception_type # string
|
33
|
+
end
|
34
|
+
|
35
|
+
# Exception class for holding a list of service errors.
|
36
|
+
class ApiException < ApplicationException
|
37
|
+
attr_reader :errors # ApiError
|
38
|
+
def initialize(exception_fault)
|
39
|
+
@array_fields ||= []
|
40
|
+
@array_fields << 'errors'
|
41
|
+
super(exception_fault)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end; end; end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is auto-generated code, changes will be overwritten.
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
# License:: Licensed under the Apache License,Version 2.0 (the "License").
|
5
|
+
#
|
6
|
+
# Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:38:56.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/mutate_job_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module MutateJobService
|
12
|
+
class MutateJobService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/cm/v201109'
|
15
|
+
super(api, endpoint, namespace, :v201109)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(*args, &block)
|
19
|
+
return execute_action('get', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_result(*args, &block)
|
23
|
+
return execute_action('get_result', args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
def mutate(*args, &block)
|
27
|
+
return execute_action('mutate', args, &block)
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def get_service_registry()
|
33
|
+
return MutateJobServiceRegistry
|
34
|
+
end
|
35
|
+
|
36
|
+
def get_module()
|
37
|
+
return AdwordsApi::V201109::MutateJobService
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end; end; end
|