google-adwords-api 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/README +3 -3
- data/Rakefile +3 -3
- data/examples/v201109/{create_account.rb → account_management/create_account.rb} +2 -1
- data/examples/v201109/{get_campaign_alerts.rb → account_management/get_account_alerts.rb} +38 -21
- data/examples/v201109/{get_all_account_changes.rb → account_management/get_account_changes.rb} +40 -39
- data/examples/v201109/{get_account_hierarchy.rb → account_management/get_account_hierarchy.rb} +2 -1
- data/examples/v201109/{get_client_customer_id.rb → account_management/get_client_customer_id.rb} +2 -1
- data/examples/v201109/{get_unit_count.rb → account_management/get_client_unit_usage.rb} +15 -7
- data/examples/v201109/{add_ad_group.rb → basic_operations/add_ad_group.rb} +2 -1
- data/examples/v201109/{add_campaign.rb → basic_operations/add_campaign.rb} +2 -1
- data/examples/v201109/{add_ad_group_criteria.rb → basic_operations/add_keywords.rb} +32 -37
- data/examples/{v200909/update_ad.rb → v201109/basic_operations/add_text_ads.rb} +41 -25
- data/examples/v201109/{delete_ad.rb → basic_operations/delete_ad.rb} +5 -4
- data/examples/v201109/{delete_ad_group.rb → basic_operations/delete_ad_group.rb} +34 -8
- data/examples/v201109/{delete_campaign.rb → basic_operations/delete_campaign.rb} +32 -6
- data/examples/v201109/{delete_ad_group_criterion.rb → basic_operations/delete_keyword.rb} +15 -10
- data/examples/v201109/{get_all_ad_groups.rb → basic_operations/get_ad_groups.rb} +32 -18
- data/examples/v201109/{get_all_campaigns.rb → basic_operations/get_campaigns.rb} +31 -14
- data/examples/v201109/{get_all_active_ad_group_criteria.rb → basic_operations/get_keywords.rb} +41 -34
- data/examples/v201109/{get_all_ads.rb → basic_operations/get_text_ads.rb} +39 -22
- data/examples/v201109/{update_ad.rb → basic_operations/pause_ad.rb} +9 -10
- data/examples/v201109/{update_ad_group.rb → basic_operations/update_ad_group.rb} +2 -1
- data/examples/v201109/{update_campaign.rb → basic_operations/update_campaign.rb} +2 -1
- data/examples/v201109/{update_ad_group_criterion.rb → basic_operations/update_keyword.rb} +10 -9
- data/examples/v201109/{add_experiment.rb → campaign_management/add_experiment.rb} +4 -3
- data/examples/v201109/{perform_mutate_job.rb → campaign_management/add_keywords_in_bulk.rb} +17 -43
- data/examples/v201109/{add_campaign_ad_extension.rb → campaign_management/add_location_extension.rb} +28 -37
- data/examples/v201109/{add_ad_extension_override.rb → campaign_management/add_location_extension_override.rb} +12 -10
- data/examples/v201109/{get_all_disapproved_ads.rb → campaign_management/get_all_disapproved_ads.rb} +3 -2
- data/examples/v201109/{promote_experiment.rb → campaign_management/promote_experiment.rb} +4 -4
- data/examples/v201109/{set_ad_params.rb → campaign_management/set_ad_parameters.rb} +7 -7
- data/examples/{v201003/delete_ad.rb → v201109/campaign_management/validate_text_ad.rb} +40 -16
- data/examples/v201109/{handle_partial_failures.rb → error_handling/handle_partial_failures.rb} +2 -1
- data/examples/v201109/{handle_policy_violation_error.rb → error_handling/handle_policy_violation_error.rb} +2 -1
- data/examples/v201109/{handle_second_factor.rb → error_handling/handle_two_factor_authorization_error.rb} +5 -4
- data/examples/v201109/{get_all_images.rb → misc/get_all_images_and_videos.rb} +40 -20
- data/examples/v201109/{upload_image.rb → misc/upload_image.rb} +2 -1
- data/examples/v201109/{oauth_handling.rb → misc/use_oauth.rb} +10 -7
- data/examples/v201109/{get_traffic_estimates.rb → optimization/estimate_keyword_traffic.rb} +4 -3
- data/examples/v201109/{get_criterion_bid_landscape.rb → optimization/get_keyword_bid_simulations.rb} +21 -20
- data/examples/v201109/{get_related_keywords.rb → optimization/get_keyword_ideas.rb} +6 -5
- data/examples/v201109/{get_keyword_opportunities.rb → optimization/get_keyword_opportunities.rb} +2 -1
- data/examples/v201109/{get_related_placements.rb → optimization/get_placement_ideas.rb} +5 -4
- data/examples/v201109/{add_user_list.rb → remarketing/add_audience.rb} +6 -5
- data/examples/v201109/{add_conversion.rb → remarketing/add_conversion_tracker.rb} +8 -7
- data/examples/v201109/{download_adhoc_report.rb → reporting/download_criteria_report.rb} +19 -17
- data/examples/v201109/{download_report.rb → reporting/download_defined_report.rb} +7 -5
- data/examples/v201109/{get_all_report_definitions.rb → reporting/get_defined_reports.rb} +7 -6
- data/examples/v201109/{get_report_fields.rb → reporting/get_report_fields.rb} +2 -1
- data/examples/v201109/{parallel_report_download.rb → reporting/parallel_report_download.rb} +2 -1
- data/examples/v201109/{add_campaign_targeting_criteria.rb → targeting/add_campaign_targeting_criteria.rb} +22 -4
- data/examples/v201109/{add_negative_campaign_criterion.rb → targeting/get_campaign_targeting_criteria.rb} +43 -26
- data/examples/v201109/{get_all_carriers.rb → targeting/get_targetable_languages_and_carriers.rb} +19 -4
- data/examples/v201109/{get_location_criteria.rb → targeting/lookup_location.rb} +4 -3
- data/lib/adwords_api.rb +2 -2
- data/lib/adwords_api/api_config.rb +3 -130
- data/lib/adwords_api/client_login_header_handler.rb +1 -1
- data/lib/adwords_api/credential_handler.rb +2 -2
- data/lib/adwords_api/errors.rb +2 -2
- data/lib/adwords_api/extensions.rb +3 -2
- data/lib/adwords_api/report_utils.rb +1 -1
- data/lib/adwords_api/utils.rb +2 -2
- data/lib/adwords_api/v13_login_handler.rb +1 -1
- data/lib/adwords_api/v201109/ad_extension_override_service.rb +10 -8
- data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/ad_group_ad_service.rb +10 -8
- data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/ad_group_criterion_service.rb +10 -8
- data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/ad_group_service.rb +10 -8
- data/lib/adwords_api/v201109/ad_group_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/ad_param_service.rb +10 -8
- data/lib/adwords_api/v201109/ad_param_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/alert_service.rb +6 -4
- data/lib/adwords_api/v201109/alert_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +10 -8
- data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/bulk_opportunity_service.rb +6 -4
- data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +10 -8
- data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/campaign_criterion_service.rb +10 -8
- data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/campaign_service.rb +10 -8
- data/lib/adwords_api/v201109/campaign_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/campaign_target_service.rb +10 -8
- data/lib/adwords_api/v201109/campaign_target_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/constant_data_service.rb +6 -4
- data/lib/adwords_api/v201109/constant_data_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/conversion_tracker_service.rb +10 -8
- data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/create_account_service.rb +6 -4
- data/lib/adwords_api/v201109/create_account_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/customer_sync_service.rb +6 -4
- data/lib/adwords_api/v201109/customer_sync_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/data_service.rb +10 -8
- data/lib/adwords_api/v201109/data_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/experiment_service.rb +10 -8
- data/lib/adwords_api/v201109/experiment_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/geo_location_service.rb +6 -4
- data/lib/adwords_api/v201109/geo_location_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/info_service.rb +6 -4
- data/lib/adwords_api/v201109/info_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/location_criterion_service.rb +6 -4
- data/lib/adwords_api/v201109/location_criterion_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/media_service.rb +10 -8
- data/lib/adwords_api/v201109/media_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/mutate_job_service.rb +10 -8
- data/lib/adwords_api/v201109/mutate_job_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/report_definition_service.rb +10 -8
- data/lib/adwords_api/v201109/report_definition_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/serviced_account_service.rb +6 -4
- data/lib/adwords_api/v201109/serviced_account_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/targeting_idea_service.rb +10 -8
- data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/traffic_estimator_service.rb +6 -4
- data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +8 -6
- data/lib/adwords_api/v201109/user_list_service.rb +10 -8
- data/lib/adwords_api/v201109/user_list_service_registry.rb +8 -6
- data/test/adwords_api/test_api_config.rb +2 -7
- data/test/adwords_api/test_report_utils.rb +2 -1
- data/test/adwords_api/test_utils.rb +1 -0
- data/test/bugs/test_issue_00000031.rb +2 -1
- metadata +116 -481
- data/examples/v200909/add_ad_extension_override.rb +0 -82
- data/examples/v200909/add_ad_group.rb +0 -89
- data/examples/v200909/add_ad_group_criteria.rb +0 -108
- data/examples/v200909/add_ads.rb +0 -121
- data/examples/v200909/add_campaign.rb +0 -92
- data/examples/v200909/add_campaign_ad_extension.rb +0 -121
- data/examples/v200909/add_negative_campaign_criterion.rb +0 -87
- data/examples/v200909/check_campaigns.rb +0 -123
- data/examples/v200909/delete_ad.rb +0 -85
- data/examples/v200909/delete_ad_group.rb +0 -77
- data/examples/v200909/delete_ad_group_criterion.rb +0 -86
- data/examples/v200909/delete_campaign.rb +0 -78
- data/examples/v200909/get_all_active_ad_group_criteria.rb +0 -84
- data/examples/v200909/get_all_ad_extension_overrides.rb +0 -82
- data/examples/v200909/get_all_ad_group_criteria.rb +0 -82
- data/examples/v200909/get_all_ad_groups.rb +0 -79
- data/examples/v200909/get_all_ad_params.rb +0 -80
- data/examples/v200909/get_all_ads.rb +0 -79
- data/examples/v200909/get_all_campaign_ad_extensions.rb +0 -81
- data/examples/v200909/get_all_campaign_targets.rb +0 -74
- data/examples/v200909/get_all_campaigns.rb +0 -74
- data/examples/v200909/get_all_disapproved_ads.rb +0 -85
- data/examples/v200909/get_all_paused_campaigns.rb +0 -77
- data/examples/v200909/get_conversion_optimizer_eligibility.rb +0 -103
- data/examples/v200909/get_geo_location_info.rb +0 -99
- data/examples/v200909/get_method_cost.rb +0 -87
- data/examples/v200909/get_operation_count.rb +0 -79
- data/examples/v200909/get_related_keywords.rb +0 -108
- data/examples/v200909/get_related_placements.rb +0 -107
- data/examples/v200909/get_total_usage_units_per_month.rb +0 -74
- data/examples/v200909/get_unit_count.rb +0 -79
- data/examples/v200909/perform_bulk_mutate_job.rb +0 -212
- data/examples/v200909/set_ad_params.rb +0 -115
- data/examples/v200909/set_campaign_targets.rb +0 -116
- data/examples/v200909/update_ad_group.rb +0 -81
- data/examples/v200909/update_ad_group_criterion.rb +0 -99
- data/examples/v200909/update_campaign.rb +0 -84
- data/examples/v201003/add_ad_extension_override.rb +0 -82
- data/examples/v201003/add_ad_group.rb +0 -89
- data/examples/v201003/add_ad_group_criteria.rb +0 -108
- data/examples/v201003/add_ads.rb +0 -174
- data/examples/v201003/add_campaign.rb +0 -92
- data/examples/v201003/add_campaign_ad_extension.rb +0 -121
- data/examples/v201003/add_keywords_performance_report_definition.rb +0 -99
- data/examples/v201003/add_negative_campaign_criterion.rb +0 -87
- data/examples/v201003/check_campaigns.rb +0 -123
- data/examples/v201003/delete_ad_group.rb +0 -77
- data/examples/v201003/delete_ad_group_criterion.rb +0 -86
- data/examples/v201003/delete_campaign.rb +0 -78
- data/examples/v201003/download_report.rb +0 -67
- data/examples/v201003/get_all_active_ad_group_criteria.rb +0 -84
- data/examples/v201003/get_all_ad_extension_overrides.rb +0 -82
- data/examples/v201003/get_all_ad_group_criteria.rb +0 -82
- data/examples/v201003/get_all_ad_groups.rb +0 -79
- data/examples/v201003/get_all_ad_params.rb +0 -80
- data/examples/v201003/get_all_ads.rb +0 -82
- data/examples/v201003/get_all_campaign_ad_extensions.rb +0 -81
- data/examples/v201003/get_all_campaign_targets.rb +0 -74
- data/examples/v201003/get_all_campaigns.rb +0 -74
- data/examples/v201003/get_all_disapproved_ads.rb +0 -85
- data/examples/v201003/get_all_images.rb +0 -80
- data/examples/v201003/get_all_paused_campaigns.rb +0 -77
- data/examples/v201003/get_all_report_definitions.rb +0 -75
- data/examples/v201003/get_all_videos.rb +0 -76
- data/examples/v201003/get_conversion_optimizer_eligibility.rb +0 -103
- data/examples/v201003/get_criterion_bid_landscape.rb +0 -96
- data/examples/v201003/get_geo_location_info.rb +0 -99
- data/examples/v201003/get_method_cost.rb +0 -87
- data/examples/v201003/get_operation_count.rb +0 -79
- data/examples/v201003/get_related_keywords.rb +0 -108
- data/examples/v201003/get_related_placements.rb +0 -107
- data/examples/v201003/get_report_fields.rb +0 -72
- data/examples/v201003/get_total_usage_units_per_month.rb +0 -74
- data/examples/v201003/get_unit_count.rb +0 -79
- data/examples/v201003/perform_bulk_mutate_job.rb +0 -212
- data/examples/v201003/set_ad_params.rb +0 -115
- data/examples/v201003/set_campaign_targets.rb +0 -116
- data/examples/v201003/update_ad.rb +0 -86
- data/examples/v201003/update_ad_group.rb +0 -81
- data/examples/v201003/update_ad_group_criterion.rb +0 -99
- data/examples/v201003/update_campaign.rb +0 -83
- data/examples/v201003/upload_image.rb +0 -90
- data/examples/v201008/add_ad_extension_override.rb +0 -82
- data/examples/v201008/add_ad_group.rb +0 -89
- data/examples/v201008/add_ad_group_criteria.rb +0 -108
- data/examples/v201008/add_ads.rb +0 -174
- data/examples/v201008/add_campaign.rb +0 -92
- data/examples/v201008/add_campaign_ad_extension.rb +0 -121
- data/examples/v201008/add_experiment.rb +0 -153
- data/examples/v201008/add_keywords_performance_report_definition.rb +0 -99
- data/examples/v201008/add_negative_campaign_criterion.rb +0 -87
- data/examples/v201008/add_user_list.rb +0 -87
- data/examples/v201008/check_campaigns.rb +0 -123
- data/examples/v201008/delete_ad.rb +0 -85
- data/examples/v201008/delete_ad_group.rb +0 -77
- data/examples/v201008/delete_ad_group_criterion.rb +0 -86
- data/examples/v201008/delete_bulk_mutate_job.rb +0 -87
- data/examples/v201008/delete_campaign.rb +0 -78
- data/examples/v201008/delete_experiment.rb +0 -78
- data/examples/v201008/delete_user_list.rb +0 -78
- data/examples/v201008/download_report.rb +0 -67
- data/examples/v201008/get_account_hierarchy.rb +0 -101
- data/examples/v201008/get_all_account_changes.rb +0 -135
- data/examples/v201008/get_all_active_ad_group_criteria.rb +0 -84
- data/examples/v201008/get_all_ad_extension_overrides.rb +0 -82
- data/examples/v201008/get_all_ad_group_criteria.rb +0 -82
- data/examples/v201008/get_all_ad_groups.rb +0 -79
- data/examples/v201008/get_all_ad_params.rb +0 -80
- data/examples/v201008/get_all_ads.rb +0 -82
- data/examples/v201008/get_all_campaign_ad_extensions.rb +0 -81
- data/examples/v201008/get_all_campaign_targets.rb +0 -74
- data/examples/v201008/get_all_campaigns.rb +0 -74
- data/examples/v201008/get_all_disapproved_ads.rb +0 -85
- data/examples/v201008/get_all_experiments.rb +0 -84
- data/examples/v201008/get_all_images.rb +0 -80
- data/examples/v201008/get_all_paused_campaigns.rb +0 -77
- data/examples/v201008/get_all_report_definitions.rb +0 -75
- data/examples/v201008/get_all_user_lists.rb +0 -75
- data/examples/v201008/get_all_videos.rb +0 -76
- data/examples/v201008/get_bulk_mutate_job.rb +0 -97
- data/examples/v201008/get_campaign_alerts.rb +0 -95
- data/examples/v201008/get_conversion_optimizer_eligibility.rb +0 -88
- data/examples/v201008/get_criterion_bid_landscape.rb +0 -96
- data/examples/v201008/get_geo_location_info.rb +0 -99
- data/examples/v201008/get_method_cost.rb +0 -87
- data/examples/v201008/get_operation_count.rb +0 -79
- data/examples/v201008/get_related_keywords.rb +0 -108
- data/examples/v201008/get_related_placements.rb +0 -107
- data/examples/v201008/get_report_fields.rb +0 -72
- data/examples/v201008/get_total_usage_units_per_month.rb +0 -74
- data/examples/v201008/get_traffic_estimates.rb +0 -147
- data/examples/v201008/get_unit_count.rb +0 -79
- data/examples/v201008/handle_partial_failures.rb +0 -127
- data/examples/v201008/handle_policy_violation_error.rb +0 -138
- data/examples/v201008/perform_bulk_mutate_job.rb +0 -212
- data/examples/v201008/promote_experiment.rb +0 -79
- data/examples/v201008/set_ad_params.rb +0 -115
- data/examples/v201008/set_campaign_targets.rb +0 -116
- data/examples/v201008/update_ad.rb +0 -86
- data/examples/v201008/update_ad_group.rb +0 -81
- data/examples/v201008/update_ad_group_criterion.rb +0 -99
- data/examples/v201008/update_campaign.rb +0 -84
- data/examples/v201008/update_user_list.rb +0 -82
- data/examples/v201008/upload_image.rb +0 -90
- data/examples/v201101/add_ad_extension_override.rb +0 -82
- data/examples/v201101/add_ad_group.rb +0 -89
- data/examples/v201101/add_ad_group_criteria.rb +0 -108
- data/examples/v201101/add_ads.rb +0 -174
- data/examples/v201101/add_campaign.rb +0 -99
- data/examples/v201101/add_campaign_ad_extension.rb +0 -121
- data/examples/v201101/add_conversion.rb +0 -88
- data/examples/v201101/add_experiment.rb +0 -153
- data/examples/v201101/add_keywords_performance_report_definition.rb +0 -99
- data/examples/v201101/add_negative_campaign_criterion.rb +0 -87
- data/examples/v201101/add_user_list.rb +0 -113
- data/examples/v201101/check_campaigns.rb +0 -123
- data/examples/v201101/delete_ad.rb +0 -85
- data/examples/v201101/delete_ad_group.rb +0 -77
- data/examples/v201101/delete_ad_group_criterion.rb +0 -86
- data/examples/v201101/delete_bulk_mutate_job.rb +0 -87
- data/examples/v201101/delete_campaign.rb +0 -78
- data/examples/v201101/delete_experiment.rb +0 -78
- data/examples/v201101/delete_user_list.rb +0 -78
- data/examples/v201101/download_report.rb +0 -67
- data/examples/v201101/get_account_hierarchy.rb +0 -102
- data/examples/v201101/get_ad_group_bid_landscape.rb +0 -94
- data/examples/v201101/get_all_account_changes.rb +0 -137
- data/examples/v201101/get_all_active_ad_group_criteria.rb +0 -97
- data/examples/v201101/get_all_ad_extension_overrides.rb +0 -82
- data/examples/v201101/get_all_ad_group_criteria.rb +0 -88
- data/examples/v201101/get_all_ad_groups.rb +0 -85
- data/examples/v201101/get_all_ad_params.rb +0 -80
- data/examples/v201101/get_all_ads.rb +0 -90
- data/examples/v201101/get_all_campaign_ad_extensions.rb +0 -87
- data/examples/v201101/get_all_campaign_targets.rb +0 -74
- data/examples/v201101/get_all_campaigns.rb +0 -77
- data/examples/v201101/get_all_conversions.rb +0 -79
- data/examples/v201101/get_all_disapproved_ads.rb +0 -93
- data/examples/v201101/get_all_experiments.rb +0 -89
- data/examples/v201101/get_all_images.rb +0 -82
- data/examples/v201101/get_all_paused_campaigns.rb +0 -83
- data/examples/v201101/get_all_report_definitions.rb +0 -75
- data/examples/v201101/get_all_user_lists.rb +0 -78
- data/examples/v201101/get_all_videos.rb +0 -78
- data/examples/v201101/get_bulk_mutate_job.rb +0 -97
- data/examples/v201101/get_campaign_alerts.rb +0 -95
- data/examples/v201101/get_conversion_optimizer_eligibility.rb +0 -93
- data/examples/v201101/get_criterion_bid_landscape.rb +0 -93
- data/examples/v201101/get_geo_location_info.rb +0 -99
- data/examples/v201101/get_keyword_opportunities.rb +0 -95
- data/examples/v201101/get_method_cost.rb +0 -87
- data/examples/v201101/get_operation_count.rb +0 -79
- data/examples/v201101/get_related_keywords.rb +0 -108
- data/examples/v201101/get_related_placements.rb +0 -107
- data/examples/v201101/get_report_fields.rb +0 -72
- data/examples/v201101/get_total_usage_units_per_month.rb +0 -74
- data/examples/v201101/get_traffic_estimates.rb +0 -148
- data/examples/v201101/get_unit_count.rb +0 -79
- data/examples/v201101/handle_partial_failures.rb +0 -127
- data/examples/v201101/handle_policy_violation_error.rb +0 -138
- data/examples/v201101/handle_second_factor.rb +0 -87
- data/examples/v201101/oauth_handling.rb +0 -95
- data/examples/v201101/perform_bulk_mutate_job.rb +0 -212
- data/examples/v201101/promote_experiment.rb +0 -79
- data/examples/v201101/set_ad_params.rb +0 -115
- data/examples/v201101/set_campaign_targets.rb +0 -102
- data/examples/v201101/update_ad.rb +0 -86
- data/examples/v201101/update_ad_group.rb +0 -81
- data/examples/v201101/update_ad_group_criterion.rb +0 -99
- data/examples/v201101/update_campaign.rb +0 -84
- data/examples/v201101/update_conversion.rb +0 -87
- data/examples/v201101/update_user_list.rb +0 -82
- data/examples/v201101/upload_image.rb +0 -90
- data/examples/v201109/add_ads.rb +0 -174
- data/examples/v201109/check_campaigns.rb +0 -123
- data/examples/v201109/delete_bulk_mutate_job.rb +0 -87
- data/examples/v201109/delete_experiment.rb +0 -78
- data/examples/v201109/delete_user_list.rb +0 -78
- data/examples/v201109/get_ad_group_bid_landscape.rb +0 -94
- data/examples/v201109/get_all_ad_extension_overrides.rb +0 -82
- data/examples/v201109/get_all_ad_group_criteria.rb +0 -90
- data/examples/v201109/get_all_ad_params.rb +0 -86
- data/examples/v201109/get_all_campaign_ad_extensions.rb +0 -87
- data/examples/v201109/get_all_campaign_targets.rb +0 -74
- data/examples/v201109/get_all_conversions.rb +0 -79
- data/examples/v201109/get_all_experiments.rb +0 -89
- data/examples/v201109/get_all_languages.rb +0 -73
- data/examples/v201109/get_all_paused_campaigns.rb +0 -83
- data/examples/v201109/get_all_user_lists.rb +0 -78
- data/examples/v201109/get_all_videos.rb +0 -78
- data/examples/v201109/get_bulk_mutate_job.rb +0 -97
- data/examples/v201109/get_conversion_optimizer_eligibility.rb +0 -93
- data/examples/v201109/get_geo_location_info.rb +0 -99
- data/examples/v201109/get_method_cost.rb +0 -87
- data/examples/v201109/get_operation_count.rb +0 -79
- data/examples/v201109/get_total_usage_units_per_month.rb +0 -74
- data/examples/v201109/oauth_report_download.rb +0 -97
- data/examples/v201109/perform_bulk_mutate_job.rb +0 -212
- data/examples/v201109/update_conversion.rb +0 -87
- data/examples/v201109/update_user_list.rb +0 -82
- data/lib/adwords_api/v13/account_service.rb +0 -48
- data/lib/adwords_api/v13/account_service_registry.rb +0 -41
- data/lib/adwords_api/v13/report_service.rb +0 -65
- data/lib/adwords_api/v13/report_service_registry.rb +0 -41
- data/lib/adwords_api/v200909/ad_extension_override_service.rb +0 -36
- data/lib/adwords_api/v200909/ad_extension_override_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/ad_group_ad_service.rb +0 -36
- data/lib/adwords_api/v200909/ad_group_ad_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/ad_group_criterion_service.rb +0 -36
- data/lib/adwords_api/v200909/ad_group_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/ad_group_service.rb +0 -36
- data/lib/adwords_api/v200909/ad_group_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/ad_param_service.rb +0 -36
- data/lib/adwords_api/v200909/ad_param_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/bulk_mutate_job_service.rb +0 -36
- data/lib/adwords_api/v200909/bulk_mutate_job_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/campaign_ad_extension_service.rb +0 -36
- data/lib/adwords_api/v200909/campaign_ad_extension_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/campaign_criterion_service.rb +0 -36
- data/lib/adwords_api/v200909/campaign_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/campaign_service.rb +0 -36
- data/lib/adwords_api/v200909/campaign_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/campaign_target_service.rb +0 -36
- data/lib/adwords_api/v200909/campaign_target_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/geo_location_service.rb +0 -32
- data/lib/adwords_api/v200909/geo_location_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/info_service.rb +0 -32
- data/lib/adwords_api/v200909/info_service_registry.rb +0 -44
- data/lib/adwords_api/v200909/targeting_idea_service.rb +0 -36
- data/lib/adwords_api/v200909/targeting_idea_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/ad_extension_override_service.rb +0 -36
- data/lib/adwords_api/v201003/ad_extension_override_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/ad_group_ad_service.rb +0 -36
- data/lib/adwords_api/v201003/ad_group_ad_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/ad_group_criterion_service.rb +0 -36
- data/lib/adwords_api/v201003/ad_group_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/ad_group_service.rb +0 -36
- data/lib/adwords_api/v201003/ad_group_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/ad_param_service.rb +0 -36
- data/lib/adwords_api/v201003/ad_param_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/bid_landscape_service.rb +0 -32
- data/lib/adwords_api/v201003/bid_landscape_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/bulk_mutate_job_service.rb +0 -36
- data/lib/adwords_api/v201003/bulk_mutate_job_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/campaign_ad_extension_service.rb +0 -36
- data/lib/adwords_api/v201003/campaign_ad_extension_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/campaign_criterion_service.rb +0 -36
- data/lib/adwords_api/v201003/campaign_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/campaign_service.rb +0 -36
- data/lib/adwords_api/v201003/campaign_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/campaign_target_service.rb +0 -36
- data/lib/adwords_api/v201003/campaign_target_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/geo_location_service.rb +0 -32
- data/lib/adwords_api/v201003/geo_location_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/info_service.rb +0 -32
- data/lib/adwords_api/v201003/info_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/media_service.rb +0 -36
- data/lib/adwords_api/v201003/media_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/report_definition_service.rb +0 -49
- data/lib/adwords_api/v201003/report_definition_service_registry.rb +0 -44
- data/lib/adwords_api/v201003/targeting_idea_service.rb +0 -36
- data/lib/adwords_api/v201003/targeting_idea_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/ad_extension_override_service.rb +0 -36
- data/lib/adwords_api/v201008/ad_extension_override_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/ad_group_ad_service.rb +0 -36
- data/lib/adwords_api/v201008/ad_group_ad_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/ad_group_criterion_service.rb +0 -36
- data/lib/adwords_api/v201008/ad_group_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/ad_group_service.rb +0 -36
- data/lib/adwords_api/v201008/ad_group_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/ad_param_service.rb +0 -36
- data/lib/adwords_api/v201008/ad_param_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/alert_service.rb +0 -32
- data/lib/adwords_api/v201008/alert_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/bid_landscape_service.rb +0 -32
- data/lib/adwords_api/v201008/bid_landscape_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/bulk_mutate_job_service.rb +0 -36
- data/lib/adwords_api/v201008/bulk_mutate_job_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/campaign_ad_extension_service.rb +0 -36
- data/lib/adwords_api/v201008/campaign_ad_extension_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/campaign_criterion_service.rb +0 -36
- data/lib/adwords_api/v201008/campaign_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/campaign_service.rb +0 -36
- data/lib/adwords_api/v201008/campaign_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/campaign_target_service.rb +0 -36
- data/lib/adwords_api/v201008/campaign_target_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/customer_sync_service.rb +0 -32
- data/lib/adwords_api/v201008/customer_sync_service_registry.rb +0 -45
- data/lib/adwords_api/v201008/experiment_service.rb +0 -36
- data/lib/adwords_api/v201008/experiment_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/geo_location_service.rb +0 -32
- data/lib/adwords_api/v201008/geo_location_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/info_service.rb +0 -32
- data/lib/adwords_api/v201008/info_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/media_service.rb +0 -36
- data/lib/adwords_api/v201008/media_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/report_definition_service.rb +0 -49
- data/lib/adwords_api/v201008/report_definition_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/serviced_account_service.rb +0 -32
- data/lib/adwords_api/v201008/serviced_account_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/targeting_idea_service.rb +0 -36
- data/lib/adwords_api/v201008/targeting_idea_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/traffic_estimator_service.rb +0 -32
- data/lib/adwords_api/v201008/traffic_estimator_service_registry.rb +0 -44
- data/lib/adwords_api/v201008/user_list_service.rb +0 -36
- data/lib/adwords_api/v201008/user_list_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/ad_extension_override_service.rb +0 -36
- data/lib/adwords_api/v201101/ad_extension_override_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/ad_group_ad_service.rb +0 -36
- data/lib/adwords_api/v201101/ad_group_ad_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/ad_group_criterion_service.rb +0 -36
- data/lib/adwords_api/v201101/ad_group_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/ad_group_service.rb +0 -36
- data/lib/adwords_api/v201101/ad_group_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/ad_param_service.rb +0 -36
- data/lib/adwords_api/v201101/ad_param_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/alert_service.rb +0 -32
- data/lib/adwords_api/v201101/alert_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/bulk_mutate_job_service.rb +0 -36
- data/lib/adwords_api/v201101/bulk_mutate_job_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/bulk_opportunity_service.rb +0 -32
- data/lib/adwords_api/v201101/bulk_opportunity_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/campaign_ad_extension_service.rb +0 -36
- data/lib/adwords_api/v201101/campaign_ad_extension_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/campaign_criterion_service.rb +0 -36
- data/lib/adwords_api/v201101/campaign_criterion_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/campaign_service.rb +0 -36
- data/lib/adwords_api/v201101/campaign_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/campaign_target_service.rb +0 -36
- data/lib/adwords_api/v201101/campaign_target_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/conversion_tracker_service.rb +0 -36
- data/lib/adwords_api/v201101/conversion_tracker_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/customer_sync_service.rb +0 -32
- data/lib/adwords_api/v201101/customer_sync_service_registry.rb +0 -45
- data/lib/adwords_api/v201101/data_service.rb +0 -36
- data/lib/adwords_api/v201101/data_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/experiment_service.rb +0 -36
- data/lib/adwords_api/v201101/experiment_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/geo_location_service.rb +0 -32
- data/lib/adwords_api/v201101/geo_location_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/info_service.rb +0 -32
- data/lib/adwords_api/v201101/info_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/media_service.rb +0 -36
- data/lib/adwords_api/v201101/media_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/report_definition_service.rb +0 -49
- data/lib/adwords_api/v201101/report_definition_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/serviced_account_service.rb +0 -32
- data/lib/adwords_api/v201101/serviced_account_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/targeting_idea_service.rb +0 -36
- data/lib/adwords_api/v201101/targeting_idea_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/traffic_estimator_service.rb +0 -32
- data/lib/adwords_api/v201101/traffic_estimator_service_registry.rb +0 -44
- data/lib/adwords_api/v201101/user_list_service.rb +0 -36
- data/lib/adwords_api/v201101/user_list_service_registry.rb +0 -44
@@ -1,36 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:32.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/campaign_target_service_registry'
|
10
|
-
|
11
|
-
module AdwordsApi; module V201003; module CampaignTargetService
|
12
|
-
class CampaignTargetService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://adwords.google.com/api/adwords/cm/v201003'
|
15
|
-
super(api, endpoint, namespace, :v201003)
|
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::V201003::CampaignTargetService
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end; end; end
|
@@ -1,44 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:32.
|
7
|
-
|
8
|
-
require 'adwords_api/errors'
|
9
|
-
|
10
|
-
module AdwordsApi; module V201003; module CampaignTargetService
|
11
|
-
class CampaignTargetServiceRegistry
|
12
|
-
CAMPAIGNTARGETSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"CampaignTargetSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"CampaignTargetPage", :min_occurs=>0, :max_occurs=>1}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"CampaignTargetOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"CampaignTargetReturnValue", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
-
CAMPAIGNTARGETSERVICE_TYPES = {:AdScheduleTarget=>{:fields=>[{:name=>:day_of_week, :type=>"DayOfWeek", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_minute, :type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_minute, :type=>"MinuteOfHour", :min_occurs=>0, :max_occurs=>1}, {:name=>:bid_multiplier, :type=>"double", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :Address=>{:fields=>[{:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address2, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:postal_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AgeTarget=>{:fields=>[{:name=>:age, :type=>"AgeTarget.Age", :min_occurs=>0, :max_occurs=>1}], :base=>"DemographicTarget"}, :CityTarget=>{:fields=>[{:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :CountryTarget=>{:fields=>[{:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :GenderTarget=>{:fields=>[{:name=>:gender, :type=>"GenderTarget.Gender", :min_occurs=>0, :max_occurs=>1}], :base=>"DemographicTarget"}, :GeoPoint=>{:fields=>[{:name=>:latitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:longitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :LanguageTarget=>{:fields=>[{:name=>:language_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :MetroTarget=>{:fields=>[{:name=>:metro_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :MobileCarrierTarget=>{:fields=>[{:name=>:carrier_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"MobileTarget"}, :MobilePlatformTarget=>{:fields=>[{:name=>:platform_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"MobileTarget"}, :MobileTarget=>{:fields=>[], :abstract=>true, :base=>"Target"}, :NetworkTarget=>{:fields=>[{:name=>:network_coverage_type, :type=>"NetworkCoverageType", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PlatformTarget=>{:fields=>[{:name=>:platform_type, :type=>"PlatformType", :min_occurs=>0, :max_occurs=>1}], :base=>"Target"}, :PolygonTarget=>{:fields=>[{:name=>:vertices, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"GeoTarget"}, :ProvinceTarget=>{:fields=>[{:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :ProximityTarget=>{:fields=>[{:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_distance_units, :type=>"ProximityTarget.DistanceUnits", :min_occurs=>0, :max_occurs=>1}, {:name=>:radius_in_units, :type=>"double", :min_occurs=>0, :max_occurs=>1}, {:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}, {:name=>:allow_service_of_address, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"GeoTarget"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :CampaignTargetSelector=>{:fields=>[{:name=>:campaign_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}]}, :DemographicTarget=>{:fields=>[{:name=>:bid_modifier, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Target"}, :GeoTarget=>{:fields=>[{:name=>:excluded, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :base=>"Target"}, :Target=>{:fields=>[{:name=>:target_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :AdScheduleTargetList=>{:fields=>[{:name=>:targets, :type=>"AdScheduleTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :DemographicTargetList=>{:fields=>[{:name=>:targets, :type=>"DemographicTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :GeoTargetList=>{:fields=>[{:name=>:targets, :type=>"GeoTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :LanguageTargetList=>{:fields=>[{:name=>:targets, :type=>"LanguageTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :MobileTargetList=>{:fields=>[{:name=>:targets, :type=>"MobileTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :NetworkTargetList=>{:fields=>[{:name=>:targets, :type=>"NetworkTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :PlatformTargetList=>{:fields=>[{:name=>:targets, :type=>"PlatformTarget", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"TargetList"}, :TargetList=>{:fields=>[{:name=>:campaign_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:target_list_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :CampaignTargetOperation=>{:fields=>[{:name=>:operand, :type=>"TargetList", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :CampaignTargetPage=>{:fields=>[{:name=>:entries, :type=>"TargetList", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Page"}, :CampaignTargetReturnValue=>{:fields=>[{:name=>:value, :type=>"TargetList", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ListReturnValue"}, :ListReturnValue=>{:fields=>[{:name=>:list_return_value_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :"AgeTarget.Age"=>{:fields=>[]}, :DayOfWeek=>{:fields=>[]}, :"GenderTarget.Gender"=>{:fields=>[]}, :MinuteOfHour=>{:fields=>[]}, :NetworkCoverageType=>{:fields=>[]}, :Operator=>{:fields=>[]}, :PlatformType=>{:fields=>[]}, :"ProximityTarget.DistanceUnits"=>{:fields=>[]}}
|
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
|
@@ -1,32 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:34.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/geo_location_service_registry'
|
10
|
-
|
11
|
-
module AdwordsApi; module V201003; module GeoLocationService
|
12
|
-
class GeoLocationService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://adwords.google.com/api/adwords/cm/v201003'
|
15
|
-
super(api, endpoint, namespace, :v201003)
|
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::V201003::GeoLocationService
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end; end; end
|
@@ -1,44 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:34.
|
7
|
-
|
8
|
-
require 'adwords_api/errors'
|
9
|
-
|
10
|
-
module AdwordsApi; module V201003; module GeoLocationService
|
11
|
-
class GeoLocationServiceRegistry
|
12
|
-
GEOLOCATIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"GeoLocationSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"GeoLocation", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
13
|
-
GEOLOCATIONSERVICE_TYPES = {:Address=>{:fields=>[{:name=>:street_address, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:street_address2, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:city_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:province_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:postal_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:country_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :GeoLocationSelector=>{:fields=>[{:name=>:addresses, :type=>"Address", :min_occurs=>0, :max_occurs=>:unbounded}]}, :GeoPoint=>{:fields=>[{:name=>:latitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:longitude_in_micro_degrees, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :InvalidGeoLocation=>{:fields=>[], :base=>"GeoLocation"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :GeoLocation=>{:fields=>[{:name=>:geo_point, :type=>"GeoPoint", :min_occurs=>0, :max_occurs=>1}, {:name=>:address, :type=>"Address", :min_occurs=>0, :max_occurs=>1}, {:name=>:encoded_location, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}, {:name=>:geo_location_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}}
|
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
|
@@ -1,32 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:35.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/info_service_registry'
|
10
|
-
|
11
|
-
module AdwordsApi; module V201003; module InfoService
|
12
|
-
class InfoService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://adwords.google.com/api/adwords/info/v201003'
|
15
|
-
super(api, endpoint, namespace, :v201003)
|
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::V201003::InfoService
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end; end; end
|
@@ -1,44 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:35.
|
7
|
-
|
8
|
-
require 'adwords_api/errors'
|
9
|
-
|
10
|
-
module AdwordsApi; module V201003; module InfoService
|
11
|
-
class InfoServiceRegistry
|
12
|
-
INFOSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"InfoSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"ApiUsageInfo", :min_occurs=>0, :max_occurs=>1}]}}}
|
13
|
-
INFOSERVICE_TYPES = {:DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError", :ns=>0}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Operator=>{:fields=>[], :ns=>0}, :ApiUsageRecord=>{:fields=>[{:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:cost, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :InfoSelector=>{:fields=>[{:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_emails, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:api_usage_type, :type=>"ApiUsageType", :min_occurs=>0, :max_occurs=>1}]}, :ApiUsageInfo=>{:fields=>[{:name=>:api_usage_records, :type=>"ApiUsageRecord", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:cost, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :ApiUsageType=>{:fields=>[]}}
|
14
|
-
INFOSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201003"]
|
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
|
@@ -1,36 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:36.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/media_service_registry'
|
10
|
-
|
11
|
-
module AdwordsApi; module V201003; module MediaService
|
12
|
-
class MediaService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://adwords.google.com/api/adwords/cm/v201003'
|
15
|
-
super(api, endpoint, namespace, :v201003)
|
16
|
-
end
|
17
|
-
|
18
|
-
def get(*args, &block)
|
19
|
-
return execute_action('get', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def upload(*args, &block)
|
23
|
-
return execute_action('upload', 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::V201003::MediaService
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end; end; end
|
@@ -1,44 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:36.
|
7
|
-
|
8
|
-
require 'adwords_api/errors'
|
9
|
-
|
10
|
-
module AdwordsApi; module V201003; module MediaService
|
11
|
-
class MediaServiceRegistry
|
12
|
-
MEDIASERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"MediaSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"MediaPage", :min_occurs=>0, :max_occurs=>1}]}}, :upload=>{:input=>[{:name=>:media, :type=>"Media", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"upload_response", :fields=>[{:name=>:rval, :type=>"Media", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
13
|
-
MEDIASERVICE_TYPES = {:Audio=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :Dimensions=>{:fields=>[{:name=>:width, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:height, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :EntityNotFound=>{:fields=>[{:name=>:reason, :type=>"EntityNotFound.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Image=>{:fields=>[{:name=>:data, :type=>"base64Binary", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.MediaExtendedCapabilityType", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Media.MediaExtendedCapabilityState", :min_occurs=>0, :max_occurs=>1}]}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Dimensions", :min_occurs=>0, :max_occurs=>1}]}, :Media_Size_StringMapEntry=>{:fields=>[{:name=>:key, :type=>"Media.Size", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :OperationAccessDenied=>{:fields=>[{:name=>:reason, :type=>"OperationAccessDenied.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Video=>{:fields=>[{:name=>:duration_millis, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:streaming_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:ready_to_play_on_the_web, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:industry_standard_commercial_identifier, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:advertising_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Media"}, :MediaSelector=>{:fields=>[{:name=>:media_type, :type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_sub_type, :type=>"Media.MediaSubType", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:media_reference_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:extended_capability_types, :type=>"Media.MediaExtendedCapabilityType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:extended_capability_states, :type=>"Media.MediaExtendedCapabilityState", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mime_types, :type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>:unbounded}]}, :Media=>{:fields=>[{:name=>:media_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_type_db, :type=>"Media.MediaType", :min_occurs=>0, :max_occurs=>1}, {:name=>:reference_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:dimensions, :type=>"Media_Size_DimensionsMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:urls, :type=>"Media_Size_StringMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:mime_type, :type=>"Media.MimeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:source_url, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_sub_type, :type=>"Media.MediaSubType", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:file_size, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:extended_capabilities, :type=>"Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:creation_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:media_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :MediaPage=>{:fields=>[{:name=>:media, :type=>"Media", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :"Media.MediaExtendedCapabilityState"=>{:fields=>[]}, :"Media.MediaExtendedCapabilityType"=>{:fields=>[]}, :"Media.MediaSubType"=>{:fields=>[]}, :"Media.MediaType"=>{:fields=>[]}, :"Media.MimeType"=>{:fields=>[]}, :"Media.Size"=>{:fields=>[]}}
|
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
|
@@ -1,49 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:38.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/report_definition_service_registry'
|
10
|
-
require 'adwords_api/extensions'
|
11
|
-
|
12
|
-
module AdwordsApi; module V201003; module ReportDefinitionService
|
13
|
-
class ReportDefinitionService < AdsCommon::SavonService
|
14
|
-
def initialize(api, endpoint)
|
15
|
-
namespace = 'https://adwords.google.com/api/adwords/cm/v201003'
|
16
|
-
super(api, endpoint, namespace, :v201003)
|
17
|
-
end
|
18
|
-
|
19
|
-
def get(*args, &block)
|
20
|
-
return execute_action('get', args, &block)
|
21
|
-
end
|
22
|
-
|
23
|
-
def get_report_fields(*args, &block)
|
24
|
-
return execute_action('get_report_fields', args, &block)
|
25
|
-
end
|
26
|
-
|
27
|
-
def mutate(*args, &block)
|
28
|
-
return execute_action('mutate', args, &block)
|
29
|
-
end
|
30
|
-
|
31
|
-
def download_report(*args)
|
32
|
-
return AdwordsApi::Extensions.download_report(self, args)
|
33
|
-
end
|
34
|
-
|
35
|
-
def download_report_as_file(*args)
|
36
|
-
return AdwordsApi::Extensions.download_report_as_file(self, args)
|
37
|
-
end
|
38
|
-
|
39
|
-
private
|
40
|
-
|
41
|
-
def get_service_registry()
|
42
|
-
return ReportDefinitionServiceRegistry
|
43
|
-
end
|
44
|
-
|
45
|
-
def get_module()
|
46
|
-
return AdwordsApi::V201003::ReportDefinitionService
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end; end; end
|
@@ -1,44 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:38.
|
7
|
-
|
8
|
-
require 'adwords_api/errors'
|
9
|
-
|
10
|
-
module AdwordsApi; module V201003; module ReportDefinitionService
|
11
|
-
class ReportDefinitionServiceRegistry
|
12
|
-
REPORTDEFINITIONSERVICE_METHODS = {:get=>{:input=>[{:name=>:selector, :type=>"ReportDefinitionSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"ReportDefinitionPage", :min_occurs=>0, :max_occurs=>1}]}}, :get_report_fields=>{:input=>[{:name=>:report_type, :type=>"ReportDefinition.ReportType", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_report_fields_response", :fields=>[{:name=>:rval, :type=>"ReportDefinitionField", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :mutate=>{:input=>[{:name=>:operations, :type=>"ReportDefinitionOperation", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"mutate_response", :fields=>[{:name=>:rval, :type=>"ReportDefinition", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
13
|
-
REPORTDEFINITIONSERVICE_TYPES = {:DateRange=>{:fields=>[{:name=>:min, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:max, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Predicate=>{:fields=>[{:name=>:field, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operator, :type=>"Predicate.Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ReportDefinitionField=>{:fields=>[{:name=>:field_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:field_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:enum_values, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:can_select, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:can_filter, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_email, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Selector=>{:fields=>[{:name=>:fields, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:predicates, :type=>"Predicate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:date_range, :type=>"DateRange", :min_occurs=>0, :max_occurs=>1}]}, :ReportDefinitionSelector=>{:fields=>[{:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :ReportDefinition=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:selector, :type=>"Selector", :min_occurs=>0, :max_occurs=>1}, {:name=>:report_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:report_type, :type=>"ReportDefinition.ReportType", :min_occurs=>0, :max_occurs=>1}, {:name=>:has_attachment, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:date_range_type, :type=>"ReportDefinition.DateRangeType", :min_occurs=>0, :max_occurs=>1}, {:name=>:download_format, :type=>"DownloadFormat", :min_occurs=>0, :max_occurs=>1}, {:name=>:creation_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ReportDefinitionOperation=>{:fields=>[{:name=>:operand, :type=>"ReportDefinition", :min_occurs=>0, :max_occurs=>1}], :base=>"Operation"}, :ReportDefinitionPage=>{:fields=>[{:name=>:entries, :type=>"ReportDefinition", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Operation=>{:fields=>[{:name=>:operator, :type=>"Operator", :min_occurs=>0, :max_occurs=>1}, {:name=>:operation_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :DownloadFormat=>{:fields=>[]}, :Operator=>{:fields=>[]}, :"Predicate.Operator"=>{:fields=>[]}, :"ReportDefinition.DateRangeType"=>{:fields=>[]}, :"ReportDefinition.ReportType"=>{:fields=>[]}}
|
14
|
-
REPORTDEFINITIONSERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return REPORTDEFINITIONSERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return REPORTDEFINITIONSERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return REPORTDEFINITIONSERVICE_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
|
@@ -1,36 +0,0 @@
|
|
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.6.0 on 2011-12-02 16:40:40.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'adwords_api/v201003/targeting_idea_service_registry'
|
10
|
-
|
11
|
-
module AdwordsApi; module V201003; module TargetingIdeaService
|
12
|
-
class TargetingIdeaService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://adwords.google.com/api/adwords/o/v201003'
|
15
|
-
super(api, endpoint, namespace, :v201003)
|
16
|
-
end
|
17
|
-
|
18
|
-
def get(*args, &block)
|
19
|
-
return execute_action('get', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def get_bulk_keyword_ideas(*args, &block)
|
23
|
-
return execute_action('get_bulk_keyword_ideas', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
def get_service_registry()
|
29
|
-
return TargetingIdeaServiceRegistry
|
30
|
-
end
|
31
|
-
|
32
|
-
def get_module()
|
33
|
-
return AdwordsApi::V201003::TargetingIdeaService
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end; end; end
|