google-dfp-api 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +11 -0
- data/README.md +5 -0
- data/dfp_api.yml +1 -1
- data/lib/dfp_api/api_config.rb +13 -38
- data/lib/dfp_api/dfp_api_statement.rb +5 -0
- data/lib/dfp_api/{v201511 → v201611}/activity_group_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/activity_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/activity_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/ad_exclusion_rule_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/ad_rule_service.rb +6 -6
- data/lib/dfp_api/v201611/ad_rule_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/audience_segment_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/audience_segment_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/base_rate_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/company_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/company_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/contact_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/contact_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/content_bundle_service.rb +6 -6
- data/lib/dfp_api/v201611/content_bundle_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/content_metadata_key_hierarchy_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/content_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/content_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/creative_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_set_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_set_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_template_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_wrapper_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/custom_field_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/custom_targeting_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/exchange_rate_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/forecast_service.rb +6 -6
- data/lib/dfp_api/v201611/forecast_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/inventory_service.rb +6 -6
- data/lib/dfp_api/v201611/inventory_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/label_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/label_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/line_item_creative_association_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_creative_association_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/line_item_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/line_item_template_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/live_stream_event_service.rb +14 -6
- data/lib/dfp_api/{v201511 → v201611}/live_stream_event_service_registry.rb +4 -4
- data/lib/dfp_api/v201611/mobile_application_service.rb +62 -0
- data/lib/dfp_api/v201611/mobile_application_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/network_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/network_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/order_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/order_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/package_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/package_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/placement_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/placement_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/premium_rate_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/product_package_item_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/product_package_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/product_package_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/product_service.rb +14 -6
- data/lib/dfp_api/v201611/product_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/product_template_service.rb +6 -6
- data/lib/dfp_api/v201611/product_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/proposal_line_item_service.rb +6 -6
- data/lib/dfp_api/v201611/proposal_line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/proposal_service.rb +14 -6
- data/lib/dfp_api/v201611/proposal_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/publisher_query_language_service.rb +6 -6
- data/lib/dfp_api/v201611/publisher_query_language_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/rate_card_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/rate_card_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_line_item_report_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_order_report_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_report_row_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_report_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/report_service.rb +14 -6
- data/lib/dfp_api/{v201511 → v201611}/report_service_registry.rb +4 -4
- data/lib/dfp_api/{v201508 → v201611}/suggested_ad_unit_service.rb +6 -6
- data/lib/dfp_api/v201611/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/team_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/team_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/user_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/user_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/user_team_association_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/workflow_request_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/workflow_request_service_registry.rb +3 -3
- data/lib/dfp_api/version.rb +1 -1
- data/test/bugs/test_issue_00000007.rb +113 -0
- data/test/bugs/test_issue_00000081.rb +5 -3
- metadata +105 -611
- data/examples/v201602/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201602/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201602/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201602/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201602/activity_service/create_activities.rb +0 -87
- data/examples/v201602/activity_service/get_active_activities.rb +0 -87
- data/examples/v201602/activity_service/get_all_activities.rb +0 -81
- data/examples/v201602/activity_service/update_activities.rb +0 -96
- data/examples/v201602/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201602/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201602/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201602/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201602/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201602/common/error_handling.rb +0 -72
- data/examples/v201602/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201602/common/setup_oauth2.rb +0 -85
- data/examples/v201602/company_service/create_companies.rb +0 -78
- data/examples/v201602/company_service/get_all_companies.rb +0 -80
- data/examples/v201602/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201602/company_service/update_companies.rb +0 -104
- data/examples/v201602/contact_service/create_contacts.rb +0 -91
- data/examples/v201602/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201602/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201602/contact_service/update_contacts.rb +0 -96
- data/examples/v201602/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201602/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201602/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201602/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201602/content_service/get_all_content.rb +0 -81
- data/examples/v201602/content_service/get_content_by_category.rb +0 -127
- data/examples/v201602/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201602/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201602/creative_service/create_creatives.rb +0 -108
- data/examples/v201602/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201602/creative_service/create_native_creative.rb +0 -189
- data/examples/v201602/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201602/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201602/creative_service/update_creatives.rb +0 -97
- data/examples/v201602/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201602/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201602/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201602/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201602/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201602/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201602/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201602/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201602/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201602/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201602/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201602/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201602/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201602/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201602/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201602/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201602/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201602/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201602/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201602/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201602/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201602/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201602/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201602/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201602/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201602/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201602/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201602/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201602/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201602/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201602/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201602/inventory_service/create_video_ad_unit.rb +0 -103
- data/examples/v201602/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201602/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201602/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201602/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201602/inventory_service/update_ad_units.rb +0 -105
- data/examples/v201602/label_service/create_labels.rb +0 -79
- data/examples/v201602/label_service/deactivate_labels.rb +0 -107
- data/examples/v201602/label_service/get_all_labels.rb +0 -82
- data/examples/v201602/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201602/label_service/update_labels.rb +0 -96
- data/examples/v201602/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201602/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201602/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201602/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201602/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201602/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201602/line_item_service/create_line_items.rb +0 -182
- data/examples/v201602/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201602/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201602/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201602/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201602/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201602/line_item_service/update_line_items.rb +0 -106
- data/examples/v201602/network_service/get_all_networks.rb +0 -70
- data/examples/v201602/network_service/get_current_network.rb +0 -62
- data/examples/v201602/network_service/make_test_network.rb +0 -75
- data/examples/v201602/order_service/approve_orders.rb +0 -110
- data/examples/v201602/order_service/create_orders.rb +0 -88
- data/examples/v201602/order_service/get_all_orders.rb +0 -80
- data/examples/v201602/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201602/order_service/update_orders.rb +0 -101
- data/examples/v201602/placement_service/create_placements.rb +0 -128
- data/examples/v201602/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201602/placement_service/get_all_placements.rb +0 -81
- data/examples/v201602/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201602/placement_service/update_placements.rb +0 -102
- data/examples/v201602/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201602/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201602/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201602/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201602/report_service/display_report.rb +0 -77
- data/examples/v201602/report_service/download_report.rb +0 -77
- data/examples/v201602/report_service/run_delivery_report.rb +0 -111
- data/examples/v201602/report_service/run_inventory_report.rb +0 -109
- data/examples/v201602/report_service/run_reach_report.rb +0 -85
- data/examples/v201602/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201602/report_service/run_sales_report.rb +0 -89
- data/examples/v201602/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201602/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201602/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201602/team_service/create_teams.rb +0 -79
- data/examples/v201602/team_service/get_all_teams.rb +0 -79
- data/examples/v201602/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201602/team_service/update_teams.rb +0 -94
- data/examples/v201602/user_service/create_users.rb +0 -85
- data/examples/v201602/user_service/deactivate_users.rb +0 -94
- data/examples/v201602/user_service/get_all_roles.rb +0 -69
- data/examples/v201602/user_service/get_all_users.rb +0 -79
- data/examples/v201602/user_service/get_current_user.rb +0 -62
- data/examples/v201602/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201602/user_service/update_users.rb +0 -94
- data/examples/v201602/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201602/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201602/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201602/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201602/user_team_association_service/update_user_team_associations.rb +0 -98
- data/examples/v201605/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201605/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201605/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201605/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201605/activity_service/create_activities.rb +0 -87
- data/examples/v201605/activity_service/get_active_activities.rb +0 -87
- data/examples/v201605/activity_service/get_all_activities.rb +0 -81
- data/examples/v201605/activity_service/update_activities.rb +0 -96
- data/examples/v201605/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201605/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201605/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201605/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201605/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201605/common/error_handling.rb +0 -72
- data/examples/v201605/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201605/common/setup_oauth2.rb +0 -85
- data/examples/v201605/company_service/create_companies.rb +0 -78
- data/examples/v201605/company_service/get_all_companies.rb +0 -80
- data/examples/v201605/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201605/company_service/update_companies.rb +0 -104
- data/examples/v201605/contact_service/create_contacts.rb +0 -91
- data/examples/v201605/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201605/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201605/contact_service/update_contacts.rb +0 -96
- data/examples/v201605/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201605/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201605/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201605/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201605/content_service/get_all_content.rb +0 -81
- data/examples/v201605/content_service/get_content_by_category.rb +0 -127
- data/examples/v201605/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201605/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201605/creative_service/create_creatives.rb +0 -108
- data/examples/v201605/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201605/creative_service/create_native_creative.rb +0 -189
- data/examples/v201605/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201605/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201605/creative_service/update_creatives.rb +0 -97
- data/examples/v201605/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201605/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201605/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201605/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201605/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201605/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201605/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201605/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201605/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201605/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201605/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201605/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201605/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201605/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201605/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201605/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201605/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201605/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201605/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201605/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201605/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201605/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201605/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201605/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201605/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201605/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201605/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201605/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201605/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201605/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201605/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201605/inventory_service/create_video_ad_unit.rb +0 -103
- data/examples/v201605/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201605/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201605/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201605/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201605/inventory_service/update_ad_units.rb +0 -105
- data/examples/v201605/label_service/create_labels.rb +0 -79
- data/examples/v201605/label_service/deactivate_labels.rb +0 -107
- data/examples/v201605/label_service/get_all_labels.rb +0 -82
- data/examples/v201605/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201605/label_service/update_labels.rb +0 -96
- data/examples/v201605/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201605/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201605/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201605/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201605/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201605/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201605/line_item_service/create_line_items.rb +0 -182
- data/examples/v201605/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201605/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201605/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201605/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201605/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201605/line_item_service/update_line_items.rb +0 -106
- data/examples/v201605/network_service/get_all_networks.rb +0 -70
- data/examples/v201605/network_service/get_current_network.rb +0 -62
- data/examples/v201605/network_service/make_test_network.rb +0 -75
- data/examples/v201605/order_service/approve_orders.rb +0 -110
- data/examples/v201605/order_service/create_orders.rb +0 -88
- data/examples/v201605/order_service/get_all_orders.rb +0 -80
- data/examples/v201605/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201605/order_service/update_orders.rb +0 -101
- data/examples/v201605/placement_service/create_placements.rb +0 -128
- data/examples/v201605/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201605/placement_service/get_all_placements.rb +0 -81
- data/examples/v201605/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201605/placement_service/update_placements.rb +0 -102
- data/examples/v201605/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201605/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201605/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201605/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201605/report_service/display_report.rb +0 -77
- data/examples/v201605/report_service/download_report.rb +0 -77
- data/examples/v201605/report_service/run_delivery_report.rb +0 -111
- data/examples/v201605/report_service/run_inventory_report.rb +0 -109
- data/examples/v201605/report_service/run_reach_report.rb +0 -85
- data/examples/v201605/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201605/report_service/run_sales_report.rb +0 -89
- data/examples/v201605/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201605/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201605/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201605/team_service/create_teams.rb +0 -79
- data/examples/v201605/team_service/get_all_teams.rb +0 -79
- data/examples/v201605/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201605/team_service/update_teams.rb +0 -94
- data/examples/v201605/user_service/create_users.rb +0 -85
- data/examples/v201605/user_service/deactivate_users.rb +0 -94
- data/examples/v201605/user_service/get_all_roles.rb +0 -69
- data/examples/v201605/user_service/get_all_users.rb +0 -79
- data/examples/v201605/user_service/get_current_user.rb +0 -62
- data/examples/v201605/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201605/user_service/update_users.rb +0 -94
- data/examples/v201605/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201605/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201605/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201605/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201605/user_team_association_service/update_user_team_associations.rb +0 -98
- data/examples/v201608/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201608/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201608/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201608/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201608/activity_service/create_activities.rb +0 -87
- data/examples/v201608/activity_service/get_active_activities.rb +0 -87
- data/examples/v201608/activity_service/get_all_activities.rb +0 -81
- data/examples/v201608/activity_service/update_activities.rb +0 -96
- data/examples/v201608/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201608/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201608/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201608/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201608/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201608/common/error_handling.rb +0 -72
- data/examples/v201608/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201608/common/setup_oauth2.rb +0 -85
- data/examples/v201608/company_service/create_companies.rb +0 -78
- data/examples/v201608/company_service/get_all_companies.rb +0 -80
- data/examples/v201608/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201608/company_service/update_companies.rb +0 -104
- data/examples/v201608/contact_service/create_contacts.rb +0 -91
- data/examples/v201608/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201608/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201608/contact_service/update_contacts.rb +0 -96
- data/examples/v201608/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201608/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201608/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201608/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201608/content_service/get_all_content.rb +0 -81
- data/examples/v201608/content_service/get_content_by_category.rb +0 -127
- data/examples/v201608/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201608/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201608/creative_service/create_creatives.rb +0 -108
- data/examples/v201608/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201608/creative_service/create_native_creative.rb +0 -189
- data/examples/v201608/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201608/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201608/creative_service/update_creatives.rb +0 -97
- data/examples/v201608/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201608/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201608/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201608/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201608/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201608/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201608/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201608/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201608/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201608/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201608/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201608/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201608/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201608/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201608/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201608/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201608/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201608/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201608/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201608/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201608/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201608/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201608/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201608/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201608/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201608/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201608/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201608/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201608/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201608/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201608/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201608/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201608/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201608/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201608/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201608/inventory_service/update_ad_units.rb +0 -113
- data/examples/v201608/label_service/create_labels.rb +0 -79
- data/examples/v201608/label_service/deactivate_labels.rb +0 -107
- data/examples/v201608/label_service/get_all_labels.rb +0 -82
- data/examples/v201608/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201608/label_service/update_labels.rb +0 -96
- data/examples/v201608/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201608/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201608/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201608/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201608/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201608/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201608/line_item_service/create_line_items.rb +0 -182
- data/examples/v201608/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201608/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201608/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201608/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201608/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201608/line_item_service/update_line_items.rb +0 -106
- data/examples/v201608/network_service/get_all_networks.rb +0 -70
- data/examples/v201608/network_service/get_current_network.rb +0 -62
- data/examples/v201608/network_service/make_test_network.rb +0 -75
- data/examples/v201608/order_service/approve_orders.rb +0 -110
- data/examples/v201608/order_service/create_orders.rb +0 -88
- data/examples/v201608/order_service/get_all_orders.rb +0 -80
- data/examples/v201608/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201608/order_service/update_orders.rb +0 -101
- data/examples/v201608/placement_service/create_placements.rb +0 -128
- data/examples/v201608/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201608/placement_service/get_all_placements.rb +0 -81
- data/examples/v201608/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201608/placement_service/update_placements.rb +0 -102
- data/examples/v201608/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201608/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201608/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201608/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201608/report_service/display_report.rb +0 -77
- data/examples/v201608/report_service/download_report.rb +0 -77
- data/examples/v201608/report_service/run_delivery_report.rb +0 -111
- data/examples/v201608/report_service/run_inventory_report.rb +0 -109
- data/examples/v201608/report_service/run_reach_report.rb +0 -85
- data/examples/v201608/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201608/report_service/run_sales_report.rb +0 -89
- data/examples/v201608/report_service/run_saved_query.rb +0 -105
- data/examples/v201608/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201608/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201608/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201608/team_service/create_teams.rb +0 -79
- data/examples/v201608/team_service/get_all_teams.rb +0 -79
- data/examples/v201608/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201608/team_service/update_teams.rb +0 -88
- data/examples/v201608/user_service/create_users.rb +0 -85
- data/examples/v201608/user_service/deactivate_users.rb +0 -94
- data/examples/v201608/user_service/get_all_roles.rb +0 -69
- data/examples/v201608/user_service/get_all_users.rb +0 -79
- data/examples/v201608/user_service/get_current_user.rb +0 -62
- data/examples/v201608/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201608/user_service/update_users.rb +0 -94
- data/examples/v201608/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201608/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201608/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201608/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201608/user_team_association_service/update_user_team_associations.rb +0 -98
- data/lib/dfp_api/v201508/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201508/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201508/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201508/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201508/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/company_service.rb +0 -54
- data/lib/dfp_api/v201508/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/contact_service.rb +0 -54
- data/lib/dfp_api/v201508/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201508/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_service.rb +0 -46
- data/lib/dfp_api/v201508/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_service.rb +0 -54
- data/lib/dfp_api/v201508/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201508/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/forecast_service.rb +0 -62
- data/lib/dfp_api/v201508/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_service.rb +0 -62
- data/lib/dfp_api/v201508/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201508/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/live_stream_event_service.rb +0 -62
- data/lib/dfp_api/v201508/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/network_service.rb +0 -62
- data/lib/dfp_api/v201508/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/product_package_service.rb +0 -62
- data/lib/dfp_api/v201508/product_service.rb +0 -54
- data/lib/dfp_api/v201508/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/product_template_service.rb +0 -62
- data/lib/dfp_api/v201508/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201508/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201508/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201508/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201508/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201508/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/activity_service.rb +0 -54
- data/lib/dfp_api/v201511/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201511/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201511/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201511/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201511/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201511/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201511/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/inventory_service.rb +0 -70
- data/lib/dfp_api/v201511/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/label_service.rb +0 -62
- data/lib/dfp_api/v201511/line_item_creative_association_service.rb +0 -70
- data/lib/dfp_api/v201511/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/order_service.rb +0 -62
- data/lib/dfp_api/v201511/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/package_service.rb +0 -62
- data/lib/dfp_api/v201511/placement_service.rb +0 -62
- data/lib/dfp_api/v201511/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201511/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201511/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201511/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/proposal_service.rb +0 -62
- data/lib/dfp_api/v201511/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201511/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201511/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/report_service.rb +0 -62
- data/lib/dfp_api/v201511/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201511/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201511/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/team_service.rb +0 -54
- data/lib/dfp_api/v201511/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/user_service.rb +0 -78
- data/lib/dfp_api/v201511/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/workflow_request_service.rb +0 -46
- data/test/dfp_api/test_config.yml +0 -9
- data/test/suite_unittests.rb +0 -34
@@ -1,99 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This code example populates specific rule based first party audience segment.
|
20
|
-
# To determine which audience segments exist, run get_audience_segments.rb.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
|
25
|
-
API_VERSION = :v201602
|
26
|
-
|
27
|
-
def populate_first_party_audience_segments(audience_segment_id)
|
28
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
# Get the AudienceSegmentService.
|
36
|
-
audience_segment_service = dfp.service(:AudienceSegmentService, API_VERSION)
|
37
|
-
|
38
|
-
# Statement parts to help build a statement to select first party audience
|
39
|
-
# segment for an ID.
|
40
|
-
statement = DfpApi::FilterStatement.new(
|
41
|
-
'WHERE type = :type AND id = :audience_segment_id ORDER BY id ASC',
|
42
|
-
[
|
43
|
-
{:key => 'type',
|
44
|
-
:value => {:value => 'FIRST_PARTY', :xsi_type => 'TextValue'}},
|
45
|
-
{:key => 'audience_segment_id',
|
46
|
-
:value => {:value => audience_segment_id, :xsi_type => 'TextValue'}},
|
47
|
-
],
|
48
|
-
1
|
49
|
-
)
|
50
|
-
|
51
|
-
# Get audience segments by statement.
|
52
|
-
page = audience_segment_service.get_audience_segments_by_statement(
|
53
|
-
statement.toStatement())
|
54
|
-
|
55
|
-
if page[:results]
|
56
|
-
page[:results].each do |segment|
|
57
|
-
puts "First party audience segment ID: %d, name: '%s' will be populated" %
|
58
|
-
[segment[:id], segment[:name]]
|
59
|
-
|
60
|
-
# Perform action.
|
61
|
-
result = audience_segment_service.perform_audience_segment_action(
|
62
|
-
{:xsi_type => 'PopulateAudienceSegments'},
|
63
|
-
{:query => statement.toStatement()})
|
64
|
-
|
65
|
-
# Display results.
|
66
|
-
if result and result[:num_changes] > 0
|
67
|
-
puts 'Number of audience segments populated: %d.' % result[:num_changes]
|
68
|
-
else
|
69
|
-
puts 'No audience segments were populated.'
|
70
|
-
end
|
71
|
-
end
|
72
|
-
else
|
73
|
-
puts 'No first party audience segments found to populate.'
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
if __FILE__ == $0
|
78
|
-
begin
|
79
|
-
# Audience segment ID to populate.
|
80
|
-
audience_segment_id = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'
|
81
|
-
|
82
|
-
populate_first_party_audience_segments(audience_segment_id)
|
83
|
-
|
84
|
-
# HTTP errors.
|
85
|
-
rescue AdsCommon::Errors::HttpError => e
|
86
|
-
puts "HTTP Error: %s" % e
|
87
|
-
|
88
|
-
# API errors.
|
89
|
-
rescue DfpApi::Errors::ApiException => e
|
90
|
-
puts "Message: %s" % e.message
|
91
|
-
puts 'Errors:'
|
92
|
-
e.errors.each_with_index do |error, index|
|
93
|
-
puts "\tError [%d]:" % (index + 1)
|
94
|
-
error.each do |field, value|
|
95
|
-
puts "\t\t%s: %s" % [field, value]
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2013, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This example updates rule based first party audience segments. To determine
|
20
|
-
# which first party audience segments exist, run
|
21
|
-
# get_all_first_party_audience_segments.rb.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
|
26
|
-
API_VERSION = :v201602
|
27
|
-
|
28
|
-
def update_audience_segments()
|
29
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
30
|
-
dfp = DfpApi::Api.new
|
31
|
-
|
32
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
33
|
-
# the configuration file or provide your own logger:
|
34
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
35
|
-
|
36
|
-
# Set the ID of the first party audience segment to update.
|
37
|
-
audience_segment_id = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'
|
38
|
-
|
39
|
-
# Get the AudienceSegmentService.
|
40
|
-
audience_segment_service = dfp.service(:AudienceSegmentService, API_VERSION)
|
41
|
-
|
42
|
-
# Create statement text to select the audience segment to update.
|
43
|
-
statement = DfpApi::FilterStatement.new(
|
44
|
-
'WHERE id = :segment_id ORDER BY id ASC',
|
45
|
-
[
|
46
|
-
{:key => 'segment_id',
|
47
|
-
:value => {:value => audience_segment_id, :xsi_type => 'NumberValue'}}
|
48
|
-
],
|
49
|
-
1
|
50
|
-
)
|
51
|
-
|
52
|
-
# Get audience segments by statement.
|
53
|
-
page = audience_segment_service.get_audience_segments_by_statement(
|
54
|
-
statement.toStatement())
|
55
|
-
|
56
|
-
if page[:results]
|
57
|
-
audience_segments = page[:results]
|
58
|
-
|
59
|
-
# Create a local set of audience segments than need to be updated.
|
60
|
-
audience_segments.each do |audience_segment|
|
61
|
-
audience_segment[:membership_expiration_days] = 180
|
62
|
-
end
|
63
|
-
|
64
|
-
# Update the audience segments on the server.
|
65
|
-
return_audience_segments =
|
66
|
-
audience_segment_service.update_audience_segments(audience_segments)
|
67
|
-
return_audience_segments.each do |audience_segment|
|
68
|
-
puts 'Audience segment ID: %d was updated' % audience_segment[:id]
|
69
|
-
end
|
70
|
-
else
|
71
|
-
puts 'No audience segments found to update.'
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
if __FILE__ == $0
|
76
|
-
begin
|
77
|
-
update_audience_segments()
|
78
|
-
|
79
|
-
# HTTP errors.
|
80
|
-
rescue AdsCommon::Errors::HttpError => e
|
81
|
-
puts "HTTP Error: %s" % e
|
82
|
-
|
83
|
-
# API errors.
|
84
|
-
rescue DfpApi::Errors::ApiException => e
|
85
|
-
puts "Message: %s" % e.message
|
86
|
-
puts 'Errors:'
|
87
|
-
e.errors.each_with_index do |error, index|
|
88
|
-
puts "\tError [%d]:" % (index + 1)
|
89
|
-
error.each do |field, value|
|
90
|
-
puts "\t\t%s: %s" % [field, value]
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This example runs incorrect query and demonstrates how to handle errors.
|
20
|
-
|
21
|
-
require 'dfp_api'
|
22
|
-
|
23
|
-
API_VERSION = :v201602
|
24
|
-
|
25
|
-
def produce_api_error()
|
26
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
27
|
-
dfp = DfpApi::Api.new
|
28
|
-
|
29
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
30
|
-
# the configuration file or provide your own logger:
|
31
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
32
|
-
|
33
|
-
# Get the UserService.
|
34
|
-
user_service = dfp.service(:UserService, API_VERSION)
|
35
|
-
|
36
|
-
# Omitting "id" field here to produce an error.
|
37
|
-
user = {:preferred_locale => 'en_UK', :name => 'foo_bar'}
|
38
|
-
|
39
|
-
# Execute request and get the response, this should raise an exception.
|
40
|
-
user = user_service.update_user(user)
|
41
|
-
|
42
|
-
# Output retrieved data.
|
43
|
-
puts "User ID: %d, name: %s, email: %s" %
|
44
|
-
[user[:id], user[:name], user[:email]]
|
45
|
-
end
|
46
|
-
|
47
|
-
if __FILE__ == $0
|
48
|
-
begin
|
49
|
-
# This function should produce an exception for demo.
|
50
|
-
produce_api_error()
|
51
|
-
|
52
|
-
# One of two kinds of exception might occur, general HTTP error like 403 or
|
53
|
-
# 404 and DFP API error defined in WSDL and described in documentation.
|
54
|
-
|
55
|
-
# Handling HTTP errors.
|
56
|
-
rescue AdsCommon::Errors::HttpError => e
|
57
|
-
puts "HTTP Error: %s" % e
|
58
|
-
|
59
|
-
# Handling API errors.
|
60
|
-
rescue DfpApi::Errors::ApiException => e
|
61
|
-
# Standard DFP API error includes message and array of errors occured.
|
62
|
-
puts "Message: %s" % e.message
|
63
|
-
puts 'Errors:'
|
64
|
-
# Print out each of the errors.
|
65
|
-
e.errors.each_with_index do |error, index|
|
66
|
-
puts "\tError [%d]:" % (index + 1)
|
67
|
-
error.each do |field, value|
|
68
|
-
puts "\t\t%s: %s" % [field, value]
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,99 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This example illustrates how to use OAuth2 authentication method with
|
20
|
-
# Service Account (JWT). For this example to work, your Service Account must be
|
21
|
-
# a Google Apps for Business Account.
|
22
|
-
#
|
23
|
-
# See https://developers.google.com/doubleclick-publishers/docs/service_accounts
|
24
|
-
# for more information.
|
25
|
-
|
26
|
-
require 'dfp_api'
|
27
|
-
|
28
|
-
|
29
|
-
API_VERSION = :v201602
|
30
|
-
|
31
|
-
def oauth2_jwt_handling()
|
32
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
33
|
-
dfp = DfpApi::Api.new
|
34
|
-
|
35
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
36
|
-
# the configuration file or provide your own logger:
|
37
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
38
|
-
|
39
|
-
# Option 1: provide key filename as authentication -> oauth2_keyfile in the
|
40
|
-
# configuration file. No additional code is necessary.
|
41
|
-
# To provide a file name at runtime, use authorize:
|
42
|
-
# dfp.authorize({:oauth2_keyfile => key_filename})
|
43
|
-
|
44
|
-
# Option 2: retrieve key manually and create OpenSSL::PKCS12 object.
|
45
|
-
# key_filename = 'INSERT_FILENAME_HERE'
|
46
|
-
# key_secret = 'INSERT_SECRET_HERE'
|
47
|
-
# key_file_data = File.read(key_filename)
|
48
|
-
# key = OpenSSL::PKCS12.new(key_file_data, key_secret).key
|
49
|
-
# dfp.authorize({:oauth2_key => key})
|
50
|
-
|
51
|
-
# Now you can make API calls.
|
52
|
-
|
53
|
-
# Get the UserService.
|
54
|
-
user_service = dfp.service(:UserService, API_VERSION)
|
55
|
-
|
56
|
-
# Create a statement to select all users.
|
57
|
-
statement = DfpApi::FilterStatement.new('ORDER BY id ASC')
|
58
|
-
# Define initial values.
|
59
|
-
|
60
|
-
begin
|
61
|
-
# Get users by statement.
|
62
|
-
page = user_service.get_users_by_statement(
|
63
|
-
statement.toStatement())
|
64
|
-
|
65
|
-
if page[:results]
|
66
|
-
page[:results].each_with_index do |user, index|
|
67
|
-
puts "%d) User ID: %d, name: %s, email: %s" %
|
68
|
-
[index + statement.offset, user[:id], user[:name], user[:email]]
|
69
|
-
end
|
70
|
-
end
|
71
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
72
|
-
end while statement.offset < page[:total_result_set_size]
|
73
|
-
|
74
|
-
# Print a footer
|
75
|
-
if page.include?(:total_result_set_size)
|
76
|
-
puts "Total number of users: %d" % page[:total_result_set_size]
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
if __FILE__ == $0
|
81
|
-
begin
|
82
|
-
oauth2_jwt_handling()
|
83
|
-
|
84
|
-
# HTTP errors.
|
85
|
-
rescue AdsCommon::Errors::HttpError => e
|
86
|
-
puts "HTTP Error: %s" % e
|
87
|
-
|
88
|
-
# API errors.
|
89
|
-
rescue DfpApi::Errors::ApiException => e
|
90
|
-
puts "Message: %s" % e.message
|
91
|
-
puts 'Errors:'
|
92
|
-
e.errors.each_with_index do |error, index|
|
93
|
-
puts "\tError [%d]:" % (index + 1)
|
94
|
-
error.each do |field, value|
|
95
|
-
puts "\t\t%s: %s" % [field, value]
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This example shows how to use OAuth2 authorization method. It is designed to
|
20
|
-
# be run from console and requires user input.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
API_VERSION = :v201602
|
25
|
-
|
26
|
-
def setup_oauth2()
|
27
|
-
# DfpApi::Api will read a config file from ENV['HOME']/dfp_api.yml
|
28
|
-
# when called without parameters.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
# You can call authorize explicitly to obtain the access token. Otherwise, it
|
36
|
-
# will be invoked automatically on the first API call.
|
37
|
-
# There are two ways to provide verification code, first one is via the block:
|
38
|
-
token = dfp.authorize() do |auth_url|
|
39
|
-
puts "Hit Auth error, please navigate to URL:\n\t%s" % auth_url
|
40
|
-
print 'log in and type the verification code: '
|
41
|
-
verification_code = gets.chomp
|
42
|
-
verification_code
|
43
|
-
end
|
44
|
-
if token
|
45
|
-
print "\nWould you like to update your dfp_api.yml to save " +
|
46
|
-
"OAuth2 credentials? (y/N): "
|
47
|
-
response = gets.chomp
|
48
|
-
if ('y'.casecmp(response) == 0) or ('yes'.casecmp(response) == 0)
|
49
|
-
dfp.save_oauth2_token(token)
|
50
|
-
puts 'OAuth2 token is now saved to ~/dfp_api.yml and will be ' +
|
51
|
-
'automatically used by the library.'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
# Alternatively, you can provide one within the parameters:
|
56
|
-
# token = dfp.authorize({:oauth2_verification_code => verification_code})
|
57
|
-
|
58
|
-
# Note, 'token' is a Hash. Its value is not used in this example. If you need
|
59
|
-
# to be able to access the API in offline mode, with no user present, you
|
60
|
-
# should persist it to be used in subsequent invocations like this:
|
61
|
-
# dfp.authorize({:oauth2_token => token})
|
62
|
-
|
63
|
-
# No exception thrown - we are good to make a request.
|
64
|
-
end
|
65
|
-
|
66
|
-
if __FILE__ == $0
|
67
|
-
begin
|
68
|
-
setup_oauth2()
|
69
|
-
|
70
|
-
# HTTP errors.
|
71
|
-
rescue AdsCommon::Errors::HttpError => e
|
72
|
-
puts "HTTP Error: %s" % e
|
73
|
-
|
74
|
-
# API errors.
|
75
|
-
rescue DfpApi::Errors::ApiException => e
|
76
|
-
puts "Message: %s" % e.message
|
77
|
-
puts 'Errors:'
|
78
|
-
e.errors.each_with_index do |error, index|
|
79
|
-
puts "\tError [%d]:" % (index + 1)
|
80
|
-
error.each do |field, value|
|
81
|
-
puts "\t\t%s: %s" % [field, value]
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|