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,110 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2014, 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 a single content metadata key hierarchy.
|
20
|
-
#
|
21
|
-
# This feature is only available to DFP video publishers.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
|
26
|
-
API_VERSION = :v201508
|
27
|
-
|
28
|
-
def update_content_metadata_key_hierarchies()
|
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
|
-
# Get the ContentMetadataKeyHierarchyService.
|
37
|
-
cmkh_service = dfp.service(:ContentMetadataKeyHierarchyService, API_VERSION)
|
38
|
-
|
39
|
-
# Set the ID of the content metadata key hierarchy.
|
40
|
-
content_metadata_key_hierarchy_id =
|
41
|
-
'INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE'
|
42
|
-
|
43
|
-
# Set the ID of the custom targeting key to be added as a hierarchy level.
|
44
|
-
custom_targeting_key_id = "INSERT_CUSTOM_TARGETING_KEY_ID_HERE"
|
45
|
-
|
46
|
-
# Create a statement to only select a single content metadata key hierarchy.
|
47
|
-
statement = DfpApi::FilterStatement.new(
|
48
|
-
'WHERE id = :id ORDER BY id ASC',
|
49
|
-
[
|
50
|
-
{:key => 'id',
|
51
|
-
:value => {:value => content_metadata_key_hierarchy_id,
|
52
|
-
:xsi_type => 'NumberValue'}},
|
53
|
-
],
|
54
|
-
1
|
55
|
-
}
|
56
|
-
|
57
|
-
# Get content metadata key hierarchies by statement.
|
58
|
-
page = cmkh_service.get_content_metadata_key_hierarchies_by_statement(
|
59
|
-
statement.toStatement())
|
60
|
-
|
61
|
-
if page[:results]
|
62
|
-
content_metadata_key_hierarchy = page[:results].first
|
63
|
-
|
64
|
-
# Update the content metadata key hierarchy by adding a hierarchy level.
|
65
|
-
hierarchy_levels = content_metadata_key_hierarchy[:hierarchy_levels]
|
66
|
-
|
67
|
-
hierarchy_level = {
|
68
|
-
:custom_targeting_key_id => custom_targeting_key_id,
|
69
|
-
:hierarchy_level => hierarchy_levels.length + 1
|
70
|
-
}
|
71
|
-
|
72
|
-
content_metadata_key_hierarchy[:hierarchy_levels] =
|
73
|
-
hierarchy_levels.concat([hierarchy_level])
|
74
|
-
|
75
|
-
# Update content metadata key hierarchy.
|
76
|
-
content_metadata_key_hierarchies =
|
77
|
-
cmkh_service.update_content_metadata_key_hierarchies(
|
78
|
-
[content_metadata_key_hierarchy])
|
79
|
-
|
80
|
-
content_metadata_key_hierarchies.each do |content_metadata_key_hierarchy|
|
81
|
-
puts 'Content metadata key hierarchy with ID ' +
|
82
|
-
'%d, name "%s" was updated.' % [
|
83
|
-
content_metadata_key_hierarchy[:id],
|
84
|
-
content_metadata_key_hierarchy[:name]]
|
85
|
-
end
|
86
|
-
else
|
87
|
-
puts 'No content metadata key hierarchy found to update.'
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
if __FILE__ == $0
|
92
|
-
begin
|
93
|
-
update_content_metadata_key_hierarchies()
|
94
|
-
|
95
|
-
# HTTP errors.
|
96
|
-
rescue AdsCommon::Errors::HttpError => e
|
97
|
-
puts "HTTP Error: %s" % e
|
98
|
-
|
99
|
-
# API errors.
|
100
|
-
rescue DfpApi::Errors::ApiException => e
|
101
|
-
puts "Message: %s" % e.message
|
102
|
-
puts 'Errors:'
|
103
|
-
e.errors.each_with_index do |error, index|
|
104
|
-
puts "\tError [%d]:" % (index + 1)
|
105
|
-
error.each do |field, value|
|
106
|
-
puts "\t\t%s: %s" % [field, value]
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
@@ -1,81 +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 content.
|
20
|
-
#
|
21
|
-
# This feature is only available to DFP video publishers.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
|
26
|
-
API_VERSION = :v201508
|
27
|
-
|
28
|
-
def get_all_content()
|
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
|
-
# Get the ContentService.
|
37
|
-
content_service = dfp.service(:ContentService, API_VERSION)
|
38
|
-
|
39
|
-
# Create statement for one page with current offset.
|
40
|
-
statement = DfpApi::FilterStatement.new('ORDER BY id ASC')
|
41
|
-
|
42
|
-
begin
|
43
|
-
# Get content by statement.
|
44
|
-
page = content_service.get_content_by_statement(statement.toStatement())
|
45
|
-
|
46
|
-
if page[:results]
|
47
|
-
page[:results].each_with_index do |content, index|
|
48
|
-
puts "%d) Content ID: %d, name: %s, status: %s." % [
|
49
|
-
index + statement.offset,
|
50
|
-
content[:id], content[:name], content[:status]]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
54
|
-
end while statement.offset < page[:total_result_set_size]
|
55
|
-
|
56
|
-
# Print a footer
|
57
|
-
if page.include?(:total_result_set_size)
|
58
|
-
puts "Total number of results: %d" % page[:total_result_set_size]
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
if __FILE__ == $0
|
63
|
-
begin
|
64
|
-
get_all_content()
|
65
|
-
|
66
|
-
# HTTP errors.
|
67
|
-
rescue AdsCommon::Errors::HttpError => e
|
68
|
-
puts "HTTP Error: %s" % e
|
69
|
-
|
70
|
-
# API errors.
|
71
|
-
rescue DfpApi::Errors::ApiException => e
|
72
|
-
puts "Message: %s" % e.message
|
73
|
-
puts 'Errors:'
|
74
|
-
e.errors.each_with_index do |error, index|
|
75
|
-
puts "\tError [%d]:" % (index + 1)
|
76
|
-
error.each do |field, value|
|
77
|
-
puts "\t\t%s: %s" % [field, value]
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
@@ -1,127 +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 active content categorized as "comedy" using the
|
20
|
-
# network's content browse custom targeting key.
|
21
|
-
#
|
22
|
-
# This feature is only available to DFP video publishers.
|
23
|
-
|
24
|
-
require 'dfp_api'
|
25
|
-
|
26
|
-
|
27
|
-
API_VERSION = :v201508
|
28
|
-
|
29
|
-
def get_content_by_statement()
|
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 NetworkService.
|
38
|
-
network_service = dfp.service(:NetworkService, API_VERSION)
|
39
|
-
|
40
|
-
# Get content browse custom targeting key ID.
|
41
|
-
current_network = network_service.get_current_network
|
42
|
-
content_browse_custom_targeting_key_id =
|
43
|
-
current_network[:content_browse_custom_targeting_key_id]
|
44
|
-
|
45
|
-
# Get the CustomTargetingService.
|
46
|
-
custom_targeting_service = dfp.service(:CustomTargetingService, API_VERSION)
|
47
|
-
|
48
|
-
# Create a statement to select the categories matching the name comedy.
|
49
|
-
statement = DfpApi::FilterStatement.new(
|
50
|
-
'WHERE customTargetingKeyId = :targeting_key_id' +
|
51
|
-
' and name = :category ORDER BY id ASC',
|
52
|
-
[
|
53
|
-
{:key => 'targeting_key_id',
|
54
|
-
:value => {:value => content_browse_custom_targeting_key_id,
|
55
|
-
:xsi_type => 'NumberValue'}},
|
56
|
-
{:key => 'category',
|
57
|
-
:value => {:value => 'comedy',
|
58
|
-
:xsi_type => 'TextValue'}},
|
59
|
-
],
|
60
|
-
1
|
61
|
-
)
|
62
|
-
|
63
|
-
# Get categories matching the filter statement.
|
64
|
-
page = custom_targeting_service.get_custom_targeting_values_by_statement(
|
65
|
-
statement.toStatement())
|
66
|
-
|
67
|
-
# Get the custom targeting value ID for the comedy category.
|
68
|
-
if page[:results]
|
69
|
-
category_custom_targeting_value_id = page[:results].first()[:id]
|
70
|
-
|
71
|
-
# Get the ContentService.
|
72
|
-
content_service = dfp.service(:ContentService, API_VERSION)
|
73
|
-
|
74
|
-
statement = DfpApi::FilterStatement.new(
|
75
|
-
'WHERE status = :status ORDER BY id ASC',
|
76
|
-
[
|
77
|
-
{:key => 'status',
|
78
|
-
:value => {:value => 'ACTIVE', :xsi_type => 'TextValue'}}
|
79
|
-
]
|
80
|
-
)
|
81
|
-
|
82
|
-
begin
|
83
|
-
# Get content by statement.
|
84
|
-
page =
|
85
|
-
content_service.get_content_by_statement_and_custom_targeting_value(
|
86
|
-
statement.toStatement(), category_custom_targeting_value_id)
|
87
|
-
|
88
|
-
if page[:results]
|
89
|
-
page[:results].each_with_index do |content, index|
|
90
|
-
puts "%d) Content ID: %d, name: %s, status: %s." %
|
91
|
-
[index + statement.offset, content[:id], content[:name],
|
92
|
-
content[:status]]
|
93
|
-
end
|
94
|
-
end
|
95
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
96
|
-
end while statement.offset < page[:total_result_set_size]
|
97
|
-
|
98
|
-
# Print a footer.
|
99
|
-
if page.include?(:total_result_set_size)
|
100
|
-
puts "Number of results found: %d" % page[:total_result_set_size]
|
101
|
-
end
|
102
|
-
else
|
103
|
-
puts "Category was not found for targeting key ID %d." %
|
104
|
-
content_browse_custom_targeting_key_id
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
if __FILE__ == $0
|
109
|
-
begin
|
110
|
-
get_content_by_statement()
|
111
|
-
|
112
|
-
# HTTP errors.
|
113
|
-
rescue AdsCommon::Errors::HttpError => e
|
114
|
-
puts "HTTP Error: %s" % e
|
115
|
-
|
116
|
-
# API errors.
|
117
|
-
rescue DfpApi::Errors::ApiException => e
|
118
|
-
puts "Message: %s" % e.message
|
119
|
-
puts 'Errors:'
|
120
|
-
e.errors.each_with_index do |error, index|
|
121
|
-
puts "\tError [%d]:" % (index + 1)
|
122
|
-
error.each do |field, value|
|
123
|
-
puts "\t\t%s: %s" % [field, value]
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
@@ -1,111 +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 copies a given set of image creatives. This would typically be
|
20
|
-
# done to reuse creatives in a small business network. To determine which
|
21
|
-
# creatives exist, run get_all_creatives.rb.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
require 'base64'
|
26
|
-
|
27
|
-
API_VERSION = :v201508
|
28
|
-
|
29
|
-
def copy_image_creatives()
|
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 CreativeService.
|
38
|
-
creative_service = dfp.service(:CreativeService, API_VERSION)
|
39
|
-
|
40
|
-
# Create a list of creative ids to copy.
|
41
|
-
image_creative_ids = [
|
42
|
-
'INSERT_IMAGE_CREATIVE_ID_HERE'.to_i,
|
43
|
-
'INSERT_IMAGE_CREATIVE_ID_HERE'.to_i,
|
44
|
-
'INSERT_IMAGE_CREATIVE_ID_HERE'.to_i,
|
45
|
-
'INSERT_IMAGE_CREATIVE_ID_HERE'.to_i
|
46
|
-
]
|
47
|
-
|
48
|
-
# Create the statement to filter image creatives by ID.
|
49
|
-
statement = DfpApi::FilterStatement.new(
|
50
|
-
"WHERE id IN (%s) AND creativeType = :creative_type" %
|
51
|
-
image_creative_ids.join(', '),
|
52
|
-
[
|
53
|
-
{:key => 'creative_type',
|
54
|
-
:value => {:value => 'ImageCreative', :xsi_type => 'TextValue'}}
|
55
|
-
]
|
56
|
-
)
|
57
|
-
|
58
|
-
# Get creatives by statement.
|
59
|
-
page = creative_service.get_creatives_by_statement(statement.toStatement())
|
60
|
-
|
61
|
-
if page[:results]
|
62
|
-
creatives = page[:results]
|
63
|
-
|
64
|
-
# Copy each local creative object and change its name.
|
65
|
-
new_creatives = creatives.map do |creative|
|
66
|
-
new_creative = creative.dup()
|
67
|
-
old_id = new_creative.delete(:id)
|
68
|
-
new_creative[:name] += " (Copy of %d)" % old_id
|
69
|
-
image_url = new_creative.delete(:image_url)
|
70
|
-
new_creative[:image_byte_array] =
|
71
|
-
Base64.encode64(AdsCommon::Http.get(image_url, dfp.config))
|
72
|
-
new_creative
|
73
|
-
end
|
74
|
-
|
75
|
-
# Create the creatives on the server.
|
76
|
-
return_creatives = creative_service.create_creatives(new_creatives)
|
77
|
-
|
78
|
-
# Display copied creatives.
|
79
|
-
if return_creatives
|
80
|
-
return_creatives.each_with_index do |creative, index|
|
81
|
-
puts "A creative with ID [%d] was copied to ID [%d], name: %s" %
|
82
|
-
[creatives[index][:id], creative[:id], creative[:name]]
|
83
|
-
end
|
84
|
-
else
|
85
|
-
raise 'No creatives were copied.'
|
86
|
-
end
|
87
|
-
else
|
88
|
-
puts 'No creatives found to copy.'
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
if __FILE__ == $0
|
93
|
-
begin
|
94
|
-
copy_image_creatives()
|
95
|
-
|
96
|
-
# HTTP errors.
|
97
|
-
rescue AdsCommon::Errors::HttpError => e
|
98
|
-
puts "HTTP Error: %s" % e
|
99
|
-
|
100
|
-
# API errors.
|
101
|
-
rescue DfpApi::Errors::ApiException => e
|
102
|
-
puts "Message: %s" % e.message
|
103
|
-
puts 'Errors:'
|
104
|
-
e.errors.each_with_index do |error, index|
|
105
|
-
puts "\tError [%d]:" % (index + 1)
|
106
|
-
error.each do |field, value|
|
107
|
-
puts "\t\t%s: %s" % [field, value]
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
@@ -1,135 +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 a new template creative for a given advertiser. To
|
20
|
-
# determine which companies are advertisers, run get_companies_by_statement.rb.
|
21
|
-
# To determine which creatives already exist, run get_all_creatives.rb. To
|
22
|
-
# determine which creative templates run get_all_creative_templates.rb.
|
23
|
-
|
24
|
-
require 'base64'
|
25
|
-
require 'dfp_api'
|
26
|
-
|
27
|
-
API_VERSION = :v201508
|
28
|
-
|
29
|
-
def create_creative_from_template()
|
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 CreativeService.
|
38
|
-
creative_service = dfp.service(:CreativeService, API_VERSION)
|
39
|
-
|
40
|
-
# Set the ID of the advertiser (company) that all creatives will be assigned
|
41
|
-
# to.
|
42
|
-
advertiser_id = 'INSERT_ADVERTISER_COMPANY_ID_HERE'.to_i
|
43
|
-
|
44
|
-
# Use the image banner with optional third party tracking template.
|
45
|
-
creative_template_id = 10000680
|
46
|
-
|
47
|
-
# Create the local custom creative object.
|
48
|
-
creative = {
|
49
|
-
:xsi_type => 'TemplateCreative',
|
50
|
-
:name => 'Template creative',
|
51
|
-
:advertiser_id => advertiser_id,
|
52
|
-
:creative_template_id => creative_template_id,
|
53
|
-
:size => {:width => 300, :height => 250, :is_aspect_ratio => false}
|
54
|
-
}
|
55
|
-
|
56
|
-
# Prepare image data for asset value.
|
57
|
-
image_url =
|
58
|
-
'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'
|
59
|
-
image_data = AdsCommon::Http.get(image_url, dfp.config)
|
60
|
-
image_data_base64 = Base64.encode64(image_data)
|
61
|
-
|
62
|
-
# Create the asset variable value.
|
63
|
-
asset_variable_value = {
|
64
|
-
:xsi_type => 'AssetCreativeTemplateVariableValue',
|
65
|
-
:unique_name => 'Imagefile',
|
66
|
-
:asset_byte_array => image_data_base64,
|
67
|
-
# Filenames must be unique.
|
68
|
-
:file_name => "image%d.jpg" % Time.new.to_i
|
69
|
-
}
|
70
|
-
|
71
|
-
# Create the image width variable value.
|
72
|
-
image_width_variable_value = {
|
73
|
-
:xsi_type => 'LongCreativeTemplateVariableValue',
|
74
|
-
:unique_name => 'Imagewidth',
|
75
|
-
:value => 300
|
76
|
-
}
|
77
|
-
|
78
|
-
# Create the image height variable value.
|
79
|
-
image_height_variable_value = {
|
80
|
-
:xsi_type => 'LongCreativeTemplateVariableValue',
|
81
|
-
:unique_name => 'Imageheight',
|
82
|
-
:value => 250
|
83
|
-
}
|
84
|
-
|
85
|
-
# Create the URL variable value.
|
86
|
-
url_variable_value = {
|
87
|
-
:xsi_type => 'UrlCreativeTemplateVariableValue',
|
88
|
-
:unique_name => 'ClickthroughURL',
|
89
|
-
:value => 'www.google.com'
|
90
|
-
}
|
91
|
-
|
92
|
-
# Create the target window variable value.
|
93
|
-
target_window_variable_value = {
|
94
|
-
:xsi_type => 'StringCreativeTemplateVariableValue',
|
95
|
-
:unique_name => 'Targetwindow',
|
96
|
-
:value => '__blank'
|
97
|
-
}
|
98
|
-
|
99
|
-
creative[:creative_template_variable_values] = [asset_variable_value,
|
100
|
-
image_width_variable_value, image_height_variable_value,
|
101
|
-
url_variable_value, target_window_variable_value]
|
102
|
-
|
103
|
-
# Create the creatives on the server.
|
104
|
-
return_creative = creative_service.create_creatives([creative])[0]
|
105
|
-
|
106
|
-
if return_creative
|
107
|
-
puts(("Template creative with ID: %d, name: %s and type '%s' was " +
|
108
|
-
"created and can be previewed at: '%s'") %
|
109
|
-
[return_creative[:id], return_creative[:name],
|
110
|
-
return_creative[:creative_type], return_creative[:preview_url]])
|
111
|
-
else
|
112
|
-
raise 'No creatives were created.'
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
if __FILE__ == $0
|
117
|
-
begin
|
118
|
-
create_creative_from_template()
|
119
|
-
|
120
|
-
# HTTP errors.
|
121
|
-
rescue AdsCommon::Errors::HttpError => e
|
122
|
-
puts "HTTP Error: %s" % e
|
123
|
-
|
124
|
-
# API errors.
|
125
|
-
rescue DfpApi::Errors::ApiException => e
|
126
|
-
puts "Message: %s" % e.message
|
127
|
-
puts 'Errors:'
|
128
|
-
e.errors.each_with_index do |error, index|
|
129
|
-
puts "\tError [%d]:" % (index + 1)
|
130
|
-
error.each do |field, value|
|
131
|
-
puts "\t\t%s: %s" % [field, value]
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|
135
|
-
end
|