google-dfp-api 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/README.md +32 -29
- data/ad_manager_api.yml +51 -0
- data/lib/ad_manager_api.rb +107 -0
- data/lib/ad_manager_api/ad_manager_api_datetime.rb +188 -0
- data/lib/ad_manager_api/ad_manager_api_statement.rb +62 -0
- data/lib/ad_manager_api/api_config.rb +182 -0
- data/lib/ad_manager_api/credential_handler.rb +74 -0
- data/lib/ad_manager_api/errors.rb +62 -0
- data/lib/ad_manager_api/pql_statement_utils.rb +194 -0
- data/lib/ad_manager_api/utils.rb +56 -0
- data/lib/ad_manager_api/utils_reporter.rb +52 -0
- data/lib/ad_manager_api/v201711/activity_group_service.rb +54 -0
- data/lib/ad_manager_api/v201711/activity_group_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/activity_service.rb +54 -0
- data/lib/ad_manager_api/v201711/activity_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/ad_exclusion_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201711/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/ad_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201711/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/audience_segment_service.rb +62 -0
- data/lib/ad_manager_api/v201711/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/base_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201711/base_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/cdn_configuration_service.rb +54 -0
- data/lib/ad_manager_api/v201711/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/company_service.rb +54 -0
- data/lib/ad_manager_api/v201711/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/contact_service.rb +54 -0
- data/lib/ad_manager_api/v201711/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/content_bundle_service.rb +62 -0
- data/lib/ad_manager_api/v201711/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/content_metadata_key_hierarchy_service.rb +62 -0
- data/lib/ad_manager_api/v201711/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/content_service.rb +46 -0
- data/lib/ad_manager_api/v201711/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/creative_service.rb +54 -0
- data/lib/ad_manager_api/v201711/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/creative_set_service.rb +54 -0
- data/lib/ad_manager_api/v201711/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/creative_template_service.rb +38 -0
- data/lib/ad_manager_api/v201711/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/creative_wrapper_service.rb +62 -0
- data/lib/ad_manager_api/v201711/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/custom_field_service.rb +86 -0
- data/lib/ad_manager_api/v201711/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/custom_targeting_service.rb +94 -0
- data/lib/ad_manager_api/v201711/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/exchange_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201711/exchange_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/forecast_service.rb +62 -0
- data/lib/ad_manager_api/v201711/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/inventory_service.rb +70 -0
- data/lib/ad_manager_api/v201711/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/label_service.rb +62 -0
- data/lib/ad_manager_api/v201711/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/line_item_creative_association_service.rb +78 -0
- data/lib/ad_manager_api/v201711/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201711/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/line_item_template_service.rb +38 -0
- data/lib/ad_manager_api/v201711/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/live_stream_event_service.rb +70 -0
- data/lib/ad_manager_api/v201711/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/mobile_application_service.rb +62 -0
- data/lib/ad_manager_api/v201711/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/native_style_service.rb +62 -0
- data/lib/ad_manager_api/v201711/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/network_service.rb +62 -0
- data/lib/ad_manager_api/v201711/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/order_service.rb +62 -0
- data/lib/ad_manager_api/v201711/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/package_service.rb +62 -0
- data/lib/ad_manager_api/v201711/package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/placement_service.rb +62 -0
- data/lib/ad_manager_api/v201711/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/premium_rate_service.rb +54 -0
- data/lib/ad_manager_api/v201711/premium_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/product_package_item_service.rb +62 -0
- data/lib/ad_manager_api/v201711/product_package_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/product_package_service.rb +62 -0
- data/lib/ad_manager_api/v201711/product_package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/product_service.rb +62 -0
- data/lib/ad_manager_api/v201711/product_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/product_template_service.rb +62 -0
- data/lib/ad_manager_api/v201711/product_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/proposal_line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201711/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/proposal_service.rb +70 -0
- data/lib/ad_manager_api/v201711/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/publisher_query_language_service.rb +38 -0
- data/lib/ad_manager_api/v201711/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/rate_card_service.rb +62 -0
- data/lib/ad_manager_api/v201711/rate_card_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/reconciliation_line_item_report_service.rb +46 -0
- data/lib/ad_manager_api/v201711/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/reconciliation_order_report_service.rb +54 -0
- data/lib/ad_manager_api/v201711/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/reconciliation_report_row_service.rb +46 -0
- data/lib/ad_manager_api/v201711/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/reconciliation_report_service.rb +46 -0
- data/lib/ad_manager_api/v201711/reconciliation_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/report_service.rb +70 -0
- data/lib/ad_manager_api/v201711/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/suggested_ad_unit_service.rb +46 -0
- data/lib/ad_manager_api/v201711/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/team_service.rb +62 -0
- data/lib/ad_manager_api/v201711/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/user_service.rb +78 -0
- data/lib/ad_manager_api/v201711/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/user_team_association_service.rb +62 -0
- data/lib/ad_manager_api/v201711/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201711/workflow_request_service.rb +46 -0
- data/lib/ad_manager_api/v201711/workflow_request_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/activity_group_service.rb +54 -0
- data/lib/ad_manager_api/v201802/activity_group_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/activity_service.rb +54 -0
- data/lib/ad_manager_api/v201802/activity_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/ad_exclusion_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201802/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/ad_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201802/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/audience_segment_service.rb +62 -0
- data/lib/ad_manager_api/v201802/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/base_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201802/base_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/cdn_configuration_service.rb +54 -0
- data/lib/ad_manager_api/v201802/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/company_service.rb +54 -0
- data/lib/ad_manager_api/v201802/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/contact_service.rb +54 -0
- data/lib/ad_manager_api/v201802/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/content_bundle_service.rb +62 -0
- data/lib/ad_manager_api/v201802/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/content_metadata_key_hierarchy_service.rb +62 -0
- data/lib/ad_manager_api/v201802/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/content_service.rb +46 -0
- data/lib/ad_manager_api/v201802/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/creative_service.rb +54 -0
- data/lib/ad_manager_api/v201802/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/creative_set_service.rb +54 -0
- data/lib/ad_manager_api/v201802/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/creative_template_service.rb +38 -0
- data/lib/ad_manager_api/v201802/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/creative_wrapper_service.rb +62 -0
- data/lib/ad_manager_api/v201802/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/custom_field_service.rb +86 -0
- data/lib/ad_manager_api/v201802/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/custom_targeting_service.rb +94 -0
- data/lib/ad_manager_api/v201802/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/exchange_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201802/exchange_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/forecast_service.rb +62 -0
- data/lib/ad_manager_api/v201802/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/inventory_service.rb +70 -0
- data/lib/ad_manager_api/v201802/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/label_service.rb +62 -0
- data/lib/ad_manager_api/v201802/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/line_item_creative_association_service.rb +78 -0
- data/lib/ad_manager_api/v201802/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201802/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/line_item_template_service.rb +38 -0
- data/lib/ad_manager_api/v201802/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/live_stream_event_service.rb +70 -0
- data/lib/ad_manager_api/v201802/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/mobile_application_service.rb +62 -0
- data/lib/ad_manager_api/v201802/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/native_style_service.rb +62 -0
- data/lib/ad_manager_api/v201802/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/network_service.rb +62 -0
- data/lib/ad_manager_api/v201802/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/order_service.rb +62 -0
- data/lib/ad_manager_api/v201802/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/package_service.rb +62 -0
- data/lib/ad_manager_api/v201802/package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/placement_service.rb +62 -0
- data/lib/ad_manager_api/v201802/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/premium_rate_service.rb +54 -0
- data/lib/ad_manager_api/v201802/premium_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/product_package_item_service.rb +62 -0
- data/lib/ad_manager_api/v201802/product_package_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/product_package_service.rb +62 -0
- data/lib/ad_manager_api/v201802/product_package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/product_service.rb +62 -0
- data/lib/ad_manager_api/v201802/product_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/product_template_service.rb +62 -0
- data/lib/ad_manager_api/v201802/product_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/proposal_line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201802/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/proposal_service.rb +70 -0
- data/lib/ad_manager_api/v201802/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/publisher_query_language_service.rb +38 -0
- data/lib/ad_manager_api/v201802/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/rate_card_service.rb +62 -0
- data/lib/ad_manager_api/v201802/rate_card_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/reconciliation_line_item_report_service.rb +46 -0
- data/lib/ad_manager_api/v201802/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/reconciliation_order_report_service.rb +54 -0
- data/lib/ad_manager_api/v201802/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/reconciliation_report_row_service.rb +46 -0
- data/lib/ad_manager_api/v201802/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/reconciliation_report_service.rb +46 -0
- data/lib/ad_manager_api/v201802/reconciliation_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/report_service.rb +70 -0
- data/lib/ad_manager_api/v201802/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/suggested_ad_unit_service.rb +46 -0
- data/lib/ad_manager_api/v201802/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/team_service.rb +62 -0
- data/lib/ad_manager_api/v201802/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/user_service.rb +78 -0
- data/lib/ad_manager_api/v201802/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/user_team_association_service.rb +62 -0
- data/lib/ad_manager_api/v201802/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201802/workflow_request_service.rb +46 -0
- data/lib/ad_manager_api/v201802/workflow_request_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/activity_group_service.rb +54 -0
- data/lib/ad_manager_api/v201805/activity_group_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/activity_service.rb +54 -0
- data/lib/ad_manager_api/v201805/activity_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/ad_exclusion_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201805/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/ad_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201805/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/audience_segment_service.rb +62 -0
- data/lib/ad_manager_api/v201805/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/base_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201805/base_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/cdn_configuration_service.rb +62 -0
- data/lib/ad_manager_api/v201805/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/company_service.rb +54 -0
- data/lib/ad_manager_api/v201805/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/contact_service.rb +54 -0
- data/lib/ad_manager_api/v201805/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/content_bundle_service.rb +62 -0
- data/lib/ad_manager_api/v201805/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/content_metadata_key_hierarchy_service.rb +62 -0
- data/lib/ad_manager_api/v201805/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/content_service.rb +46 -0
- data/lib/ad_manager_api/v201805/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/creative_service.rb +54 -0
- data/lib/ad_manager_api/v201805/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/creative_set_service.rb +54 -0
- data/lib/ad_manager_api/v201805/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/creative_template_service.rb +38 -0
- data/lib/ad_manager_api/v201805/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/creative_wrapper_service.rb +62 -0
- data/lib/ad_manager_api/v201805/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/custom_field_service.rb +86 -0
- data/lib/ad_manager_api/v201805/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/custom_targeting_service.rb +94 -0
- data/lib/ad_manager_api/v201805/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/dai_authentication_key_service.rb +62 -0
- data/lib/ad_manager_api/v201805/dai_authentication_key_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/exchange_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201805/exchange_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/forecast_service.rb +62 -0
- data/lib/ad_manager_api/v201805/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/inventory_service.rb +70 -0
- data/lib/ad_manager_api/v201805/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/label_service.rb +62 -0
- data/lib/ad_manager_api/v201805/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/line_item_creative_association_service.rb +78 -0
- data/lib/ad_manager_api/v201805/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201805/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/line_item_template_service.rb +38 -0
- data/lib/ad_manager_api/v201805/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/live_stream_event_service.rb +70 -0
- data/lib/ad_manager_api/v201805/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/mobile_application_service.rb +62 -0
- data/lib/ad_manager_api/v201805/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/native_style_service.rb +62 -0
- data/lib/ad_manager_api/v201805/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/network_service.rb +62 -0
- data/lib/ad_manager_api/v201805/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/order_service.rb +62 -0
- data/lib/ad_manager_api/v201805/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/package_service.rb +62 -0
- data/lib/ad_manager_api/v201805/package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/placement_service.rb +62 -0
- data/lib/ad_manager_api/v201805/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/premium_rate_service.rb +54 -0
- data/lib/ad_manager_api/v201805/premium_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/product_package_item_service.rb +62 -0
- data/lib/ad_manager_api/v201805/product_package_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/product_package_service.rb +62 -0
- data/lib/ad_manager_api/v201805/product_package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/product_service.rb +54 -0
- data/lib/ad_manager_api/v201805/product_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/product_template_service.rb +62 -0
- data/lib/ad_manager_api/v201805/product_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/proposal_line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201805/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/proposal_service.rb +70 -0
- data/lib/ad_manager_api/v201805/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/publisher_query_language_service.rb +38 -0
- data/lib/ad_manager_api/v201805/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/rate_card_service.rb +62 -0
- data/lib/ad_manager_api/v201805/rate_card_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/reconciliation_line_item_report_service.rb +46 -0
- data/lib/ad_manager_api/v201805/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/reconciliation_order_report_service.rb +54 -0
- data/lib/ad_manager_api/v201805/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/reconciliation_report_row_service.rb +46 -0
- data/lib/ad_manager_api/v201805/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/reconciliation_report_service.rb +46 -0
- data/lib/ad_manager_api/v201805/reconciliation_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/report_service.rb +70 -0
- data/lib/ad_manager_api/v201805/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/suggested_ad_unit_service.rb +46 -0
- data/lib/ad_manager_api/v201805/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/team_service.rb +62 -0
- data/lib/ad_manager_api/v201805/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/user_service.rb +78 -0
- data/lib/ad_manager_api/v201805/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/user_team_association_service.rb +62 -0
- data/lib/ad_manager_api/v201805/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201805/workflow_request_service.rb +46 -0
- data/lib/ad_manager_api/v201805/workflow_request_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/activity_group_service.rb +54 -0
- data/lib/ad_manager_api/v201808/activity_group_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/activity_service.rb +54 -0
- data/lib/ad_manager_api/v201808/activity_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/ad_exclusion_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201808/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/ad_rule_service.rb +62 -0
- data/lib/ad_manager_api/v201808/ad_rule_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/audience_segment_service.rb +62 -0
- data/lib/ad_manager_api/v201808/audience_segment_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/base_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201808/base_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/cdn_configuration_service.rb +62 -0
- data/lib/ad_manager_api/v201808/cdn_configuration_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/company_service.rb +54 -0
- data/lib/ad_manager_api/v201808/company_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/contact_service.rb +54 -0
- data/lib/ad_manager_api/v201808/contact_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/content_bundle_service.rb +62 -0
- data/lib/ad_manager_api/v201808/content_bundle_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/content_metadata_key_hierarchy_service.rb +62 -0
- data/lib/ad_manager_api/v201808/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/content_service.rb +46 -0
- data/lib/ad_manager_api/v201808/content_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/creative_service.rb +54 -0
- data/lib/ad_manager_api/v201808/creative_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/creative_set_service.rb +54 -0
- data/lib/ad_manager_api/v201808/creative_set_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/creative_template_service.rb +38 -0
- data/lib/ad_manager_api/v201808/creative_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/creative_wrapper_service.rb +62 -0
- data/lib/ad_manager_api/v201808/creative_wrapper_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/custom_field_service.rb +86 -0
- data/lib/ad_manager_api/v201808/custom_field_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/custom_targeting_service.rb +94 -0
- data/lib/ad_manager_api/v201808/custom_targeting_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/dai_authentication_key_service.rb +62 -0
- data/lib/ad_manager_api/v201808/dai_authentication_key_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/exchange_rate_service.rb +62 -0
- data/lib/ad_manager_api/v201808/exchange_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/forecast_service.rb +62 -0
- data/lib/ad_manager_api/v201808/forecast_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/inventory_service.rb +70 -0
- data/lib/ad_manager_api/v201808/inventory_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/label_service.rb +62 -0
- data/lib/ad_manager_api/v201808/label_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/line_item_creative_association_service.rb +78 -0
- data/lib/ad_manager_api/v201808/line_item_creative_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201808/line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/line_item_template_service.rb +38 -0
- data/lib/ad_manager_api/v201808/line_item_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/live_stream_event_service.rb +70 -0
- data/lib/ad_manager_api/v201808/live_stream_event_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/mobile_application_service.rb +62 -0
- data/lib/ad_manager_api/v201808/mobile_application_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/native_style_service.rb +62 -0
- data/lib/ad_manager_api/v201808/native_style_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/network_service.rb +62 -0
- data/lib/ad_manager_api/v201808/network_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/order_service.rb +62 -0
- data/lib/ad_manager_api/v201808/order_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/package_service.rb +62 -0
- data/lib/ad_manager_api/v201808/package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/placement_service.rb +62 -0
- data/lib/ad_manager_api/v201808/placement_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/premium_rate_service.rb +54 -0
- data/lib/ad_manager_api/v201808/premium_rate_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/product_package_item_service.rb +62 -0
- data/lib/ad_manager_api/v201808/product_package_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/product_package_service.rb +62 -0
- data/lib/ad_manager_api/v201808/product_package_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/product_service.rb +54 -0
- data/lib/ad_manager_api/v201808/product_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/product_template_service.rb +62 -0
- data/lib/ad_manager_api/v201808/product_template_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/proposal_line_item_service.rb +62 -0
- data/lib/ad_manager_api/v201808/proposal_line_item_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/proposal_service.rb +70 -0
- data/lib/ad_manager_api/v201808/proposal_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/publisher_query_language_service.rb +38 -0
- data/lib/ad_manager_api/v201808/publisher_query_language_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/rate_card_service.rb +62 -0
- data/lib/ad_manager_api/v201808/rate_card_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/reconciliation_line_item_report_service.rb +46 -0
- data/lib/ad_manager_api/v201808/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/reconciliation_order_report_service.rb +54 -0
- data/lib/ad_manager_api/v201808/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/reconciliation_report_row_service.rb +46 -0
- data/lib/ad_manager_api/v201808/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/reconciliation_report_service.rb +46 -0
- data/lib/ad_manager_api/v201808/reconciliation_report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/report_service.rb +70 -0
- data/lib/ad_manager_api/v201808/report_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/suggested_ad_unit_service.rb +46 -0
- data/lib/ad_manager_api/v201808/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/team_service.rb +62 -0
- data/lib/ad_manager_api/v201808/team_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/user_service.rb +78 -0
- data/lib/ad_manager_api/v201808/user_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/user_team_association_service.rb +62 -0
- data/lib/ad_manager_api/v201808/user_team_association_service_registry.rb +45 -0
- data/lib/ad_manager_api/v201808/workflow_request_service.rb +46 -0
- data/lib/ad_manager_api/v201808/workflow_request_service_registry.rb +45 -0
- data/lib/ad_manager_api/version.rb +24 -0
- metadata +427 -423
- data/dfp_api.yml +0 -51
- data/lib/dfp_api.rb +0 -107
- data/lib/dfp_api/api_config.rb +0 -182
- data/lib/dfp_api/credential_handler.rb +0 -73
- data/lib/dfp_api/dfp_api_datetime.rb +0 -182
- data/lib/dfp_api/dfp_api_statement.rb +0 -62
- data/lib/dfp_api/errors.rb +0 -62
- data/lib/dfp_api/pql_statement_utils.rb +0 -192
- data/lib/dfp_api/utils.rb +0 -56
- data/lib/dfp_api/utils_reporter.rb +0 -52
- data/lib/dfp_api/v201708/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201708/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/activity_service.rb +0 -54
- data/lib/dfp_api/v201708/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201708/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201708/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201708/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201708/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/company_service.rb +0 -54
- data/lib/dfp_api/v201708/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/contact_service.rb +0 -54
- data/lib/dfp_api/v201708/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201708/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201708/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/content_service.rb +0 -46
- data/lib/dfp_api/v201708/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/creative_service.rb +0 -54
- data/lib/dfp_api/v201708/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201708/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201708/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201708/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201708/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201708/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201708/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/forecast_service.rb +0 -62
- data/lib/dfp_api/v201708/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/inventory_service.rb +0 -70
- data/lib/dfp_api/v201708/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/label_service.rb +0 -62
- data/lib/dfp_api/v201708/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/line_item_creative_association_service.rb +0 -70
- data/lib/dfp_api/v201708/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/line_item_service.rb +0 -62
- data/lib/dfp_api/v201708/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201708/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/live_stream_event_service.rb +0 -70
- data/lib/dfp_api/v201708/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/mobile_application_service.rb +0 -62
- data/lib/dfp_api/v201708/mobile_application_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/native_style_service.rb +0 -62
- data/lib/dfp_api/v201708/native_style_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/network_service.rb +0 -62
- data/lib/dfp_api/v201708/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/order_service.rb +0 -62
- data/lib/dfp_api/v201708/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/package_service.rb +0 -62
- data/lib/dfp_api/v201708/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/placement_service.rb +0 -62
- data/lib/dfp_api/v201708/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201708/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201708/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/product_package_service.rb +0 -62
- data/lib/dfp_api/v201708/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/product_service.rb +0 -62
- data/lib/dfp_api/v201708/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/product_template_service.rb +0 -62
- data/lib/dfp_api/v201708/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201708/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/proposal_service.rb +0 -70
- data/lib/dfp_api/v201708/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201708/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201708/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201708/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201708/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201708/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201708/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/report_service.rb +0 -70
- data/lib/dfp_api/v201708/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201708/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/team_service.rb +0 -62
- data/lib/dfp_api/v201708/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/user_service.rb +0 -78
- data/lib/dfp_api/v201708/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201708/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201708/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201708/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201711/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/activity_service.rb +0 -54
- data/lib/dfp_api/v201711/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201711/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201711/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201711/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201711/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/cdn_configuration_service.rb +0 -54
- data/lib/dfp_api/v201711/cdn_configuration_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/company_service.rb +0 -54
- data/lib/dfp_api/v201711/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/contact_service.rb +0 -54
- data/lib/dfp_api/v201711/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201711/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201711/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/content_service.rb +0 -46
- data/lib/dfp_api/v201711/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/creative_service.rb +0 -54
- data/lib/dfp_api/v201711/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201711/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201711/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201711/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201711/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201711/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201711/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/forecast_service.rb +0 -62
- data/lib/dfp_api/v201711/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/inventory_service.rb +0 -70
- data/lib/dfp_api/v201711/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/label_service.rb +0 -62
- data/lib/dfp_api/v201711/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/line_item_creative_association_service.rb +0 -78
- data/lib/dfp_api/v201711/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/line_item_service.rb +0 -62
- data/lib/dfp_api/v201711/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201711/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/live_stream_event_service.rb +0 -70
- data/lib/dfp_api/v201711/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/mobile_application_service.rb +0 -62
- data/lib/dfp_api/v201711/mobile_application_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/native_style_service.rb +0 -62
- data/lib/dfp_api/v201711/native_style_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/network_service.rb +0 -62
- data/lib/dfp_api/v201711/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/order_service.rb +0 -62
- data/lib/dfp_api/v201711/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/package_service.rb +0 -62
- data/lib/dfp_api/v201711/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/placement_service.rb +0 -62
- data/lib/dfp_api/v201711/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201711/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201711/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/product_package_service.rb +0 -62
- data/lib/dfp_api/v201711/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/product_service.rb +0 -62
- data/lib/dfp_api/v201711/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/product_template_service.rb +0 -62
- data/lib/dfp_api/v201711/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201711/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/proposal_service.rb +0 -70
- data/lib/dfp_api/v201711/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201711/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201711/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201711/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201711/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201711/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201711/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/report_service.rb +0 -70
- data/lib/dfp_api/v201711/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201711/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/team_service.rb +0 -62
- data/lib/dfp_api/v201711/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/user_service.rb +0 -78
- data/lib/dfp_api/v201711/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201711/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201711/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201711/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201802/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/activity_service.rb +0 -54
- data/lib/dfp_api/v201802/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201802/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201802/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201802/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201802/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/cdn_configuration_service.rb +0 -54
- data/lib/dfp_api/v201802/cdn_configuration_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/company_service.rb +0 -54
- data/lib/dfp_api/v201802/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/contact_service.rb +0 -54
- data/lib/dfp_api/v201802/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201802/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201802/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/content_service.rb +0 -46
- data/lib/dfp_api/v201802/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/creative_service.rb +0 -54
- data/lib/dfp_api/v201802/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201802/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201802/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201802/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201802/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201802/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201802/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/forecast_service.rb +0 -62
- data/lib/dfp_api/v201802/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/inventory_service.rb +0 -70
- data/lib/dfp_api/v201802/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/label_service.rb +0 -62
- data/lib/dfp_api/v201802/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/line_item_creative_association_service.rb +0 -78
- data/lib/dfp_api/v201802/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/line_item_service.rb +0 -62
- data/lib/dfp_api/v201802/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201802/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/live_stream_event_service.rb +0 -70
- data/lib/dfp_api/v201802/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/mobile_application_service.rb +0 -62
- data/lib/dfp_api/v201802/mobile_application_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/native_style_service.rb +0 -62
- data/lib/dfp_api/v201802/native_style_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/network_service.rb +0 -62
- data/lib/dfp_api/v201802/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/order_service.rb +0 -62
- data/lib/dfp_api/v201802/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/package_service.rb +0 -62
- data/lib/dfp_api/v201802/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/placement_service.rb +0 -62
- data/lib/dfp_api/v201802/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201802/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201802/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/product_package_service.rb +0 -62
- data/lib/dfp_api/v201802/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/product_service.rb +0 -62
- data/lib/dfp_api/v201802/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/product_template_service.rb +0 -62
- data/lib/dfp_api/v201802/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201802/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/proposal_service.rb +0 -70
- data/lib/dfp_api/v201802/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201802/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201802/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201802/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201802/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201802/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201802/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/report_service.rb +0 -70
- data/lib/dfp_api/v201802/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201802/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/team_service.rb +0 -62
- data/lib/dfp_api/v201802/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/user_service.rb +0 -78
- data/lib/dfp_api/v201802/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201802/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201802/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201802/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/activity_group_service.rb +0 -54
- data/lib/dfp_api/v201805/activity_group_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/activity_service.rb +0 -54
- data/lib/dfp_api/v201805/activity_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/ad_exclusion_rule_service.rb +0 -62
- data/lib/dfp_api/v201805/ad_exclusion_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/ad_rule_service.rb +0 -62
- data/lib/dfp_api/v201805/ad_rule_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/audience_segment_service.rb +0 -62
- data/lib/dfp_api/v201805/audience_segment_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/base_rate_service.rb +0 -62
- data/lib/dfp_api/v201805/base_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/cdn_configuration_service.rb +0 -62
- data/lib/dfp_api/v201805/cdn_configuration_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/company_service.rb +0 -54
- data/lib/dfp_api/v201805/company_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/contact_service.rb +0 -54
- data/lib/dfp_api/v201805/contact_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/content_bundle_service.rb +0 -62
- data/lib/dfp_api/v201805/content_bundle_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/content_metadata_key_hierarchy_service.rb +0 -62
- data/lib/dfp_api/v201805/content_metadata_key_hierarchy_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/content_service.rb +0 -46
- data/lib/dfp_api/v201805/content_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/creative_service.rb +0 -54
- data/lib/dfp_api/v201805/creative_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/creative_set_service.rb +0 -54
- data/lib/dfp_api/v201805/creative_set_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/creative_template_service.rb +0 -38
- data/lib/dfp_api/v201805/creative_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/creative_wrapper_service.rb +0 -62
- data/lib/dfp_api/v201805/creative_wrapper_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/custom_field_service.rb +0 -86
- data/lib/dfp_api/v201805/custom_field_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/custom_targeting_service.rb +0 -94
- data/lib/dfp_api/v201805/custom_targeting_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/dai_authentication_key_service.rb +0 -62
- data/lib/dfp_api/v201805/dai_authentication_key_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/exchange_rate_service.rb +0 -62
- data/lib/dfp_api/v201805/exchange_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/forecast_service.rb +0 -62
- data/lib/dfp_api/v201805/forecast_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/inventory_service.rb +0 -70
- data/lib/dfp_api/v201805/inventory_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/label_service.rb +0 -62
- data/lib/dfp_api/v201805/label_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/line_item_creative_association_service.rb +0 -78
- data/lib/dfp_api/v201805/line_item_creative_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/line_item_service.rb +0 -62
- data/lib/dfp_api/v201805/line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/line_item_template_service.rb +0 -38
- data/lib/dfp_api/v201805/line_item_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/live_stream_event_service.rb +0 -70
- data/lib/dfp_api/v201805/live_stream_event_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/mobile_application_service.rb +0 -62
- data/lib/dfp_api/v201805/mobile_application_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/native_style_service.rb +0 -62
- data/lib/dfp_api/v201805/native_style_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/network_service.rb +0 -62
- data/lib/dfp_api/v201805/network_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/order_service.rb +0 -62
- data/lib/dfp_api/v201805/order_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/package_service.rb +0 -62
- data/lib/dfp_api/v201805/package_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/placement_service.rb +0 -62
- data/lib/dfp_api/v201805/placement_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/premium_rate_service.rb +0 -54
- data/lib/dfp_api/v201805/premium_rate_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/product_package_item_service.rb +0 -62
- data/lib/dfp_api/v201805/product_package_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/product_package_service.rb +0 -62
- data/lib/dfp_api/v201805/product_package_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/product_service.rb +0 -54
- data/lib/dfp_api/v201805/product_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/product_template_service.rb +0 -62
- data/lib/dfp_api/v201805/product_template_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/proposal_line_item_service.rb +0 -62
- data/lib/dfp_api/v201805/proposal_line_item_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/proposal_service.rb +0 -70
- data/lib/dfp_api/v201805/proposal_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/publisher_query_language_service.rb +0 -38
- data/lib/dfp_api/v201805/publisher_query_language_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/rate_card_service.rb +0 -62
- data/lib/dfp_api/v201805/rate_card_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/reconciliation_line_item_report_service.rb +0 -46
- data/lib/dfp_api/v201805/reconciliation_line_item_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/reconciliation_order_report_service.rb +0 -54
- data/lib/dfp_api/v201805/reconciliation_order_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/reconciliation_report_row_service.rb +0 -46
- data/lib/dfp_api/v201805/reconciliation_report_row_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/reconciliation_report_service.rb +0 -46
- data/lib/dfp_api/v201805/reconciliation_report_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/report_service.rb +0 -70
- data/lib/dfp_api/v201805/report_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/suggested_ad_unit_service.rb +0 -46
- data/lib/dfp_api/v201805/suggested_ad_unit_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/team_service.rb +0 -62
- data/lib/dfp_api/v201805/team_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/user_service.rb +0 -78
- data/lib/dfp_api/v201805/user_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/user_team_association_service.rb +0 -62
- data/lib/dfp_api/v201805/user_team_association_service_registry.rb +0 -45
- data/lib/dfp_api/v201805/workflow_request_service.rb +0 -46
- data/lib/dfp_api/v201805/workflow_request_service_registry.rb +0 -45
- data/lib/dfp_api/version.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cca4a5007163eed6eb420e5bcd596aad6a8e46da
|
4
|
+
data.tar.gz: 55450e9031c53c1fa17dde0758e698a57b6c6d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94b98c96ec7dcdafc1de8957a8859640ac79b164588aa37d46c80992731c254e3a387981de9d702d4af48dc9242e0551469d6a9c2ca3a4e014e626ac19e9179
|
7
|
+
data.tar.gz: 259c9606bfc434285eafadc0219559813bf23251c8dfc11c60dfe47eb2787efe980843685ccdd0a5a050613071d7d629344908421ab78b3a8347cbf30537cf73
|
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
1.4.0:
|
2
|
+
- Changed all DFP references to Ad Manager (for information on migrating, see
|
3
|
+
https://github.com/googleads/google-api-ads-ruby/wiki/DFP-to-Ad-Manager-rebrand-guide).
|
4
|
+
- Added support for v201808.
|
5
|
+
- Removed support for v201708.
|
6
|
+
- Removed examples for v201711.
|
7
|
+
- Updated examples with minor fixes.
|
8
|
+
|
1
9
|
1.3.1:
|
2
10
|
- Added support for LineItem.userConsentEligibility.
|
3
11
|
|
data/README.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
# Google
|
1
|
+
# Google Ad Manager API Ruby Client Library
|
2
2
|
|
3
|
-
Google
|
4
|
-
|
3
|
+
The Google Ad Manager API lets developers design computer programs that
|
4
|
+
interact directly with the Ad Manager platform. With these applications,
|
5
5
|
advertisers and third parties can more efficiently -- and creatively -- manage
|
6
|
-
their large or complex
|
6
|
+
their large or complex Ad Manager accounts.
|
7
7
|
|
8
|
-
The
|
9
|
-
programmatically access
|
10
|
-
|
11
|
-
|
8
|
+
The Ad Manager API Ruby Client Library makes it easy to write Ruby clients to
|
9
|
+
programmatically access Ad Manager accounts. The client library is available as
|
10
|
+
a Ruby gem or gzipped tarball. It depends on the google-ads-common library which
|
11
|
+
is base for all Google Ads APIs for Ruby.
|
12
12
|
|
13
13
|
|
14
14
|
## What's in the client library?
|
15
15
|
|
16
16
|
The client library provides full access to all the functionality of the
|
17
|
-
|
17
|
+
Ad Manager API web services plus more. It includes:
|
18
18
|
|
19
|
-
-
|
20
|
-
for accessing
|
21
|
-
Service classes.
|
19
|
+
- AdManagerApi::Api class: The Api class provides methods for setting
|
20
|
+
credentials for accessing Ad Manager accounts as well as for creating
|
21
|
+
instances of the Ad Manager Service classes.
|
22
22
|
|
23
23
|
- Ruby native objects support: All data is accepted and returned as Ruby
|
24
24
|
hashes and arrays. No complex types are required!
|
@@ -39,7 +39,8 @@ DoubleClick For Publishers API web services plus more. It includes:
|
|
39
39
|
- Examples: The Ruby client library comes with code samples in the "examples/"
|
40
40
|
directory. We encourage you to use code samples to get started writing your
|
41
41
|
own application. All the code samples are runnable out of the box, but you
|
42
|
-
will have to set your credentials in the "~/
|
42
|
+
will have to set your credentials in the "~/ad_manager_api.yml"
|
43
|
+
configuration file.
|
43
44
|
|
44
45
|
|
45
46
|
# How to get started
|
@@ -68,22 +69,22 @@ You can do this with:
|
|
68
69
|
|
69
70
|
In order to use the library you need to include its modules:
|
70
71
|
|
71
|
-
require '
|
72
|
+
require 'ad_manager_api'
|
72
73
|
|
73
74
|
Then, library object could be instantiated:
|
74
75
|
|
75
|
-
|
76
|
+
ad_manager = AdManagerApi::Api.new
|
76
77
|
|
77
|
-
The default constructor will load library configuration from
|
78
|
-
file. Alternatively, you can pass a configuration hash
|
79
|
-
constructor:
|
78
|
+
The default constructor will load library configuration from
|
79
|
+
`~/ad_manager_api.yml` file. Alternatively, you can pass a configuration hash
|
80
|
+
directly to the constructor:
|
80
81
|
|
81
|
-
|
82
|
+
ad_manager = AdManagerApi::Api.new({
|
82
83
|
:authentication => {
|
83
84
|
:method => 'OAuth2',
|
84
85
|
:oauth2_client_id => 'INSERT_OAUTH2_CLIENT_ID_HERE',
|
85
86
|
:oauth2_client_secret => 'INSERT_OAUTH2_CLIENT_SECRET_HERE',
|
86
|
-
:application_name => 'Ruby
|
87
|
+
:application_name => 'Ruby Ad Manager Sample',
|
87
88
|
:network_code => 123456
|
88
89
|
}
|
89
90
|
})
|
@@ -119,17 +120,18 @@ In order to use OAuth you just need to:
|
|
119
120
|
- handle OAuth2VerificationRequired error and pass verification code to the
|
120
121
|
library.
|
121
122
|
|
122
|
-
See '
|
123
|
-
more details.
|
123
|
+
See 'ad_manager_api.yml' configuration file and 'common/oauth2_handling.rb'
|
124
|
+
example for more details.
|
124
125
|
|
125
126
|
## Accessing services
|
126
127
|
|
127
128
|
Once the library object is created you can request services with a 'service'
|
128
129
|
method:
|
129
130
|
|
130
|
-
user_service =
|
131
|
+
user_service = ad_manager.service(:UserService, <API_VERSION>)
|
131
132
|
|
132
|
-
where <API_VERSION> is required version of
|
133
|
+
where <API_VERSION> is required version of Ad Manager API as symbol,
|
134
|
+
e.g. :v201403.
|
133
135
|
|
134
136
|
Then you should be able to execute service methods:
|
135
137
|
|
@@ -155,8 +157,8 @@ converted to symbols in Ruby native snake_case format:
|
|
155
157
|
|
156
158
|
## Running examples
|
157
159
|
|
158
|
-
Before running examples, please ensure that your `
|
159
|
-
placed in your home directory. You can find the examples as part of the
|
160
|
+
Before running examples, please ensure that your `ad_manager_api.yml` is filled
|
161
|
+
in and placed in your home directory. You can find the examples as part of the
|
160
162
|
installed gem, download them as a tarball or view them online.
|
161
163
|
|
162
164
|
Examples can be run by executing by running:
|
@@ -193,8 +195,8 @@ this, you should create a standard Logger object and pass it to the library:
|
|
193
195
|
require 'logger'
|
194
196
|
logger = Logger.new('path/to/log_filename')
|
195
197
|
logger.level = Logger::DEBUG
|
196
|
-
|
197
|
-
|
198
|
+
ad_manager = AdManagerApi::Api.new
|
199
|
+
ad_manager.logger = logger
|
198
200
|
|
199
201
|
Request details are logged at the INFO log level, while raw HTTP headers and XML
|
200
202
|
dumps are logged at the DEBUG log level. For more details on using Logger refer
|
@@ -299,6 +301,7 @@ specific language governing permissions and limitations under the License.
|
|
299
301
|
|
300
302
|
Author:
|
301
303
|
Danial Klimkin
|
304
|
+
Donovan McMurray
|
302
305
|
|
303
306
|
Maintainer:
|
304
|
-
|
307
|
+
Donovan McMurray
|
data/ad_manager_api.yml
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
# This is an example configuration file for the Ruby Ad Manager API client
|
3
|
+
# library. Please fill in the required fields, and copy it over to your home
|
4
|
+
# directory. Detailed descriptions of these properties can be found at:
|
5
|
+
# https://developers.google.com/ad-manager/docs/soap_xml
|
6
|
+
:authentication:
|
7
|
+
# Authentication method, methods currently supported:
|
8
|
+
# OAUTH2, OAUTH2_SERVICE_ACCOUNT
|
9
|
+
:method: OAUTH2_SERVICE_ACCOUNT
|
10
|
+
|
11
|
+
# Auth parameters for OAUTH2_SERVICE_ACCOUNT method. See:
|
12
|
+
# https://developers.google.com/accounts/docs/OAuth2ServiceAccount
|
13
|
+
# You can provide path to a file with 'oauth2_keyfile' or the key itself with
|
14
|
+
# 'oauth2_key' option.
|
15
|
+
:oauth2_keyfile: INSERT_OAUTH2_KEYFILE_HERE
|
16
|
+
# Specify the issuer only if you are using a key directly with no key file.
|
17
|
+
#:oauth2_key: INSERT_OAUTH2_KEY_HERE
|
18
|
+
#:oauth2_issuer: INSERT_OAUTH2_ISSUER_HERE
|
19
|
+
# To impersonate a user set prn to an email address.
|
20
|
+
#:oauth2_prn: INSERT_OAUTH2_PRN_HERE
|
21
|
+
|
22
|
+
# Auth parameters for OAUTH2 method.
|
23
|
+
# Set the OAuth2 client id and secret. Register your application here to
|
24
|
+
# obtain these values:
|
25
|
+
# https://console.developers.google.com/
|
26
|
+
#:oauth2_client_id: INSERT_OAUTH2_CLIENT_ID_HERE
|
27
|
+
#:oauth2_client_secret: INSERT_OAUTH2_CLIENT_SECRET_HERE
|
28
|
+
# Optional, see: https://developers.google.com/accounts/docs/OAuth2WebServer
|
29
|
+
#:oauth2_callback: INSERT_OAUTH2_CALLBACK_URL_HERE
|
30
|
+
#:oauth2_state: INSERT_OAUTH2_STATE_HERE
|
31
|
+
#:oauth2_access_type: INSERT_OAUTH2_ACCESS_TYPE_HERE
|
32
|
+
#:oauth2_prompt: INSERT_OAUTH2_PROMPT_HERE
|
33
|
+
# You can define extra scopes so that you can reuse your refresh token for
|
34
|
+
# other APIs.
|
35
|
+
#:oauth2_extra_scopes: [INSERT_EXTRA_SCOPES_HERE]
|
36
|
+
|
37
|
+
# Other parameters.
|
38
|
+
:application_name: INSERT_APPLICATION_NAME_HERE
|
39
|
+
|
40
|
+
# Required for all calls other than GetAllNetworks and MakeTestNetwork.
|
41
|
+
:network_code: INSERT_NETWORK_CODE_HERE
|
42
|
+
:connection:
|
43
|
+
# Enable to request all responses to be compressed.
|
44
|
+
:enable_gzip: false
|
45
|
+
# If your proxy connection requires authentication, make sure to include it in
|
46
|
+
# the URL, e.g.: http://user:password@proxy_hostname:8080
|
47
|
+
#:proxy: INSERT_PROXY_HERE
|
48
|
+
:library:
|
49
|
+
:log_level: INFO
|
50
|
+
# Optional: uncomment to disable user agent showing used utilities.
|
51
|
+
#:include_utilities_in_user_agent: false
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
14
|
+
# implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
# Contains the main classes for the client library.
|
19
|
+
|
20
|
+
require 'ads_common/api'
|
21
|
+
require 'ads_common/savon_headers/oauth_header_handler'
|
22
|
+
require 'ad_manager_api/api_config'
|
23
|
+
require 'ad_manager_api/credential_handler'
|
24
|
+
require 'ad_manager_api/errors'
|
25
|
+
require 'ad_manager_api/ad_manager_api_statement'
|
26
|
+
require 'ad_manager_api/ad_manager_api_datetime'
|
27
|
+
require 'ad_manager_api/pql_statement_utils'
|
28
|
+
require 'ad_manager_api/utils_reporter'
|
29
|
+
|
30
|
+
# Main namespace for all the client library's modules and classes.
|
31
|
+
module AdManagerApi
|
32
|
+
|
33
|
+
# Wrapper class that serves as the main point of access for all the API usage.
|
34
|
+
#
|
35
|
+
# Holds all the services, as well as login credentials.
|
36
|
+
#
|
37
|
+
class Api < AdsCommon::Api
|
38
|
+
attr_reader :utils_reporter
|
39
|
+
|
40
|
+
# Constructor for API.
|
41
|
+
def initialize(provided_config = nil)
|
42
|
+
super(provided_config)
|
43
|
+
@credential_handler = AdManagerApi::CredentialHandler.new(@config)
|
44
|
+
@utils_reporter = AdManagerApi::UtilsReporter.new(@credential_handler)
|
45
|
+
end
|
46
|
+
|
47
|
+
# Getter for the API service configurations.
|
48
|
+
def api_config
|
49
|
+
AdManagerApi::ApiConfig
|
50
|
+
end
|
51
|
+
|
52
|
+
# Returns an instance of StatementBuilder object.
|
53
|
+
def new_statement_builder(&block)
|
54
|
+
return AdManagerApi::StatementBuilder.new(self, &block)
|
55
|
+
end
|
56
|
+
|
57
|
+
def new_report_statement_builder(&block)
|
58
|
+
statement = AdManagerApi::StatementBuilder.new(self) do |sb|
|
59
|
+
sb.limit = nil
|
60
|
+
sb.offset = nil
|
61
|
+
end
|
62
|
+
statement.configure(&block)
|
63
|
+
return statement
|
64
|
+
end
|
65
|
+
|
66
|
+
# Returns an instance of AdManagerDate.
|
67
|
+
def date(*args)
|
68
|
+
return AdManagerApi::AdManagerDate.new(self, *args)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Returns an instance of AdManagerDate representing the current day.
|
72
|
+
def today(*args)
|
73
|
+
return AdManagerApi::AdManagerDate.today(self, *args)
|
74
|
+
end
|
75
|
+
|
76
|
+
# Returns an instance of AdManagerDateTime.
|
77
|
+
def datetime(*args)
|
78
|
+
return AdManagerApi::AdManagerDateTime.new(self, *args)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Returns an instance of AdManagerDateTime representing the current time.
|
82
|
+
def now(*args)
|
83
|
+
return AdManagerApi::AdManagerDateTime.now(self, *args)
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns an instance of AdManagerDateTime in the UTC timezone.
|
87
|
+
def utc(*args)
|
88
|
+
return AdManagerApi::AdManagerDateTime.utc(self, *args)
|
89
|
+
end
|
90
|
+
|
91
|
+
private
|
92
|
+
|
93
|
+
# Retrieve Ad Manager HeaderHandler per credential.
|
94
|
+
def soap_header_handler(auth_handler, version, header_ns, default_ns)
|
95
|
+
auth_method = @config.read('authentication.method', :OAUTH2)
|
96
|
+
handler_class = case auth_method
|
97
|
+
when :OAUTH2, :OAUTH2_SERVICE_ACCOUNT
|
98
|
+
AdsCommon::SavonHeaders::OAuthHeaderHandler
|
99
|
+
else
|
100
|
+
raise AdsCommon::Errors::AuthError,
|
101
|
+
"Unknown auth method: %s" % auth_method
|
102
|
+
end
|
103
|
+
return handler_class.new(@credential_handler, auth_handler, header_ns,
|
104
|
+
default_ns, version)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,188 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# License:: Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
14
|
+
# implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
# AdManagerDate and AdManagerDateTime convert between native ruby Date and Time
|
19
|
+
# objects and the Ad Manager API's Date and DateTime objects.
|
20
|
+
|
21
|
+
require 'date'
|
22
|
+
require 'tzinfo'
|
23
|
+
|
24
|
+
|
25
|
+
module AdManagerApi
|
26
|
+
class AdManagerDate
|
27
|
+
# Create a new AdManagerDate, a utility class that allows for
|
28
|
+
# interoperability between the Ad Manager API's Date objects and ruby's
|
29
|
+
# Date class.
|
30
|
+
#
|
31
|
+
# Args:
|
32
|
+
# - args:
|
33
|
+
# - ([year, [month, [day]]]), integer values, uses Date defaults
|
34
|
+
# - (date), a native ruby Date object
|
35
|
+
# - (ad_manager_date), an Ad Manager Date hash representation
|
36
|
+
# Returns:
|
37
|
+
# - ad_manager_date: an instance of AdManagerDate
|
38
|
+
def initialize(api, *args)
|
39
|
+
@api = api
|
40
|
+
@api.utils_reporter.ad_manager_date_used()
|
41
|
+
|
42
|
+
case args.first
|
43
|
+
when Hash
|
44
|
+
hash = args.first
|
45
|
+
date_args = [hash[:year], hash[:month], hash[:day]]
|
46
|
+
when Date
|
47
|
+
date = args.first
|
48
|
+
date_args = [date.year, date.month, date.day]
|
49
|
+
else
|
50
|
+
date_args = args
|
51
|
+
end
|
52
|
+
@date = Date.new(*date_args)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Creates an AdManagerDate object denoting the present day.
|
56
|
+
def self.today(api, *args)
|
57
|
+
self.new(api, Date.today(*args))
|
58
|
+
end
|
59
|
+
|
60
|
+
# When an unrecognized method is applied to AdManagerDate, pass it through
|
61
|
+
# to the internal ruby Date.
|
62
|
+
def method_missing(name, *args, &block)
|
63
|
+
result = @date.send(name, *args, &block)
|
64
|
+
return self.class.new(@api, result) if result.is_a? Date
|
65
|
+
return result
|
66
|
+
end
|
67
|
+
|
68
|
+
# Convert AdManagerDate into a hash representation which can be consumed by
|
69
|
+
# the Ad Manager API. E.g., a hash that can be passed as PQL Date variables.
|
70
|
+
#
|
71
|
+
# Returns:
|
72
|
+
# - ad_manager_datetime: an Ad Manager Date hash representation
|
73
|
+
def to_h()
|
74
|
+
return {:year => @date.year, :month => @date.month, :day => @date.day}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class AdManagerDateTime
|
79
|
+
attr_accessor :timezone
|
80
|
+
|
81
|
+
# Create a new AdManagerDateTime, a utility class that allows for
|
82
|
+
# interoperability between the Ad Manager API's DateTime objects and ruby's
|
83
|
+
# Time class. The last argument must be a valid timezone identifier,
|
84
|
+
# e.g. "America/New_York".
|
85
|
+
#
|
86
|
+
# Args:
|
87
|
+
# - args:
|
88
|
+
# - ([year, [month, [day, [hour, [minute, [second,]]]]]] timezone)
|
89
|
+
# - (time, timezone), a native Time object and a timezone identifier
|
90
|
+
# - (ad_manager_datetime), an Ad Manager DateTime hash representation
|
91
|
+
#
|
92
|
+
# Returns:
|
93
|
+
# - ad_manager_datetime: an instance of AdManagerDateTime
|
94
|
+
def initialize(api, *args)
|
95
|
+
@api = api
|
96
|
+
@api.utils_reporter.ad_manager_date_time_used()
|
97
|
+
|
98
|
+
# Handle special cases when an Ad Manager DateTime hash or ruby Time
|
99
|
+
# instance are passed as the first argument to the constructor.
|
100
|
+
case args.first
|
101
|
+
when Hash
|
102
|
+
hash = args.first
|
103
|
+
datetime_args = [hash[:date][:year], hash[:date][:month],
|
104
|
+
hash[:date][:day], hash[:hour], hash[:minute], hash[:second],
|
105
|
+
hash[:time_zone_id]]
|
106
|
+
when AdManagerDateTime, Time, DateTime
|
107
|
+
time = args.first
|
108
|
+
datetime_args = [args.last]
|
109
|
+
[:sec, :min, :hour, :day, :month, :year].each do |duration|
|
110
|
+
datetime_args.unshift(time.send(duration))
|
111
|
+
end
|
112
|
+
else
|
113
|
+
datetime_args = args
|
114
|
+
end
|
115
|
+
# Check the validity of the timezone parameter, which is required.
|
116
|
+
if not TZInfo::Timezone.all_identifiers.include?(datetime_args.last)
|
117
|
+
raise "Last argument to AdManagerDateTime constructor must be valid" +
|
118
|
+
"timezone"
|
119
|
+
end
|
120
|
+
# Set timezone attribute and pass its utc offset into the Time
|
121
|
+
# constructor.
|
122
|
+
@timezone = TZInfo::Timezone.get(datetime_args.pop)
|
123
|
+
@time = Time.new(*datetime_args,
|
124
|
+
utc_offset=@timezone.current_period.utc_offset)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Create an AdManagerDateTime for the current time in the specified
|
128
|
+
# timezone.
|
129
|
+
#
|
130
|
+
# Args:
|
131
|
+
# - timezone: a valid timezone identifier, e.g. "America/New_York"
|
132
|
+
#
|
133
|
+
# Returns:
|
134
|
+
# - ad_manager_datetime: an instance of AdManagerDateTime
|
135
|
+
def self.now(api, timezone)
|
136
|
+
new(api, TZInfo::Timezone.get(timezone).now, timezone)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Create an AdManagerDateTime in the "UTC" timezone. Calls the
|
140
|
+
# AdManagerDateTime contstructor with timezone identifier "UTC".
|
141
|
+
#
|
142
|
+
# Args:
|
143
|
+
# - ([year, [month, [day, [hour, [minute, [second]]]]]])
|
144
|
+
#
|
145
|
+
# Returns:
|
146
|
+
# - ad_manager_datetime: an instance of AdManagerDateTime
|
147
|
+
def self.utc(api, *args)
|
148
|
+
new(api, *args + ['UTC'])
|
149
|
+
end
|
150
|
+
|
151
|
+
# Convert AdManagerDateTime into a hash representation which can be consumed
|
152
|
+
# by the Ad Manager API. E.g., a hash that can be passed as PQL DateTime
|
153
|
+
# variables.
|
154
|
+
#
|
155
|
+
# Returns:
|
156
|
+
# - ad_manager_datetime_hash: a hash representation of an
|
157
|
+
# AdManagerDateTime
|
158
|
+
def to_h
|
159
|
+
{
|
160
|
+
:date => AdManagerApi::AdManagerDate.new(
|
161
|
+
@api, @time.year, @time.month, @time.day
|
162
|
+
).to_h,
|
163
|
+
:hour => @time.hour,
|
164
|
+
:minute => @time.min,
|
165
|
+
:second => @time.sec,
|
166
|
+
:time_zone_id => @timezone.identifier
|
167
|
+
}
|
168
|
+
end
|
169
|
+
|
170
|
+
# When an unrecognized method is applied to AdManagerDateTime, pass it
|
171
|
+
# through to the internal ruby Time.
|
172
|
+
def method_missing(name, *args, &block)
|
173
|
+
# Restrict time zone related functions from being passed to internal ruby
|
174
|
+
# Time attribute, since AdManagerDateTime handles timezones its own way.
|
175
|
+
restricted_functions = [:dst?, :getgm, :getlocal, :getutc, :gmt,
|
176
|
+
:gmtime, :gmtoff, :isdst, :localtime, :utc]
|
177
|
+
if restricted_functions.include? name
|
178
|
+
raise NoMethodError, 'undefined method %s for %s' % [name, self]
|
179
|
+
end
|
180
|
+
result = @time.send(name, *args, &block)
|
181
|
+
if result.is_a? Time
|
182
|
+
return self.class.new(@api, result, @timezone.identifier)
|
183
|
+
else
|
184
|
+
return result
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|