google-dfp-api 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +1 -1
- data/ChangeLog +6 -0
- data/README.md +3 -3
- data/dfp_api.yml +1 -1
- data/examples/v201411/activity_group_service/create_activity_groups.rb +0 -4
- data/examples/v201411/activity_group_service/get_active_activity_groups.rb +0 -4
- data/examples/v201411/activity_group_service/get_all_activity_groups.rb +0 -4
- data/examples/v201411/activity_group_service/update_activity_groups.rb +0 -5
- data/examples/v201411/activity_service/create_activities.rb +0 -4
- data/examples/v201411/activity_service/get_active_activities.rb +0 -4
- data/examples/v201411/activity_service/get_all_activities.rb +0 -4
- data/examples/v201411/activity_service/update_activities.rb +0 -5
- data/examples/v201411/audience_segment_service/create_audience_segments.rb +0 -4
- data/examples/v201411/audience_segment_service/get_all_audience_segments.rb +0 -4
- data/examples/v201411/audience_segment_service/get_first_party_audience_segments.rb +0 -4
- data/examples/v201411/audience_segment_service/populate_first_party_audience_segments.rb +0 -5
- data/examples/v201411/audience_segment_service/update_audience_segments.rb +0 -5
- data/examples/v201411/common/error_handling.rb +0 -4
- data/examples/v201411/common/oauth2_jwt_handling.rb +0 -4
- data/examples/v201411/common/setup_oauth2.rb +0 -4
- data/examples/v201411/company_service/create_companies.rb +0 -4
- data/examples/v201411/company_service/get_all_companies.rb +0 -4
- data/examples/v201411/company_service/get_companies_by_statement.rb +0 -4
- data/examples/v201411/company_service/update_companies.rb +0 -4
- data/examples/v201411/contact_service/create_contacts.rb +0 -4
- data/examples/v201411/contact_service/get_all_contacts.rb +0 -4
- data/examples/v201411/contact_service/get_uninvited_contacts.rb +0 -4
- data/examples/v201411/contact_service/update_contacts.rb +0 -4
- data/examples/v201411/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201411/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201411/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201411/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201411/content_service/get_all_content.rb +0 -4
- data/examples/v201411/content_service/get_content_by_category.rb +1 -7
- data/examples/v201411/creative_service/copy_image_creatives.rb +0 -4
- data/examples/v201411/creative_service/create_creative_from_template.rb +1 -5
- data/examples/v201411/creative_service/create_creatives.rb +0 -4
- data/examples/v201411/creative_service/create_custom_creative.rb +0 -4
- data/examples/v201411/creative_service/get_all_creatives.rb +0 -4
- data/examples/v201411/creative_service/get_creatives_by_statement.rb +0 -4
- data/examples/v201411/creative_service/update_creatives.rb +0 -4
- data/examples/v201411/creative_set_service/associate_creative_set_to_line_item.rb +0 -4
- data/examples/v201411/creative_set_service/create_creative_set.rb +0 -4
- data/examples/v201411/creative_set_service/get_all_creative_sets.rb +0 -4
- data/examples/v201411/creative_set_service/get_creative_sets_by_statement.rb +0 -4
- data/examples/v201411/creative_set_service/update_creative_sets.rb +0 -5
- data/examples/v201411/creative_template_service/get_all_creative_templates.rb +0 -4
- data/examples/v201411/creative_template_service/get_system_defined_creative_templates.rb +0 -4
- data/examples/v201411/creative_wrapper_service/create_creative_wrappers.rb +0 -4
- data/examples/v201411/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -5
- data/examples/v201411/creative_wrapper_service/get_all_creative_wrappers.rb +0 -4
- data/examples/v201411/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -4
- data/examples/v201411/creative_wrapper_service/update_creative_wrappers.rb +0 -5
- data/examples/v201411/custom_field_service/create_custom_field_options.rb +0 -4
- data/examples/v201411/custom_field_service/create_custom_fields.rb +0 -4
- data/examples/v201411/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -5
- data/examples/v201411/custom_field_service/get_all_custom_fields.rb +0 -4
- data/examples/v201411/custom_field_service/get_all_line_item_custom_fields.rb +1 -5
- data/examples/v201411/custom_field_service/set_line_item_custom_field_value.rb +0 -5
- data/examples/v201411/custom_field_service/update_custom_fields.rb +0 -4
- data/examples/v201411/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201411/custom_targeting_service/delete_custom_targeting_keys.rb +1 -6
- data/examples/v201411/custom_targeting_service/delete_custom_targeting_values.rb +0 -5
- data/examples/v201411/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201411/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -4
- data/examples/v201411/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -4
- data/examples/v201411/custom_targeting_service/update_custom_targeting_keys.rb +0 -5
- data/examples/v201411/custom_targeting_service/update_custom_targeting_values.rb +0 -5
- data/examples/v201411/forecast_service/get_forecast.rb +0 -4
- data/examples/v201411/forecast_service/get_forecast_by_id.rb +0 -4
- data/examples/v201411/inventory_service/create_ad_units.rb +0 -4
- data/examples/v201411/inventory_service/create_mobile_ad_unit.rb +0 -4
- data/examples/v201411/inventory_service/create_video_ad_unit.rb +0 -4
- data/examples/v201411/inventory_service/deactivate_ad_units.rb +0 -5
- data/examples/v201411/inventory_service/get_ad_unit_sizes.rb +0 -4
- data/examples/v201411/inventory_service/get_ad_units_by_statement.rb +0 -4
- data/examples/v201411/inventory_service/get_all_ad_units.rb +0 -4
- data/examples/v201411/inventory_service/update_ad_units.rb +0 -4
- data/examples/v201411/label_service/create_labels.rb +0 -4
- data/examples/v201411/label_service/deactivate_labels.rb +0 -4
- data/examples/v201411/label_service/get_all_labels.rb +0 -4
- data/examples/v201411/label_service/get_labels_by_statement.rb +0 -4
- data/examples/v201411/label_service/update_labels.rb +0 -4
- data/examples/v201411/line_item_creative_association_service/create_licas.rb +0 -4
- data/examples/v201411/line_item_creative_association_service/deactivate_licas.rb +0 -5
- data/examples/v201411/line_item_creative_association_service/get_all_licas.rb +0 -4
- data/examples/v201411/line_item_creative_association_service/get_licas_by_statement.rb +0 -4
- data/examples/v201411/line_item_creative_association_service/update_licas.rb +0 -5
- data/examples/v201411/line_item_service/activate_line_items.rb +0 -5
- data/examples/v201411/line_item_service/create_line_items.rb +0 -4
- data/examples/v201411/line_item_service/create_video_line_item.rb +0 -4
- data/examples/v201411/line_item_service/get_all_line_items.rb +0 -4
- data/examples/v201411/line_item_service/get_line_items_by_statement.rb +0 -4
- data/examples/v201411/line_item_service/get_recently_updated_line_items.rb +0 -4
- data/examples/v201411/line_item_service/target_custom_criteria.rb +0 -5
- data/examples/v201411/line_item_service/update_line_items.rb +0 -4
- data/examples/v201411/network_service/get_all_networks.rb +0 -4
- data/examples/v201411/network_service/get_current_network.rb +0 -4
- data/examples/v201411/network_service/make_test_network.rb +0 -4
- data/examples/v201411/order_service/approve_orders.rb +0 -5
- data/examples/v201411/order_service/create_orders.rb +0 -4
- data/examples/v201411/order_service/get_all_orders.rb +0 -4
- data/examples/v201411/order_service/get_orders_by_statement.rb +0 -4
- data/examples/v201411/order_service/update_orders.rb +0 -4
- data/examples/v201411/placement_service/create_placements.rb +0 -5
- data/examples/v201411/placement_service/deactivate_placements.rb +0 -5
- data/examples/v201411/placement_service/get_all_placements.rb +0 -4
- data/examples/v201411/placement_service/get_placements_by_statement.rb +0 -4
- data/examples/v201411/placement_service/update_placements.rb +0 -5
- data/examples/v201411/publisher_query_language_service/fetch_match_tables.rb +0 -4
- data/examples/v201411/publisher_query_language_service/get_all_line_items.rb +0 -4
- data/examples/v201411/publisher_query_language_service/get_geo_targets.rb +0 -4
- data/examples/v201411/publisher_query_language_service/get_line_items_named_like.rb +0 -4
- data/examples/v201411/report_service/display_report.rb +0 -4
- data/examples/v201411/report_service/download_report.rb +0 -4
- data/examples/v201411/report_service/run_delivery_report.rb +0 -4
- data/examples/v201411/report_service/run_inventory_report.rb +0 -4
- data/examples/v201411/report_service/run_reach_report.rb +1 -4
- data/examples/v201411/report_service/run_report_with_custom_fields.rb +0 -4
- data/examples/v201411/report_service/run_sales_report.rb +0 -4
- data/examples/v201411/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -5
- data/examples/v201411/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -4
- data/examples/v201411/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +1 -5
- data/examples/v201411/team_service/create_teams.rb +0 -4
- data/examples/v201411/team_service/get_all_teams.rb +0 -4
- data/examples/v201411/team_service/get_teams_by_statement.rb +0 -4
- data/examples/v201411/team_service/update_teams.rb +0 -4
- data/examples/v201411/user_service/create_users.rb +0 -4
- data/examples/v201411/user_service/deactivate_users.rb +0 -4
- data/examples/v201411/user_service/get_all_roles.rb +0 -4
- data/examples/v201411/user_service/get_all_users.rb +0 -4
- data/examples/v201411/user_service/get_current_user.rb +0 -4
- data/examples/v201411/user_service/get_users_by_statement.rb +0 -4
- data/examples/v201411/user_service/update_users.rb +0 -4
- data/examples/v201411/user_team_association_service/create_user_team_associations.rb +0 -4
- data/examples/v201411/user_team_association_service/delete_user_team_associations.rb +0 -5
- data/examples/v201411/user_team_association_service/get_all_user_team_associations.rb +0 -4
- data/examples/v201411/user_team_association_service/get_user_team_associations_by_statement.rb +0 -5
- data/examples/v201411/user_team_association_service/update_user_team_associations.rb +0 -5
- data/examples/v201502/activity_group_service/create_activity_groups.rb +0 -4
- data/examples/v201502/activity_group_service/get_active_activity_groups.rb +0 -4
- data/examples/v201502/activity_group_service/get_all_activity_groups.rb +0 -4
- data/examples/v201502/activity_group_service/update_activity_groups.rb +0 -5
- data/examples/v201502/activity_service/create_activities.rb +0 -4
- data/examples/v201502/activity_service/get_active_activities.rb +0 -4
- data/examples/v201502/activity_service/get_all_activities.rb +0 -4
- data/examples/v201502/activity_service/update_activities.rb +0 -5
- data/examples/v201502/audience_segment_service/create_audience_segments.rb +0 -4
- data/examples/v201502/audience_segment_service/get_all_audience_segments.rb +0 -4
- data/examples/v201502/audience_segment_service/get_first_party_audience_segments.rb +0 -4
- data/examples/v201502/audience_segment_service/populate_first_party_audience_segments.rb +0 -5
- data/examples/v201502/audience_segment_service/update_audience_segments.rb +0 -5
- data/examples/v201502/common/error_handling.rb +0 -4
- data/examples/v201502/common/oauth2_jwt_handling.rb +0 -4
- data/examples/v201502/common/setup_oauth2.rb +0 -4
- data/examples/v201502/company_service/create_companies.rb +0 -4
- data/examples/v201502/company_service/get_all_companies.rb +0 -4
- data/examples/v201502/company_service/get_companies_by_statement.rb +0 -4
- data/examples/v201502/company_service/update_companies.rb +0 -4
- data/examples/v201502/contact_service/create_contacts.rb +0 -4
- data/examples/v201502/contact_service/get_all_contacts.rb +0 -4
- data/examples/v201502/contact_service/get_uninvited_contacts.rb +0 -4
- data/examples/v201502/contact_service/update_contacts.rb +0 -4
- data/examples/v201502/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201502/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201502/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201502/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201502/content_service/get_all_content.rb +0 -4
- data/examples/v201502/content_service/get_content_by_category.rb +1 -7
- data/examples/v201502/creative_service/copy_image_creatives.rb +0 -4
- data/examples/v201502/creative_service/create_creative_from_template.rb +1 -5
- data/examples/v201502/creative_service/create_creatives.rb +0 -4
- data/examples/v201502/creative_service/create_custom_creative.rb +0 -4
- data/examples/v201502/creative_service/get_all_creatives.rb +0 -4
- data/examples/v201502/creative_service/get_creatives_by_statement.rb +0 -4
- data/examples/v201502/creative_service/update_creatives.rb +0 -4
- data/examples/v201502/creative_set_service/associate_creative_set_to_line_item.rb +0 -4
- data/examples/v201502/creative_set_service/create_creative_set.rb +0 -4
- data/examples/v201502/creative_set_service/get_all_creative_sets.rb +0 -4
- data/examples/v201502/creative_set_service/get_creative_sets_by_statement.rb +0 -4
- data/examples/v201502/creative_set_service/update_creative_sets.rb +0 -5
- data/examples/v201502/creative_template_service/get_all_creative_templates.rb +0 -4
- data/examples/v201502/creative_template_service/get_system_defined_creative_templates.rb +0 -4
- data/examples/v201502/creative_wrapper_service/create_creative_wrappers.rb +0 -4
- data/examples/v201502/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -5
- data/examples/v201502/creative_wrapper_service/get_all_creative_wrappers.rb +0 -4
- data/examples/v201502/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -4
- data/examples/v201502/creative_wrapper_service/update_creative_wrappers.rb +0 -5
- data/examples/v201502/custom_field_service/create_custom_field_options.rb +0 -4
- data/examples/v201502/custom_field_service/create_custom_fields.rb +0 -4
- data/examples/v201502/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -5
- data/examples/v201502/custom_field_service/get_all_custom_fields.rb +0 -4
- data/examples/v201502/custom_field_service/get_all_line_item_custom_fields.rb +1 -5
- data/examples/v201502/custom_field_service/set_line_item_custom_field_value.rb +0 -5
- data/examples/v201502/custom_field_service/update_custom_fields.rb +0 -4
- data/examples/v201502/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201502/custom_targeting_service/delete_custom_targeting_keys.rb +1 -6
- data/examples/v201502/custom_targeting_service/delete_custom_targeting_values.rb +0 -5
- data/examples/v201502/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201502/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -4
- data/examples/v201502/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -4
- data/examples/v201502/custom_targeting_service/update_custom_targeting_keys.rb +0 -5
- data/examples/v201502/custom_targeting_service/update_custom_targeting_values.rb +0 -5
- data/examples/v201502/forecast_service/get_availability_forecast.rb +0 -4
- data/examples/v201502/forecast_service/get_availability_forecast_for_line_item.rb +0 -4
- data/examples/v201502/forecast_service/get_delivery_forecast_for_line_items.rb +0 -4
- data/examples/v201502/inventory_service/create_ad_units.rb +0 -4
- data/examples/v201502/inventory_service/create_mobile_ad_unit.rb +0 -4
- data/examples/v201502/inventory_service/create_video_ad_unit.rb +0 -4
- data/examples/v201502/inventory_service/deactivate_ad_units.rb +0 -5
- data/examples/v201502/inventory_service/get_ad_unit_sizes.rb +0 -4
- data/examples/v201502/inventory_service/get_ad_units_by_statement.rb +0 -4
- data/examples/v201502/inventory_service/get_all_ad_units.rb +0 -4
- data/examples/v201502/inventory_service/update_ad_units.rb +0 -4
- data/examples/v201502/label_service/create_labels.rb +0 -4
- data/examples/v201502/label_service/deactivate_labels.rb +0 -4
- data/examples/v201502/label_service/get_all_labels.rb +0 -4
- data/examples/v201502/label_service/get_labels_by_statement.rb +0 -4
- data/examples/v201502/label_service/update_labels.rb +0 -4
- data/examples/v201502/line_item_creative_association_service/create_licas.rb +0 -4
- data/examples/v201502/line_item_creative_association_service/deactivate_licas.rb +0 -5
- data/examples/v201502/line_item_creative_association_service/get_all_licas.rb +0 -4
- data/examples/v201502/line_item_creative_association_service/get_licas_by_statement.rb +0 -4
- data/examples/v201502/line_item_creative_association_service/update_licas.rb +0 -5
- data/examples/v201502/line_item_service/activate_line_items.rb +0 -5
- data/examples/v201502/line_item_service/create_line_items.rb +0 -4
- data/examples/v201502/line_item_service/create_video_line_item.rb +0 -4
- data/examples/v201502/line_item_service/get_all_line_items.rb +0 -4
- data/examples/v201502/line_item_service/get_line_items_by_statement.rb +0 -4
- data/examples/v201502/line_item_service/get_recently_updated_line_items.rb +0 -4
- data/examples/v201502/line_item_service/target_custom_criteria.rb +0 -5
- data/examples/v201502/line_item_service/update_line_items.rb +0 -4
- data/examples/v201502/network_service/get_all_networks.rb +0 -4
- data/examples/v201502/network_service/get_current_network.rb +0 -4
- data/examples/v201502/network_service/make_test_network.rb +0 -4
- data/examples/v201502/order_service/approve_orders.rb +0 -5
- data/examples/v201502/order_service/create_orders.rb +0 -4
- data/examples/v201502/order_service/get_all_orders.rb +0 -4
- data/examples/v201502/order_service/get_orders_by_statement.rb +0 -4
- data/examples/v201502/order_service/update_orders.rb +0 -4
- data/examples/v201502/placement_service/create_placements.rb +0 -5
- data/examples/v201502/placement_service/deactivate_placements.rb +0 -5
- data/examples/v201502/placement_service/get_all_placements.rb +0 -4
- data/examples/v201502/placement_service/get_placements_by_statement.rb +0 -4
- data/examples/v201502/placement_service/update_placements.rb +0 -5
- data/examples/v201502/publisher_query_language_service/fetch_match_tables.rb +0 -4
- data/examples/v201502/publisher_query_language_service/get_all_line_items.rb +0 -4
- data/examples/v201502/publisher_query_language_service/get_geo_targets.rb +0 -4
- data/examples/v201502/publisher_query_language_service/get_line_items_named_like.rb +0 -4
- data/examples/v201502/report_service/display_report.rb +0 -4
- data/examples/v201502/report_service/download_report.rb +0 -4
- data/examples/v201502/report_service/run_delivery_report.rb +0 -4
- data/examples/v201502/report_service/run_inventory_report.rb +0 -4
- data/examples/v201502/report_service/run_reach_report.rb +1 -4
- data/examples/v201502/report_service/run_report_with_custom_fields.rb +0 -4
- data/examples/v201502/report_service/run_sales_report.rb +0 -4
- data/examples/v201502/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -5
- data/examples/v201502/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -4
- data/examples/v201502/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +1 -5
- data/examples/v201502/team_service/create_teams.rb +0 -4
- data/examples/v201502/team_service/get_all_teams.rb +0 -4
- data/examples/v201502/team_service/get_teams_by_statement.rb +0 -4
- data/examples/v201502/team_service/update_teams.rb +0 -4
- data/examples/v201502/user_service/create_users.rb +0 -4
- data/examples/v201502/user_service/deactivate_users.rb +0 -4
- data/examples/v201502/user_service/get_all_roles.rb +0 -4
- data/examples/v201502/user_service/get_all_users.rb +0 -4
- data/examples/v201502/user_service/get_current_user.rb +0 -4
- data/examples/v201502/user_service/get_users_by_statement.rb +0 -4
- data/examples/v201502/user_service/update_users.rb +0 -4
- data/examples/v201502/user_team_association_service/create_user_team_associations.rb +0 -4
- data/examples/v201502/user_team_association_service/delete_user_team_associations.rb +0 -5
- data/examples/v201502/user_team_association_service/get_all_user_team_associations.rb +0 -4
- data/examples/v201502/user_team_association_service/get_user_team_associations_by_statement.rb +0 -5
- data/examples/v201502/user_team_association_service/update_user_team_associations.rb +0 -5
- data/examples/v201505/activity_group_service/create_activity_groups.rb +0 -4
- data/examples/v201505/activity_group_service/get_active_activity_groups.rb +0 -4
- data/examples/v201505/activity_group_service/get_all_activity_groups.rb +0 -4
- data/examples/v201505/activity_group_service/update_activity_groups.rb +0 -5
- data/examples/v201505/activity_service/create_activities.rb +0 -4
- data/examples/v201505/activity_service/get_active_activities.rb +0 -4
- data/examples/v201505/activity_service/get_all_activities.rb +0 -4
- data/examples/v201505/activity_service/update_activities.rb +0 -5
- data/examples/v201505/audience_segment_service/create_audience_segments.rb +0 -4
- data/examples/v201505/audience_segment_service/get_all_audience_segments.rb +0 -4
- data/examples/v201505/audience_segment_service/get_first_party_audience_segments.rb +0 -4
- data/examples/v201505/audience_segment_service/populate_first_party_audience_segments.rb +0 -5
- data/examples/v201505/audience_segment_service/update_audience_segments.rb +0 -5
- data/examples/v201505/common/error_handling.rb +0 -4
- data/examples/v201505/common/oauth2_jwt_handling.rb +0 -4
- data/examples/v201505/common/setup_oauth2.rb +0 -4
- data/examples/v201505/company_service/create_companies.rb +0 -4
- data/examples/v201505/company_service/get_all_companies.rb +0 -4
- data/examples/v201505/company_service/get_companies_by_statement.rb +0 -4
- data/examples/v201505/company_service/update_companies.rb +0 -4
- data/examples/v201505/contact_service/create_contacts.rb +0 -4
- data/examples/v201505/contact_service/get_all_contacts.rb +0 -4
- data/examples/v201505/contact_service/get_uninvited_contacts.rb +0 -4
- data/examples/v201505/contact_service/update_contacts.rb +0 -4
- data/examples/v201505/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201505/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201505/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -4
- data/examples/v201505/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -5
- data/examples/v201505/content_service/get_all_content.rb +0 -4
- data/examples/v201505/content_service/get_content_by_category.rb +1 -7
- data/examples/v201505/creative_service/copy_image_creatives.rb +0 -4
- data/examples/v201505/creative_service/create_creative_from_template.rb +1 -5
- data/examples/v201505/creative_service/create_creatives.rb +0 -4
- data/examples/v201505/creative_service/create_custom_creative.rb +0 -4
- data/examples/v201505/creative_service/get_all_creatives.rb +0 -4
- data/examples/v201505/creative_service/get_creatives_by_statement.rb +0 -4
- data/examples/v201505/creative_service/update_creatives.rb +0 -4
- data/examples/v201505/creative_set_service/associate_creative_set_to_line_item.rb +0 -4
- data/examples/v201505/creative_set_service/create_creative_set.rb +0 -4
- data/examples/v201505/creative_set_service/get_all_creative_sets.rb +0 -4
- data/examples/v201505/creative_set_service/get_creative_sets_by_statement.rb +0 -4
- data/examples/v201505/creative_set_service/update_creative_sets.rb +0 -5
- data/examples/v201505/creative_template_service/get_all_creative_templates.rb +0 -4
- data/examples/v201505/creative_template_service/get_system_defined_creative_templates.rb +0 -4
- data/examples/v201505/creative_wrapper_service/create_creative_wrappers.rb +0 -4
- data/examples/v201505/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -5
- data/examples/v201505/creative_wrapper_service/get_all_creative_wrappers.rb +0 -4
- data/examples/v201505/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -4
- data/examples/v201505/creative_wrapper_service/update_creative_wrappers.rb +0 -5
- data/examples/v201505/custom_field_service/create_custom_field_options.rb +0 -4
- data/examples/v201505/custom_field_service/create_custom_fields.rb +0 -4
- data/examples/v201505/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -5
- data/examples/v201505/custom_field_service/get_all_custom_fields.rb +0 -4
- data/examples/v201505/custom_field_service/get_all_line_item_custom_fields.rb +1 -5
- data/examples/v201505/custom_field_service/set_line_item_custom_field_value.rb +0 -5
- data/examples/v201505/custom_field_service/update_custom_fields.rb +0 -4
- data/examples/v201505/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201505/custom_targeting_service/delete_custom_targeting_keys.rb +1 -6
- data/examples/v201505/custom_targeting_service/delete_custom_targeting_values.rb +0 -5
- data/examples/v201505/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -5
- data/examples/v201505/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -4
- data/examples/v201505/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -4
- data/examples/v201505/custom_targeting_service/update_custom_targeting_keys.rb +0 -5
- data/examples/v201505/custom_targeting_service/update_custom_targeting_values.rb +0 -5
- data/examples/v201505/forecast_service/get_availability_forecast.rb +0 -4
- data/examples/v201505/forecast_service/get_availability_forecast_for_line_item.rb +0 -4
- data/examples/v201505/forecast_service/get_delivery_forecast_for_line_items.rb +0 -4
- data/examples/v201505/inventory_service/create_ad_units.rb +0 -4
- data/examples/v201505/inventory_service/create_mobile_ad_unit.rb +0 -4
- data/examples/v201505/inventory_service/create_video_ad_unit.rb +0 -4
- data/examples/v201505/inventory_service/deactivate_ad_units.rb +0 -5
- data/examples/v201505/inventory_service/get_ad_unit_sizes.rb +0 -4
- data/examples/v201505/inventory_service/get_ad_units_by_statement.rb +0 -4
- data/examples/v201505/inventory_service/get_all_ad_units.rb +0 -4
- data/examples/v201505/inventory_service/update_ad_units.rb +0 -4
- data/examples/v201505/label_service/create_labels.rb +0 -4
- data/examples/v201505/label_service/deactivate_labels.rb +0 -4
- data/examples/v201505/label_service/get_all_labels.rb +0 -4
- data/examples/v201505/label_service/get_labels_by_statement.rb +0 -4
- data/examples/v201505/label_service/update_labels.rb +0 -4
- data/examples/v201505/line_item_creative_association_service/create_licas.rb +0 -4
- data/examples/v201505/line_item_creative_association_service/deactivate_licas.rb +0 -5
- data/examples/v201505/line_item_creative_association_service/get_all_licas.rb +0 -4
- data/examples/v201505/line_item_creative_association_service/get_licas_by_statement.rb +0 -4
- data/examples/v201505/line_item_creative_association_service/update_licas.rb +0 -5
- data/examples/v201505/line_item_service/activate_line_items.rb +0 -5
- data/examples/v201505/line_item_service/create_line_items.rb +0 -4
- data/examples/v201505/line_item_service/create_video_line_item.rb +0 -4
- data/examples/v201505/line_item_service/get_all_line_items.rb +0 -4
- data/examples/v201505/line_item_service/get_line_items_by_statement.rb +0 -4
- data/examples/v201505/line_item_service/get_recently_updated_line_items.rb +0 -4
- data/examples/v201505/line_item_service/target_custom_criteria.rb +0 -5
- data/examples/v201505/line_item_service/update_line_items.rb +0 -4
- data/examples/v201505/network_service/get_all_networks.rb +0 -4
- data/examples/v201505/network_service/get_current_network.rb +0 -4
- data/examples/v201505/network_service/make_test_network.rb +0 -4
- data/examples/v201505/order_service/approve_orders.rb +0 -5
- data/examples/v201505/order_service/create_orders.rb +0 -4
- data/examples/v201505/order_service/get_all_orders.rb +0 -4
- data/examples/v201505/order_service/get_orders_by_statement.rb +0 -4
- data/examples/v201505/order_service/update_orders.rb +0 -4
- data/examples/v201505/placement_service/create_placements.rb +0 -5
- data/examples/v201505/placement_service/deactivate_placements.rb +0 -5
- data/examples/v201505/placement_service/get_all_placements.rb +0 -4
- data/examples/v201505/placement_service/get_placements_by_statement.rb +0 -4
- data/examples/v201505/placement_service/update_placements.rb +0 -5
- data/examples/v201505/publisher_query_language_service/fetch_match_tables.rb +0 -4
- data/examples/v201505/publisher_query_language_service/get_all_line_items.rb +0 -4
- data/examples/v201505/publisher_query_language_service/get_geo_targets.rb +0 -4
- data/examples/v201505/publisher_query_language_service/get_line_items_named_like.rb +0 -4
- data/examples/v201505/report_service/display_report.rb +0 -4
- data/examples/v201505/report_service/download_report.rb +0 -4
- data/examples/v201505/report_service/run_delivery_report.rb +0 -4
- data/examples/v201505/report_service/run_inventory_report.rb +0 -4
- data/examples/v201505/report_service/run_reach_report.rb +1 -4
- data/examples/v201505/report_service/run_report_with_custom_fields.rb +0 -4
- data/examples/v201505/report_service/run_sales_report.rb +0 -4
- data/examples/v201505/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -5
- data/examples/v201505/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -4
- data/examples/v201505/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +1 -5
- data/examples/v201505/team_service/create_teams.rb +0 -4
- data/examples/v201505/team_service/get_all_teams.rb +0 -4
- data/examples/v201505/team_service/get_teams_by_statement.rb +0 -4
- data/examples/v201505/team_service/update_teams.rb +0 -4
- data/examples/v201505/user_service/create_users.rb +0 -4
- data/examples/v201505/user_service/deactivate_users.rb +0 -4
- data/examples/v201505/user_service/get_all_roles.rb +0 -4
- data/examples/v201505/user_service/get_all_users.rb +0 -4
- data/examples/v201505/user_service/get_current_user.rb +0 -4
- data/examples/v201505/user_service/get_users_by_statement.rb +0 -4
- data/examples/v201505/user_service/update_users.rb +0 -4
- data/examples/v201505/user_team_association_service/create_user_team_associations.rb +0 -4
- data/examples/v201505/user_team_association_service/delete_user_team_associations.rb +0 -5
- data/examples/v201505/user_team_association_service/get_all_user_team_associations.rb +0 -4
- data/examples/v201505/user_team_association_service/get_user_team_associations_by_statement.rb +0 -5
- data/examples/v201505/user_team_association_service/update_user_team_associations.rb +0 -5
- data/examples/{v201408 → v201508}/activity_group_service/create_activity_groups.rb +1 -5
- data/examples/{v201408 → v201508}/activity_group_service/get_active_activity_groups.rb +1 -5
- data/examples/{v201408 → v201508}/activity_group_service/get_all_activity_groups.rb +1 -5
- data/examples/{v201408 → v201508}/activity_group_service/update_activity_groups.rb +1 -6
- data/examples/{v201408 → v201508}/activity_service/create_activities.rb +1 -5
- data/examples/{v201408 → v201508}/activity_service/get_active_activities.rb +15 -31
- data/examples/{v201408 → v201508}/activity_service/get_all_activities.rb +10 -25
- data/examples/{v201408 → v201508}/activity_service/update_activities.rb +9 -12
- data/examples/{v201408 → v201508}/audience_segment_service/create_audience_segments.rb +1 -5
- data/examples/{v201408 → v201508}/audience_segment_service/get_all_audience_segments.rb +10 -24
- data/examples/{v201408 → v201508}/audience_segment_service/get_first_party_audience_segments.rb +14 -26
- data/examples/{v201408 → v201508}/audience_segment_service/populate_first_party_audience_segments.rb +16 -19
- data/examples/{v201408 → v201508}/audience_segment_service/update_audience_segments.rb +12 -16
- data/examples/{v201408 → v201508}/common/error_handling.rb +1 -5
- data/examples/{v201408 → v201508}/common/oauth2_jwt_handling.rb +9 -21
- data/examples/{v201408 → v201508}/common/setup_oauth2.rb +1 -5
- data/examples/{v201408 → v201508}/company_service/create_companies.rb +1 -5
- data/examples/{v201408 → v201508}/company_service/get_all_companies.rb +10 -23
- data/examples/{v201408 → v201508}/company_service/get_companies_by_statement.rb +21 -20
- data/examples/{v201408 → v201508}/company_service/update_companies.rb +13 -14
- data/examples/{v201408 → v201508}/contact_service/create_contacts.rb +1 -5
- data/examples/{v201408 → v201508}/contact_service/get_all_contacts.rb +11 -24
- data/examples/{v201408 → v201508}/contact_service/get_uninvited_contacts.rb +17 -25
- data/examples/{v201408 → v201508}/contact_service/update_contacts.rb +9 -11
- data/examples/{v201408 → v201508}/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +1 -5
- data/examples/{v201408 → v201508}/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +11 -13
- data/examples/{v201408 → v201508}/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +8 -22
- data/examples/{v201408 → v201508}/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +9 -12
- data/examples/{v201408 → v201508}/content_service/get_all_content.rb +9 -23
- data/examples/{v201408 → v201508}/content_service/get_content_by_category.rb +18 -34
- data/examples/{v201408 → v201508}/creative_service/copy_image_creatives.rb +7 -11
- data/examples/{v201408 → v201508}/creative_service/create_creative_from_template.rb +2 -6
- data/examples/{v201408 → v201508}/creative_service/create_creatives.rb +1 -5
- data/examples/{v201408 → v201508}/creative_service/create_custom_creative.rb +1 -5
- data/examples/v201508/creative_service/create_native_creative.rb +195 -0
- data/examples/{v201408 → v201508}/creative_service/get_all_creatives.rb +8 -22
- data/examples/{v201408 → v201508}/creative_service/get_creatives_by_statement.rb +18 -17
- data/examples/{v201408 → v201508}/creative_service/update_creatives.rb +16 -15
- data/examples/{v201408 → v201508}/creative_set_service/associate_creative_set_to_line_item.rb +1 -5
- data/examples/{v201408 → v201508}/creative_set_service/create_creative_set.rb +1 -5
- data/examples/{v201408 → v201508}/creative_set_service/get_all_creative_sets.rb +9 -22
- data/examples/{v201408 → v201508}/creative_set_service/get_creative_sets_by_statement.rb +20 -18
- data/examples/{v201408 → v201508}/creative_set_service/update_creative_sets.rb +10 -12
- data/examples/{v201408 → v201508}/creative_template_service/get_all_creative_templates.rb +9 -22
- data/examples/{v201408/creative_template_service/get_creative_templates_by_statement.rb → v201508/creative_template_service/get_system_defined_creative_templates.rb} +24 -17
- data/examples/{v201408 → v201508}/creative_wrapper_service/create_creative_wrappers.rb +1 -5
- data/examples/{v201408 → v201508}/creative_wrapper_service/deactivate_creative_wrapper.rb +9 -12
- data/examples/{v201408 → v201508}/creative_wrapper_service/get_all_creative_wrappers.rb +10 -23
- data/examples/{v201408 → v201508}/creative_wrapper_service/get_creative_wrappers_by_statement.rb +17 -16
- data/examples/{v201408 → v201508}/creative_wrapper_service/update_creative_wrappers.rb +10 -12
- data/examples/{v201408 → v201508}/custom_field_service/create_custom_field_options.rb +1 -5
- data/examples/{v201408 → v201508}/custom_field_service/create_custom_fields.rb +1 -5
- data/examples/{v201408 → v201508}/custom_field_service/deactivate_all_line_item_custom_fields.rb +13 -28
- data/examples/{v201408 → v201508}/custom_field_service/get_all_custom_fields.rb +11 -24
- data/examples/{v201408 → v201508}/custom_field_service/get_all_line_item_custom_fields.rb +18 -17
- data/examples/{v201408 → v201508}/custom_field_service/set_line_item_custom_field_value.rb +24 -24
- data/examples/{v201408 → v201508}/custom_field_service/update_custom_fields.rb +10 -11
- data/examples/{v201408 → v201508}/custom_targeting_service/create_custom_targeting_keys_and_values.rb +1 -6
- data/examples/{v201408 → v201508}/custom_targeting_service/delete_custom_targeting_keys.rb +16 -25
- data/examples/{v201408 → v201508}/custom_targeting_service/delete_custom_targeting_values.rb +23 -26
- data/examples/{v201408 → v201508}/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +15 -42
- data/examples/{v201408 → v201508}/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +20 -20
- data/examples/{v201408 → v201508}/custom_targeting_service/get_custom_targeting_values_by_statement.rb +19 -20
- data/examples/{v201408 → v201508}/custom_targeting_service/update_custom_targeting_keys.rb +4 -8
- data/examples/{v201408 → v201508}/custom_targeting_service/update_custom_targeting_values.rb +34 -35
- data/examples/{v201408/forecast_service/get_forecast.rb → v201508/forecast_service/get_availability_forecast.rb} +43 -20
- data/examples/{v201408/forecast_service/get_forecast_by_id.rb → v201508/forecast_service/get_availability_forecast_for_line_item.rb} +17 -14
- data/examples/v201508/forecast_service/get_delivery_forecast_for_line_items.rb +77 -0
- data/examples/{v201408 → v201508}/inventory_service/create_ad_units.rb +1 -5
- data/examples/{v201408 → v201508}/inventory_service/create_mobile_ad_unit.rb +1 -5
- data/examples/{v201408 → v201508}/inventory_service/create_video_ad_unit.rb +1 -5
- data/examples/{v201408 → v201508}/inventory_service/deactivate_ad_units.rb +19 -28
- data/examples/{v201408 → v201508}/inventory_service/get_ad_unit_sizes.rb +7 -18
- data/examples/{v201408 → v201508}/inventory_service/get_ad_units_by_statement.rb +18 -17
- data/examples/{v201408 → v201508}/inventory_service/get_all_ad_units.rb +8 -22
- data/examples/{v201408 → v201508}/inventory_service/update_ad_units.rb +23 -15
- data/examples/{v201408 → v201508}/label_service/create_labels.rb +1 -5
- data/examples/{v201408 → v201508}/label_service/deactivate_labels.rb +15 -26
- data/examples/{v201408 → v201508}/label_service/get_all_labels.rb +9 -23
- data/examples/{v201408 → v201508}/label_service/get_labels_by_statement.rb +16 -15
- data/examples/{v201408 → v201508}/label_service/update_labels.rb +24 -30
- data/examples/{v201408 → v201508}/line_item_creative_association_service/create_licas.rb +1 -5
- data/examples/{v201408 → v201508}/line_item_creative_association_service/deactivate_licas.rb +15 -29
- data/examples/{v201408 → v201508}/line_item_creative_association_service/get_all_licas.rb +8 -22
- data/examples/{v201408 → v201508}/line_item_creative_association_service/get_licas_by_statement.rb +10 -12
- data/examples/{v201408 → v201508}/line_item_creative_association_service/update_licas.rb +16 -12
- data/examples/{v201408 → v201508}/line_item_service/activate_line_items.rb +13 -26
- data/examples/{v201408 → v201508}/line_item_service/create_line_items.rb +10 -8
- data/examples/{v201408 → v201508}/line_item_service/create_video_line_item.rb +11 -11
- data/examples/{v201408 → v201508}/line_item_service/get_all_line_items.rb +9 -22
- data/examples/{v201408 → v201508}/line_item_service/get_line_items_by_statement.rb +1 -6
- data/examples/{v201408 → v201508}/line_item_service/get_recently_updated_line_items.rb +19 -17
- data/examples/{v201408 → v201508}/line_item_service/target_custom_criteria.rb +9 -12
- data/examples/{v201408 → v201508}/line_item_service/update_line_items.rb +9 -13
- data/examples/{v201408 → v201508}/network_service/get_all_networks.rb +1 -5
- data/examples/{v201408 → v201508}/network_service/get_current_network.rb +1 -5
- data/examples/{v201408 → v201508}/network_service/make_test_network.rb +1 -5
- data/examples/{v201408 → v201508}/order_service/approve_orders.rb +16 -29
- data/examples/{v201408 → v201508}/order_service/create_orders.rb +1 -5
- data/examples/{v201408 → v201508}/order_service/get_all_orders.rb +8 -22
- data/examples/{v201408 → v201508}/order_service/get_orders_by_statement.rb +18 -18
- data/examples/{v201408 → v201508}/order_service/update_orders.rb +15 -11
- data/examples/{v201408 → v201508}/placement_service/create_placements.rb +4 -7
- data/examples/{v201408 → v201508}/placement_service/deactivate_placements.rb +14 -27
- data/examples/{v201408 → v201508}/placement_service/get_all_placements.rb +9 -22
- data/examples/{v201408 → v201508}/placement_service/get_placements_by_statement.rb +18 -17
- data/examples/{v201408 → v201508}/placement_service/update_placements.rb +17 -12
- data/examples/{v201408 → v201508}/publisher_query_language_service/fetch_match_tables.rb +8 -15
- data/examples/{v201408 → v201508}/publisher_query_language_service/get_all_line_items.rb +8 -14
- data/examples/{v201408 → v201508}/publisher_query_language_service/get_geo_targets.rb +10 -14
- data/examples/{v201408 → v201508}/publisher_query_language_service/get_line_items_named_like.rb +10 -14
- data/examples/{v201408 → v201508}/report_service/display_report.rb +1 -5
- data/examples/{v201408 → v201508}/report_service/download_report.rb +1 -5
- data/examples/{v201408 → v201508}/report_service/run_delivery_report.rb +17 -9
- data/examples/{v201408 → v201508}/report_service/run_inventory_report.rb +5 -8
- data/examples/{v201408 → v201508}/report_service/run_reach_report.rb +6 -8
- data/examples/v201508/report_service/run_report_with_custom_fields.rb +89 -0
- data/examples/{v201408 → v201508}/report_service/run_sales_report.rb +3 -6
- data/examples/{v201408 → v201508}/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +25 -26
- data/examples/{v201408 → v201508}/suggested_ad_unit_service/get_all_suggested_ad_units.rb +9 -23
- data/examples/{v201408 → v201508}/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +24 -25
- data/examples/{v201408 → v201508}/team_service/create_teams.rb +1 -5
- data/examples/{v201408 → v201508}/team_service/get_all_teams.rb +8 -22
- data/examples/{v201408 → v201508}/team_service/get_teams_by_statement.rb +14 -14
- data/examples/{v201408 → v201508}/team_service/update_teams.rb +4 -7
- data/examples/{v201408 → v201508}/user_service/create_users.rb +1 -5
- data/examples/{v201408 → v201508}/user_service/deactivate_users.rb +7 -11
- data/examples/{v201408 → v201508}/user_service/get_all_roles.rb +1 -5
- data/examples/{v201408 → v201508}/user_service/get_all_users.rb +8 -23
- data/examples/{v201408 → v201508}/user_service/get_current_user.rb +1 -5
- data/examples/{v201408 → v201508}/user_service/get_users_by_statement.rb +16 -15
- data/examples/{v201408 → v201508}/user_service/update_users.rb +15 -10
- data/examples/{v201408 → v201508}/user_team_association_service/create_user_team_associations.rb +1 -5
- data/examples/{v201408 → v201508}/user_team_association_service/delete_user_team_associations.rb +13 -26
- data/examples/{v201408 → v201508}/user_team_association_service/get_all_user_team_associations.rb +10 -22
- data/examples/{v201408 → v201508}/user_team_association_service/get_user_team_associations_by_statement.rb +20 -21
- data/examples/{v201408 → v201508}/user_team_association_service/update_user_team_associations.rb +8 -12
- data/lib/dfp_api.rb +0 -2
- data/lib/dfp_api/api_config.rb +28 -5
- data/lib/dfp_api/credential_handler.rb +0 -2
- data/lib/dfp_api/errors.rb +2 -3
- data/lib/dfp_api/v201408/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201408/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/activity_service.rb +1 -1
- data/lib/dfp_api/v201408/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201408/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201408/audience_segment_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201408/base_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/company_service.rb +1 -1
- data/lib/dfp_api/v201408/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/contact_service.rb +1 -1
- data/lib/dfp_api/v201408/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201408/content_bundle_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201408/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/content_service.rb +1 -1
- data/lib/dfp_api/v201408/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/creative_service.rb +1 -1
- data/lib/dfp_api/v201408/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201408/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201408/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201408/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201408/custom_field_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201408/custom_targeting_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201408/exchange_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/forecast_service.rb +1 -1
- data/lib/dfp_api/v201408/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/inventory_service.rb +1 -1
- data/lib/dfp_api/v201408/inventory_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/label_service.rb +1 -1
- data/lib/dfp_api/v201408/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201408/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/line_item_service.rb +1 -1
- data/lib/dfp_api/v201408/line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201408/line_item_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201408/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/network_service.rb +1 -1
- data/lib/dfp_api/v201408/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/order_service.rb +1 -1
- data/lib/dfp_api/v201408/order_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/placement_service.rb +1 -1
- data/lib/dfp_api/v201408/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201408/premium_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/product_service.rb +1 -1
- data/lib/dfp_api/v201408/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/product_template_service.rb +1 -1
- data/lib/dfp_api/v201408/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201408/proposal_line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/proposal_service.rb +1 -1
- data/lib/dfp_api/v201408/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201408/publisher_query_language_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201408/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_order_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_report_row_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201408/reconciliation_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/report_service.rb +1 -1
- data/lib/dfp_api/v201408/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201408/suggested_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/team_service.rb +1 -1
- data/lib/dfp_api/v201408/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/user_service.rb +1 -1
- data/lib/dfp_api/v201408/user_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201408/user_team_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201408/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201408/workflow_request_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201411/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/activity_service.rb +1 -1
- data/lib/dfp_api/v201411/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201411/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201411/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201411/audience_segment_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201411/base_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/company_service.rb +1 -1
- data/lib/dfp_api/v201411/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/contact_service.rb +1 -1
- data/lib/dfp_api/v201411/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201411/content_bundle_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201411/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/content_service.rb +1 -1
- data/lib/dfp_api/v201411/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/creative_service.rb +1 -1
- data/lib/dfp_api/v201411/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201411/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201411/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201411/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201411/custom_field_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201411/custom_targeting_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201411/exchange_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/forecast_service.rb +1 -1
- data/lib/dfp_api/v201411/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/inventory_service.rb +1 -1
- data/lib/dfp_api/v201411/inventory_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/label_service.rb +1 -1
- data/lib/dfp_api/v201411/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201411/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/line_item_service.rb +1 -1
- data/lib/dfp_api/v201411/line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201411/line_item_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201411/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/network_service.rb +1 -1
- data/lib/dfp_api/v201411/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/order_service.rb +1 -1
- data/lib/dfp_api/v201411/order_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/placement_service.rb +1 -1
- data/lib/dfp_api/v201411/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201411/premium_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/product_service.rb +1 -1
- data/lib/dfp_api/v201411/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/product_template_service.rb +1 -1
- data/lib/dfp_api/v201411/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201411/proposal_line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/proposal_service.rb +1 -1
- data/lib/dfp_api/v201411/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201411/publisher_query_language_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201411/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_order_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_report_row_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201411/reconciliation_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/report_service.rb +1 -1
- data/lib/dfp_api/v201411/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/shared_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201411/shared_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201411/suggested_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/team_service.rb +1 -1
- data/lib/dfp_api/v201411/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/user_service.rb +1 -1
- data/lib/dfp_api/v201411/user_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201411/user_team_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201411/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201411/workflow_request_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/activity_group_service.rb +1 -1
- data/lib/dfp_api/v201502/activity_group_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/activity_service.rb +1 -1
- data/lib/dfp_api/v201502/activity_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/ad_exclusion_rule_service.rb +1 -1
- data/lib/dfp_api/v201502/ad_exclusion_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/ad_rule_service.rb +1 -1
- data/lib/dfp_api/v201502/ad_rule_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/audience_segment_service.rb +1 -1
- data/lib/dfp_api/v201502/audience_segment_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/base_rate_service.rb +1 -1
- data/lib/dfp_api/v201502/base_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/company_service.rb +1 -1
- data/lib/dfp_api/v201502/company_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/contact_service.rb +1 -1
- data/lib/dfp_api/v201502/contact_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/content_bundle_service.rb +1 -1
- data/lib/dfp_api/v201502/content_bundle_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/content_metadata_key_hierarchy_service.rb +1 -1
- data/lib/dfp_api/v201502/content_metadata_key_hierarchy_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/content_service.rb +1 -1
- data/lib/dfp_api/v201502/content_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/creative_service.rb +1 -1
- data/lib/dfp_api/v201502/creative_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/creative_set_service.rb +1 -1
- data/lib/dfp_api/v201502/creative_set_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/creative_template_service.rb +1 -1
- data/lib/dfp_api/v201502/creative_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/creative_wrapper_service.rb +1 -1
- data/lib/dfp_api/v201502/creative_wrapper_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/custom_field_service.rb +1 -1
- data/lib/dfp_api/v201502/custom_field_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/custom_targeting_service.rb +1 -1
- data/lib/dfp_api/v201502/custom_targeting_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/exchange_rate_service.rb +1 -1
- data/lib/dfp_api/v201502/exchange_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/forecast_service.rb +1 -1
- data/lib/dfp_api/v201502/forecast_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/inventory_service.rb +1 -1
- data/lib/dfp_api/v201502/inventory_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/label_service.rb +1 -1
- data/lib/dfp_api/v201502/label_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/line_item_creative_association_service.rb +1 -1
- data/lib/dfp_api/v201502/line_item_creative_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/line_item_service.rb +1 -1
- data/lib/dfp_api/v201502/line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/line_item_template_service.rb +1 -1
- data/lib/dfp_api/v201502/line_item_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/live_stream_event_service.rb +1 -1
- data/lib/dfp_api/v201502/live_stream_event_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/network_service.rb +1 -1
- data/lib/dfp_api/v201502/network_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/order_service.rb +1 -1
- data/lib/dfp_api/v201502/order_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/package_service.rb +1 -1
- data/lib/dfp_api/v201502/package_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/placement_service.rb +1 -1
- data/lib/dfp_api/v201502/placement_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/premium_rate_service.rb +1 -1
- data/lib/dfp_api/v201502/premium_rate_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/product_package_item_service.rb +1 -1
- data/lib/dfp_api/v201502/product_package_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/product_package_service.rb +1 -1
- data/lib/dfp_api/v201502/product_package_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/product_service.rb +1 -1
- data/lib/dfp_api/v201502/product_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/product_template_service.rb +1 -1
- data/lib/dfp_api/v201502/product_template_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/proposal_line_item_service.rb +1 -1
- data/lib/dfp_api/v201502/proposal_line_item_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/proposal_service.rb +1 -1
- data/lib/dfp_api/v201502/proposal_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/publisher_query_language_service.rb +1 -1
- data/lib/dfp_api/v201502/publisher_query_language_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/rate_card_service.rb +1 -1
- data/lib/dfp_api/v201502/rate_card_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_order_report_service.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_order_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_report_row_service.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_report_row_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_report_service.rb +1 -1
- data/lib/dfp_api/v201502/reconciliation_report_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/report_service.rb +1 -1
- data/lib/dfp_api/v201502/report_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/shared_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201502/shared_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/suggested_ad_unit_service.rb +1 -1
- data/lib/dfp_api/v201502/suggested_ad_unit_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/team_service.rb +1 -1
- data/lib/dfp_api/v201502/team_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/user_service.rb +1 -1
- data/lib/dfp_api/v201502/user_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/user_team_association_service.rb +1 -1
- data/lib/dfp_api/v201502/user_team_association_service_registry.rb +1 -1
- data/lib/dfp_api/v201502/workflow_request_service.rb +1 -1
- data/lib/dfp_api/v201502/workflow_request_service_registry.rb +1 -1
- data/lib/dfp_api/v201508/activity_group_service.rb +42 -0
- data/lib/dfp_api/v201508/activity_group_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/activity_service.rb +42 -0
- data/lib/dfp_api/v201508/activity_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/ad_exclusion_rule_service.rb +46 -0
- data/lib/dfp_api/v201508/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/ad_rule_service.rb +46 -0
- data/lib/dfp_api/v201508/ad_rule_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/audience_segment_service.rb +46 -0
- data/lib/dfp_api/v201508/audience_segment_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/base_rate_service.rb +46 -0
- data/lib/dfp_api/v201508/base_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/company_service.rb +42 -0
- data/lib/dfp_api/v201508/company_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/contact_service.rb +42 -0
- data/lib/dfp_api/v201508/contact_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/content_bundle_service.rb +46 -0
- data/lib/dfp_api/v201508/content_bundle_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service.rb +46 -0
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/content_service.rb +38 -0
- data/lib/dfp_api/v201508/content_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/creative_service.rb +42 -0
- data/lib/dfp_api/v201508/creative_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/creative_set_service.rb +42 -0
- data/lib/dfp_api/v201508/creative_set_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/creative_template_service.rb +34 -0
- data/lib/dfp_api/v201508/creative_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/creative_wrapper_service.rb +46 -0
- data/lib/dfp_api/v201508/creative_wrapper_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/custom_field_service.rb +58 -0
- data/lib/dfp_api/v201508/custom_field_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/custom_targeting_service.rb +62 -0
- data/lib/dfp_api/v201508/custom_targeting_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/exchange_rate_service.rb +46 -0
- data/lib/dfp_api/v201508/exchange_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/forecast_service.rb +46 -0
- data/lib/dfp_api/v201508/forecast_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/inventory_service.rb +50 -0
- data/lib/dfp_api/v201508/inventory_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/label_service.rb +46 -0
- data/lib/dfp_api/v201508/label_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/line_item_creative_association_service.rb +50 -0
- data/lib/dfp_api/v201508/line_item_creative_association_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/line_item_service.rb +46 -0
- data/lib/dfp_api/v201508/line_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/line_item_template_service.rb +34 -0
- data/lib/dfp_api/v201508/line_item_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/live_stream_event_service.rb +46 -0
- data/lib/dfp_api/v201508/live_stream_event_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/network_service.rb +46 -0
- data/lib/dfp_api/v201508/network_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/order_service.rb +46 -0
- data/lib/dfp_api/v201508/order_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/package_service.rb +46 -0
- data/lib/dfp_api/v201508/package_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/placement_service.rb +46 -0
- data/lib/dfp_api/v201508/placement_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/premium_rate_service.rb +42 -0
- data/lib/dfp_api/v201508/premium_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/product_package_item_service.rb +46 -0
- data/lib/dfp_api/v201508/product_package_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/product_package_service.rb +46 -0
- data/lib/dfp_api/v201508/product_package_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/product_service.rb +42 -0
- data/lib/dfp_api/v201508/product_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/product_template_service.rb +46 -0
- data/lib/dfp_api/v201508/product_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/proposal_line_item_service.rb +46 -0
- data/lib/dfp_api/v201508/proposal_line_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/proposal_service.rb +46 -0
- data/lib/dfp_api/v201508/proposal_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/publisher_query_language_service.rb +34 -0
- data/lib/dfp_api/v201508/publisher_query_language_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/rate_card_service.rb +46 -0
- data/lib/dfp_api/v201508/rate_card_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service.rb +38 -0
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/reconciliation_order_report_service.rb +42 -0
- data/lib/dfp_api/v201508/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/reconciliation_report_row_service.rb +38 -0
- data/lib/dfp_api/v201508/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/reconciliation_report_service.rb +38 -0
- data/lib/dfp_api/v201508/reconciliation_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/report_service.rb +46 -0
- data/lib/dfp_api/v201508/report_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/shared_ad_unit_service.rb +38 -0
- data/lib/dfp_api/v201508/shared_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/suggested_ad_unit_service.rb +38 -0
- data/lib/dfp_api/v201508/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/team_service.rb +42 -0
- data/lib/dfp_api/v201508/team_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/user_service.rb +54 -0
- data/lib/dfp_api/v201508/user_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/user_team_association_service.rb +46 -0
- data/lib/dfp_api/v201508/user_team_association_service_registry.rb +45 -0
- data/lib/dfp_api/v201508/workflow_request_service.rb +38 -0
- data/lib/dfp_api/v201508/workflow_request_service_registry.rb +45 -0
- data/lib/dfp_api/version.rb +2 -4
- data/lib/dfp_api_statement.rb +0 -2
- data/test/dfp_api/test_dfp_api.rb +0 -2
- data/test/suite_unittests.rb +0 -2
- metadata +1039 -938
- checksums.yaml +0 -15
- data/examples/v201408/report_service/run_report_with_custom_fields.rb +0 -135
- data/test/bugs/test_issue_00000016.rb +0 -151
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -21,12 +19,10 @@
|
|
21
19
|
# This example creates new ad units under a the effective root ad unit. To
|
22
20
|
# determine which ad units exist, run get_inventory_tree.rb or
|
23
21
|
# get_all_ad_units.rb.
|
24
|
-
#
|
25
|
-
# Tags: InventoryService.createAdUnits, NetworkService.getCurrentNetwork
|
26
22
|
|
27
23
|
require 'dfp_api'
|
28
24
|
|
29
|
-
API_VERSION = :
|
25
|
+
API_VERSION = :v201508
|
30
26
|
# Number of ad units to create.
|
31
27
|
ITEM_COUNT = 5
|
32
28
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -23,12 +21,10 @@
|
|
23
21
|
# get_all_ad_units.rb.
|
24
22
|
#
|
25
23
|
# Mobile features need to be enabled on your account to use mobile targeting.
|
26
|
-
#
|
27
|
-
# Tags: InventoryService.createAdUnits, NetworkService.getCurrentNetwork
|
28
24
|
|
29
25
|
require 'dfp_api'
|
30
26
|
|
31
|
-
API_VERSION = :
|
27
|
+
API_VERSION = :v201508
|
32
28
|
|
33
29
|
def create_mobile_ad_unit()
|
34
30
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -23,12 +21,10 @@
|
|
23
21
|
# get_all_ad_units.rb.
|
24
22
|
#
|
25
23
|
# This feature is only available to DFP premium solution networks.
|
26
|
-
#
|
27
|
-
# Tags: InventoryService.createAdUnits, NetworkService.getCurrentNetwork
|
28
24
|
|
29
25
|
require 'dfp_api'
|
30
26
|
|
31
|
-
API_VERSION = :
|
27
|
+
API_VERSION = :v201508
|
32
28
|
|
33
29
|
def create_video_ad_unit()
|
34
30
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,14 +18,11 @@
|
|
20
18
|
#
|
21
19
|
# This example deactivates all active ad units. To determine which ad units
|
22
20
|
# exist, run get_all_ad_units.rb or get_inventory_tree.rb.
|
23
|
-
#
|
24
|
-
# Tags: InventoryService.getLineItemsByStatement
|
25
|
-
# Tags: InventoryService.performAdUnitAction
|
26
21
|
|
27
22
|
require 'dfp_api'
|
23
|
+
require 'dfp_api_statement'
|
28
24
|
|
29
|
-
API_VERSION = :
|
30
|
-
PAGE_SIZE = 500
|
25
|
+
API_VERSION = :v201508
|
31
26
|
|
32
27
|
def deactivate_ad_units()
|
33
28
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -41,50 +36,46 @@ def deactivate_ad_units()
|
|
41
36
|
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
42
37
|
|
43
38
|
# Create statement text to select active ad units.
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
statement = DfpApiStatement::FilterStatement.new(
|
40
|
+
'WHERE status = :status',
|
41
|
+
[
|
47
42
|
{:key => 'status',
|
48
43
|
:value => {:value => 'ACTIVE', :xsi_type => 'TextValue'}}
|
49
44
|
]
|
50
|
-
|
45
|
+
)
|
51
46
|
|
52
|
-
# Define initial values.
|
53
|
-
offset = 0
|
54
|
-
page = {}
|
55
47
|
ad_unit_ids = []
|
56
48
|
|
57
49
|
begin
|
58
|
-
# Create a statement to get one page with the current offset.
|
59
|
-
statement[:query] = statement_text +
|
60
|
-
" LIMIT %d OFFSET %d" % [PAGE_SIZE, offset]
|
61
|
-
|
62
50
|
# Get ad units by statement.
|
63
|
-
page = inventory_service.get_ad_units_by_statement(statement)
|
51
|
+
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
64
52
|
|
65
53
|
if page[:results]
|
66
|
-
|
67
|
-
offset += PAGE_SIZE
|
68
|
-
|
69
|
-
page[:results].each do |ad_unit|
|
54
|
+
page[:results].each_with_index do |ad_unit, index|
|
70
55
|
puts ("%d) Ad unit with ID: %d, status: %s and name: %s will be " +
|
71
|
-
"deactivated.") % [
|
56
|
+
"deactivated.") % [index + statement.offset, ad_unit[:id],
|
72
57
|
ad_unit[:status], ad_unit[:name]]
|
73
58
|
ad_unit_ids << ad_unit[:id]
|
74
59
|
end
|
75
60
|
end
|
76
|
-
|
61
|
+
statement.offset += DfpApiStatement::SUGGESTED_PAGE_LIMIT
|
62
|
+
end while statement.offset < page[:total_result_set_size]
|
77
63
|
|
78
64
|
puts "Number of ad units to be deactivated: %d" % ad_unit_ids.size
|
79
65
|
|
80
66
|
if !ad_unit_ids.empty?
|
81
67
|
# Modify statement for action. Note, the values are still present.
|
82
|
-
statement
|
83
|
-
ad_unit_ids.join(', ')
|
68
|
+
statement = DfpApiStatement::FilterStatement.new(
|
69
|
+
"WHERE status = :status AND id in (%s)" % ad_unit_ids.join(', '),
|
70
|
+
[
|
71
|
+
{:key => 'status',
|
72
|
+
:value => {:value => 'ACTIVE', :xsi_type => 'TextValue'}}
|
73
|
+
]
|
74
|
+
)
|
84
75
|
|
85
76
|
# Perform action.
|
86
77
|
result = inventory_service.perform_ad_unit_action(
|
87
|
-
{:xsi_type => 'DeactivateAdUnits'}, statement)
|
78
|
+
{:xsi_type => 'DeactivateAdUnits'}, statement.toStatement())
|
88
79
|
|
89
80
|
# Display results.
|
90
81
|
if result and result[:num_changes] > 0
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -18,13 +16,12 @@
|
|
18
16
|
# See the License for the specific language governing permissions and
|
19
17
|
# limitations under the License.
|
20
18
|
#
|
21
|
-
# This code example gets all
|
22
|
-
#
|
23
|
-
# Tags: InventoryService.getAdUnitSizesByStatement
|
19
|
+
# This code example gets all ad unit sizes.
|
24
20
|
|
25
21
|
require 'dfp_api'
|
22
|
+
require 'dfp_api_statement'
|
26
23
|
|
27
|
-
API_VERSION = :
|
24
|
+
API_VERSION = :v201508
|
28
25
|
|
29
26
|
def get_all_ad_unit_sizes()
|
30
27
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -37,20 +34,12 @@ def get_all_ad_unit_sizes()
|
|
37
34
|
# Get the InventoryService.
|
38
35
|
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
39
36
|
|
40
|
-
|
41
|
-
|
42
|
-
# Create statement object to only select web ad unit sizes.
|
43
|
-
statement = {
|
44
|
-
:query => 'WHERE targetPlatform = :target_platform ORDER BY id ASC',
|
45
|
-
:values => [
|
46
|
-
{:key => 'target_platform',
|
47
|
-
:value => {:value => target_platform,
|
48
|
-
:xsi_type => 'TextValue'}}
|
49
|
-
]
|
50
|
-
}
|
37
|
+
# Create statement select all ad unit sizes.
|
38
|
+
statement = DfpApiStatement::FilterStatement.new('ORDER BY id ASC')
|
51
39
|
|
52
40
|
# Get ad unit sizes by statement.
|
53
|
-
ad_unit_sizes = inventory_service.get_ad_unit_sizes_by_statement(
|
41
|
+
ad_unit_sizes = inventory_service.get_ad_unit_sizes_by_statement(
|
42
|
+
statement.toStatement())
|
54
43
|
|
55
44
|
if ad_unit_sizes
|
56
45
|
# Print details about each ad unit in results.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,12 +18,11 @@
|
|
20
18
|
#
|
21
19
|
# This example gets first 500 children below the effective root ad unit. To
|
22
20
|
# create ad units, run create_ad_units.rb.
|
23
|
-
#
|
24
|
-
# Tags: InventoryService.getAdUnitsByStatement, NetworkService.getCurrentNetwork
|
25
21
|
|
26
22
|
require 'dfp_api'
|
23
|
+
require 'dfp_api_statement'
|
27
24
|
|
28
|
-
API_VERSION = :
|
25
|
+
API_VERSION = :v201508
|
29
26
|
|
30
27
|
def get_ad_units_by_statement()
|
31
28
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -48,25 +45,29 @@ def get_ad_units_by_statement()
|
|
48
45
|
puts "Using effective root ad unit: %d" % effective_root_ad_unit_id
|
49
46
|
|
50
47
|
# Create a statement to select the children of the effective root ad unit.
|
51
|
-
statement =
|
52
|
-
|
53
|
-
|
48
|
+
statement = DfpApiStatement::FilterStatement.new(
|
49
|
+
'WHERE parentId = :id ORDER BY id',
|
50
|
+
[
|
54
51
|
{:key => 'id',
|
55
52
|
:value => {:value => effective_root_ad_unit_id,
|
56
53
|
:xsi_type => 'NumberValue'}}
|
57
54
|
]
|
58
|
-
|
55
|
+
)
|
59
56
|
|
60
|
-
|
61
|
-
|
57
|
+
begin
|
58
|
+
# Get ad units by statement.
|
59
|
+
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
62
60
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
68
|
end
|
69
|
-
|
69
|
+
statement.offset += DfpApiStatement::SUGGESTED_PAGE_LIMIT
|
70
|
+
end while statement.offset < page[:total_result_set_size]
|
70
71
|
|
71
72
|
# Print a footer.
|
72
73
|
if page.include?(:total_result_set_size)
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -19,13 +17,11 @@
|
|
19
17
|
# limitations under the License.
|
20
18
|
#
|
21
19
|
# This example gets all ad units. To create ad units, run create_ad_units.rb.
|
22
|
-
#
|
23
|
-
# Tags: InventoryService.getAdUnitsByStatement
|
24
20
|
|
25
21
|
require 'dfp_api'
|
22
|
+
require 'dfp_api_statement'
|
26
23
|
|
27
|
-
API_VERSION = :
|
28
|
-
PAGE_SIZE = 500
|
24
|
+
API_VERSION = :v201508
|
29
25
|
|
30
26
|
def get_all_ad_units()
|
31
27
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -38,33 +34,23 @@ def get_all_ad_units()
|
|
38
34
|
# Get the InventoryService.
|
39
35
|
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
40
36
|
|
41
|
-
#
|
42
|
-
|
43
|
-
page = {}
|
37
|
+
# Create a statement to get all ad units
|
38
|
+
statement = DfpApiStatement::FilterStatement.new('ORDER BY id ASC')
|
44
39
|
|
45
40
|
begin
|
46
|
-
# Create a statement to get one page with current offset.
|
47
|
-
statement = {:query => "ORDER BY id ASC LIMIT %d OFFSET %d" %
|
48
|
-
[PAGE_SIZE, offset]}
|
49
|
-
|
50
41
|
# Get ad units by statement.
|
51
|
-
page = inventory_service.get_ad_units_by_statement(statement)
|
42
|
+
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
52
43
|
|
53
44
|
if page[:results]
|
54
|
-
# Increase query offset by page size.
|
55
|
-
offset += PAGE_SIZE
|
56
|
-
|
57
|
-
# Get the start index for printout.
|
58
|
-
start_index = page[:start_index]
|
59
|
-
|
60
45
|
# Print details about each ad unit in results.
|
61
46
|
page[:results].each_with_index do |ad_unit, index|
|
62
47
|
puts "%d) Ad unit ID: %d, name: %s, status: %s." %
|
63
|
-
[index +
|
48
|
+
[index + statement.offset, ad_unit[:id],
|
64
49
|
ad_unit[:name], ad_unit[:status]]
|
65
50
|
end
|
66
51
|
end
|
67
|
-
|
52
|
+
statement.offset += DfpApiStatement::SUGGESTED_PAGE_LIMIT
|
53
|
+
end while statement.offset < page[:total_result_set_size]
|
68
54
|
|
69
55
|
# Print a footer.
|
70
56
|
if page.include?(:total_result_set_size)
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -18,15 +16,13 @@
|
|
18
16
|
# See the License for the specific language governing permissions and
|
19
17
|
# limitations under the License.
|
20
18
|
#
|
21
|
-
# This example
|
19
|
+
# This example adds a new 1x1 creative placeholder for a specific ad unit. To
|
22
20
|
# determine which ad units exist, run get_all_ad_units.rb or
|
23
21
|
# get_inventory_tree.rb.
|
24
|
-
#
|
25
|
-
# Tags: InventoryService.getAdUnitsByStatement, InventoryService.updateAdUnits
|
26
22
|
|
27
23
|
require 'dfp_api'
|
28
24
|
|
29
|
-
API_VERSION = :
|
25
|
+
API_VERSION = :v201508
|
30
26
|
|
31
27
|
def update_ad_units()
|
32
28
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -39,19 +35,33 @@ def update_ad_units()
|
|
39
35
|
# Get the InventoryService.
|
40
36
|
inventory_service = dfp.service(:InventoryService, API_VERSION)
|
41
37
|
|
38
|
+
# Specify which ad unit to update.
|
39
|
+
ad_unit_id = 'INSERT_AD_UNIT_ID_HERE'.to_i
|
40
|
+
|
42
41
|
# Create a statement to get first 500 ad units.
|
43
|
-
statement =
|
42
|
+
statement = DfpApiStatement::FilterStatement.new(
|
43
|
+
'WHERE id = :id',
|
44
|
+
[
|
45
|
+
{:key => 'id',
|
46
|
+
:value => {:value => ad_unit_id, :xsi_type => 'NumberValue'}}
|
47
|
+
],
|
48
|
+
1
|
49
|
+
}
|
44
50
|
|
45
51
|
# Get ad units by statement.
|
46
|
-
page = inventory_service.get_ad_units_by_statement(statement)
|
52
|
+
page = inventory_service.get_ad_units_by_statement(statement.toStatement())
|
47
53
|
|
48
54
|
if page[:results]
|
49
55
|
ad_units = page[:results]
|
50
56
|
|
51
|
-
|
57
|
+
new_ad_unit_size = {
|
58
|
+
:size => {:width => 1, :height => 1, :is_aspect_ration => false},
|
59
|
+
:environment_type => 'BROWSER'
|
60
|
+
}
|
61
|
+
|
62
|
+
# Update local ad unit by adding a new size of 1x1.
|
52
63
|
ad_units.each do |ad_unit|
|
53
|
-
ad_unit[:
|
54
|
-
{:value => {:ad_sense_enabled => true}}
|
64
|
+
ad_unit[:ad_unit_sizes] = ad_unit[:ad_unit_sizes] << new_ad_unit_size
|
55
65
|
# Workaround for issue #94.
|
56
66
|
ad_unit[:description] = "" if ad_unit[:description].nil?
|
57
67
|
end
|
@@ -61,10 +71,8 @@ def update_ad_units()
|
|
61
71
|
|
62
72
|
if return_ad_units
|
63
73
|
return_ad_units.each do |ad_unit|
|
64
|
-
puts ("Ad unit with ID: %d, name: %s and status: %s was updated
|
65
|
-
|
66
|
-
[ad_unit[:id], ad_unit[:name], ad_unit[:status],
|
67
|
-
ad_unit[:inherited_ad_sense_settings][:value][:ad_sense_enabled]]
|
74
|
+
puts ("Ad unit with ID: %d, name: %s and status: %s was updated") %
|
75
|
+
[ad_unit[:id], ad_unit[:name], ad_unit[:status]]
|
68
76
|
end
|
69
77
|
else
|
70
78
|
raise 'No ad units were updated.'
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -22,12 +20,10 @@
|
|
22
20
|
# get_all_labels.rb.
|
23
21
|
#
|
24
22
|
# This feature is only available to DFP premium solution networks.
|
25
|
-
#
|
26
|
-
# Tags: LabelService.createLabels
|
27
23
|
|
28
24
|
require 'dfp_api'
|
29
25
|
|
30
|
-
API_VERSION = :
|
26
|
+
API_VERSION = :v201508
|
31
27
|
# Number of labels to create.
|
32
28
|
ITEM_COUNT = 5
|
33
29
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Encoding: utf-8
|
3
3
|
#
|
4
|
-
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
|
5
|
-
#
|
6
4
|
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
7
5
|
#
|
8
6
|
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -22,13 +20,11 @@
|
|
22
20
|
# run get_all_labels.rb.
|
23
21
|
#
|
24
22
|
# This feature is only available to DFP premium solution networks.
|
25
|
-
#
|
26
|
-
# Tags: LabelService.getLabelsByStatement, LabelService.performLabelAction
|
27
23
|
|
28
24
|
require 'dfp_api'
|
25
|
+
require 'dfp_api_statement'
|
29
26
|
|
30
|
-
API_VERSION = :
|
31
|
-
PAGE_SIZE = 500
|
27
|
+
API_VERSION = :v201508
|
32
28
|
|
33
29
|
def deactivate_labels()
|
34
30
|
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
@@ -41,49 +37,42 @@ def deactivate_labels()
|
|
41
37
|
# Get the LabelService.
|
42
38
|
label_service = dfp.service(:LabelService, API_VERSION)
|
43
39
|
|
44
|
-
# Create statement
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
# Create statement to select active labels.
|
41
|
+
statement = DfpApiStatement::FilterStatement.new(
|
42
|
+
'WHERE isActive = :is_active',
|
43
|
+
[
|
48
44
|
{:key => 'is_active',
|
49
45
|
:value => {:value => true, :xsi_type => 'BooleanValue'}}
|
50
46
|
]
|
51
|
-
|
47
|
+
)
|
52
48
|
|
53
49
|
# Define initial values.
|
54
|
-
offset = 0
|
55
|
-
page = {}
|
56
50
|
label_ids = []
|
57
51
|
|
58
52
|
begin
|
59
|
-
# Modify the statement to get one page with current offset.
|
60
|
-
statement[:query] = statement_text +
|
61
|
-
" LIMIT %d OFFSET %d" % [PAGE_SIZE, offset]
|
62
|
-
|
63
53
|
# Get labels by statement.
|
64
|
-
page = label_service.get_labels_by_statement(statement)
|
54
|
+
page = label_service.get_labels_by_statement(statement.toStatement())
|
65
55
|
|
66
56
|
if page[:results]
|
67
|
-
|
68
|
-
offset += PAGE_SIZE
|
69
|
-
|
70
|
-
page[:results].each do |label|
|
57
|
+
page[:results].each_with_index do |label, index|
|
71
58
|
puts ("%d) Label ID: %d, name: %s will be deactivated.") %
|
72
|
-
[
|
59
|
+
[index + statement.offset, label[:id], label[:name]]
|
73
60
|
label_ids << label[:id]
|
74
61
|
end
|
75
62
|
end
|
76
|
-
|
63
|
+
statement.offset += DfpApiStatement::SUGGESTED_PAGE_LIMIT
|
64
|
+
end while statement.offset < page[:total_result_set_size]
|
77
65
|
|
78
66
|
puts "Number of labels to be deactivated: %d" % label_ids.size
|
79
67
|
|
80
68
|
if !label_ids.empty?
|
81
69
|
# Create a statement for action.
|
82
|
-
statement =
|
70
|
+
statement = DfpApiStatement::FilterStatement.new(
|
71
|
+
"WHERE id IN (%s)" % label_ids.join(', '))
|
83
72
|
|
84
73
|
# Perform action.
|
85
74
|
result = label_service.perform_label_action(
|
86
|
-
{:xsi_type => 'DeactivateLabels'}, statement)
|
75
|
+
{:xsi_type => 'DeactivateLabels'}, statement.toStatement())
|
87
76
|
|
88
77
|
# Display results.
|
89
78
|
if result and result[:num_changes] > 0
|