google-dfp-api 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/dfp_api.yml +1 -1
- data/examples/{v201508 → v201608}/activity_group_service/create_activity_groups.rb +1 -1
- data/examples/{v201511 → v201608}/activity_group_service/get_active_activity_groups.rb +1 -1
- data/examples/{v201508 → v201608}/activity_group_service/get_all_activity_groups.rb +1 -1
- data/examples/{v201511 → v201608}/activity_group_service/update_activity_groups.rb +1 -1
- data/examples/{v201511 → v201608}/activity_service/create_activities.rb +1 -1
- data/examples/{v201508 → v201608}/activity_service/get_active_activities.rb +1 -1
- data/examples/{v201511 → v201608}/activity_service/get_all_activities.rb +1 -1
- data/examples/{v201508 → v201608}/activity_service/update_activities.rb +1 -1
- data/examples/{v201511 → v201608}/audience_segment_service/create_audience_segments.rb +1 -1
- data/examples/{v201508 → v201608}/audience_segment_service/get_all_audience_segments.rb +1 -1
- data/examples/{v201508 → v201608}/audience_segment_service/get_first_party_audience_segments.rb +1 -1
- data/examples/{v201508 → v201608}/audience_segment_service/populate_first_party_audience_segments.rb +1 -1
- data/examples/{v201508 → v201608}/audience_segment_service/update_audience_segments.rb +1 -1
- data/examples/{v201511 → v201608}/common/error_handling.rb +1 -1
- data/examples/{v201508 → v201608}/common/oauth2_jwt_handling.rb +1 -1
- data/examples/{v201511 → v201608}/common/setup_oauth2.rb +1 -1
- data/examples/{v201511 → v201608}/company_service/create_companies.rb +1 -1
- data/examples/{v201508 → v201608}/company_service/get_all_companies.rb +1 -1
- data/examples/{v201511 → v201608}/company_service/get_companies_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/company_service/update_companies.rb +1 -1
- data/examples/{v201508 → v201608}/contact_service/create_contacts.rb +1 -1
- data/examples/{v201511 → v201608}/contact_service/get_all_contacts.rb +1 -1
- data/examples/{v201511 → v201608}/contact_service/get_uninvited_contacts.rb +1 -1
- data/examples/{v201511 → v201608}/contact_service/update_contacts.rb +1 -1
- data/examples/{v201511 → v201608}/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +1 -1
- data/examples/{v201511 → v201608}/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +1 -1
- data/examples/{v201511 → v201608}/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +1 -1
- data/examples/{v201511 → v201608}/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +1 -1
- data/examples/{v201511 → v201608}/content_service/get_all_content.rb +1 -1
- data/examples/{v201511 → v201608}/content_service/get_content_by_category.rb +1 -1
- data/examples/{v201511 → v201608}/creative_service/copy_image_creatives.rb +1 -1
- data/examples/{v201511 → v201608}/creative_service/create_creative_from_template.rb +1 -1
- data/examples/{v201511 → v201608}/creative_service/create_creatives.rb +1 -1
- data/examples/{v201511 → v201608}/creative_service/create_custom_creative.rb +1 -1
- data/examples/{v201511 → v201608}/creative_service/create_native_creative.rb +1 -1
- data/examples/{v201508 → v201608}/creative_service/get_all_creatives.rb +1 -1
- data/examples/{v201508 → v201608}/creative_service/get_creatives_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/creative_service/update_creatives.rb +1 -1
- data/examples/{v201511 → v201608}/creative_set_service/associate_creative_set_to_line_item.rb +1 -1
- data/examples/{v201508 → v201608}/creative_set_service/create_creative_set.rb +1 -1
- data/examples/{v201511 → v201608}/creative_set_service/get_all_creative_sets.rb +1 -1
- data/examples/{v201508 → v201608}/creative_set_service/get_creative_sets_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/creative_set_service/update_creative_sets.rb +1 -1
- data/examples/{v201511 → v201608}/creative_template_service/get_all_creative_templates.rb +1 -1
- data/examples/{v201508 → v201608}/creative_template_service/get_system_defined_creative_templates.rb +1 -1
- data/examples/{v201511 → v201608}/creative_wrapper_service/create_creative_wrappers.rb +1 -1
- data/examples/{v201508 → v201608}/creative_wrapper_service/deactivate_creative_wrapper.rb +1 -1
- data/examples/{v201511 → v201608}/creative_wrapper_service/get_all_creative_wrappers.rb +1 -1
- data/examples/{v201511 → v201608}/creative_wrapper_service/get_creative_wrappers_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/creative_wrapper_service/update_creative_wrappers.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/create_custom_field_options.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/create_custom_fields.rb +1 -1
- data/examples/{v201508 → v201608}/custom_field_service/deactivate_all_line_item_custom_fields.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/get_all_custom_fields.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/get_all_line_item_custom_fields.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/set_line_item_custom_field_value.rb +1 -1
- data/examples/{v201511 → v201608}/custom_field_service/update_custom_fields.rb +1 -1
- data/examples/{v201508 → v201608}/custom_targeting_service/create_custom_targeting_keys_and_values.rb +1 -1
- data/examples/{v201508 → v201608}/custom_targeting_service/delete_custom_targeting_keys.rb +1 -1
- data/examples/{v201511 → v201608}/custom_targeting_service/delete_custom_targeting_values.rb +1 -1
- data/examples/{v201508 → v201608}/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +1 -1
- data/examples/{v201511 → v201608}/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/custom_targeting_service/get_custom_targeting_values_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/custom_targeting_service/update_custom_targeting_keys.rb +1 -1
- data/examples/{v201511 → v201608}/custom_targeting_service/update_custom_targeting_values.rb +1 -1
- data/examples/{v201508 → v201608}/forecast_service/get_availability_forecast.rb +1 -1
- data/examples/{v201511 → v201608}/forecast_service/get_availability_forecast_for_line_item.rb +1 -1
- data/examples/{v201508 → v201608}/forecast_service/get_delivery_forecast_for_line_items.rb +1 -1
- data/examples/{v201508 → v201608}/inventory_service/create_ad_units.rb +1 -1
- data/examples/{v201511 → v201608}/inventory_service/deactivate_ad_units.rb +1 -1
- data/examples/{v201511 → v201608}/inventory_service/get_ad_unit_sizes.rb +1 -1
- data/examples/{v201511 → v201608}/inventory_service/get_ad_units_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/inventory_service/get_all_ad_units.rb +1 -1
- data/examples/{v201508 → v201608}/inventory_service/update_ad_units.rb +14 -6
- data/examples/{v201511 → v201608}/label_service/create_labels.rb +1 -1
- data/examples/{v201511 → v201608}/label_service/deactivate_labels.rb +1 -1
- data/examples/{v201508 → v201608}/label_service/get_all_labels.rb +1 -1
- data/examples/{v201508 → v201608}/label_service/get_labels_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/label_service/update_labels.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_creative_association_service/create_licas.rb +1 -1
- data/examples/{v201511 → v201608}/line_item_creative_association_service/deactivate_licas.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_creative_association_service/get_all_licas.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_creative_association_service/get_licas_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_creative_association_service/update_licas.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_service/activate_line_items.rb +1 -1
- data/examples/{v201511 → v201608}/line_item_service/create_line_items.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_service/create_video_line_item.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_service/get_all_line_items.rb +1 -1
- data/examples/{v201511 → v201608}/line_item_service/get_line_items_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/line_item_service/get_recently_updated_line_items.rb +1 -1
- data/examples/{v201511 → v201608}/line_item_service/target_custom_criteria.rb +1 -1
- data/examples/{v201511 → v201608}/line_item_service/update_line_items.rb +1 -1
- data/examples/{v201511 → v201608}/network_service/get_all_networks.rb +1 -1
- data/examples/{v201511 → v201608}/network_service/get_current_network.rb +1 -1
- data/examples/{v201508 → v201608}/network_service/make_test_network.rb +1 -1
- data/examples/{v201511 → v201608}/order_service/approve_orders.rb +1 -1
- data/examples/{v201511 → v201608}/order_service/create_orders.rb +1 -1
- data/examples/{v201508 → v201608}/order_service/get_all_orders.rb +1 -1
- data/examples/{v201508 → v201608}/order_service/get_orders_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/order_service/update_orders.rb +1 -1
- data/examples/{v201511 → v201608}/placement_service/create_placements.rb +1 -1
- data/examples/{v201508 → v201608}/placement_service/deactivate_placements.rb +1 -1
- data/examples/{v201511 → v201608}/placement_service/get_all_placements.rb +1 -1
- data/examples/{v201508 → v201608}/placement_service/get_placements_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/placement_service/update_placements.rb +1 -1
- data/examples/{v201508 → v201608}/publisher_query_language_service/fetch_match_tables.rb +2 -2
- data/examples/{v201511 → v201608}/publisher_query_language_service/get_all_line_items.rb +1 -1
- data/examples/{v201511 → v201608}/publisher_query_language_service/get_geo_targets.rb +1 -1
- data/examples/{v201508 → v201608}/publisher_query_language_service/get_line_items_named_like.rb +1 -1
- data/examples/{v201508 → v201608}/report_service/display_report.rb +1 -1
- data/examples/{v201508 → v201608}/report_service/download_report.rb +1 -1
- data/examples/{v201511 → v201608}/report_service/run_delivery_report.rb +1 -1
- data/examples/{v201511 → v201608}/report_service/run_inventory_report.rb +1 -1
- data/examples/{v201511 → v201608}/report_service/run_reach_report.rb +1 -1
- data/examples/{v201508 → v201608}/report_service/run_report_with_custom_fields.rb +1 -1
- data/examples/{v201511 → v201608}/report_service/run_sales_report.rb +1 -1
- data/examples/v201608/report_service/run_saved_query.rb +105 -0
- data/examples/{v201511 → v201608}/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +2 -2
- data/examples/{v201511 → v201608}/suggested_ad_unit_service/get_all_suggested_ad_units.rb +1 -1
- data/examples/{v201508 → v201608}/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/team_service/create_teams.rb +1 -1
- data/examples/{v201508 → v201608}/team_service/get_all_teams.rb +1 -1
- data/examples/{v201508 → v201608}/team_service/get_teams_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/team_service/update_teams.rb +7 -13
- data/examples/{v201508 → v201608}/user_service/create_users.rb +2 -2
- data/examples/{v201511 → v201608}/user_service/deactivate_users.rb +1 -1
- data/examples/{v201511 → v201608}/user_service/get_all_roles.rb +1 -1
- data/examples/{v201508 → v201608}/user_service/get_all_users.rb +1 -1
- data/examples/{v201508 → v201608}/user_service/get_current_user.rb +1 -1
- data/examples/{v201508 → v201608}/user_service/get_users_by_statement.rb +1 -1
- data/examples/{v201508 → v201608}/user_service/update_users.rb +1 -1
- data/examples/{v201508 → v201608}/user_team_association_service/create_user_team_associations.rb +1 -1
- data/examples/{v201508 → v201608}/user_team_association_service/delete_user_team_associations.rb +1 -1
- data/examples/{v201511 → v201608}/user_team_association_service/get_all_user_team_associations.rb +1 -1
- data/examples/{v201508 → v201608}/user_team_association_service/get_user_team_associations_by_statement.rb +1 -1
- data/examples/{v201511 → v201608}/user_team_association_service/update_user_team_associations.rb +1 -1
- data/lib/dfp_api/api_config.rb +11 -10
- data/lib/dfp_api/credential_handler.rb +10 -3
- data/lib/dfp_api/v201508/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201508/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/activity_service.rb +1 -1
- data/lib/dfp_api/v201508/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201508/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201508/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201508/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201508/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/company_service.rb +1 -1
- data/lib/dfp_api/v201508/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/contact_service.rb +1 -1
- data/lib/dfp_api/v201508/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201508/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/content_service.rb +1 -1
- data/lib/dfp_api/v201508/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/creative_service.rb +1 -1
- data/lib/dfp_api/v201508/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201508/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201508/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201508/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201508/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201508/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201508/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/forecast_service.rb +1 -1
- data/lib/dfp_api/v201508/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/inventory_service.rb +1 -1
- data/lib/dfp_api/v201508/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/label_service.rb +1 -1
- data/lib/dfp_api/v201508/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201508/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/line_item_service.rb +1 -1
- data/lib/dfp_api/v201508/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201508/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201508/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/network_service.rb +1 -1
- data/lib/dfp_api/v201508/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/order_service.rb +1 -1
- data/lib/dfp_api/v201508/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/package_service.rb +1 -1
- data/lib/dfp_api/v201508/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/placement_service.rb +1 -1
- data/lib/dfp_api/v201508/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201508/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/product_package_item_service.rb +1 -1
- data/lib/dfp_api/v201508/product_package_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/product_package_service.rb +1 -1
- data/lib/dfp_api/v201508/product_package_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/product_service.rb +1 -1
- data/lib/dfp_api/v201508/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/product_template_service.rb +1 -1
- data/lib/dfp_api/v201508/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201508/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/proposal_service.rb +1 -1
- data/lib/dfp_api/v201508/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201508/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201508/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service.rb +1 -1
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201508/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201508/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201508/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/report_service.rb +1 -1
- data/lib/dfp_api/v201508/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/shared_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201508/shared_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201508/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/team_service.rb +1 -1
- data/lib/dfp_api/v201508/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/user_service.rb +1 -1
- data/lib/dfp_api/v201508/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201508/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201508/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201511/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/activity_service.rb +1 -1
- data/lib/dfp_api/v201511/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201511/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201511/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201511/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201511/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/company_service.rb +1 -1
- data/lib/dfp_api/v201511/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/contact_service.rb +1 -1
- data/lib/dfp_api/v201511/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201511/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201511/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/content_service.rb +1 -1
- data/lib/dfp_api/v201511/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/creative_service.rb +1 -1
- data/lib/dfp_api/v201511/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201511/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201511/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201511/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201511/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201511/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201511/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/forecast_service.rb +1 -1
- data/lib/dfp_api/v201511/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/inventory_service.rb +1 -1
- data/lib/dfp_api/v201511/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/label_service.rb +1 -1
- data/lib/dfp_api/v201511/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201511/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/line_item_service.rb +1 -1
- data/lib/dfp_api/v201511/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201511/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201511/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/network_service.rb +1 -1
- data/lib/dfp_api/v201511/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/order_service.rb +1 -1
- data/lib/dfp_api/v201511/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/package_service.rb +1 -1
- data/lib/dfp_api/v201511/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/placement_service.rb +1 -1
- data/lib/dfp_api/v201511/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201511/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/product_package_item_service.rb +1 -1
- data/lib/dfp_api/v201511/product_package_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/product_package_service.rb +1 -1
- data/lib/dfp_api/v201511/product_package_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/product_service.rb +1 -1
- data/lib/dfp_api/v201511/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/product_template_service.rb +1 -1
- data/lib/dfp_api/v201511/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201511/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/proposal_service.rb +1 -1
- data/lib/dfp_api/v201511/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201511/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201511/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service.rb +1 -1
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201511/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201511/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201511/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/report_service.rb +1 -1
- data/lib/dfp_api/v201511/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201511/shared_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201511/shared_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201511/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/team_service.rb +1 -1
- data/lib/dfp_api/v201511/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/user_service.rb +1 -1
- data/lib/dfp_api/v201511/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201511/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201511/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201602/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/activity_service.rb +1 -1
- data/lib/dfp_api/v201602/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201602/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201602/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201602/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201602/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/company_service.rb +1 -1
- data/lib/dfp_api/v201602/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/contact_service.rb +1 -1
- data/lib/dfp_api/v201602/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201602/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201602/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/content_service.rb +1 -1
- data/lib/dfp_api/v201602/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/creative_service.rb +1 -1
- data/lib/dfp_api/v201602/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201602/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201602/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201602/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201602/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201602/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201602/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/forecast_service.rb +1 -1
- data/lib/dfp_api/v201602/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/inventory_service.rb +1 -1
- data/lib/dfp_api/v201602/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/label_service.rb +1 -1
- data/lib/dfp_api/v201602/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201602/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/line_item_service.rb +1 -1
- data/lib/dfp_api/v201602/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201602/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201602/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/network_service.rb +1 -1
- data/lib/dfp_api/v201602/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/order_service.rb +1 -1
- data/lib/dfp_api/v201602/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/package_service.rb +1 -1
- data/lib/dfp_api/v201602/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/placement_service.rb +1 -1
- data/lib/dfp_api/v201602/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201602/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/product_package_item_service.rb +1 -1
- data/lib/dfp_api/v201602/product_package_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/product_package_service.rb +1 -1
- data/lib/dfp_api/v201602/product_package_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/product_service.rb +1 -1
- data/lib/dfp_api/v201602/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/product_template_service.rb +1 -1
- data/lib/dfp_api/v201602/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201602/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/proposal_service.rb +1 -1
- data/lib/dfp_api/v201602/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201602/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201602/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/reconciliation_line_item_report_service.rb +1 -1
- data/lib/dfp_api/v201602/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201602/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201602/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201602/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/report_service.rb +1 -1
- data/lib/dfp_api/v201602/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201602/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/team_service.rb +1 -1
- data/lib/dfp_api/v201602/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201602/user_service.rb +1 -1
- data/lib/dfp_api/v201602/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201602/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201602/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201605/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/activity_service.rb +1 -1
- data/lib/dfp_api/v201605/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201605/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201605/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201605/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201605/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/company_service.rb +1 -1
- data/lib/dfp_api/v201605/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/contact_service.rb +1 -1
- data/lib/dfp_api/v201605/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201605/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201605/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/content_service.rb +1 -1
- data/lib/dfp_api/v201605/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/creative_service.rb +1 -1
- data/lib/dfp_api/v201605/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201605/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201605/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201605/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201605/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201605/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201605/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/forecast_service.rb +1 -1
- data/lib/dfp_api/v201605/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/inventory_service.rb +1 -1
- data/lib/dfp_api/v201605/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/label_service.rb +1 -1
- data/lib/dfp_api/v201605/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201605/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/line_item_service.rb +1 -1
- data/lib/dfp_api/v201605/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201605/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201605/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/network_service.rb +1 -1
- data/lib/dfp_api/v201605/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/order_service.rb +1 -1
- data/lib/dfp_api/v201605/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/package_service.rb +1 -1
- data/lib/dfp_api/v201605/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/placement_service.rb +1 -1
- data/lib/dfp_api/v201605/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201605/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/product_package_item_service.rb +1 -1
- data/lib/dfp_api/v201605/product_package_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/product_package_service.rb +1 -1
- data/lib/dfp_api/v201605/product_package_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/product_service.rb +1 -1
- data/lib/dfp_api/v201605/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/product_template_service.rb +1 -1
- data/lib/dfp_api/v201605/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201605/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/proposal_service.rb +1 -1
- data/lib/dfp_api/v201605/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201605/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201605/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/reconciliation_line_item_report_service.rb +1 -1
- data/lib/dfp_api/v201605/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201605/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201605/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201605/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/report_service.rb +1 -1
- data/lib/dfp_api/v201605/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201605/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/team_service.rb +1 -1
- data/lib/dfp_api/v201605/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201605/user_service.rb +1 -1
- data/lib/dfp_api/v201605/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201605/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201605/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/activity_group_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/activity_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/activity_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/ad_exclusion_rule_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/ad_exclusion_rule_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/ad_rule_service.rb +6 -6
- data/lib/dfp_api/v201608/ad_rule_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/audience_segment_service.rb +6 -6
- data/lib/dfp_api/v201608/audience_segment_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/base_rate_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/base_rate_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/company_service.rb +6 -6
- data/lib/dfp_api/v201608/company_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/contact_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/contact_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/content_bundle_service.rb +6 -6
- data/lib/dfp_api/v201608/content_bundle_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/content_metadata_key_hierarchy_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/content_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/content_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/creative_service.rb +6 -6
- data/lib/dfp_api/v201608/creative_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/creative_set_service.rb +6 -6
- data/lib/dfp_api/v201608/creative_set_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/creative_template_service.rb +6 -6
- data/lib/dfp_api/v201608/creative_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/creative_wrapper_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/custom_field_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/custom_field_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/custom_targeting_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/custom_targeting_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/exchange_rate_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/exchange_rate_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/forecast_service.rb +6 -6
- data/lib/dfp_api/v201608/forecast_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/inventory_service.rb +6 -6
- data/lib/dfp_api/v201608/inventory_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/label_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/label_service_registry.rb +2 -2
- data/lib/dfp_api/{v201505 → v201608}/line_item_creative_association_service.rb +6 -6
- data/lib/dfp_api/v201608/line_item_creative_association_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/line_item_service.rb +6 -6
- data/lib/dfp_api/v201608/line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/line_item_template_service.rb +6 -6
- data/lib/dfp_api/v201608/line_item_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/live_stream_event_service.rb +14 -6
- data/lib/dfp_api/{v201505 → v201608}/live_stream_event_service_registry.rb +4 -4
- data/lib/dfp_api/{v201505 → v201608}/network_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/network_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/order_service.rb +6 -6
- data/lib/dfp_api/v201608/order_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/package_service.rb +6 -6
- data/lib/dfp_api/v201608/package_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/placement_service.rb +6 -6
- data/lib/dfp_api/v201608/placement_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/premium_rate_service.rb +6 -6
- data/lib/dfp_api/v201608/premium_rate_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/product_package_item_service.rb +6 -6
- data/lib/dfp_api/v201608/product_package_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/product_package_service.rb +6 -6
- data/lib/dfp_api/v201608/product_package_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/product_service.rb +14 -6
- data/lib/dfp_api/v201608/product_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/product_template_service.rb +6 -6
- data/lib/dfp_api/v201608/product_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/proposal_line_item_service.rb +6 -6
- data/lib/dfp_api/v201608/proposal_line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/proposal_service.rb +14 -6
- data/lib/dfp_api/v201608/proposal_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/publisher_query_language_service.rb +6 -6
- data/lib/dfp_api/v201608/publisher_query_language_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/rate_card_service.rb +6 -6
- data/lib/dfp_api/v201608/rate_card_service_registry.rb +45 -0
- data/lib/dfp_api/v201608/reconciliation_line_item_report_service.rb +46 -0
- data/lib/dfp_api/v201608/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/reconciliation_order_report_service.rb +14 -6
- data/lib/dfp_api/v201608/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/reconciliation_report_row_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/reconciliation_report_row_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/reconciliation_report_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/reconciliation_report_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/report_service.rb +14 -6
- data/lib/dfp_api/{v201505 → v201608}/report_service_registry.rb +4 -4
- data/lib/dfp_api/{v201505 → v201608}/suggested_ad_unit_service.rb +6 -6
- data/lib/dfp_api/v201608/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/{v201505 → v201608}/team_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/team_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/user_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/user_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/user_team_association_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/user_team_association_service_registry.rb +3 -3
- data/lib/dfp_api/{v201505 → v201608}/workflow_request_service.rb +6 -6
- data/lib/dfp_api/{v201505 → v201608}/workflow_request_service_registry.rb +3 -3
- data/lib/dfp_api/version.rb +1 -1
- data/test/dfp_api/test_config.yml +1 -1
- data/test/dfp_api/test_credential_handler.rb +62 -0
- data/test/dfp_api/test_dfp_api.rb +2 -2
- metadata +236 -372
- data/examples/v201508/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201508/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201508/activity_service/create_activities.rb +0 -87
- data/examples/v201508/activity_service/get_all_activities.rb +0 -81
- data/examples/v201508/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201508/common/error_handling.rb +0 -72
- data/examples/v201508/common/setup_oauth2.rb +0 -85
- data/examples/v201508/company_service/create_companies.rb +0 -78
- data/examples/v201508/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201508/company_service/update_companies.rb +0 -104
- data/examples/v201508/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201508/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201508/contact_service/update_contacts.rb +0 -96
- data/examples/v201508/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201508/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201508/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201508/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201508/content_service/get_all_content.rb +0 -81
- data/examples/v201508/content_service/get_content_by_category.rb +0 -127
- data/examples/v201508/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201508/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201508/creative_service/create_creatives.rb +0 -108
- data/examples/v201508/creative_service/create_custom_creative.rb +0 -100
- data/examples/v201508/creative_service/create_native_creative.rb +0 -185
- data/examples/v201508/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201508/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201508/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201508/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201508/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201508/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201508/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201508/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201508/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201508/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201508/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201508/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201508/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201508/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201508/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201508/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201508/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201508/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201508/inventory_service/create_mobile_ad_unit.rb +0 -97
- data/examples/v201508/inventory_service/create_video_ad_unit.rb +0 -104
- data/examples/v201508/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201508/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201508/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201508/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201508/label_service/create_labels.rb +0 -79
- data/examples/v201508/label_service/deactivate_labels.rb +0 -107
- data/examples/v201508/label_service/update_labels.rb +0 -96
- data/examples/v201508/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201508/line_item_service/create_line_items.rb +0 -182
- data/examples/v201508/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201508/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201508/line_item_service/update_line_items.rb +0 -106
- data/examples/v201508/network_service/get_all_networks.rb +0 -70
- data/examples/v201508/network_service/get_current_network.rb +0 -62
- data/examples/v201508/order_service/approve_orders.rb +0 -110
- data/examples/v201508/order_service/create_orders.rb +0 -88
- data/examples/v201508/order_service/update_orders.rb +0 -101
- data/examples/v201508/placement_service/create_placements.rb +0 -128
- data/examples/v201508/placement_service/get_all_placements.rb +0 -81
- data/examples/v201508/placement_service/update_placements.rb +0 -102
- data/examples/v201508/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201508/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201508/report_service/run_delivery_report.rb +0 -111
- data/examples/v201508/report_service/run_inventory_report.rb +0 -109
- data/examples/v201508/report_service/run_reach_report.rb +0 -85
- data/examples/v201508/report_service/run_sales_report.rb +0 -89
- data/examples/v201508/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201508/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201508/team_service/create_teams.rb +0 -79
- data/examples/v201508/team_service/update_teams.rb +0 -94
- data/examples/v201508/user_service/deactivate_users.rb +0 -94
- data/examples/v201508/user_service/get_all_roles.rb +0 -69
- data/examples/v201508/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201508/user_team_association_service/update_user_team_associations.rb +0 -98
- data/examples/v201511/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201511/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201511/activity_service/get_active_activities.rb +0 -87
- data/examples/v201511/activity_service/update_activities.rb +0 -96
- data/examples/v201511/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201511/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201511/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201511/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201511/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201511/company_service/get_all_companies.rb +0 -80
- data/examples/v201511/contact_service/create_contacts.rb +0 -91
- data/examples/v201511/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201511/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201511/creative_service/update_creatives.rb +0 -97
- data/examples/v201511/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201511/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201511/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201511/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201511/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201511/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201511/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201511/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201511/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201511/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201511/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201511/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201511/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201511/inventory_service/create_mobile_ad_unit.rb +0 -97
- data/examples/v201511/inventory_service/create_video_ad_unit.rb +0 -104
- data/examples/v201511/inventory_service/update_ad_units.rb +0 -105
- data/examples/v201511/label_service/get_all_labels.rb +0 -82
- data/examples/v201511/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201511/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201511/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201511/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201511/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201511/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201511/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201511/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201511/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201511/network_service/make_test_network.rb +0 -75
- data/examples/v201511/order_service/get_all_orders.rb +0 -80
- data/examples/v201511/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201511/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201511/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201511/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201511/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201511/report_service/display_report.rb +0 -77
- data/examples/v201511/report_service/download_report.rb +0 -77
- data/examples/v201511/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201511/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201511/team_service/get_all_teams.rb +0 -79
- data/examples/v201511/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201511/user_service/create_users.rb +0 -85
- data/examples/v201511/user_service/get_all_users.rb +0 -79
- data/examples/v201511/user_service/get_current_user.rb +0 -62
- data/examples/v201511/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201511/user_service/update_users.rb +0 -94
- data/examples/v201511/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201511/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201511/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/lib/dfp_api/v201505/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201505/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201505/suggested_ad_unit_service_registry.rb +0 -45
@@ -1,97 +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 gets first 500 children below the effective root ad unit. To
|
20
|
-
# create ad units, run create_ad_units.rb.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
|
25
|
-
API_VERSION = :v201508
|
26
|
-
|
27
|
-
def get_ad_units_by_statement()
|
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 InventoryService.
|
36
|
-
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
37
|
-
|
38
|
-
# Get the NetworkService.
|
39
|
-
network_service = dfp.service(:NetworkService, API_VERSION)
|
40
|
-
|
41
|
-
# Get the effective root ad unit ID of the network.
|
42
|
-
effective_root_ad_unit_id =
|
43
|
-
network_service.get_current_network[:effective_root_ad_unit_id]
|
44
|
-
|
45
|
-
puts "Using effective root ad unit: %d" % effective_root_ad_unit_id
|
46
|
-
|
47
|
-
# Create a statement to select the children of the effective root ad unit.
|
48
|
-
statement = DfpApi::FilterStatement.new(
|
49
|
-
'WHERE parentId = :id ORDER BY id',
|
50
|
-
[
|
51
|
-
{:key => 'id',
|
52
|
-
:value => {:value => effective_root_ad_unit_id,
|
53
|
-
:xsi_type => 'NumberValue'}}
|
54
|
-
]
|
55
|
-
)
|
56
|
-
|
57
|
-
begin
|
58
|
-
# Get ad units by statement.
|
59
|
-
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
60
|
-
|
61
|
-
if page[:results]
|
62
|
-
# Print details about each ad unit in results.
|
63
|
-
page[:results].each_with_index do |ad_unit, index|
|
64
|
-
puts "%d) Ad unit ID: %d, name: %s, status: %s." %
|
65
|
-
[index + statement.offset, ad_unit[:id],
|
66
|
-
ad_unit[:name], ad_unit[:status]]
|
67
|
-
end
|
68
|
-
end
|
69
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
70
|
-
end while statement.offset < page[:total_result_set_size]
|
71
|
-
|
72
|
-
# Print a footer.
|
73
|
-
if page.include?(:total_result_set_size)
|
74
|
-
puts "Total number of ad units: %d" % page[:total_result_set_size]
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
if __FILE__ == $0
|
79
|
-
begin
|
80
|
-
get_ad_units_by_statement()
|
81
|
-
|
82
|
-
# HTTP errors.
|
83
|
-
rescue AdsCommon::Errors::HttpError => e
|
84
|
-
puts "HTTP Error: %s" % e
|
85
|
-
|
86
|
-
# API errors.
|
87
|
-
rescue DfpApi::Errors::ApiException => e
|
88
|
-
puts "Message: %s" % e.message
|
89
|
-
puts 'Errors:'
|
90
|
-
e.errors.each_with_index do |error, index|
|
91
|
-
puts "\tError [%d]:" % (index + 1)
|
92
|
-
error.each do |field, value|
|
93
|
-
puts "\t\t%s: %s" % [field, value]
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
@@ -1,80 +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 gets all ad units. To create ad units, run create_ad_units.rb.
|
20
|
-
|
21
|
-
require 'dfp_api'
|
22
|
-
|
23
|
-
|
24
|
-
API_VERSION = :v201508
|
25
|
-
|
26
|
-
def get_all_ad_units()
|
27
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
28
|
-
dfp = DfpApi::Api.new
|
29
|
-
|
30
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
31
|
-
# the configuration file or provide your own logger:
|
32
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
33
|
-
|
34
|
-
# Get the InventoryService.
|
35
|
-
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
36
|
-
|
37
|
-
# Create a statement to get all ad units
|
38
|
-
statement = DfpApi::FilterStatement.new('ORDER BY id ASC')
|
39
|
-
|
40
|
-
begin
|
41
|
-
# Get ad units by statement.
|
42
|
-
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
43
|
-
|
44
|
-
if page[:results]
|
45
|
-
# Print details about each ad unit in results.
|
46
|
-
page[:results].each_with_index do |ad_unit, index|
|
47
|
-
puts "%d) Ad unit ID: %d, name: %s, status: %s." %
|
48
|
-
[index + statement.offset, ad_unit[:id],
|
49
|
-
ad_unit[:name], ad_unit[:status]]
|
50
|
-
end
|
51
|
-
end
|
52
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
53
|
-
end while statement.offset < page[:total_result_set_size]
|
54
|
-
|
55
|
-
# Print a footer.
|
56
|
-
if page.include?(:total_result_set_size)
|
57
|
-
puts "Total number of ad units: %d" % page[:total_result_set_size]
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
if __FILE__ == $0
|
62
|
-
begin
|
63
|
-
get_all_ad_units()
|
64
|
-
|
65
|
-
# HTTP errors.
|
66
|
-
rescue AdsCommon::Errors::HttpError => e
|
67
|
-
puts "HTTP Error: %s" % e
|
68
|
-
|
69
|
-
# API errors.
|
70
|
-
rescue DfpApi::Errors::ApiException => e
|
71
|
-
puts "Message: %s" % e.message
|
72
|
-
puts 'Errors:'
|
73
|
-
e.errors.each_with_index do |error, index|
|
74
|
-
puts "\tError [%d]:" % (index + 1)
|
75
|
-
error.each do |field, value|
|
76
|
-
puts "\t\t%s: %s" % [field, value]
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
@@ -1,79 +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 creates new labels. To determine which labels exist, run
|
20
|
-
# get_all_labels.rb.
|
21
|
-
#
|
22
|
-
# This feature is only available to DFP premium solution networks.
|
23
|
-
|
24
|
-
require 'dfp_api'
|
25
|
-
|
26
|
-
API_VERSION = :v201508
|
27
|
-
# Number of labels to create.
|
28
|
-
ITEM_COUNT = 5
|
29
|
-
|
30
|
-
def create_labels()
|
31
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
32
|
-
dfp = DfpApi::Api.new
|
33
|
-
|
34
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
35
|
-
# the configuration file or provide your own logger:
|
36
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
37
|
-
|
38
|
-
# Get the LabelService.
|
39
|
-
label_service = dfp.service(:LabelService, API_VERSION)
|
40
|
-
|
41
|
-
# Create an array to store local label objects.
|
42
|
-
labels = (1..ITEM_COUNT).map do |index|
|
43
|
-
{:name => "Label #%d" % index, :types => ['COMPETITIVE_EXCLUSION']}
|
44
|
-
end
|
45
|
-
|
46
|
-
# Create the labels on the server.
|
47
|
-
return_labels = label_service.create_labels(labels)
|
48
|
-
|
49
|
-
if return_labels
|
50
|
-
return_labels.each do |label|
|
51
|
-
puts "Label with ID: %d, name: '%s' and types: '%s' was created." %
|
52
|
-
[label[:id], label[:name], label[:types].join(', ')]
|
53
|
-
end
|
54
|
-
else
|
55
|
-
raise 'No labels were created.'
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
59
|
-
|
60
|
-
if __FILE__ == $0
|
61
|
-
begin
|
62
|
-
create_labels()
|
63
|
-
|
64
|
-
# HTTP errors.
|
65
|
-
rescue AdsCommon::Errors::HttpError => e
|
66
|
-
puts "HTTP Error: %s" % e
|
67
|
-
|
68
|
-
# API errors.
|
69
|
-
rescue DfpApi::Errors::ApiException => e
|
70
|
-
puts "Message: %s" % e.message
|
71
|
-
puts 'Errors:'
|
72
|
-
e.errors.each_with_index do |error, index|
|
73
|
-
puts "\tError [%d]:" % (index + 1)
|
74
|
-
error.each do |field, value|
|
75
|
-
puts "\t\t%s: %s" % [field, value]
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,107 +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 deactivates all active labels. To determine which labels exist,
|
20
|
-
# run get_all_labels.rb.
|
21
|
-
#
|
22
|
-
# This feature is only available to DFP premium solution networks.
|
23
|
-
|
24
|
-
require 'dfp_api'
|
25
|
-
|
26
|
-
|
27
|
-
API_VERSION = :v201508
|
28
|
-
|
29
|
-
def deactivate_labels()
|
30
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
31
|
-
dfp = DfpApi::Api.new
|
32
|
-
|
33
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
34
|
-
# the configuration file or provide your own logger:
|
35
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
36
|
-
|
37
|
-
# Get the LabelService.
|
38
|
-
label_service = dfp.service(:LabelService, API_VERSION)
|
39
|
-
|
40
|
-
# Create statement to select active labels.
|
41
|
-
statement = DfpApi::FilterStatement.new(
|
42
|
-
'WHERE isActive = :is_active',
|
43
|
-
[
|
44
|
-
{:key => 'is_active',
|
45
|
-
:value => {:value => true, :xsi_type => 'BooleanValue'}}
|
46
|
-
]
|
47
|
-
)
|
48
|
-
|
49
|
-
# Define initial values.
|
50
|
-
label_ids = []
|
51
|
-
|
52
|
-
begin
|
53
|
-
# Get labels by statement.
|
54
|
-
page = label_service.get_labels_by_statement(statement.toStatement())
|
55
|
-
|
56
|
-
if page[:results]
|
57
|
-
page[:results].each_with_index do |label, index|
|
58
|
-
puts ("%d) Label ID: %d, name: %s will be deactivated.") %
|
59
|
-
[index + statement.offset, label[:id], label[:name]]
|
60
|
-
label_ids << label[:id]
|
61
|
-
end
|
62
|
-
end
|
63
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
64
|
-
end while statement.offset < page[:total_result_set_size]
|
65
|
-
|
66
|
-
puts "Number of labels to be deactivated: %d" % label_ids.size
|
67
|
-
|
68
|
-
if !label_ids.empty?
|
69
|
-
# Create a statement for action.
|
70
|
-
statement = DfpApi::FilterStatement.new(
|
71
|
-
"WHERE id IN (%s)" % label_ids.join(', '))
|
72
|
-
|
73
|
-
# Perform action.
|
74
|
-
result = label_service.perform_label_action(
|
75
|
-
{:xsi_type => 'DeactivateLabels'}, statement.toStatement())
|
76
|
-
|
77
|
-
# Display results.
|
78
|
-
if result and result[:num_changes] > 0
|
79
|
-
puts "Number of labels deactivated: %d" % result[:num_changes]
|
80
|
-
else
|
81
|
-
puts 'No labels were deactivated.'
|
82
|
-
end
|
83
|
-
else
|
84
|
-
puts 'No labels found to deactivate.'
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
if __FILE__ == $0
|
89
|
-
begin
|
90
|
-
deactivate_labels()
|
91
|
-
|
92
|
-
# HTTP errors.
|
93
|
-
rescue AdsCommon::Errors::HttpError => e
|
94
|
-
puts "HTTP Error: %s" % e
|
95
|
-
|
96
|
-
# API errors.
|
97
|
-
rescue DfpApi::Errors::ApiException => e
|
98
|
-
puts "Message: %s" % e.message
|
99
|
-
puts 'Errors:'
|
100
|
-
e.errors.each_with_index do |error, index|
|
101
|
-
puts "\tError [%d]:" % (index + 1)
|
102
|
-
error.each do |field, value|
|
103
|
-
puts "\t\t%s: %s" % [field, value]
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
@@ -1,96 +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 updates the descriptions of all active labels by updating its
|
20
|
-
# description. To determine which labels exist, run get_all_labels.rb.
|
21
|
-
#
|
22
|
-
# This feature is only available to DFP premium solution networks.
|
23
|
-
|
24
|
-
require 'dfp_api'
|
25
|
-
|
26
|
-
|
27
|
-
API_VERSION = :v201508
|
28
|
-
|
29
|
-
def update_labels()
|
30
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
31
|
-
dfp = DfpApi::Api.new
|
32
|
-
|
33
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
34
|
-
# the configuration file or provide your own logger:
|
35
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
36
|
-
|
37
|
-
# Get the LabelService.
|
38
|
-
label_service = dfp.service(:LabelService, API_VERSION)
|
39
|
-
|
40
|
-
# Create a statement to only select active labels.
|
41
|
-
statement = DfpApi::FilterStatement.new(
|
42
|
-
'WHERE isActive = :is_active',
|
43
|
-
[
|
44
|
-
{:key => 'is_active',
|
45
|
-
:value => {
|
46
|
-
:value => 'true',
|
47
|
-
:xsi_type => 'BooleanValue'}
|
48
|
-
}
|
49
|
-
]
|
50
|
-
)
|
51
|
-
|
52
|
-
begin
|
53
|
-
# Get labels by statement.
|
54
|
-
page = label_service.get_labels_by_statement(statement.toStatement())
|
55
|
-
|
56
|
-
if page[:results]
|
57
|
-
# Update each local label object by changing its description.
|
58
|
-
page[:results].each do |label|
|
59
|
-
label[:description] = 'This label was updated'
|
60
|
-
end
|
61
|
-
|
62
|
-
# Update the labels on the server.
|
63
|
-
return_labels = label_service.update_labels(labels)
|
64
|
-
|
65
|
-
if return_labels
|
66
|
-
return_labels.each do |label|
|
67
|
-
puts("Label ID: %d, name: %s was updated with description: %s.") %
|
68
|
-
[label[:id], label[:name], label[:description]]
|
69
|
-
end
|
70
|
-
else
|
71
|
-
raise 'No labels were updated.'
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
if __FILE__ == $0
|
78
|
-
begin
|
79
|
-
update_labels()
|
80
|
-
|
81
|
-
# HTTP errors.
|
82
|
-
rescue AdsCommon::Errors::HttpError => e
|
83
|
-
puts "HTTP Error: %s" % e
|
84
|
-
|
85
|
-
# API errors.
|
86
|
-
rescue DfpApi::Errors::ApiException => e
|
87
|
-
puts "Message: %s" % e.message
|
88
|
-
puts 'Errors:'
|
89
|
-
e.errors.each_with_index do |error, index|
|
90
|
-
puts "\tError [%d]:" % (index + 1)
|
91
|
-
error.each do |field, value|
|
92
|
-
puts "\t\t%s: %s" % [field, value]
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|