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,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:08.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module CampaignService
|
11
|
+
class CampaignServiceRegistry
|
12
|
+
CAMPAIGNSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"CampaignPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
|
13
|
+
CAMPAIGNSERVICE_TYPES = {:CampaignPage=>{:fields=>[{:type=>"Budget", :max_occurs=>1, :min_occurs=>0, :name=>:total_budget}, {:type=>"Campaign", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :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}]}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:positive_geo_target_type}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:negative_geo_target_type}], :base=>"Setting"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:eligible}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rejection_reasons}]}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:bid_ceiling}], :base=>"BiddingStrategy"}, :CampaignReturnValue=>{:fields=>[{:type=>"Campaign", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:num_calls}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:num_missed_calls}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:num_received_calls}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:call_duration_secs}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:avg_call_duration_secs}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_google_search}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_search_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_contextual}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_partner_search_network}]}, :FrequencyCap=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"TimeUnit", :max_occurs=>1, :min_occurs=>0, :name=>:time_unit}, {:type=>"Level", :max_occurs=>1, :min_occurs=>0, :name=>:level}]}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :BiddingStrategy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy_type}], :abstract=>true}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}], :base=>"AdGroupBids"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :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}]}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:opt_in}], :base=>"Setting"}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}], :base=>"AdGroupBids"}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :ManualCPC=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"BiddingStrategy"}, :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}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:target_bidding_strategy}, {:type=>"AdGroupBids", :max_occurs=>1, :min_occurs=>0, :name=>:explicit_ad_group_bids}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition_type}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :Setting=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:setting_type}], :abstract=>true}, :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}]}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :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}, :Campaign=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"CampaignStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:serving_status}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Budget", :max_occurs=>1, :min_occurs=>0, :name=>:budget}, {:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy}, {:type=>"ConversionOptimizerEligibility", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_eligibility}, {:type=>"CampaignStats", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_stats}, {:type=>"AdServingOptimizationStatus", :max_occurs=>1, :min_occurs=>0, :name=>:ad_serving_optimization_status}, {:type=>"FrequencyCap", :max_occurs=>1, :min_occurs=>0, :name=>:frequency_cap}, {:type=>"Setting", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:settings}, {:type=>"NetworkSetting", :max_occurs=>1, :min_occurs=>0, :name=>:network_setting}]}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_bids_type}], :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :max_occurs=>1, :min_occurs=>0, :name=>:pricing_model}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"BiddingStrategy"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:target_cpa}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"AdGroupBids"}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition}, {:type=>"Campaign", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :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}]}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:use_saved_bids}], :base=>"BiddingTransition"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_content_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :max_occurs=>1, :min_occurs=>0, :name=>:period}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}, {:type=>"Budget.BudgetDeliveryMethod", :max_occurs=>1, :min_occurs=>0, :name=>:delivery_method}]}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
|
14
|
+
CAMPAIGNSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return CAMPAIGNSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return CAMPAIGNSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return CAMPAIGNSERVICE_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:50.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/campaign_target_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module CampaignTargetService
|
12
|
+
class CampaignTargetService < 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 CampaignTargetServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::CampaignTargetService
|
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:50.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module CampaignTargetService
|
11
|
+
class CampaignTargetServiceRegistry
|
12
|
+
CAMPAIGNTARGETSERVICE_METHODS = {:get=>{:input=>[{:type=>"CampaignTargetSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"CampaignTargetPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignTargetOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignTargetReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
|
13
|
+
CAMPAIGNTARGETSERVICE_TYPES = {:AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :TargetList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_list_type}], :abstract=>true}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :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}]}, :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}, :CampaignTargetSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:campaign_ids}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :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}]}, :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}, :CampaignTargetPage=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :CampaignTargetReturnValue=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :min_occurs=>0, :name=>:day_of_week}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:start_minute}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:end_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:end_minute}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:bid_multiplier}], :base=>"Target"}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_type}], :abstract=>true}}
|
14
|
+
CAMPAIGNTARGETSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return CAMPAIGNTARGETSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return CAMPAIGNTARGETSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return CAMPAIGNTARGETSERVICE_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:46.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/constant_data_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module ConstantDataService
|
12
|
+
class ConstantDataService < 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_carrier_criterion(*args, &block)
|
19
|
+
return execute_action('get_carrier_criterion', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_language_criterion(*args, &block)
|
23
|
+
return execute_action('get_language_criterion', args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def get_service_registry()
|
29
|
+
return ConstantDataServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::ConstantDataService
|
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:46.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module ConstantDataService
|
11
|
+
class ConstantDataServiceRegistry
|
12
|
+
CONSTANTDATASERVICE_METHODS = {:get_carrier_criterion=>{:input=>[], :output=>{:fields=>[{:type=>"Carrier", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"get_carrier_criterion_response"}}, :get_language_criterion=>{:input=>[], :output=>{:fields=>[{:type=>"Language", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"get_language_criterion_response"}}}
|
13
|
+
CONSTANTDATASERVICE_TYPES = {:ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :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"}, :Carrier=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :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}]}, :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}]}, :Language=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}], :base=>"Criterion"}, :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"}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :base=>"Criterion"}, :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}]}, :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}]}}
|
14
|
+
CONSTANTDATASERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return CONSTANTDATASERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return CONSTANTDATASERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return CONSTANTDATASERVICE_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:39:11.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/conversion_tracker_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module ConversionTrackerService
|
12
|
+
class ConversionTrackerService < 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 ConversionTrackerServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::ConversionTrackerService
|
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:39:11.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module ConversionTrackerService
|
11
|
+
class ConversionTrackerServiceRegistry
|
12
|
+
CONVERSIONTRACKERSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"ConversionTrackerPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"ConversionTrackerOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"ConversionTrackerReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
|
13
|
+
CONVERSIONTRACKERSERVICE_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}]}, :ConversionTracker=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"ConversionTracker.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ConversionTracker.Category", :max_occurs=>1, :min_occurs=>0, :name=>:category}, {:type=>"ConversionTrackerStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:viewthrough_lookback_window}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:viewthrough_conversion_de_dup_search}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_product_ads_chargeable}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:product_ads_chargeable_conversion_window}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_tracker_type}], :abstract=>true}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ConversionTrackerOperation=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :ConversionTrackerReturnValue=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :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}]}, :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}, :ConversionTrackerPage=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"NoStatsPage"}, :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}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :AdWordsConversionTracker=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:snippet}, {:type=>"AdWordsConversionTracker.MarkupLanguage", :max_occurs=>1, :min_occurs=>0, :name=>:markup_language}, {:type=>"AdWordsConversionTracker.HttpProtocol", :max_occurs=>1, :min_occurs=>0, :name=>:http_protocol}, {:type=>"AdWordsConversionTracker.TextFormat", :max_occurs=>1, :min_occurs=>0, :name=>:text_format}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_page_language}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:background_color}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_revenue_value}], :base=>"ConversionTracker"}, :ConversionTrackerStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_conversion_events}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_value}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:most_recent_conversion_date}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_converted_clicks}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :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}]}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
|
14
|
+
CONVERSIONTRACKERSERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return CONVERSIONTRACKERSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return CONVERSIONTRACKERSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return CONVERSIONTRACKERSERVICE_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:31.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/customer_sync_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module CustomerSyncService
|
12
|
+
class CustomerSyncService < AdsCommon::SavonService
|
13
|
+
def initialize(api, endpoint)
|
14
|
+
namespace = 'https://adwords.google.com/api/adwords/ch/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 CustomerSyncServiceRegistry
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_module()
|
29
|
+
return AdwordsApi::V201109::CustomerSyncService
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
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:31.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module CustomerSyncService
|
11
|
+
class CustomerSyncServiceRegistry
|
12
|
+
CUSTOMERSYNCSERVICE_METHODS = {:get=>{:input=>[{:type=>"CustomerSyncSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"CustomerChangeData", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
|
13
|
+
CUSTOMERSYNCSERVICE_TYPES = {:CustomerChangeData=>{:fields=>[{:type=>"CampaignChangeData", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:changed_campaigns}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:last_change_timestamp}]}, :CustomerSyncSelector=>{:fields=>[{:type=>"DateTimeRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_time_range}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:campaign_ids}]}, :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}, :DateTimeRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}], :ns=>0}, :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}, :AdGroupChangeData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"ChangeStatus", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_change_status}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:changed_ads}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:changed_criteria}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:deleted_criteria}]}, :CampaignChangeData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"ChangeStatus", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_change_status}, {:type=>"AdGroupChangeData", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:changed_ad_groups}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:added_campaign_criteria}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:deleted_campaign_criteria}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:added_ad_extensions}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:deleted_ad_extensions}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_targeting_changed}]}}
|
14
|
+
CUSTOMERSYNCSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201109"]
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return CUSTOMERSYNCSERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return CUSTOMERSYNCSERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return CUSTOMERSYNCSERVICE_NAMESPACES[index]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Indicates that this instance is a subtype of ApplicationException.
|
30
|
+
# Although this field is returned in the response, it is ignored on input
|
31
|
+
# and cannot be selected. Specify xsi:type instead.
|
32
|
+
class ApplicationException < AdwordsApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
attr_reader :application_exception_type # string
|
35
|
+
end
|
36
|
+
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
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:37:56.
|
7
|
+
|
8
|
+
require 'ads_common/savon_service'
|
9
|
+
require 'adwords_api/v201109/data_service_registry'
|
10
|
+
|
11
|
+
module AdwordsApi; module V201109; module DataService
|
12
|
+
class DataService < 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_ad_group_bid_landscape(*args, &block)
|
19
|
+
return execute_action('get_ad_group_bid_landscape', args, &block)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_criterion_bid_landscape(*args, &block)
|
23
|
+
return execute_action('get_criterion_bid_landscape', args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def get_service_registry()
|
29
|
+
return DataServiceRegistry
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_module()
|
33
|
+
return AdwordsApi::V201109::DataService
|
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:56.
|
7
|
+
|
8
|
+
require 'adwords_api/errors'
|
9
|
+
|
10
|
+
module AdwordsApi; module V201109; module DataService
|
11
|
+
class DataServiceRegistry
|
12
|
+
DATASERVICE_METHODS = {:get_ad_group_bid_landscape=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"AdGroupBidLandscapePage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_ad_group_bid_landscape_response"}}, :get_criterion_bid_landscape=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"CriterionBidLandscapePage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_criterion_bid_landscape_response"}}}
|
13
|
+
DATASERVICE_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}]}, :AdGroupBidLandscapePage=>{:fields=>[{:type=>"AdGroupBidLandscape", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"NoStatsPage"}, :DataEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:data_entry_type}], :abstract=>true}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :AdGroupBidLandscape=>{:fields=>[{:type=>"AdGroupBidLandscape.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:landscape_current}], :base=>"BidLandscape"}, :CriterionBidLandscapePage=>{:fields=>[{:type=>"CriterionBidLandscape", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"NoStatsPage"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :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}]}, :BidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"BidLandscape.LandscapePoint", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:landscape_points}], :abstract=>true, :base=>"DataEntry"}, :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}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :CriterionBidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_id}], :base=>"BidLandscape"}, :"BidLandscape.LandscapePoint"=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:bid}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:marginal_cpc}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :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}]}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
|
14
|
+
DATASERVICE_NAMESPACES = []
|
15
|
+
|
16
|
+
def self.get_method_signature(method_name)
|
17
|
+
return DATASERVICE_METHODS[method_name.to_sym]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.get_type_signature(type_name)
|
21
|
+
return DATASERVICE_TYPES[type_name.to_sym]
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_namespace(index)
|
25
|
+
return DATASERVICE_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
|