google-dfp-api 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/README +4 -6
- data/dfp_api.yml +5 -1
- data/examples/{v201104/order_service/get_all_orders.rb → v201203/audience_segment_service/get_all_audience_segments.rb} +18 -17
- data/examples/{v201103 → v201203}/common/error_handling.rb +1 -1
- data/examples/{v201107 → v201203}/common/oauth_handling.rb +1 -1
- data/examples/{v201107 → v201203}/company_service/create_companies.rb +1 -1
- data/examples/{v201107 → v201203}/company_service/get_all_companies.rb +1 -1
- data/examples/{v201104 → v201203}/company_service/get_companies_by_statement.rb +1 -1
- data/examples/{v201104 → v201203}/company_service/get_company.rb +1 -1
- data/examples/{v201107 → v201203}/company_service/update_companies.rb +1 -1
- data/examples/{v201103/user_service/get_all_users.rb → v201203/content_service/get_all_content.rb} +16 -15
- data/examples/v201203/content_service/get_content_by_category.rb +135 -0
- data/examples/{v201107 → v201203}/creative_service/copy_image_creatives.rb +1 -1
- data/examples/v201203/creative_service/create_creative_from_template.rb +138 -0
- data/examples/{v201107 → v201203}/creative_service/create_creatives.rb +1 -1
- data/examples/{v201103/creative_service/create_creatives.rb → v201203/creative_service/create_custom_creative.rb} +28 -30
- data/examples/{v201103 → v201203}/creative_service/get_all_creatives.rb +1 -1
- data/examples/{v201104 → v201203}/creative_service/get_creative.rb +1 -1
- data/examples/{v201107 → v201203}/creative_service/get_creatives_by_statement.rb +1 -1
- data/examples/{v201103 → v201203}/creative_service/update_creatives.rb +1 -1
- data/examples/{v201103/inventory_service/get_all_ad_units.rb → v201203/creative_template_service/get_all_creative_templates.rb} +16 -15
- data/examples/{v201103/creative_service/get_creative.rb → v201203/creative_template_service/get_creative_template.rb} +17 -15
- data/examples/{v201107/user_service/get_users_by_statement.rb → v201203/creative_template_service/get_creative_templates_by_statement.rb} +18 -17
- data/examples/{v201107 → v201203}/custom_targeting_service/create_custom_targeting_keys_and_values.rb +28 -6
- data/examples/{v201103 → v201203}/custom_targeting_service/delete_custom_targeting_keys.rb +1 -1
- data/examples/{v201107 → v201203}/custom_targeting_service/delete_custom_targeting_values.rb +1 -1
- data/examples/{v201103 → v201203}/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +1 -1
- data/examples/{v201104 → v201203}/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +1 -1
- data/examples/{v201104 → v201203}/custom_targeting_service/get_custom_targeting_values_by_statement.rb +1 -1
- data/examples/{v201107 → v201203}/custom_targeting_service/update_custom_targeting_keys.rb +1 -1
- data/examples/{v201103 → v201203}/custom_targeting_service/update_custom_targeting_values.rb +1 -1
- data/examples/{v201104 → v201203}/forecast_service/get_forecast.rb +8 -4
- data/examples/{v201107 → v201203}/forecast_service/get_forecast_by_id.rb +1 -1
- data/examples/{v201107 → v201203}/inventory_service/create_ad_units.rb +9 -3
- data/examples/{v201103/inventory_service/create_ad_units.rb → v201203/inventory_service/create_mobile_ad_unit.rb} +27 -22
- data/examples/{v201104/inventory_service/create_ad_units.rb → v201203/inventory_service/create_video_ad_unit.rb} +35 -22
- data/examples/{v201103 → v201203}/inventory_service/deactivate_ad_units.rb +1 -1
- data/examples/{v201103 → v201203}/inventory_service/get_ad_unit.rb +1 -1
- data/examples/{v201107 → v201203}/inventory_service/get_ad_unit_sizes.rb +20 -7
- data/examples/{v201104 → v201203}/inventory_service/get_ad_units_by_statement.rb +1 -1
- data/examples/{v201104 → v201203}/inventory_service/get_all_ad_units.rb +1 -1
- data/examples/{v201104 → v201203}/inventory_service/update_ad_units.rb +1 -1
- data/examples/{v201107 → v201203}/label_service/create_labels.rb +6 -5
- data/examples/{v201107 → v201203}/label_service/deactivate_labels.rb +1 -1
- data/examples/{v201107 → v201203}/label_service/get_all_labels.rb +6 -4
- data/examples/{v201107 → v201203}/label_service/get_label.rb +5 -4
- data/examples/{v201107 → v201203}/label_service/get_labels_by_statement.rb +9 -18
- data/examples/{v201107 → v201203}/label_service/update_labels.rb +12 -13
- data/examples/{v201107 → v201203}/line_item_creative_association_service/create_licas.rb +1 -1
- data/examples/{v201104 → v201203}/line_item_creative_association_service/deactivate_licas.rb +1 -1
- data/examples/{v201104 → v201203}/line_item_creative_association_service/get_all_licas.rb +1 -1
- data/examples/{v201104 → v201203}/line_item_creative_association_service/get_lica.rb +1 -1
- data/examples/{v201107 → v201203}/line_item_creative_association_service/get_licas_by_statement.rb +1 -1
- data/examples/{v201107 → v201203}/line_item_creative_association_service/update_licas.rb +1 -1
- data/examples/{v201103 → v201203}/line_item_service/activate_line_items.rb +1 -1
- data/examples/{v201107 → v201203}/line_item_service/create_line_items.rb +19 -9
- data/examples/v201203/line_item_service/create_mobile_line_item.rb +134 -0
- data/examples/v201203/line_item_service/create_video_line_item.rb +155 -0
- data/examples/{v201107 → v201203}/line_item_service/get_all_line_items.rb +1 -1
- data/examples/{v201107 → v201203}/line_item_service/get_line_item.rb +1 -1
- data/examples/{v201107 → v201203}/line_item_service/get_line_items_by_statement.rb +11 -7
- data/examples/{v201103/line_item_service/get_line_items_by_statement.rb → v201203/line_item_service/get_recently_updated_line_items.rb} +23 -14
- data/examples/{v201107 → v201203}/line_item_service/target_custom_criteria.rb +1 -1
- data/examples/{v201103 → v201203}/line_item_service/update_line_items.rb +1 -1
- data/examples/{v201103 → v201203}/network_service/get_all_networks.rb +1 -1
- data/examples/{v201103 → v201203}/network_service/get_current_network.rb +1 -1
- data/examples/{v201107/network_service/get_current_network.rb → v201203/network_service/make_test_network.rb} +21 -10
- data/examples/{v201104 → v201203}/order_service/approve_orders.rb +24 -18
- data/examples/{v201107 → v201203}/order_service/create_orders.rb +1 -1
- data/examples/{v201107 → v201203}/order_service/get_all_orders.rb +1 -1
- data/examples/{v201103 → v201203}/order_service/get_order.rb +1 -1
- data/examples/{v201103 → v201203}/order_service/get_orders_by_statement.rb +1 -1
- data/examples/{v201107 → v201203}/order_service/update_orders.rb +1 -1
- data/examples/{v201103 → v201203}/placement_service/create_placements.rb +3 -2
- data/examples/{v201107 → v201203}/placement_service/deactivate_placements.rb +1 -1
- data/examples/{v201103 → v201203}/placement_service/get_all_placements.rb +1 -1
- data/examples/{v201104 → v201203}/placement_service/get_placement.rb +1 -1
- data/examples/{v201107 → v201203}/placement_service/get_placements_by_statement.rb +1 -1
- data/examples/{v201103 → v201203}/placement_service/update_placements.rb +1 -1
- data/examples/{v201104 → v201203}/publisher_query_language_service/get_all_cities.rb +7 -2
- data/examples/{v201107 → v201203}/report_service/download_report.rb +1 -1
- data/examples/{v201104 → v201203}/report_service/run_delivery_report.rb +17 -3
- data/examples/{v201104 → v201203}/report_service/run_inventory_report.rb +4 -2
- data/examples/{v201107/report_service/run_delivery_report.rb → v201203/report_service/run_merged_delivery_report.rb} +12 -7
- data/examples/{v201107 → v201203}/report_service/run_sales_report.rb +1 -1
- data/examples/v201203/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +108 -0
- data/examples/{v201107/inventory_service/get_all_ad_units.rb → v201203/suggested_ad_unit_service/get_all_suggested_ad_units.rb} +17 -14
- data/examples/{v201104/inventory_service/get_ad_unit.rb → v201203/suggested_ad_unit_service/get_suggested_ad_unit.rb} +17 -14
- data/examples/{v201107/inventory_service/get_ad_units_by_statement.rb → v201203/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb} +22 -26
- data/examples/{v201103/user_service/create_users.rb → v201203/team_service/create_teams.rb} +31 -28
- data/examples/{v201107/user_service/get_all_users.rb → v201203/team_service/get_all_teams.rb} +16 -17
- data/examples/{v201104/network_service/get_current_network.rb → v201203/team_service/get_team.rb} +21 -13
- data/examples/{v201103/user_service/update_users.rb → v201203/team_service/get_teams_by_statement.rb} +27 -29
- data/examples/{v201104/user_service/update_users.rb → v201203/team_service/update_teams.rb} +38 -23
- data/examples/v201203/third_party_slot_service/archive_third_party_slots.rb +124 -0
- data/examples/{v201103/company_service/get_company.rb → v201203/third_party_slot_service/create_third_party_slot.rb} +33 -14
- data/examples/{v201103/order_service/get_all_orders.rb → v201203/third_party_slot_service/get_all_third_party_slots.rb} +15 -15
- data/examples/{v201104/placement_service/get_placements_by_statement.rb → v201203/third_party_slot_service/get_third_party_slot_by_statement.rb} +16 -16
- data/examples/{v201103/placement_service/get_placements_by_statement.rb → v201203/third_party_slot_service/update_third_party_slots.rb} +32 -23
- data/examples/{v201104 → v201203}/user_service/create_users.rb +1 -1
- data/examples/{v201104 → v201203}/user_service/deactivate_users.rb +1 -1
- data/examples/{v201103 → v201203}/user_service/get_all_roles.rb +1 -1
- data/examples/{v201104 → v201203}/user_service/get_all_users.rb +1 -1
- data/examples/{v201107 → v201203}/user_service/get_current_user.rb +1 -1
- data/examples/{v201103 → v201203}/user_service/get_user.rb +1 -1
- data/examples/{v201103 → v201203}/user_service/get_users_by_statement.rb +1 -1
- data/examples/{v201107 → v201203}/user_service/update_users.rb +1 -1
- data/lib/dfp_api/api_config.rb +14 -36
- data/lib/dfp_api/v201108/company_service.rb +18 -16
- data/lib/dfp_api/v201108/company_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/creative_service.rb +10 -8
- data/lib/dfp_api/v201108/creative_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/custom_targeting_service.rb +22 -20
- data/lib/dfp_api/v201108/custom_targeting_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/forecast_service.rb +10 -8
- data/lib/dfp_api/v201108/forecast_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/inventory_service.rb +22 -20
- data/lib/dfp_api/v201108/inventory_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/label_service.rb +18 -16
- data/lib/dfp_api/v201108/label_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/line_item_creative_association_service.rb +14 -12
- data/lib/dfp_api/v201108/line_item_creative_association_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/line_item_service.rb +18 -16
- data/lib/dfp_api/v201108/line_item_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/network_service.rb +6 -4
- data/lib/dfp_api/v201108/network_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/order_service.rb +10 -8
- data/lib/dfp_api/v201108/order_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/placement_service.rb +18 -16
- data/lib/dfp_api/v201108/placement_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/publisher_query_language_service.rb +6 -4
- data/lib/dfp_api/v201108/publisher_query_language_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/report_service.rb +6 -4
- data/lib/dfp_api/v201108/report_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/third_party_slot_service.rb +6 -4
- data/lib/dfp_api/v201108/third_party_slot_service_registry.rb +8 -6
- data/lib/dfp_api/v201108/user_service.rb +18 -16
- data/lib/dfp_api/v201108/user_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/company_service.rb +18 -16
- data/lib/dfp_api/v201111/company_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/content_service.rb +6 -4
- data/lib/dfp_api/v201111/content_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/creative_service.rb +10 -8
- data/lib/dfp_api/v201111/creative_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/creative_template_service.rb +6 -4
- data/lib/dfp_api/v201111/creative_template_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/custom_targeting_service.rb +22 -20
- data/lib/dfp_api/v201111/custom_targeting_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/forecast_service.rb +10 -8
- data/lib/dfp_api/v201111/forecast_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/inventory_service.rb +22 -20
- data/lib/dfp_api/v201111/inventory_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/label_service.rb +18 -16
- data/lib/dfp_api/v201111/label_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/line_item_creative_association_service.rb +18 -16
- data/lib/dfp_api/v201111/line_item_creative_association_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/line_item_service.rb +18 -16
- data/lib/dfp_api/v201111/line_item_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/network_service.rb +6 -4
- data/lib/dfp_api/v201111/network_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/order_service.rb +10 -8
- data/lib/dfp_api/v201111/order_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/placement_service.rb +18 -16
- data/lib/dfp_api/v201111/placement_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/publisher_query_language_service.rb +6 -4
- data/lib/dfp_api/v201111/publisher_query_language_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/report_service.rb +6 -4
- data/lib/dfp_api/v201111/report_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/suggested_ad_unit_service.rb +6 -4
- data/lib/dfp_api/v201111/suggested_ad_unit_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/third_party_slot_service.rb +6 -4
- data/lib/dfp_api/v201111/third_party_slot_service_registry.rb +8 -6
- data/lib/dfp_api/v201111/user_service.rb +18 -16
- data/lib/dfp_api/v201111/user_service_registry.rb +8 -6
- data/lib/dfp_api/v201201/company_service.rb +1 -1
- data/lib/dfp_api/v201201/company_service_registry.rb +2 -2
- data/lib/dfp_api/v201201/content_service.rb +1 -1
- data/lib/dfp_api/v201201/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/creative_service.rb +1 -1
- data/lib/dfp_api/v201201/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201201/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201201/custom_targeting_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/forecast_service.rb +1 -1
- data/lib/dfp_api/v201201/forecast_service_registry.rb +2 -2
- data/lib/dfp_api/v201201/inventory_service.rb +1 -1
- data/lib/dfp_api/v201201/inventory_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/label_service.rb +1 -1
- data/lib/dfp_api/v201201/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201201/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/line_item_service.rb +1 -1
- data/lib/dfp_api/v201201/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201201/network_service.rb +1 -1
- data/lib/dfp_api/v201201/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/order_service.rb +1 -1
- data/lib/dfp_api/v201201/order_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/placement_service.rb +1 -1
- data/lib/dfp_api/v201201/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201201/publisher_query_language_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/report_service.rb +1 -1
- data/lib/dfp_api/v201201/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201201/suggested_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/team_service.rb +1 -1
- data/lib/dfp_api/v201201/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/third_party_slot_service.rb +1 -1
- data/lib/dfp_api/v201201/third_party_slot_service_registry.rb +1 -1
- data/lib/dfp_api/v201201/user_service.rb +1 -1
- data/lib/dfp_api/v201201/user_service_registry.rb +1 -1
- data/lib/dfp_api/v201203/audience_segment_service.rb +34 -0
- data/lib/dfp_api/v201203/audience_segment_service_registry.rb +46 -0
- data/lib/dfp_api/{v201103 → v201203}/company_service.rb +23 -21
- data/lib/dfp_api/v201203/company_service_registry.rb +46 -0
- data/lib/dfp_api/v201203/content_service.rb +42 -0
- data/lib/dfp_api/v201203/content_service_registry.rb +46 -0
- data/lib/dfp_api/{v201103 → v201203}/creative_service.rb +15 -13
- data/lib/dfp_api/v201203/creative_service_registry.rb +46 -0
- data/lib/dfp_api/v201203/creative_template_service.rb +38 -0
- data/lib/dfp_api/v201203/creative_template_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/custom_targeting_service.rb +27 -25
- data/lib/dfp_api/v201203/custom_targeting_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/forecast_service.rb +15 -13
- data/lib/dfp_api/v201203/forecast_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/inventory_service.rb +29 -23
- data/lib/dfp_api/v201203/inventory_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/label_service.rb +23 -21
- data/lib/dfp_api/v201203/label_service_registry.rb +46 -0
- data/lib/dfp_api/{v201103 → v201203}/line_item_creative_association_service.rb +23 -17
- data/lib/dfp_api/v201203/line_item_creative_association_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/line_item_service.rb +23 -21
- data/lib/dfp_api/v201203/line_item_service_registry.rb +46 -0
- data/lib/dfp_api/{v201104 → v201203}/network_service.rb +15 -9
- data/lib/dfp_api/v201203/network_service_registry.rb +46 -0
- data/lib/dfp_api/{v201103 → v201203}/order_service.rb +15 -13
- data/lib/dfp_api/v201203/order_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/placement_service.rb +23 -21
- data/lib/dfp_api/v201203/placement_service_registry.rb +46 -0
- data/lib/dfp_api/{v201104 → v201203}/publisher_query_language_service.rb +11 -9
- data/lib/dfp_api/v201203/publisher_query_language_service_registry.rb +46 -0
- data/lib/dfp_api/{v201103 → v201203}/report_service.rb +11 -9
- data/lib/dfp_api/v201203/report_service_registry.rb +46 -0
- data/lib/dfp_api/v201203/suggested_ad_unit_service.rb +42 -0
- data/lib/dfp_api/v201203/suggested_ad_unit_service_registry.rb +46 -0
- data/lib/dfp_api/v201203/team_service.rb +54 -0
- data/lib/dfp_api/v201203/team_service_registry.rb +46 -0
- data/lib/dfp_api/v201203/third_party_slot_service.rb +46 -0
- data/lib/dfp_api/v201203/third_party_slot_service_registry.rb +46 -0
- data/lib/dfp_api/{v201107 → v201203}/user_service.rb +23 -21
- data/lib/dfp_api/v201203/user_service_registry.rb +46 -0
- data/lib/dfp_api/version.rb +1 -1
- data/test/bugs/test_issue_00000016.rb +3 -3
- data/test/dfp_api/test_config.yml +0 -2
- data/test/dfp_api/test_dfp_api.rb +0 -4
- metadata +484 -649
- data/examples/v201103/common/oauth_handling.rb +0 -127
- data/examples/v201103/company_service/create_companies.rb +0 -80
- data/examples/v201103/company_service/get_all_companies.rb +0 -91
- data/examples/v201103/company_service/get_companies_by_statement.rb +0 -87
- data/examples/v201103/company_service/update_companies.rb +0 -94
- data/examples/v201103/creative_service/copy_image_creatives.rb +0 -114
- data/examples/v201103/creative_service/get_creatives_by_statement.rb +0 -86
- data/examples/v201103/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -117
- data/examples/v201103/custom_targeting_service/delete_custom_targeting_values.rb +0 -124
- data/examples/v201103/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -91
- data/examples/v201103/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -97
- data/examples/v201103/custom_targeting_service/update_custom_targeting_keys.rb +0 -93
- data/examples/v201103/forecast_service/get_forecast.rb +0 -102
- data/examples/v201103/forecast_service/get_forecast_by_id.rb +0 -79
- data/examples/v201103/inventory_service/get_ad_units_by_statement.rb +0 -95
- data/examples/v201103/inventory_service/update_ad_units.rb +0 -93
- data/examples/v201103/line_item_creative_association_service/create_licas.rb +0 -93
- data/examples/v201103/line_item_creative_association_service/deactivate_licas.rb +0 -126
- data/examples/v201103/line_item_creative_association_service/get_all_licas.rb +0 -94
- data/examples/v201103/line_item_creative_association_service/get_lica.rb +0 -76
- data/examples/v201103/line_item_creative_association_service/get_licas_by_statement.rb +0 -90
- data/examples/v201103/line_item_creative_association_service/update_licas.rb +0 -91
- data/examples/v201103/line_item_service/create_line_items.rb +0 -163
- data/examples/v201103/line_item_service/get_all_line_items.rb +0 -93
- data/examples/v201103/line_item_service/get_line_item.rb +0 -73
- data/examples/v201103/line_item_service/target_custom_criteria.rb +0 -134
- data/examples/v201103/order_service/approve_orders.rb +0 -115
- data/examples/v201103/order_service/create_orders.rb +0 -91
- data/examples/v201103/order_service/update_orders.rb +0 -94
- data/examples/v201103/placement_service/deactivate_placements.rb +0 -117
- data/examples/v201103/placement_service/get_placement.rb +0 -73
- data/examples/v201103/publisher_query_language_service/get_all_cities.rb +0 -84
- data/examples/v201103/publisher_query_language_service/get_all_countries.rb +0 -84
- data/examples/v201103/publisher_query_language_service/get_all_metros.rb +0 -84
- data/examples/v201103/publisher_query_language_service/get_all_regions.rb +0 -84
- data/examples/v201103/report_service/download_report.rb +0 -80
- data/examples/v201103/report_service/run_delivery_report.rb +0 -88
- data/examples/v201103/report_service/run_inventory_report.rb +0 -89
- data/examples/v201103/report_service/run_sales_report.rb +0 -88
- data/examples/v201103/user_service/deactivate_users.rb +0 -98
- data/examples/v201104/common/error_handling.rb +0 -75
- data/examples/v201104/common/oauth_handling.rb +0 -127
- data/examples/v201104/company_service/create_companies.rb +0 -80
- data/examples/v201104/company_service/get_all_companies.rb +0 -91
- data/examples/v201104/company_service/update_companies.rb +0 -94
- data/examples/v201104/creative_service/copy_image_creatives.rb +0 -114
- data/examples/v201104/creative_service/create_creatives.rb +0 -105
- data/examples/v201104/creative_service/get_all_creatives.rb +0 -92
- data/examples/v201104/creative_service/get_creatives_by_statement.rb +0 -86
- data/examples/v201104/creative_service/update_creatives.rb +0 -95
- data/examples/v201104/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -117
- data/examples/v201104/custom_targeting_service/delete_custom_targeting_keys.rb +0 -120
- data/examples/v201104/custom_targeting_service/delete_custom_targeting_values.rb +0 -124
- data/examples/v201104/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -147
- data/examples/v201104/custom_targeting_service/update_custom_targeting_keys.rb +0 -93
- data/examples/v201104/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201104/forecast_service/get_forecast_by_id.rb +0 -79
- data/examples/v201104/inventory_service/deactivate_ad_units.rb +0 -118
- data/examples/v201104/line_item_creative_association_service/create_licas.rb +0 -93
- data/examples/v201104/line_item_creative_association_service/get_licas_by_statement.rb +0 -90
- data/examples/v201104/line_item_creative_association_service/update_licas.rb +0 -91
- data/examples/v201104/line_item_service/activate_line_items.rb +0 -130
- data/examples/v201104/line_item_service/create_line_items.rb +0 -155
- data/examples/v201104/line_item_service/get_all_line_items.rb +0 -93
- data/examples/v201104/line_item_service/get_line_item.rb +0 -73
- data/examples/v201104/line_item_service/get_line_items_by_statement.rb +0 -88
- data/examples/v201104/line_item_service/target_custom_criteria.rb +0 -128
- data/examples/v201104/line_item_service/update_line_items.rb +0 -108
- data/examples/v201104/network_service/get_all_networks.rb +0 -73
- data/examples/v201104/order_service/create_orders.rb +0 -91
- data/examples/v201104/order_service/get_order.rb +0 -73
- data/examples/v201104/order_service/get_orders_by_statement.rb +0 -89
- data/examples/v201104/order_service/update_orders.rb +0 -94
- data/examples/v201104/placement_service/create_placements.rb +0 -127
- data/examples/v201104/placement_service/deactivate_placements.rb +0 -117
- data/examples/v201104/placement_service/get_all_placements.rb +0 -92
- data/examples/v201104/placement_service/update_placements.rb +0 -96
- data/examples/v201104/publisher_query_language_service/get_all_countries.rb +0 -84
- data/examples/v201104/publisher_query_language_service/get_all_metros.rb +0 -84
- data/examples/v201104/publisher_query_language_service/get_all_regions.rb +0 -84
- data/examples/v201104/report_service/download_report.rb +0 -80
- data/examples/v201104/report_service/run_sales_report.rb +0 -88
- data/examples/v201104/user_service/get_all_roles.rb +0 -72
- data/examples/v201104/user_service/get_user.rb +0 -72
- data/examples/v201104/user_service/get_users_by_statement.rb +0 -78
- data/examples/v201107/common/error_handling.rb +0 -75
- data/examples/v201107/company_service/get_companies_by_statement.rb +0 -87
- data/examples/v201107/company_service/get_company.rb +0 -71
- data/examples/v201107/creative_service/get_all_creatives.rb +0 -92
- data/examples/v201107/creative_service/get_creative.rb +0 -71
- data/examples/v201107/creative_service/update_creatives.rb +0 -95
- data/examples/v201107/custom_targeting_service/delete_custom_targeting_keys.rb +0 -120
- data/examples/v201107/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -147
- data/examples/v201107/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -91
- data/examples/v201107/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -97
- data/examples/v201107/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201107/forecast_service/get_forecast.rb +0 -102
- data/examples/v201107/inventory_service/deactivate_ad_units.rb +0 -118
- data/examples/v201107/inventory_service/get_ad_unit.rb +0 -71
- data/examples/v201107/inventory_service/update_ad_units.rb +0 -93
- data/examples/v201107/line_item_creative_association_service/deactivate_licas.rb +0 -126
- data/examples/v201107/line_item_creative_association_service/get_all_licas.rb +0 -94
- data/examples/v201107/line_item_creative_association_service/get_lica.rb +0 -76
- data/examples/v201107/line_item_service/activate_line_items.rb +0 -130
- data/examples/v201107/line_item_service/update_line_items.rb +0 -108
- data/examples/v201107/network_service/get_all_networks.rb +0 -73
- data/examples/v201107/order_service/approve_orders.rb +0 -115
- data/examples/v201107/order_service/get_order.rb +0 -73
- data/examples/v201107/order_service/get_orders_by_statement.rb +0 -89
- data/examples/v201107/placement_service/create_placements.rb +0 -127
- data/examples/v201107/placement_service/get_all_placements.rb +0 -92
- data/examples/v201107/placement_service/get_placement.rb +0 -73
- data/examples/v201107/placement_service/update_placements.rb +0 -96
- data/examples/v201107/publisher_query_language_service/get_all_bandwidth_groups.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_browser_languages.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_browsers.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_cities.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_countries.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_metros.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_operating_systems.rb +0 -84
- data/examples/v201107/publisher_query_language_service/get_all_regions.rb +0 -84
- data/examples/v201107/report_service/run_inventory_report.rb +0 -89
- data/examples/v201107/user_service/create_users.rb +0 -88
- data/examples/v201107/user_service/deactivate_users.rb +0 -98
- data/examples/v201107/user_service/get_all_roles.rb +0 -72
- data/examples/v201107/user_service/get_user.rb +0 -72
- data/lib/dfp_api/v201103/company_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/creative_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/custom_targeting_service.rb +0 -60
- data/lib/dfp_api/v201103/custom_targeting_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/forecast_service.rb +0 -36
- data/lib/dfp_api/v201103/forecast_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/inventory_service.rb +0 -56
- data/lib/dfp_api/v201103/inventory_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/line_item_creative_association_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/line_item_service.rb +0 -56
- data/lib/dfp_api/v201103/line_item_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/network_service.rb +0 -40
- data/lib/dfp_api/v201103/network_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/order_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/placement_service.rb +0 -56
- data/lib/dfp_api/v201103/placement_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/publisher_query_language_service.rb +0 -32
- data/lib/dfp_api/v201103/publisher_query_language_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/report_service_registry.rb +0 -44
- data/lib/dfp_api/v201103/user_service.rb +0 -60
- data/lib/dfp_api/v201103/user_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/company_service.rb +0 -52
- data/lib/dfp_api/v201104/company_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/creative_service.rb +0 -52
- data/lib/dfp_api/v201104/creative_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/custom_targeting_service.rb +0 -60
- data/lib/dfp_api/v201104/custom_targeting_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/forecast_service.rb +0 -36
- data/lib/dfp_api/v201104/forecast_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/inventory_service.rb +0 -56
- data/lib/dfp_api/v201104/inventory_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/line_item_creative_association_service.rb +0 -56
- data/lib/dfp_api/v201104/line_item_creative_association_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/line_item_service.rb +0 -56
- data/lib/dfp_api/v201104/line_item_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/network_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/order_service.rb +0 -56
- data/lib/dfp_api/v201104/order_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/placement_service.rb +0 -56
- data/lib/dfp_api/v201104/placement_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/publisher_query_language_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/report_service.rb +0 -40
- data/lib/dfp_api/v201104/report_service_registry.rb +0 -44
- data/lib/dfp_api/v201104/user_service.rb +0 -60
- data/lib/dfp_api/v201104/user_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/company_service.rb +0 -52
- data/lib/dfp_api/v201107/company_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/creative_service.rb +0 -52
- data/lib/dfp_api/v201107/creative_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/custom_targeting_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/forecast_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/inventory_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/label_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/line_item_creative_association_service.rb +0 -56
- data/lib/dfp_api/v201107/line_item_creative_association_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/line_item_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/network_service.rb +0 -40
- data/lib/dfp_api/v201107/network_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/order_service.rb +0 -56
- data/lib/dfp_api/v201107/order_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/placement_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/publisher_query_language_service.rb +0 -32
- data/lib/dfp_api/v201107/publisher_query_language_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/report_service.rb +0 -40
- data/lib/dfp_api/v201107/report_service_registry.rb +0 -44
- data/lib/dfp_api/v201107/user_service_registry.rb +0 -44
@@ -1,56 +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.1 on 2011-12-20 17:58:14.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'dfp_api/v201104/order_service_registry'
|
10
|
-
|
11
|
-
module DfpApi; module V201104; module OrderService
|
12
|
-
class OrderService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201104'
|
15
|
-
super(api, endpoint, namespace, :v201104)
|
16
|
-
end
|
17
|
-
|
18
|
-
def update_orders(*args, &block)
|
19
|
-
return execute_action('update_orders', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_orders(*args, &block)
|
23
|
-
return execute_action('create_orders', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def get_order(*args, &block)
|
27
|
-
return execute_action('get_order', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
def get_orders_by_statement(*args, &block)
|
31
|
-
return execute_action('get_orders_by_statement', args, &block)
|
32
|
-
end
|
33
|
-
|
34
|
-
def perform_order_action(*args, &block)
|
35
|
-
return execute_action('perform_order_action', args, &block)
|
36
|
-
end
|
37
|
-
|
38
|
-
def update_order(*args, &block)
|
39
|
-
return execute_action('update_order', args, &block)
|
40
|
-
end
|
41
|
-
|
42
|
-
def create_order(*args, &block)
|
43
|
-
return execute_action('create_order', args, &block)
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def get_service_registry()
|
49
|
-
return OrderServiceRegistry
|
50
|
-
end
|
51
|
-
|
52
|
-
def get_module()
|
53
|
-
return DfpApi::V201104::OrderService
|
54
|
-
end
|
55
|
-
end
|
56
|
-
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.1 on 2011-12-20 17:58:14.
|
7
|
-
|
8
|
-
require 'dfp_api/errors'
|
9
|
-
|
10
|
-
module DfpApi; module V201104; module OrderService
|
11
|
-
class OrderServiceRegistry
|
12
|
-
ORDERSERVICE_METHODS = {:update_orders=>{:output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_orders_response"}, :input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:orders}]}, :create_orders=>{:output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_orders_response"}, :input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:orders}]}, :get_order=>{:output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_order_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:order_id}]}, :get_orders_by_statement=>{:output=>{:fields=>[{:type=>"OrderPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_orders_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :perform_order_action=>{:output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_order_action_response"}, :input=>[{:type=>"OrderAction", :min_occurs=>0, :max_occurs=>1, :name=>:order_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :update_order=>{:output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_order_response"}, :input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:order}]}, :create_order=>{:output=>{:fields=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_order_response"}, :input=>[{:type=>"Order", :min_occurs=>0, :max_occurs=>1, :name=>:order}]}}
|
13
|
-
ORDERSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Money=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:micro_amount}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :ResumeAndOverbookOrders=>{:fields=>[], :base=>"ResumeOrders"}, :ArchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OrderStatus=>{:fields=>[]}, :ResumeOrders=>{:fields=>[], :base=>"OrderAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :SubmitOrdersForApproval=>{:fields=>[], :base=>"OrderAction"}, :OrderAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:order_action_type}], :abstract=>true}, :RetractOrders=>{:fields=>[], :base=>"OrderAction"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :SubmitOrdersForApprovalAndOverbook=>{:fields=>[], :base=>"SubmitOrdersForApproval"}, :Order=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:start_date_time}, {:type=>"DateTime", :min_occurs=>0, :max_occurs=>1, :name=>:end_date_time}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:unlimited_end_date_time}, {:type=>"OrderStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_archived}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:notes}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:external_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:currency_code}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:advertiser_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:agency_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:creator_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:trafficker_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:salesperson_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_impressions_delivered}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:total_clicks_delivered}, {:type=>"Money", :min_occurs=>0, :max_occurs=>1, :name=>:total_budget}]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:year}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:month}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:day}]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OrderPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Order", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :ApproveAndOverbookOrders=>{:fields=>[], :base=>"ApproveOrders"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :DisapproveOrders=>{:fields=>[], :base=>"OrderAction"}, :DateTime=>{:fields=>[{:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:date}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:hour}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:minute}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:second}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:time_zone_id}]}, :UnarchiveOrders=>{:fields=>[], :base=>"OrderAction"}, :PauseOrders=>{:fields=>[], :base=>"OrderAction"}, :ApproveOrders=>{:fields=>[], :base=>"OrderAction"}}
|
14
|
-
ORDERSERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return ORDERSERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return ORDERSERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return ORDERSERVICE_NAMESPACES[index]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Base class for exceptions.
|
30
|
-
class ApplicationException < DfpApi::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,56 +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.1 on 2011-12-20 17:58:53.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'dfp_api/v201104/placement_service_registry'
|
10
|
-
|
11
|
-
module DfpApi; module V201104; module PlacementService
|
12
|
-
class PlacementService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201104'
|
15
|
-
super(api, endpoint, namespace, :v201104)
|
16
|
-
end
|
17
|
-
|
18
|
-
def perform_placement_action(*args, &block)
|
19
|
-
return execute_action('perform_placement_action', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def update_placement(*args, &block)
|
23
|
-
return execute_action('update_placement', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def create_placement(*args, &block)
|
27
|
-
return execute_action('create_placement', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
def update_placements(*args, &block)
|
31
|
-
return execute_action('update_placements', args, &block)
|
32
|
-
end
|
33
|
-
|
34
|
-
def create_placements(*args, &block)
|
35
|
-
return execute_action('create_placements', args, &block)
|
36
|
-
end
|
37
|
-
|
38
|
-
def get_placement(*args, &block)
|
39
|
-
return execute_action('get_placement', args, &block)
|
40
|
-
end
|
41
|
-
|
42
|
-
def get_placements_by_statement(*args, &block)
|
43
|
-
return execute_action('get_placements_by_statement', args, &block)
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def get_service_registry()
|
49
|
-
return PlacementServiceRegistry
|
50
|
-
end
|
51
|
-
|
52
|
-
def get_module()
|
53
|
-
return DfpApi::V201104::PlacementService
|
54
|
-
end
|
55
|
-
end
|
56
|
-
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.1 on 2011-12-20 17:58:53.
|
7
|
-
|
8
|
-
require 'dfp_api/errors'
|
9
|
-
|
10
|
-
module DfpApi; module V201104; module PlacementService
|
11
|
-
class PlacementServiceRegistry
|
12
|
-
PLACEMENTSERVICE_METHODS = {:perform_placement_action=>{:output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_placement_action_response"}, :input=>[{:type=>"PlacementAction", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :update_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_placement_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}]}, :create_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_placement_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:placement}]}, :update_placements=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_placements_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:placements}]}, :create_placements=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_placements_response"}, :input=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:placements}]}, :get_placement=>{:output=>{:fields=>[{:type=>"Placement", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placement_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:placement_id}]}, :get_placements_by_statement=>{:output=>{:fields=>[{:type=>"PlacementPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_placements_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}}
|
13
|
-
PLACEMENTSERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :PlacementAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_action_type}], :abstract=>true}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Placement=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:placement_code}, {:type=>"InventoryStatus", :min_occurs=>0, :max_occurs=>1, :name=>:status}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_sense_targeting_enabled}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_ad_planner_targeting_enabled}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:ad_sense_targeting_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:targeted_ad_unit_ids}], :base=>"SiteTargetingInfo"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :InventoryStatus=>{:fields=>[]}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :PlacementPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :SiteTargetingInfo=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_description}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_site_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:targeting_ad_location}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:site_targeting_info_type}]}}
|
14
|
-
PLACEMENTSERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return PLACEMENTSERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return PLACEMENTSERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return PLACEMENTSERVICE_NAMESPACES[index]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Base class for exceptions.
|
30
|
-
class ApplicationException < DfpApi::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,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.1 on 2011-12-20 17:58:58.
|
7
|
-
|
8
|
-
require 'dfp_api/errors'
|
9
|
-
|
10
|
-
module DfpApi; module V201104; module PublisherQueryLanguageService
|
11
|
-
class PublisherQueryLanguageServiceRegistry
|
12
|
-
PUBLISHERQUERYLANGUAGESERVICE_METHODS = {:select=>{:output=>{:fields=>[{:type=>"ResultSet", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"select_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:select_statement}]}}
|
13
|
-
PUBLISHERQUERYLANGUAGESERVICE_TYPES = {:Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Row=>{:fields=>[{:type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ColumnType=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:label_name}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ResultSet=>{:fields=>[{:type=>"ColumnType", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:column_types}, {:type=>"Row", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rows}]}}
|
14
|
-
PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return PUBLISHERQUERYLANGUAGESERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return PUBLISHERQUERYLANGUAGESERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return PUBLISHERQUERYLANGUAGESERVICE_NAMESPACES[index]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Base class for exceptions.
|
30
|
-
class ApplicationException < DfpApi::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,40 +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.1 on 2011-12-20 17:58:32.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'dfp_api/v201104/report_service_registry'
|
10
|
-
|
11
|
-
module DfpApi; module V201104; module ReportService
|
12
|
-
class ReportService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201104'
|
15
|
-
super(api, endpoint, namespace, :v201104)
|
16
|
-
end
|
17
|
-
|
18
|
-
def get_report_download_url(*args, &block)
|
19
|
-
return execute_action('get_report_download_url', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def get_report_job(*args, &block)
|
23
|
-
return execute_action('get_report_job', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def run_report_job(*args, &block)
|
27
|
-
return execute_action('run_report_job', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
def get_service_registry()
|
33
|
-
return ReportServiceRegistry
|
34
|
-
end
|
35
|
-
|
36
|
-
def get_module()
|
37
|
-
return DfpApi::V201104::ReportService
|
38
|
-
end
|
39
|
-
end
|
40
|
-
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.1 on 2011-12-20 17:58:32.
|
7
|
-
|
8
|
-
require 'dfp_api/errors'
|
9
|
-
|
10
|
-
module DfpApi; module V201104; module ReportService
|
11
|
-
class ReportServiceRegistry
|
12
|
-
REPORTSERVICE_METHODS = {:get_report_download_url=>{:output=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_download_url_response"}, :original_name=>"getReportDownloadURL", :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}, {:type=>"ExportFormat", :min_occurs=>0, :max_occurs=>1, :name=>:export_format}]}, :get_report_job=>{:output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_report_job_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_id}]}, :run_report_job=>{:output=>{:fields=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"run_report_job_response"}, :input=>[{:type=>"ReportJob", :min_occurs=>0, :max_occurs=>1, :name=>:report_job}]}}
|
13
|
-
REPORTSERVICE_TYPES = {:ExportFormat=>{:fields=>[]}, :ReportQuery=>{:fields=>[{:type=>"Dimension", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimensions}, {:type=>"Column", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:columns}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:start_date}, {:type=>"Date", :min_occurs=>0, :max_occurs=>1, :name=>:end_date}, {:type=>"DateRangeType", :min_occurs=>0, :max_occurs=>1, :name=>:date_range_type}, {:type=>"DimensionFilter", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:dimension_filters}]}, :ReportJobStatus=>{:fields=>[]}, :Column=>{:fields=>[]}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :DateRangeType=>{:fields=>[]}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :Date=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:year}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:month}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:day}]}, :Dimension=>{:fields=>[]}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :DimensionFilter=>{:fields=>[]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}, :ReportJob=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"ReportQuery", :min_occurs=>0, :max_occurs=>1, :name=>:report_query}, {:type=>"ReportJobStatus", :min_occurs=>0, :max_occurs=>1, :name=>:report_job_status}]}}
|
14
|
-
REPORTSERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return REPORTSERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return REPORTSERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return REPORTSERVICE_NAMESPACES[index]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Base class for exceptions.
|
30
|
-
class ApplicationException < DfpApi::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,60 +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.1 on 2011-12-20 17:58:24.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'dfp_api/v201104/user_service_registry'
|
10
|
-
|
11
|
-
module DfpApi; module V201104; module UserService
|
12
|
-
class UserService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201104'
|
15
|
-
super(api, endpoint, namespace, :v201104)
|
16
|
-
end
|
17
|
-
|
18
|
-
def update_user(*args, &block)
|
19
|
-
return execute_action('update_user', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_users(*args, &block)
|
23
|
-
return execute_action('create_users', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def update_users(*args, &block)
|
27
|
-
return execute_action('update_users', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
def get_all_roles(*args, &block)
|
31
|
-
return execute_action('get_all_roles', args, &block)
|
32
|
-
end
|
33
|
-
|
34
|
-
def get_user(*args, &block)
|
35
|
-
return execute_action('get_user', args, &block)
|
36
|
-
end
|
37
|
-
|
38
|
-
def get_users_by_statement(*args, &block)
|
39
|
-
return execute_action('get_users_by_statement', args, &block)
|
40
|
-
end
|
41
|
-
|
42
|
-
def perform_user_action(*args, &block)
|
43
|
-
return execute_action('perform_user_action', args, &block)
|
44
|
-
end
|
45
|
-
|
46
|
-
def create_user(*args, &block)
|
47
|
-
return execute_action('create_user', args, &block)
|
48
|
-
end
|
49
|
-
|
50
|
-
private
|
51
|
-
|
52
|
-
def get_service_registry()
|
53
|
-
return UserServiceRegistry
|
54
|
-
end
|
55
|
-
|
56
|
-
def get_module()
|
57
|
-
return DfpApi::V201104::UserService
|
58
|
-
end
|
59
|
-
end
|
60
|
-
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.1 on 2011-12-20 17:58:24.
|
7
|
-
|
8
|
-
require 'dfp_api/errors'
|
9
|
-
|
10
|
-
module DfpApi; module V201104; module UserService
|
11
|
-
class UserServiceRegistry
|
12
|
-
USERSERVICE_METHODS = {:update_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"update_user_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}]}, :create_users=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"create_users_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}]}, :update_users=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"update_users_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:users}]}, :get_all_roles=>{:output=>{:fields=>[{:type=>"Role", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:rval}], :name=>"get_all_roles_response"}, :input=>[]}, :get_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_user_response"}, :input=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:user_id}]}, :get_users_by_statement=>{:output=>{:fields=>[{:type=>"UserPage", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"get_users_by_statement_response"}, :input=>[{:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :perform_user_action=>{:output=>{:fields=>[{:type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"perform_user_action_response"}, :input=>[{:type=>"UserAction", :min_occurs=>0, :max_occurs=>1, :name=>:user_action}, {:type=>"Statement", :min_occurs=>0, :max_occurs=>1, :name=>:filter_statement}]}, :create_user=>{:output=>{:fields=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:rval}], :name=>"create_user_response"}, :input=>[{:type=>"User", :min_occurs=>0, :max_occurs=>1, :name=>:user}]}}
|
13
|
-
USERSERVICE_TYPES = {:User=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_active}, {:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:is_email_notification_allowed}], :base=>"UserRecord"}, :Statement=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:query}, {:type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:values}]}, :Value=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value_type}], :abstract=>true}, :UpdateResult=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:num_changes}]}, :UserPage=>{:fields=>[{:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:total_result_set_size}, {:type=>"int", :min_occurs=>0, :max_occurs=>1, :name=>:start_index}, {:type=>"User", :min_occurs=>0, :max_occurs=>:unbounded, :name=>:results}]}, :String_ValueMapEntry=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:key}, {:type=>"Value", :min_occurs=>0, :max_occurs=>1, :name=>:value}]}, :NumberValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :Authentication=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:authentication_type}], :abstract=>true}, :ActivateUsers=>{:fields=>[], :base=>"UserAction"}, :UserRecord=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:email}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:role_id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:role_name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:preferred_locale}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_record_type}]}, :DeactivateUsers=>{:fields=>[], :base=>"UserAction"}, :BooleanValue=>{:fields=>[{:type=>"boolean", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :OAuth=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:parameters}], :base=>"Authentication"}, :SoapRequestHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:network_code}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:application_name}, {:type=>"Authentication", :min_occurs=>0, :max_occurs=>1, :name=>:authentication}]}, :Role=>{:fields=>[{:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:id}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:name}, {:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:description}]}, :ClientLogin=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:token}], :base=>"Authentication"}, :TextValue=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:value}], :base=>"Value"}, :UserAction=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:user_action_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :min_occurs=>0, :max_occurs=>1, :name=>:request_id}, {:type=>"long", :min_occurs=>0, :max_occurs=>1, :name=>:response_time}]}}
|
14
|
-
USERSERVICE_NAMESPACES = []
|
15
|
-
|
16
|
-
def self.get_method_signature(method_name)
|
17
|
-
return USERSERVICE_METHODS[method_name.to_sym]
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_type_signature(type_name)
|
21
|
-
return USERSERVICE_TYPES[type_name.to_sym]
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.get_namespace(index)
|
25
|
-
return USERSERVICE_NAMESPACES[index]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Base class for exceptions.
|
30
|
-
class ApplicationException < DfpApi::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,52 +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.1 on 2011-12-20 18:00:47.
|
7
|
-
|
8
|
-
require 'ads_common/savon_service'
|
9
|
-
require 'dfp_api/v201107/company_service_registry'
|
10
|
-
|
11
|
-
module DfpApi; module V201107; module CompanyService
|
12
|
-
class CompanyService < AdsCommon::SavonService
|
13
|
-
def initialize(api, endpoint)
|
14
|
-
namespace = 'https://www.google.com/apis/ads/publisher/v201107'
|
15
|
-
super(api, endpoint, namespace, :v201107)
|
16
|
-
end
|
17
|
-
|
18
|
-
def get_company(*args, &block)
|
19
|
-
return execute_action('get_company', args, &block)
|
20
|
-
end
|
21
|
-
|
22
|
-
def update_companies(*args, &block)
|
23
|
-
return execute_action('update_companies', args, &block)
|
24
|
-
end
|
25
|
-
|
26
|
-
def update_company(*args, &block)
|
27
|
-
return execute_action('update_company', args, &block)
|
28
|
-
end
|
29
|
-
|
30
|
-
def create_companies(*args, &block)
|
31
|
-
return execute_action('create_companies', args, &block)
|
32
|
-
end
|
33
|
-
|
34
|
-
def create_company(*args, &block)
|
35
|
-
return execute_action('create_company', args, &block)
|
36
|
-
end
|
37
|
-
|
38
|
-
def get_companies_by_statement(*args, &block)
|
39
|
-
return execute_action('get_companies_by_statement', args, &block)
|
40
|
-
end
|
41
|
-
|
42
|
-
private
|
43
|
-
|
44
|
-
def get_service_registry()
|
45
|
-
return CompanyServiceRegistry
|
46
|
-
end
|
47
|
-
|
48
|
-
def get_module()
|
49
|
-
return DfpApi::V201107::CompanyService
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end; end; end
|