google-dfp-api 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +11 -0
- data/README.md +5 -0
- data/dfp_api.yml +1 -1
- data/lib/dfp_api/api_config.rb +13 -38
- data/lib/dfp_api/dfp_api_statement.rb +5 -0
- data/lib/dfp_api/{v201511 → v201611}/activity_group_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/activity_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/activity_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/ad_exclusion_rule_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/ad_rule_service.rb +6 -6
- data/lib/dfp_api/v201611/ad_rule_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/audience_segment_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/audience_segment_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/base_rate_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/company_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/company_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/contact_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/contact_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/content_bundle_service.rb +6 -6
- data/lib/dfp_api/v201611/content_bundle_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/content_metadata_key_hierarchy_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/content_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/content_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/creative_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_set_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_set_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_template_service.rb +6 -6
- data/lib/dfp_api/v201611/creative_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/creative_wrapper_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/custom_field_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/custom_targeting_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/exchange_rate_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/forecast_service.rb +6 -6
- data/lib/dfp_api/v201611/forecast_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/inventory_service.rb +6 -6
- data/lib/dfp_api/v201611/inventory_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/label_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/label_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/line_item_creative_association_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_creative_association_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/line_item_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/line_item_template_service.rb +6 -6
- data/lib/dfp_api/v201611/line_item_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/live_stream_event_service.rb +14 -6
- data/lib/dfp_api/{v201511 → v201611}/live_stream_event_service_registry.rb +4 -4
- data/lib/dfp_api/v201611/mobile_application_service.rb +62 -0
- data/lib/dfp_api/v201611/mobile_application_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/network_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/network_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/order_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/order_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/package_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/package_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/placement_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/placement_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/premium_rate_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/product_package_item_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/product_package_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/product_package_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/product_service.rb +14 -6
- data/lib/dfp_api/v201611/product_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/product_template_service.rb +6 -6
- data/lib/dfp_api/v201611/product_template_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/proposal_line_item_service.rb +6 -6
- data/lib/dfp_api/v201611/proposal_line_item_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/proposal_service.rb +14 -6
- data/lib/dfp_api/v201611/proposal_service_registry.rb +45 -0
- data/lib/dfp_api/{v201511 → v201611}/publisher_query_language_service.rb +6 -6
- data/lib/dfp_api/v201611/publisher_query_language_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/rate_card_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/rate_card_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_line_item_report_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_order_report_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_report_row_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_report_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/report_service.rb +14 -6
- data/lib/dfp_api/{v201511 → v201611}/report_service_registry.rb +4 -4
- data/lib/dfp_api/{v201508 → v201611}/suggested_ad_unit_service.rb +6 -6
- data/lib/dfp_api/v201611/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/{v201508 → v201611}/team_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/team_service_registry.rb +3 -3
- data/lib/dfp_api/{v201508 → v201611}/user_service.rb +6 -6
- data/lib/dfp_api/{v201508 → v201611}/user_service_registry.rb +3 -3
- data/lib/dfp_api/{v201511 → v201611}/user_team_association_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/{v201508 → v201611}/workflow_request_service.rb +6 -6
- data/lib/dfp_api/{v201511 → v201611}/workflow_request_service_registry.rb +3 -3
- data/lib/dfp_api/version.rb +1 -1
- data/test/bugs/test_issue_00000007.rb +113 -0
- data/test/bugs/test_issue_00000081.rb +5 -3
- metadata +105 -611
- data/examples/v201602/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201602/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201602/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201602/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201602/activity_service/create_activities.rb +0 -87
- data/examples/v201602/activity_service/get_active_activities.rb +0 -87
- data/examples/v201602/activity_service/get_all_activities.rb +0 -81
- data/examples/v201602/activity_service/update_activities.rb +0 -96
- data/examples/v201602/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201602/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201602/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201602/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201602/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201602/common/error_handling.rb +0 -72
- data/examples/v201602/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201602/common/setup_oauth2.rb +0 -85
- data/examples/v201602/company_service/create_companies.rb +0 -78
- data/examples/v201602/company_service/get_all_companies.rb +0 -80
- data/examples/v201602/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201602/company_service/update_companies.rb +0 -104
- data/examples/v201602/contact_service/create_contacts.rb +0 -91
- data/examples/v201602/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201602/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201602/contact_service/update_contacts.rb +0 -96
- data/examples/v201602/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201602/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201602/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201602/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201602/content_service/get_all_content.rb +0 -81
- data/examples/v201602/content_service/get_content_by_category.rb +0 -127
- data/examples/v201602/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201602/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201602/creative_service/create_creatives.rb +0 -108
- data/examples/v201602/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201602/creative_service/create_native_creative.rb +0 -189
- data/examples/v201602/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201602/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201602/creative_service/update_creatives.rb +0 -97
- data/examples/v201602/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201602/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201602/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201602/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201602/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201602/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201602/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201602/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201602/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201602/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201602/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201602/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201602/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201602/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201602/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201602/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201602/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201602/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201602/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201602/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201602/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201602/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201602/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201602/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201602/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201602/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201602/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201602/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201602/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201602/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201602/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201602/inventory_service/create_video_ad_unit.rb +0 -103
- data/examples/v201602/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201602/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201602/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201602/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201602/inventory_service/update_ad_units.rb +0 -105
- data/examples/v201602/label_service/create_labels.rb +0 -79
- data/examples/v201602/label_service/deactivate_labels.rb +0 -107
- data/examples/v201602/label_service/get_all_labels.rb +0 -82
- data/examples/v201602/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201602/label_service/update_labels.rb +0 -96
- data/examples/v201602/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201602/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201602/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201602/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201602/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201602/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201602/line_item_service/create_line_items.rb +0 -182
- data/examples/v201602/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201602/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201602/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201602/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201602/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201602/line_item_service/update_line_items.rb +0 -106
- data/examples/v201602/network_service/get_all_networks.rb +0 -70
- data/examples/v201602/network_service/get_current_network.rb +0 -62
- data/examples/v201602/network_service/make_test_network.rb +0 -75
- data/examples/v201602/order_service/approve_orders.rb +0 -110
- data/examples/v201602/order_service/create_orders.rb +0 -88
- data/examples/v201602/order_service/get_all_orders.rb +0 -80
- data/examples/v201602/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201602/order_service/update_orders.rb +0 -101
- data/examples/v201602/placement_service/create_placements.rb +0 -128
- data/examples/v201602/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201602/placement_service/get_all_placements.rb +0 -81
- data/examples/v201602/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201602/placement_service/update_placements.rb +0 -102
- data/examples/v201602/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201602/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201602/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201602/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201602/report_service/display_report.rb +0 -77
- data/examples/v201602/report_service/download_report.rb +0 -77
- data/examples/v201602/report_service/run_delivery_report.rb +0 -111
- data/examples/v201602/report_service/run_inventory_report.rb +0 -109
- data/examples/v201602/report_service/run_reach_report.rb +0 -85
- data/examples/v201602/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201602/report_service/run_sales_report.rb +0 -89
- data/examples/v201602/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201602/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201602/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201602/team_service/create_teams.rb +0 -79
- data/examples/v201602/team_service/get_all_teams.rb +0 -79
- data/examples/v201602/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201602/team_service/update_teams.rb +0 -94
- data/examples/v201602/user_service/create_users.rb +0 -85
- data/examples/v201602/user_service/deactivate_users.rb +0 -94
- data/examples/v201602/user_service/get_all_roles.rb +0 -69
- data/examples/v201602/user_service/get_all_users.rb +0 -79
- data/examples/v201602/user_service/get_current_user.rb +0 -62
- data/examples/v201602/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201602/user_service/update_users.rb +0 -94
- data/examples/v201602/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201602/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201602/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201602/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201602/user_team_association_service/update_user_team_associations.rb +0 -98
- data/examples/v201605/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201605/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201605/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201605/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201605/activity_service/create_activities.rb +0 -87
- data/examples/v201605/activity_service/get_active_activities.rb +0 -87
- data/examples/v201605/activity_service/get_all_activities.rb +0 -81
- data/examples/v201605/activity_service/update_activities.rb +0 -96
- data/examples/v201605/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201605/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201605/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201605/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201605/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201605/common/error_handling.rb +0 -72
- data/examples/v201605/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201605/common/setup_oauth2.rb +0 -85
- data/examples/v201605/company_service/create_companies.rb +0 -78
- data/examples/v201605/company_service/get_all_companies.rb +0 -80
- data/examples/v201605/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201605/company_service/update_companies.rb +0 -104
- data/examples/v201605/contact_service/create_contacts.rb +0 -91
- data/examples/v201605/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201605/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201605/contact_service/update_contacts.rb +0 -96
- data/examples/v201605/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201605/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201605/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201605/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201605/content_service/get_all_content.rb +0 -81
- data/examples/v201605/content_service/get_content_by_category.rb +0 -127
- data/examples/v201605/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201605/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201605/creative_service/create_creatives.rb +0 -108
- data/examples/v201605/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201605/creative_service/create_native_creative.rb +0 -189
- data/examples/v201605/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201605/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201605/creative_service/update_creatives.rb +0 -97
- data/examples/v201605/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201605/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201605/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201605/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201605/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201605/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201605/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201605/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201605/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201605/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201605/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201605/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201605/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201605/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201605/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201605/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201605/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201605/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201605/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201605/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201605/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201605/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201605/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201605/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201605/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201605/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201605/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201605/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201605/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201605/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201605/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201605/inventory_service/create_video_ad_unit.rb +0 -103
- data/examples/v201605/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201605/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201605/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201605/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201605/inventory_service/update_ad_units.rb +0 -105
- data/examples/v201605/label_service/create_labels.rb +0 -79
- data/examples/v201605/label_service/deactivate_labels.rb +0 -107
- data/examples/v201605/label_service/get_all_labels.rb +0 -82
- data/examples/v201605/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201605/label_service/update_labels.rb +0 -96
- data/examples/v201605/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201605/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201605/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201605/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201605/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201605/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201605/line_item_service/create_line_items.rb +0 -182
- data/examples/v201605/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201605/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201605/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201605/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201605/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201605/line_item_service/update_line_items.rb +0 -106
- data/examples/v201605/network_service/get_all_networks.rb +0 -70
- data/examples/v201605/network_service/get_current_network.rb +0 -62
- data/examples/v201605/network_service/make_test_network.rb +0 -75
- data/examples/v201605/order_service/approve_orders.rb +0 -110
- data/examples/v201605/order_service/create_orders.rb +0 -88
- data/examples/v201605/order_service/get_all_orders.rb +0 -80
- data/examples/v201605/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201605/order_service/update_orders.rb +0 -101
- data/examples/v201605/placement_service/create_placements.rb +0 -128
- data/examples/v201605/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201605/placement_service/get_all_placements.rb +0 -81
- data/examples/v201605/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201605/placement_service/update_placements.rb +0 -102
- data/examples/v201605/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201605/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201605/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201605/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201605/report_service/display_report.rb +0 -77
- data/examples/v201605/report_service/download_report.rb +0 -77
- data/examples/v201605/report_service/run_delivery_report.rb +0 -111
- data/examples/v201605/report_service/run_inventory_report.rb +0 -109
- data/examples/v201605/report_service/run_reach_report.rb +0 -85
- data/examples/v201605/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201605/report_service/run_sales_report.rb +0 -89
- data/examples/v201605/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201605/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201605/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201605/team_service/create_teams.rb +0 -79
- data/examples/v201605/team_service/get_all_teams.rb +0 -79
- data/examples/v201605/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201605/team_service/update_teams.rb +0 -94
- data/examples/v201605/user_service/create_users.rb +0 -85
- data/examples/v201605/user_service/deactivate_users.rb +0 -94
- data/examples/v201605/user_service/get_all_roles.rb +0 -69
- data/examples/v201605/user_service/get_all_users.rb +0 -79
- data/examples/v201605/user_service/get_current_user.rb +0 -62
- data/examples/v201605/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201605/user_service/update_users.rb +0 -94
- data/examples/v201605/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201605/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201605/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201605/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201605/user_team_association_service/update_user_team_associations.rb +0 -98
- data/examples/v201608/activity_group_service/create_activity_groups.rb +0 -90
- data/examples/v201608/activity_group_service/get_active_activity_groups.rb +0 -87
- data/examples/v201608/activity_group_service/get_all_activity_groups.rb +0 -81
- data/examples/v201608/activity_group_service/update_activity_groups.rb +0 -94
- data/examples/v201608/activity_service/create_activities.rb +0 -87
- data/examples/v201608/activity_service/get_active_activities.rb +0 -87
- data/examples/v201608/activity_service/get_all_activities.rb +0 -81
- data/examples/v201608/activity_service/update_activities.rb +0 -96
- data/examples/v201608/audience_segment_service/create_audience_segments.rb +0 -114
- data/examples/v201608/audience_segment_service/get_all_audience_segments.rb +0 -81
- data/examples/v201608/audience_segment_service/get_first_party_audience_segments.rb +0 -88
- data/examples/v201608/audience_segment_service/populate_first_party_audience_segments.rb +0 -99
- data/examples/v201608/audience_segment_service/update_audience_segments.rb +0 -94
- data/examples/v201608/common/error_handling.rb +0 -72
- data/examples/v201608/common/oauth2_jwt_handling.rb +0 -99
- data/examples/v201608/common/setup_oauth2.rb +0 -85
- data/examples/v201608/company_service/create_companies.rb +0 -78
- data/examples/v201608/company_service/get_all_companies.rb +0 -80
- data/examples/v201608/company_service/get_companies_by_statement.rb +0 -89
- data/examples/v201608/company_service/update_companies.rb +0 -104
- data/examples/v201608/contact_service/create_contacts.rb +0 -91
- data/examples/v201608/contact_service/get_all_contacts.rb +0 -80
- data/examples/v201608/contact_service/get_uninvited_contacts.rb +0 -94
- data/examples/v201608/contact_service/update_contacts.rb +0 -96
- data/examples/v201608/content_metadata_key_hierarchy_service/create_content_metadata_key_hierarchies.rb +0 -92
- data/examples/v201608/content_metadata_key_hierarchy_service/delete_content_metadata_key_hierarchies.rb +0 -101
- data/examples/v201608/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.rb +0 -85
- data/examples/v201608/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.rb +0 -110
- data/examples/v201608/content_service/get_all_content.rb +0 -81
- data/examples/v201608/content_service/get_content_by_category.rb +0 -127
- data/examples/v201608/creative_service/copy_image_creatives.rb +0 -111
- data/examples/v201608/creative_service/create_creative_from_template.rb +0 -135
- data/examples/v201608/creative_service/create_creatives.rb +0 -108
- data/examples/v201608/creative_service/create_custom_creative.rb +0 -103
- data/examples/v201608/creative_service/create_native_creative.rb +0 -189
- data/examples/v201608/creative_service/get_all_creatives.rb +0 -80
- data/examples/v201608/creative_service/get_creatives_by_statement.rb +0 -88
- data/examples/v201608/creative_service/update_creatives.rb +0 -97
- data/examples/v201608/creative_set_service/associate_creative_set_to_line_item.rb +0 -73
- data/examples/v201608/creative_set_service/create_creative_set.rb +0 -79
- data/examples/v201608/creative_set_service/get_all_creative_sets.rb +0 -82
- data/examples/v201608/creative_set_service/get_creative_sets_by_statement.rb +0 -92
- data/examples/v201608/creative_set_service/update_creative_sets.rb +0 -98
- data/examples/v201608/creative_template_service/get_all_creative_templates.rb +0 -82
- data/examples/v201608/creative_template_service/get_system_defined_creative_templates.rb +0 -87
- data/examples/v201608/creative_wrapper_service/create_creative_wrappers.rb +0 -85
- data/examples/v201608/creative_wrapper_service/deactivate_creative_wrapper.rb +0 -99
- data/examples/v201608/creative_wrapper_service/get_all_creative_wrappers.rb +0 -82
- data/examples/v201608/creative_wrapper_service/get_creative_wrappers_by_statement.rb +0 -89
- data/examples/v201608/creative_wrapper_service/update_creative_wrappers.rb +0 -99
- data/examples/v201608/custom_field_service/create_custom_field_options.rb +0 -83
- data/examples/v201608/custom_field_service/create_custom_fields.rb +0 -82
- data/examples/v201608/custom_field_service/deactivate_all_line_item_custom_fields.rb +0 -97
- data/examples/v201608/custom_field_service/get_all_custom_fields.rb +0 -90
- data/examples/v201608/custom_field_service/get_all_line_item_custom_fields.rb +0 -87
- data/examples/v201608/custom_field_service/set_line_item_custom_field_value.rb +0 -178
- data/examples/v201608/custom_field_service/update_custom_fields.rb +0 -98
- data/examples/v201608/custom_targeting_service/create_custom_targeting_keys_and_values.rb +0 -135
- data/examples/v201608/custom_targeting_service/delete_custom_targeting_keys.rb +0 -112
- data/examples/v201608/custom_targeting_service/delete_custom_targeting_values.rb +0 -122
- data/examples/v201608/custom_targeting_service/get_all_custom_targeting_keys_and_values.rb +0 -122
- data/examples/v201608/custom_targeting_service/get_custom_targeting_keys_by_statement.rb +0 -92
- data/examples/v201608/custom_targeting_service/get_custom_targeting_values_by_statement.rb +0 -98
- data/examples/v201608/custom_targeting_service/update_custom_targeting_keys.rb +0 -90
- data/examples/v201608/custom_targeting_service/update_custom_targeting_values.rb +0 -105
- data/examples/v201608/forecast_service/get_availability_forecast.rb +0 -134
- data/examples/v201608/forecast_service/get_availability_forecast_for_line_item.rb +0 -84
- data/examples/v201608/forecast_service/get_delivery_forecast_for_line_items.rb +0 -77
- data/examples/v201608/inventory_service/create_ad_units.rb +0 -97
- data/examples/v201608/inventory_service/deactivate_ad_units.rb +0 -110
- data/examples/v201608/inventory_service/get_ad_unit_sizes.rb +0 -74
- data/examples/v201608/inventory_service/get_ad_units_by_statement.rb +0 -97
- data/examples/v201608/inventory_service/get_all_ad_units.rb +0 -80
- data/examples/v201608/inventory_service/update_ad_units.rb +0 -113
- data/examples/v201608/label_service/create_labels.rb +0 -79
- data/examples/v201608/label_service/deactivate_labels.rb +0 -107
- data/examples/v201608/label_service/get_all_labels.rb +0 -82
- data/examples/v201608/label_service/get_labels_by_statement.rb +0 -82
- data/examples/v201608/label_service/update_labels.rb +0 -96
- data/examples/v201608/line_item_creative_association_service/create_licas.rb +0 -90
- data/examples/v201608/line_item_creative_association_service/deactivate_licas.rb +0 -113
- data/examples/v201608/line_item_creative_association_service/get_all_licas.rb +0 -85
- data/examples/v201608/line_item_creative_association_service/get_licas_by_statement.rb +0 -89
- data/examples/v201608/line_item_creative_association_service/update_licas.rb +0 -96
- data/examples/v201608/line_item_service/activate_line_items.rb +0 -118
- data/examples/v201608/line_item_service/create_line_items.rb +0 -182
- data/examples/v201608/line_item_service/create_video_line_item.rb +0 -164
- data/examples/v201608/line_item_service/get_all_line_items.rb +0 -82
- data/examples/v201608/line_item_service/get_line_items_by_statement.rb +0 -91
- data/examples/v201608/line_item_service/get_recently_updated_line_items.rb +0 -100
- data/examples/v201608/line_item_service/target_custom_criteria.rb +0 -140
- data/examples/v201608/line_item_service/update_line_items.rb +0 -106
- data/examples/v201608/network_service/get_all_networks.rb +0 -70
- data/examples/v201608/network_service/get_current_network.rb +0 -62
- data/examples/v201608/network_service/make_test_network.rb +0 -75
- data/examples/v201608/order_service/approve_orders.rb +0 -110
- data/examples/v201608/order_service/create_orders.rb +0 -88
- data/examples/v201608/order_service/get_all_orders.rb +0 -80
- data/examples/v201608/order_service/get_orders_by_statement.rb +0 -90
- data/examples/v201608/order_service/update_orders.rb +0 -101
- data/examples/v201608/placement_service/create_placements.rb +0 -128
- data/examples/v201608/placement_service/deactivate_placements.rb +0 -106
- data/examples/v201608/placement_service/get_all_placements.rb +0 -81
- data/examples/v201608/placement_service/get_placements_by_statement.rb +0 -87
- data/examples/v201608/placement_service/update_placements.rb +0 -102
- data/examples/v201608/publisher_query_language_service/fetch_match_tables.rb +0 -107
- data/examples/v201608/publisher_query_language_service/get_all_line_items.rb +0 -95
- data/examples/v201608/publisher_query_language_service/get_geo_targets.rb +0 -98
- data/examples/v201608/publisher_query_language_service/get_line_items_named_like.rb +0 -96
- data/examples/v201608/report_service/display_report.rb +0 -77
- data/examples/v201608/report_service/download_report.rb +0 -77
- data/examples/v201608/report_service/run_delivery_report.rb +0 -111
- data/examples/v201608/report_service/run_inventory_report.rb +0 -109
- data/examples/v201608/report_service/run_reach_report.rb +0 -85
- data/examples/v201608/report_service/run_report_with_custom_fields.rb +0 -89
- data/examples/v201608/report_service/run_sales_report.rb +0 -89
- data/examples/v201608/report_service/run_saved_query.rb +0 -105
- data/examples/v201608/suggested_ad_unit_service/approve_all_suggested_ad_units.rb +0 -108
- data/examples/v201608/suggested_ad_unit_service/get_all_suggested_ad_units.rb +0 -83
- data/examples/v201608/suggested_ad_unit_service/get_suggested_ad_units_by_statement.rb +0 -91
- data/examples/v201608/team_service/create_teams.rb +0 -79
- data/examples/v201608/team_service/get_all_teams.rb +0 -79
- data/examples/v201608/team_service/get_teams_by_statement.rb +0 -78
- data/examples/v201608/team_service/update_teams.rb +0 -88
- data/examples/v201608/user_service/create_users.rb +0 -85
- data/examples/v201608/user_service/deactivate_users.rb +0 -94
- data/examples/v201608/user_service/get_all_roles.rb +0 -69
- data/examples/v201608/user_service/get_all_users.rb +0 -79
- data/examples/v201608/user_service/get_current_user.rb +0 -62
- data/examples/v201608/user_service/get_users_by_statement.rb +0 -80
- data/examples/v201608/user_service/update_users.rb +0 -94
- data/examples/v201608/user_team_association_service/create_user_team_associations.rb +0 -82
- data/examples/v201608/user_team_association_service/delete_user_team_associations.rb +0 -98
- data/examples/v201608/user_team_association_service/get_all_user_team_associations.rb +0 -83
- data/examples/v201608/user_team_association_service/get_user_team_associations_by_statement.rb +0 -93
- data/examples/v201608/user_team_association_service/update_user_team_associations.rb +0 -98
- data/lib/dfp_api/v201508/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201508/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201508/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201508/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201508/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/company_service.rb +0 -54
- data/lib/dfp_api/v201508/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/contact_service.rb +0 -54
- data/lib/dfp_api/v201508/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201508/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/content_service.rb +0 -46
- data/lib/dfp_api/v201508/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_service.rb +0 -54
- data/lib/dfp_api/v201508/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201508/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/forecast_service.rb +0 -62
- data/lib/dfp_api/v201508/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_service.rb +0 -62
- data/lib/dfp_api/v201508/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201508/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/live_stream_event_service.rb +0 -62
- data/lib/dfp_api/v201508/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/network_service.rb +0 -62
- data/lib/dfp_api/v201508/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/product_package_service.rb +0 -62
- data/lib/dfp_api/v201508/product_service.rb +0 -54
- data/lib/dfp_api/v201508/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/product_template_service.rb +0 -62
- data/lib/dfp_api/v201508/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201508/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201508/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201508/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201508/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201508/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201508/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/activity_service.rb +0 -54
- data/lib/dfp_api/v201511/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201511/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201511/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201511/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201511/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201511/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201511/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/inventory_service.rb +0 -70
- data/lib/dfp_api/v201511/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/label_service.rb +0 -62
- data/lib/dfp_api/v201511/line_item_creative_association_service.rb +0 -70
- data/lib/dfp_api/v201511/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/order_service.rb +0 -62
- data/lib/dfp_api/v201511/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/package_service.rb +0 -62
- data/lib/dfp_api/v201511/placement_service.rb +0 -62
- data/lib/dfp_api/v201511/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201511/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201511/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201511/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/proposal_service.rb +0 -62
- data/lib/dfp_api/v201511/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201511/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201511/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/report_service.rb +0 -62
- data/lib/dfp_api/v201511/shared_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201511/shared_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201511/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/team_service.rb +0 -54
- data/lib/dfp_api/v201511/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/user_service.rb +0 -78
- data/lib/dfp_api/v201511/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201511/workflow_request_service.rb +0 -46
- data/test/dfp_api/test_config.yml +0 -9
- data/test/suite_unittests.rb +0 -34
@@ -1,88 +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 image creatives. The statement retrieves up to the
|
20
|
-
# maximum page size limit of 500. To create an image creative, run
|
21
|
-
# create_creatives.rb.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
|
26
|
-
API_VERSION = :v201608
|
27
|
-
|
28
|
-
def get_creatives_by_statement()
|
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 CreativeService.
|
37
|
-
creative_service = dfp.service(:CreativeService, API_VERSION)
|
38
|
-
|
39
|
-
# Create a statement to only select image creatives.
|
40
|
-
statement = DfpApi::FilterStatement.new(
|
41
|
-
'WHERE creativeType = :creative_type ORDER BY id ASC',
|
42
|
-
[
|
43
|
-
{:key => 'creative_type',
|
44
|
-
:value => {:value => 'ImageCreative', :xsi_type => 'TextValue'}}
|
45
|
-
]
|
46
|
-
)
|
47
|
-
|
48
|
-
begin
|
49
|
-
# Get creatives by statement.
|
50
|
-
page = creative_service.get_creatives_by_statement(statement.toStatement())
|
51
|
-
|
52
|
-
if page[:results]
|
53
|
-
# Print details about each creative in results.
|
54
|
-
page[:results].each_with_index do |creative, index|
|
55
|
-
puts "%d) Creative ID: %d, name: %s, type: %s" %
|
56
|
-
[index + statement.offset,
|
57
|
-
creative[:id], creative[:name], creative[:creative_type]]
|
58
|
-
end
|
59
|
-
end
|
60
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
61
|
-
end while statement.offset < page[:total_result_set_size]
|
62
|
-
|
63
|
-
# Print a footer.
|
64
|
-
if page.include?(:total_result_set_size)
|
65
|
-
puts "Total number of creatives: %d" % page[:total_result_set_size]
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
if __FILE__ == $0
|
70
|
-
begin
|
71
|
-
get_creatives_by_statement()
|
72
|
-
|
73
|
-
# HTTP errors.
|
74
|
-
rescue AdsCommon::Errors::HttpError => e
|
75
|
-
puts "HTTP Error: %s" % e
|
76
|
-
|
77
|
-
# API errors.
|
78
|
-
rescue DfpApi::Errors::ApiException => e
|
79
|
-
puts "Message: %s" % e.message
|
80
|
-
puts 'Errors:'
|
81
|
-
e.errors.each_with_index do |error, index|
|
82
|
-
puts "\tError [%d]:" % (index + 1)
|
83
|
-
error.each do |field, value|
|
84
|
-
puts "\t\t%s: %s" % [field, value]
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
@@ -1,97 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This example updates the destination URL of a single creative searching by ID.
|
20
|
-
# To determine which image creatives exist, run get_all_creatives.rb.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
|
25
|
-
API_VERSION = :v201608
|
26
|
-
|
27
|
-
def update_creatives()
|
28
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
# Get the CreativeService.
|
36
|
-
creative_service = dfp.service(:CreativeService, API_VERSION)
|
37
|
-
|
38
|
-
# Specify creative ID to update.
|
39
|
-
creative_id = 'INSERT_CREATIVE_ID_HERE'.to_i
|
40
|
-
|
41
|
-
# Create a statement to get first 500 image creatives.
|
42
|
-
statement = DfpApi::FilterStatement.new(
|
43
|
-
'WHERE id = :id ORDER BY id ASC',
|
44
|
-
[
|
45
|
-
{:key => 'id',
|
46
|
-
:value => {:value => creative_id, :xsi_type => 'NumberValue'}}
|
47
|
-
],
|
48
|
-
1
|
49
|
-
)
|
50
|
-
|
51
|
-
# Get creatives by statement.
|
52
|
-
page = creative_service.get_creatives_by_statement(statement.toStatement())
|
53
|
-
|
54
|
-
if page[:results]
|
55
|
-
creatives = page[:results]
|
56
|
-
|
57
|
-
# Update each local creative object by changing its destination URL.
|
58
|
-
creatives.each do |creative|
|
59
|
-
creative[:destination_url] = 'http://news.google.com'
|
60
|
-
end
|
61
|
-
|
62
|
-
# Update the creatives on the server.
|
63
|
-
return_creatives = creative_service.update_creatives(creatives)
|
64
|
-
|
65
|
-
if return_creatives
|
66
|
-
return_creatives.each do |creative|
|
67
|
-
puts "Creative with ID: %d, name: %s and url: [%s] was updated." %
|
68
|
-
[creative[:id], creative[:name], creative[:destination_url]]
|
69
|
-
end
|
70
|
-
else
|
71
|
-
raise 'No creatives were updated.'
|
72
|
-
end
|
73
|
-
else
|
74
|
-
puts 'No creatives found to update.'
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
if __FILE__ == $0
|
79
|
-
begin
|
80
|
-
update_creatives()
|
81
|
-
|
82
|
-
# HTTP errors.
|
83
|
-
rescue AdsCommon::Errors::HttpError => e
|
84
|
-
puts "HTTP Error: %s" % e
|
85
|
-
|
86
|
-
# API errors.
|
87
|
-
rescue DfpApi::Errors::ApiException => e
|
88
|
-
puts "Message: %s" % e.message
|
89
|
-
puts 'Errors:'
|
90
|
-
e.errors.each_with_index do |error, index|
|
91
|
-
puts "\tError [%d]:" % (index + 1)
|
92
|
-
error.each do |field, value|
|
93
|
-
puts "\t\t%s: %s" % [field, value]
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
@@ -1,73 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This code example creates a line item creative association for a creative
|
20
|
-
# set. To create creative sets, run create_creative_set.rb. To create creatives,
|
21
|
-
# run create_creatives.rb. To determine which LICAs exist, run get_all_licas.rb.
|
22
|
-
|
23
|
-
require 'dfp_api'
|
24
|
-
|
25
|
-
API_VERSION = :v201608
|
26
|
-
|
27
|
-
def associate_creative_set_to_line_item()
|
28
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
# Set the line item ID and creative set ID to associate.
|
36
|
-
line_item_id = 'INSERT_LINE_ITEM_ID_HERE'.to_i
|
37
|
-
creative_set_id = 'INSERT_CREATIVE_SET_ID_HERE'.to_i
|
38
|
-
|
39
|
-
# Get the LineItemCreativeAssociationService.
|
40
|
-
lica_service = dfp.service(:LineItemCreativeAssociationService, API_VERSION)
|
41
|
-
|
42
|
-
lica = {
|
43
|
-
:creative_set_id => creative_set_id,
|
44
|
-
:line_item_id => line_item_id
|
45
|
-
}
|
46
|
-
|
47
|
-
# Create the LICAs on the server.
|
48
|
-
return_lica = lica_service.create_line_item_creative_associations([lica])
|
49
|
-
|
50
|
-
puts 'A LICA with line item ID %d and creative set ID %d was created.' %
|
51
|
-
[return_lica[:line_item_id], return_lica[:creative_set_id]]
|
52
|
-
end
|
53
|
-
|
54
|
-
if __FILE__ == $0
|
55
|
-
begin
|
56
|
-
associate_creative_set_to_line_item()
|
57
|
-
|
58
|
-
# HTTP errors.
|
59
|
-
rescue AdsCommon::Errors::HttpError => e
|
60
|
-
puts 'HTTP Error: %s' % e
|
61
|
-
|
62
|
-
# API errors.
|
63
|
-
rescue DfpApi::Errors::ApiException => e
|
64
|
-
puts 'Message: %s' % e.message
|
65
|
-
puts 'Errors:'
|
66
|
-
e.errors.each_with_index do |error, index|
|
67
|
-
puts "\tError [%d]:" % (index + 1)
|
68
|
-
error.each do |field, value|
|
69
|
-
puts "\t\t%s: %s" % [field, value]
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This code example creates a new creative set.
|
20
|
-
|
21
|
-
require 'dfp_api'
|
22
|
-
|
23
|
-
API_VERSION = :v201608
|
24
|
-
|
25
|
-
def create_creative_set()
|
26
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
27
|
-
dfp = DfpApi::Api.new
|
28
|
-
|
29
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
30
|
-
# the configuration file or provide your own logger:
|
31
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
32
|
-
|
33
|
-
master_creative_id = 'INSERT_MASTER_CREATIVE_ID_HERE'.to_i
|
34
|
-
companion_creative_id = 'INSERT_COMPANION_CREATIVE_ID_HERE'.to_i
|
35
|
-
|
36
|
-
# Get the CreativeSetService.
|
37
|
-
creative_set_service = dfp.service(:CreativeSetService, API_VERSION)
|
38
|
-
|
39
|
-
# Create an array to store local creative set object.
|
40
|
-
creative_set = {
|
41
|
-
:name => 'Creative set #%d' % (Time.new.to_f * 1000),
|
42
|
-
:master_creative_id => master_creative_id,
|
43
|
-
:companion_creative_ids => [companion_creative_id]
|
44
|
-
}
|
45
|
-
|
46
|
-
# Create the creative set on the server.
|
47
|
-
return_set = creative_set_service.create_creative_set(creative_set)
|
48
|
-
|
49
|
-
if return_set
|
50
|
-
puts ('Creative set with ID: %d, master creative ID: %d and companion ' +
|
51
|
-
'creative IDs: [%s] was created') %
|
52
|
-
[return_set[:id], return_set[:master_creative_id],
|
53
|
-
return_set[:companion_creative_ids].join(', ')]
|
54
|
-
else
|
55
|
-
raise 'No creative set was created.'
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
59
|
-
|
60
|
-
if __FILE__ == $0
|
61
|
-
begin
|
62
|
-
create_creative_set()
|
63
|
-
|
64
|
-
# HTTP errors.
|
65
|
-
rescue AdsCommon::Errors::HttpError => e
|
66
|
-
puts "HTTP Error: %s" % e
|
67
|
-
|
68
|
-
# API errors.
|
69
|
-
rescue DfpApi::Errors::ApiException => e
|
70
|
-
puts "Message: %s" % e.message
|
71
|
-
puts 'Errors:'
|
72
|
-
e.errors.each_with_index do |error, index|
|
73
|
-
puts "\tError [%d]:" % (index + 1)
|
74
|
-
error.each do |field, value|
|
75
|
-
puts "\t\t%s: %s" % [field, value]
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This code example gets all creative sets. To create creative sets run
|
20
|
-
# create_creative_set.rb.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
|
25
|
-
API_VERSION = :v201608
|
26
|
-
|
27
|
-
def get_all_creative_sets()
|
28
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
# Get the CreativeSetService.
|
36
|
-
creative_set_service = dfp.service(:CreativeSetService, API_VERSION)
|
37
|
-
|
38
|
-
# Create statement for one page with current offset.
|
39
|
-
statement = DfpApi::FilterStatement.new('ORDER BY id ASC')
|
40
|
-
|
41
|
-
begin
|
42
|
-
# Get creative sets by statement.
|
43
|
-
page = creative_set_service.get_creative_sets_by_statement(
|
44
|
-
statement.toStatement())
|
45
|
-
|
46
|
-
if page[:results]
|
47
|
-
# Print details about each creative set in results page.
|
48
|
-
page[:results].each_with_index do |set, index|
|
49
|
-
puts ('%d) Creative set ID: %d, master creative ID: %d and companion ' +
|
50
|
-
'creative IDs: [%s]') % [index + statement.offset, set[:id],
|
51
|
-
set[:master_creative_id], set[:companion_creative_ids].join(', ')]
|
52
|
-
end
|
53
|
-
end
|
54
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
55
|
-
end while statement.offset < page[:total_result_set_size]
|
56
|
-
|
57
|
-
# Print a footer
|
58
|
-
if page.include?(:total_result_set_size)
|
59
|
-
puts "Total number of creative sets: %d" % page[:total_result_set_size]
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
if __FILE__ == $0
|
64
|
-
begin
|
65
|
-
get_all_creative_sets()
|
66
|
-
|
67
|
-
# HTTP errors.
|
68
|
-
rescue AdsCommon::Errors::HttpError => e
|
69
|
-
puts "HTTP Error: %s" % e
|
70
|
-
|
71
|
-
# API errors.
|
72
|
-
rescue DfpApi::Errors::ApiException => e
|
73
|
-
puts "Message: %s" % e.message
|
74
|
-
puts 'Errors:'
|
75
|
-
e.errors.each_with_index do |error, index|
|
76
|
-
puts "\tError [%d]:" % (index + 1)
|
77
|
-
error.each do |field, value|
|
78
|
-
puts "\t\t%s: %s" % [field, value]
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,92 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Encoding: utf-8
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
5
|
-
#
|
6
|
-
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
15
|
-
# implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
# This code example gets all creative sets for a master creative. To create
|
20
|
-
# creative sets, run create_creative_sets.rb.
|
21
|
-
|
22
|
-
require 'dfp_api'
|
23
|
-
|
24
|
-
|
25
|
-
API_VERSION = :v201608
|
26
|
-
|
27
|
-
def get_creative_sets_by_statement()
|
28
|
-
# Get DfpApi instance and load configuration from ~/dfp_api.yml.
|
29
|
-
dfp = DfpApi::Api.new
|
30
|
-
|
31
|
-
# To enable logging of SOAP requests, set the log_level value to 'DEBUG' in
|
32
|
-
# the configuration file or provide your own logger:
|
33
|
-
# dfp.logger = Logger.new('dfp_xml.log')
|
34
|
-
|
35
|
-
master_creative_id = 'INSERT_MASTER_CREATIVE_ID_HERE'.to_i
|
36
|
-
|
37
|
-
# Get the CreativeSetService.
|
38
|
-
creative_set_service = dfp.service(:CreativeSetService, API_VERSION)
|
39
|
-
|
40
|
-
# Create a statement to get all creative sets that have the given master
|
41
|
-
# creative.
|
42
|
-
statement = DfpApi::FilterStatement.new(
|
43
|
-
'WHERE masterCreativeId = :master_creative_id ORDER BY id ASC',
|
44
|
-
[
|
45
|
-
{:key => 'master_creative_id',
|
46
|
-
:value => {:value => master_creative_id, :xsi_type => 'NumberValue'}}
|
47
|
-
]
|
48
|
-
)
|
49
|
-
|
50
|
-
begin
|
51
|
-
# Get creative sets by statement.
|
52
|
-
page = creative_set_service.get_creative_sets_by_statement(
|
53
|
-
statement.toStatement())
|
54
|
-
|
55
|
-
if page and page[:results]
|
56
|
-
page[:results].each_with_index do |creative_set, index|
|
57
|
-
puts ('%d) Creative set ID: %d, master creative ID: %d and companion ' +
|
58
|
-
'creative IDs: [%s]') %
|
59
|
-
[index + statement.offset, creative_set[:id],
|
60
|
-
creative_set[:master_creative_id],
|
61
|
-
creative_set[:companion_creative_ids].join(', ')]
|
62
|
-
end
|
63
|
-
end
|
64
|
-
statement.offset += DfpApi::SUGGESTED_PAGE_LIMIT
|
65
|
-
end while statement.offset < page[:total_result_set_size]
|
66
|
-
|
67
|
-
# Print a footer.
|
68
|
-
if page.include?(:total_result_set_size)
|
69
|
-
puts 'Number of results found: %d' % page[:total_result_set_size]
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
if __FILE__ == $0
|
74
|
-
begin
|
75
|
-
get_creative_sets_by_statement()
|
76
|
-
|
77
|
-
# HTTP errors.
|
78
|
-
rescue AdsCommon::Errors::HttpError => e
|
79
|
-
puts "HTTP Error: %s" % e
|
80
|
-
|
81
|
-
# API errors.
|
82
|
-
rescue DfpApi::Errors::ApiException => e
|
83
|
-
puts "Message: %s" % e.message
|
84
|
-
puts 'Errors:'
|
85
|
-
e.errors.each_with_index do |error, index|
|
86
|
-
puts "\tError [%d]:" % (index + 1)
|
87
|
-
error.each do |field, value|
|
88
|
-
puts "\t\t%s: %s" % [field, value]
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|