google-dfp-api 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/dfp_api/v201505/activity_group_service.rb +2 -2
- data/lib/dfp_api/v201505/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/activity_service.rb +2 -2
- data/lib/dfp_api/v201505/activity_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/ad_exclusion_rule_service.rb +2 -2
- data/lib/dfp_api/v201505/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/ad_rule_service.rb +2 -2
- data/lib/dfp_api/v201505/ad_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/audience_segment_service.rb +2 -2
- data/lib/dfp_api/v201505/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/base_rate_service.rb +2 -2
- data/lib/dfp_api/v201505/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/company_service.rb +2 -2
- data/lib/dfp_api/v201505/company_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/contact_service.rb +2 -2
- data/lib/dfp_api/v201505/contact_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/content_bundle_service.rb +2 -2
- data/lib/dfp_api/v201505/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/content_metadata_key_hierarchy_service.rb +2 -2
- data/lib/dfp_api/v201505/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/content_service.rb +2 -2
- data/lib/dfp_api/v201505/content_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/creative_service.rb +2 -2
- data/lib/dfp_api/v201505/creative_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/creative_set_service.rb +2 -2
- data/lib/dfp_api/v201505/creative_set_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/creative_template_service.rb +2 -2
- data/lib/dfp_api/v201505/creative_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/creative_wrapper_service.rb +2 -2
- data/lib/dfp_api/v201505/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/custom_field_service.rb +2 -2
- data/lib/dfp_api/v201505/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/custom_targeting_service.rb +2 -2
- data/lib/dfp_api/v201505/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/exchange_rate_service.rb +2 -2
- data/lib/dfp_api/v201505/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/forecast_service.rb +2 -2
- data/lib/dfp_api/v201505/forecast_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/inventory_service.rb +2 -2
- data/lib/dfp_api/v201505/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/label_service.rb +2 -2
- data/lib/dfp_api/v201505/label_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/line_item_creative_association_service.rb +2 -2
- data/lib/dfp_api/v201505/line_item_creative_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/line_item_service.rb +2 -2
- data/lib/dfp_api/v201505/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/line_item_template_service.rb +2 -2
- data/lib/dfp_api/v201505/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/live_stream_event_service.rb +2 -2
- data/lib/dfp_api/v201505/live_stream_event_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/network_service.rb +2 -2
- data/lib/dfp_api/v201505/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201505/order_service.rb +2 -2
- data/lib/dfp_api/v201505/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/package_service.rb +2 -2
- data/lib/dfp_api/v201505/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/placement_service.rb +2 -2
- data/lib/dfp_api/v201505/placement_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/premium_rate_service.rb +2 -2
- data/lib/dfp_api/v201505/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/product_package_item_service.rb +2 -2
- data/lib/dfp_api/v201505/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/product_package_service.rb +2 -2
- data/lib/dfp_api/v201505/product_package_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/product_service.rb +2 -2
- data/lib/dfp_api/v201505/product_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/product_template_service.rb +2 -2
- data/lib/dfp_api/v201505/product_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/proposal_line_item_service.rb +2 -2
- data/lib/dfp_api/v201505/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/proposal_service.rb +2 -2
- data/lib/dfp_api/v201505/proposal_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/publisher_query_language_service.rb +2 -2
- data/lib/dfp_api/v201505/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/rate_card_service.rb +2 -2
- data/lib/dfp_api/v201505/rate_card_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_order_report_service.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_report_row_service.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_report_service.rb +2 -2
- data/lib/dfp_api/v201505/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/report_service.rb +2 -2
- data/lib/dfp_api/v201505/report_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/shared_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201505/shared_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/suggested_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201505/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/team_service.rb +2 -2
- data/lib/dfp_api/v201505/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/user_service.rb +2 -2
- data/lib/dfp_api/v201505/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/user_team_association_service.rb +2 -2
- data/lib/dfp_api/v201505/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201505/workflow_request_service.rb +2 -2
- data/lib/dfp_api/v201505/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/activity_group_service.rb +2 -2
- data/lib/dfp_api/v201508/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/activity_service.rb +2 -2
- data/lib/dfp_api/v201508/activity_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/ad_exclusion_rule_service.rb +2 -2
- data/lib/dfp_api/v201508/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/ad_rule_service.rb +2 -2
- data/lib/dfp_api/v201508/ad_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/audience_segment_service.rb +2 -2
- data/lib/dfp_api/v201508/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/base_rate_service.rb +2 -2
- data/lib/dfp_api/v201508/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/company_service.rb +2 -2
- data/lib/dfp_api/v201508/company_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/contact_service.rb +2 -2
- data/lib/dfp_api/v201508/contact_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/content_bundle_service.rb +2 -2
- data/lib/dfp_api/v201508/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service.rb +2 -2
- data/lib/dfp_api/v201508/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/content_service.rb +2 -2
- data/lib/dfp_api/v201508/content_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/creative_service.rb +2 -2
- data/lib/dfp_api/v201508/creative_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/creative_set_service.rb +2 -2
- data/lib/dfp_api/v201508/creative_set_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/creative_template_service.rb +2 -2
- data/lib/dfp_api/v201508/creative_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/creative_wrapper_service.rb +2 -2
- data/lib/dfp_api/v201508/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/custom_field_service.rb +2 -2
- data/lib/dfp_api/v201508/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/custom_targeting_service.rb +2 -2
- data/lib/dfp_api/v201508/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/exchange_rate_service.rb +2 -2
- data/lib/dfp_api/v201508/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/forecast_service.rb +2 -2
- data/lib/dfp_api/v201508/forecast_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/inventory_service.rb +2 -2
- data/lib/dfp_api/v201508/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/label_service.rb +2 -2
- data/lib/dfp_api/v201508/label_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/line_item_creative_association_service.rb +2 -2
- data/lib/dfp_api/v201508/line_item_creative_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/line_item_service.rb +2 -2
- data/lib/dfp_api/v201508/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/line_item_template_service.rb +2 -2
- data/lib/dfp_api/v201508/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/live_stream_event_service.rb +2 -2
- data/lib/dfp_api/v201508/live_stream_event_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/network_service.rb +2 -2
- data/lib/dfp_api/v201508/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201508/order_service.rb +2 -2
- data/lib/dfp_api/v201508/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/package_service.rb +2 -2
- data/lib/dfp_api/v201508/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/placement_service.rb +2 -2
- data/lib/dfp_api/v201508/placement_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/premium_rate_service.rb +2 -2
- data/lib/dfp_api/v201508/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/product_package_item_service.rb +2 -2
- data/lib/dfp_api/v201508/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/product_package_service.rb +2 -2
- data/lib/dfp_api/v201508/product_package_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/product_service.rb +2 -2
- data/lib/dfp_api/v201508/product_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/product_template_service.rb +2 -2
- data/lib/dfp_api/v201508/product_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/proposal_line_item_service.rb +2 -2
- data/lib/dfp_api/v201508/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/proposal_service.rb +2 -2
- data/lib/dfp_api/v201508/proposal_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/publisher_query_language_service.rb +2 -2
- data/lib/dfp_api/v201508/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/rate_card_service.rb +2 -2
- data/lib/dfp_api/v201508/rate_card_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_order_report_service.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_row_service.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_service.rb +2 -2
- data/lib/dfp_api/v201508/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/report_service.rb +2 -2
- data/lib/dfp_api/v201508/report_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/shared_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201508/shared_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/suggested_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201508/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/team_service.rb +2 -2
- data/lib/dfp_api/v201508/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/user_service.rb +2 -2
- data/lib/dfp_api/v201508/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/user_team_association_service.rb +2 -2
- data/lib/dfp_api/v201508/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201508/workflow_request_service.rb +2 -2
- data/lib/dfp_api/v201508/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/activity_group_service.rb +2 -2
- data/lib/dfp_api/v201511/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/activity_service.rb +2 -2
- data/lib/dfp_api/v201511/activity_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/ad_exclusion_rule_service.rb +2 -2
- data/lib/dfp_api/v201511/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/ad_rule_service.rb +2 -2
- data/lib/dfp_api/v201511/ad_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/audience_segment_service.rb +2 -2
- data/lib/dfp_api/v201511/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/base_rate_service.rb +2 -2
- data/lib/dfp_api/v201511/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/company_service.rb +2 -2
- data/lib/dfp_api/v201511/company_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/contact_service.rb +2 -2
- data/lib/dfp_api/v201511/contact_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/content_bundle_service.rb +2 -2
- data/lib/dfp_api/v201511/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/content_metadata_key_hierarchy_service.rb +2 -2
- data/lib/dfp_api/v201511/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/content_service.rb +2 -2
- data/lib/dfp_api/v201511/content_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/creative_service.rb +2 -2
- data/lib/dfp_api/v201511/creative_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/creative_set_service.rb +2 -2
- data/lib/dfp_api/v201511/creative_set_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/creative_template_service.rb +2 -2
- data/lib/dfp_api/v201511/creative_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/creative_wrapper_service.rb +2 -2
- data/lib/dfp_api/v201511/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/custom_field_service.rb +2 -2
- data/lib/dfp_api/v201511/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/custom_targeting_service.rb +2 -2
- data/lib/dfp_api/v201511/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/exchange_rate_service.rb +2 -2
- data/lib/dfp_api/v201511/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/forecast_service.rb +2 -2
- data/lib/dfp_api/v201511/forecast_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/inventory_service.rb +2 -2
- data/lib/dfp_api/v201511/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/label_service.rb +2 -2
- data/lib/dfp_api/v201511/label_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/line_item_creative_association_service.rb +2 -2
- data/lib/dfp_api/v201511/line_item_creative_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/line_item_service.rb +2 -2
- data/lib/dfp_api/v201511/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/line_item_template_service.rb +2 -2
- data/lib/dfp_api/v201511/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/live_stream_event_service.rb +2 -2
- data/lib/dfp_api/v201511/live_stream_event_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/network_service.rb +2 -2
- data/lib/dfp_api/v201511/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201511/order_service.rb +2 -2
- data/lib/dfp_api/v201511/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/package_service.rb +2 -2
- data/lib/dfp_api/v201511/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/placement_service.rb +2 -2
- data/lib/dfp_api/v201511/placement_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/premium_rate_service.rb +2 -2
- data/lib/dfp_api/v201511/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/product_package_item_service.rb +2 -2
- data/lib/dfp_api/v201511/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/product_package_service.rb +2 -2
- data/lib/dfp_api/v201511/product_package_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/product_service.rb +2 -2
- data/lib/dfp_api/v201511/product_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/product_template_service.rb +2 -2
- data/lib/dfp_api/v201511/product_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/proposal_line_item_service.rb +2 -2
- data/lib/dfp_api/v201511/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/proposal_service.rb +2 -2
- data/lib/dfp_api/v201511/proposal_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/publisher_query_language_service.rb +2 -2
- data/lib/dfp_api/v201511/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/rate_card_service.rb +2 -2
- data/lib/dfp_api/v201511/rate_card_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_order_report_service.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_row_service.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_service.rb +2 -2
- data/lib/dfp_api/v201511/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/report_service.rb +2 -2
- data/lib/dfp_api/v201511/report_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/shared_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201511/shared_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/suggested_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201511/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/team_service.rb +2 -2
- data/lib/dfp_api/v201511/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/user_service.rb +2 -2
- data/lib/dfp_api/v201511/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/user_team_association_service.rb +2 -2
- data/lib/dfp_api/v201511/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201511/workflow_request_service.rb +2 -2
- data/lib/dfp_api/v201511/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/activity_group_service.rb +2 -2
- data/lib/dfp_api/v201602/activity_group_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/activity_service.rb +2 -2
- data/lib/dfp_api/v201602/activity_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/ad_exclusion_rule_service.rb +2 -2
- data/lib/dfp_api/v201602/ad_exclusion_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/ad_rule_service.rb +2 -2
- data/lib/dfp_api/v201602/ad_rule_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/audience_segment_service.rb +2 -2
- data/lib/dfp_api/v201602/audience_segment_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/base_rate_service.rb +2 -2
- data/lib/dfp_api/v201602/base_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/company_service.rb +2 -2
- data/lib/dfp_api/v201602/company_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/contact_service.rb +2 -2
- data/lib/dfp_api/v201602/contact_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/content_bundle_service.rb +2 -2
- data/lib/dfp_api/v201602/content_bundle_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/content_metadata_key_hierarchy_service.rb +2 -2
- data/lib/dfp_api/v201602/content_metadata_key_hierarchy_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/content_service.rb +2 -2
- data/lib/dfp_api/v201602/content_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/creative_service.rb +2 -2
- data/lib/dfp_api/v201602/creative_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/creative_set_service.rb +2 -2
- data/lib/dfp_api/v201602/creative_set_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/creative_template_service.rb +2 -2
- data/lib/dfp_api/v201602/creative_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/creative_wrapper_service.rb +2 -2
- data/lib/dfp_api/v201602/creative_wrapper_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/custom_field_service.rb +2 -2
- data/lib/dfp_api/v201602/custom_field_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/custom_targeting_service.rb +2 -2
- data/lib/dfp_api/v201602/custom_targeting_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/exchange_rate_service.rb +2 -2
- data/lib/dfp_api/v201602/exchange_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/forecast_service.rb +2 -2
- data/lib/dfp_api/v201602/forecast_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/inventory_service.rb +2 -2
- data/lib/dfp_api/v201602/inventory_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/label_service.rb +2 -2
- data/lib/dfp_api/v201602/label_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/line_item_creative_association_service.rb +2 -2
- data/lib/dfp_api/v201602/line_item_creative_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/line_item_service.rb +2 -2
- data/lib/dfp_api/v201602/line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/line_item_template_service.rb +2 -2
- data/lib/dfp_api/v201602/line_item_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/live_stream_event_service.rb +2 -2
- data/lib/dfp_api/v201602/live_stream_event_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/network_service.rb +2 -2
- data/lib/dfp_api/v201602/network_service_registry.rb +3 -3
- data/lib/dfp_api/v201602/order_service.rb +2 -2
- data/lib/dfp_api/v201602/order_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/package_service.rb +2 -2
- data/lib/dfp_api/v201602/package_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/placement_service.rb +2 -2
- data/lib/dfp_api/v201602/placement_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/premium_rate_service.rb +2 -2
- data/lib/dfp_api/v201602/premium_rate_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/product_package_item_service.rb +2 -2
- data/lib/dfp_api/v201602/product_package_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/product_package_service.rb +2 -2
- data/lib/dfp_api/v201602/product_package_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/product_service.rb +2 -2
- data/lib/dfp_api/v201602/product_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/product_template_service.rb +2 -2
- data/lib/dfp_api/v201602/product_template_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/proposal_line_item_service.rb +2 -2
- data/lib/dfp_api/v201602/proposal_line_item_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/proposal_service.rb +2 -2
- data/lib/dfp_api/v201602/proposal_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/publisher_query_language_service.rb +2 -2
- data/lib/dfp_api/v201602/publisher_query_language_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/rate_card_service.rb +2 -2
- data/lib/dfp_api/v201602/rate_card_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_line_item_report_service.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_line_item_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_order_report_service.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_order_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_row_service.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_row_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_service.rb +2 -2
- data/lib/dfp_api/v201602/reconciliation_report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/report_service.rb +2 -2
- data/lib/dfp_api/v201602/report_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/suggested_ad_unit_service.rb +2 -2
- data/lib/dfp_api/v201602/suggested_ad_unit_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/team_service.rb +2 -2
- data/lib/dfp_api/v201602/team_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/user_service.rb +2 -2
- data/lib/dfp_api/v201602/user_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/user_team_association_service.rb +2 -2
- data/lib/dfp_api/v201602/user_team_association_service_registry.rb +2 -2
- data/lib/dfp_api/v201602/workflow_request_service.rb +2 -2
- data/lib/dfp_api/v201602/workflow_request_service_registry.rb +2 -2
- data/lib/dfp_api/v201605/activity_group_service.rb +54 -0
- data/lib/dfp_api/v201605/activity_group_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/activity_service.rb +54 -0
- data/lib/dfp_api/v201605/activity_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/ad_exclusion_rule_service.rb +62 -0
- data/lib/dfp_api/v201605/ad_exclusion_rule_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/ad_rule_service.rb +62 -0
- data/lib/dfp_api/v201605/ad_rule_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/audience_segment_service.rb +62 -0
- data/lib/dfp_api/v201605/audience_segment_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/base_rate_service.rb +62 -0
- data/lib/dfp_api/v201605/base_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/company_service.rb +54 -0
- data/lib/dfp_api/v201605/company_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/contact_service.rb +54 -0
- data/lib/dfp_api/v201605/contact_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/content_bundle_service.rb +62 -0
- data/lib/dfp_api/v201605/content_bundle_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/content_metadata_key_hierarchy_service.rb +62 -0
- data/lib/dfp_api/v201605/content_metadata_key_hierarchy_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/content_service.rb +46 -0
- data/lib/dfp_api/v201605/content_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/creative_service.rb +54 -0
- data/lib/dfp_api/v201605/creative_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/creative_set_service.rb +54 -0
- data/lib/dfp_api/v201605/creative_set_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/creative_template_service.rb +38 -0
- data/lib/dfp_api/v201605/creative_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/creative_wrapper_service.rb +62 -0
- data/lib/dfp_api/v201605/creative_wrapper_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/custom_field_service.rb +86 -0
- data/lib/dfp_api/v201605/custom_field_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/custom_targeting_service.rb +94 -0
- data/lib/dfp_api/v201605/custom_targeting_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/exchange_rate_service.rb +62 -0
- data/lib/dfp_api/v201605/exchange_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/forecast_service.rb +62 -0
- data/lib/dfp_api/v201605/forecast_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/inventory_service.rb +70 -0
- data/lib/dfp_api/v201605/inventory_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/label_service.rb +62 -0
- data/lib/dfp_api/v201605/label_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/line_item_creative_association_service.rb +70 -0
- data/lib/dfp_api/v201605/line_item_creative_association_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/line_item_service.rb +62 -0
- data/lib/dfp_api/v201605/line_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/line_item_template_service.rb +38 -0
- data/lib/dfp_api/v201605/line_item_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/live_stream_event_service.rb +62 -0
- data/lib/dfp_api/v201605/live_stream_event_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/network_service.rb +62 -0
- data/lib/dfp_api/v201605/network_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/order_service.rb +62 -0
- data/lib/dfp_api/v201605/order_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/package_service.rb +62 -0
- data/lib/dfp_api/v201605/package_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/placement_service.rb +62 -0
- data/lib/dfp_api/v201605/placement_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/premium_rate_service.rb +54 -0
- data/lib/dfp_api/v201605/premium_rate_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/product_package_item_service.rb +62 -0
- data/lib/dfp_api/v201605/product_package_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/product_package_service.rb +62 -0
- data/lib/dfp_api/v201605/product_package_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/product_service.rb +54 -0
- data/lib/dfp_api/v201605/product_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/product_template_service.rb +62 -0
- data/lib/dfp_api/v201605/product_template_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/proposal_line_item_service.rb +62 -0
- data/lib/dfp_api/v201605/proposal_line_item_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/proposal_service.rb +62 -0
- data/lib/dfp_api/v201605/proposal_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/publisher_query_language_service.rb +38 -0
- data/lib/dfp_api/v201605/publisher_query_language_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/rate_card_service.rb +62 -0
- data/lib/dfp_api/v201605/rate_card_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/reconciliation_line_item_report_service.rb +46 -0
- data/lib/dfp_api/v201605/reconciliation_line_item_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/reconciliation_order_report_service.rb +54 -0
- data/lib/dfp_api/v201605/reconciliation_order_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/reconciliation_report_row_service.rb +46 -0
- data/lib/dfp_api/v201605/reconciliation_report_row_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/reconciliation_report_service.rb +46 -0
- data/lib/dfp_api/v201605/reconciliation_report_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/report_service.rb +62 -0
- data/lib/dfp_api/v201605/report_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/suggested_ad_unit_service.rb +46 -0
- data/lib/dfp_api/v201605/suggested_ad_unit_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/team_service.rb +54 -0
- data/lib/dfp_api/v201605/team_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/user_service.rb +78 -0
- data/lib/dfp_api/v201605/user_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/user_team_association_service.rb +62 -0
- data/lib/dfp_api/v201605/user_team_association_service_registry.rb +45 -0
- data/lib/dfp_api/v201605/workflow_request_service.rb +46 -0
- data/lib/dfp_api/v201605/workflow_request_service_registry.rb +45 -0
- data/lib/dfp_api/version.rb +1 -1
- metadata +97 -1
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:38.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'dfp_api/v201605/package_service_registry'
|
12
|
+
|
13
|
+
module DfpApi; module V201605; module PackageService
|
14
|
+
class PackageService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201605'
|
17
|
+
super(config, endpoint, namespace, :v201605)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_packages(*args, &block)
|
21
|
+
return execute_action('create_packages', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_packages_to_xml(*args)
|
25
|
+
return get_soap_xml('create_packages', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_packages_by_statement(*args, &block)
|
29
|
+
return execute_action('get_packages_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_packages_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_packages_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_package_action(*args, &block)
|
37
|
+
return execute_action('perform_package_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_package_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_package_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_packages(*args, &block)
|
45
|
+
return execute_action('update_packages', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_packages_to_xml(*args)
|
49
|
+
return get_soap_xml('update_packages', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return PackageServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return DfpApi::V201605::PackageService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:38.
|
9
|
+
|
10
|
+
require 'dfp_api/errors'
|
11
|
+
|
12
|
+
module DfpApi; module V201605; module PackageService
|
13
|
+
class PackageServiceRegistry
|
14
|
+
PACKAGESERVICE_METHODS = {:create_packages=>{:input=>[{:name=>:packages, :type=>"Package", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_packages_response", :fields=>[{:name=>:rval, :type=>"Package", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_packages_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_packages_by_statement_response", :fields=>[{:name=>:rval, :type=>"PackagePage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_package_action=>{:input=>[{:name=>:package_action, :type=>"PackageAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_package_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_packages=>{:input=>[{:name=>:packages, :type=>"Package", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_packages_response", :fields=>[{:name=>:rval, :type=>"Package", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
PACKAGESERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :AvailableBillingError=>{:fields=>[{:name=>:reason, :type=>"AvailableBillingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BillingError=>{:fields=>[{:name=>:reason, :type=>"BillingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CreateProposalLineItemsFromPackages=>{:fields=>[], :base=>"PackageAction"}, :CustomFieldValueError=>{:fields=>[{:name=>:reason, :type=>"CustomFieldValueError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CustomTargetingError=>{:fields=>[{:name=>:reason, :type=>"CustomTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :original_name=>"timeZoneID", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DayPartTargetingError=>{:fields=>[{:name=>:reason, :type=>"DayPartTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FrequencyCapError=>{:fields=>[{:name=>:reason, :type=>"FrequencyCapError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :GenericTargetingError=>{:fields=>[{:name=>:reason, :type=>"GenericTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :GeoTargetingError=>{:fields=>[{:name=>:reason, :type=>"GeoTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InventoryTargetingError=>{:fields=>[{:name=>:reason, :type=>"InventoryTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :LabelEntityAssociationError=>{:fields=>[{:name=>:reason, :type=>"LabelEntityAssociationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :PackageAction=>{:fields=>[], :abstract=>true}, :PackageActionError=>{:fields=>[{:name=>:reason, :type=>"PackageActionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Package=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:proposal_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:product_package_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_card_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:comments, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"PackageStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_date_time, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}, {:name=>:end_date_time, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}, {:name=>:last_modified_date_time, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}]}, :PackageError=>{:fields=>[{:name=>:reason, :type=>"PackageError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PackagePage=>{:fields=>[{:name=>:results, :type=>"Package", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PrecisionError=>{:fields=>[{:name=>:reason, :type=>"PrecisionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductError=>{:fields=>[{:name=>:reason, :type=>"ProductError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProposalError=>{:fields=>[{:name=>:reason, :type=>"ProposalError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProposalLineItemError=>{:fields=>[{:name=>:reason, :type=>"ProposalLineItemError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredNumberError=>{:fields=>[{:name=>:reason, :type=>"RequiredNumberError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ReservationDetailsError=>{:fields=>[{:name=>:reason, :type=>"ReservationDetailsError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TeamError=>{:fields=>[{:name=>:reason, :type=>"TeamError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :TechnologyTargetingError=>{:fields=>[{:name=>:reason, :type=>"TechnologyTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :TimeZoneError=>{:fields=>[{:name=>:reason, :type=>"TimeZoneError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :UserDomainTargetingError=>{:fields=>[{:name=>:reason, :type=>"UserDomainTargetingError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Value=>{:fields=>[], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"AvailableBillingError.Reason"=>{:fields=>[]}, :"BillingError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"CustomFieldValueError.Reason"=>{:fields=>[]}, :"CustomTargetingError.Reason"=>{:fields=>[]}, :"DayPartTargetingError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"FrequencyCapError.Reason"=>{:fields=>[]}, :"GenericTargetingError.Reason"=>{:fields=>[]}, :"GeoTargetingError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"InventoryTargetingError.Reason"=>{:fields=>[]}, :"LabelEntityAssociationError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"PackageActionError.Reason"=>{:fields=>[]}, :"PackageError.Reason"=>{:fields=>[]}, :PackageStatus=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PrecisionError.Reason"=>{:fields=>[]}, :"ProductError.Reason"=>{:fields=>[]}, :"ProposalError.Reason"=>{:fields=>[]}, :"ProposalLineItemError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"RequiredNumberError.Reason"=>{:fields=>[]}, :"ReservationDetailsError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}, :"TeamError.Reason"=>{:fields=>[]}, :"TechnologyTargetingError.Reason"=>{:fields=>[]}, :"TimeZoneError.Reason"=>{:fields=>[]}, :"UserDomainTargetingError.Reason"=>{:fields=>[]}}
|
16
|
+
PACKAGESERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return PACKAGESERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return PACKAGESERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return PACKAGESERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, PackageServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:40.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'dfp_api/v201605/placement_service_registry'
|
12
|
+
|
13
|
+
module DfpApi; module V201605; module PlacementService
|
14
|
+
class PlacementService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201605'
|
17
|
+
super(config, endpoint, namespace, :v201605)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_placements(*args, &block)
|
21
|
+
return execute_action('create_placements', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_placements_to_xml(*args)
|
25
|
+
return get_soap_xml('create_placements', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_placements_by_statement(*args, &block)
|
29
|
+
return execute_action('get_placements_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_placements_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_placements_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_placement_action(*args, &block)
|
37
|
+
return execute_action('perform_placement_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_placement_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_placement_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_placements(*args, &block)
|
45
|
+
return execute_action('update_placements', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_placements_to_xml(*args)
|
49
|
+
return get_soap_xml('update_placements', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return PlacementServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return DfpApi::V201605::PlacementService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:40.
|
9
|
+
|
10
|
+
require 'dfp_api/errors'
|
11
|
+
|
12
|
+
module DfpApi; module V201605; module PlacementService
|
13
|
+
class PlacementServiceRegistry
|
14
|
+
PLACEMENTSERVICE_METHODS = {:create_placements=>{:input=>[{:name=>:placements, :type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_placements_response", :fields=>[{:name=>:rval, :type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_placements_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_placements_by_statement_response", :fields=>[{:name=>:rval, :type=>"PlacementPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_placement_action=>{:input=>[{:name=>:placement_action, :type=>"PlacementAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_placement_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_placements=>{:input=>[{:name=>:placements, :type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_placements_response", :fields=>[{:name=>:rval, :type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
PLACEMENTSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ActivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ArchivePlacements=>{:fields=>[], :base=>"PlacementAction"}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :original_name=>"timeZoneID", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DeactivatePlacements=>{:fields=>[], :base=>"PlacementAction"}, :EntityChildrenLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityChildrenLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PlacementAction=>{:fields=>[], :abstract=>true}, :Placement=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:placement_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:status, :type=>"InventoryStatus", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_ad_sense_targeting_enabled, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:ad_sense_targeting_locale, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:targeted_ad_unit_ids, :type=>"string", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:last_modified_date_time, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"SiteTargetingInfo"}, :PlacementError=>{:fields=>[{:name=>:reason, :type=>"PlacementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PlacementPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"Placement", :min_occurs=>0, :max_occurs=>:unbounded}]}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RegExError=>{:fields=>[{:name=>:reason, :type=>"RegExError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SiteTargetingInfo=>{:fields=>[{:name=>:targeting_description, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:targeting_site_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:targeting_ad_location, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :TypeError=>{:fields=>[], :base=>"ApiError"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"EntityChildrenLimitReachedError.Reason"=>{:fields=>[]}, :"EntityLimitReachedError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :InventoryStatus=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"PlacementError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RegExError.Reason"=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
+
PLACEMENTSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return PLACEMENTSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return PLACEMENTSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return PLACEMENTSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, PlacementServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:41.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'dfp_api/v201605/premium_rate_service_registry'
|
12
|
+
|
13
|
+
module DfpApi; module V201605; module PremiumRateService
|
14
|
+
class PremiumRateService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201605'
|
17
|
+
super(config, endpoint, namespace, :v201605)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_premium_rates(*args, &block)
|
21
|
+
return execute_action('create_premium_rates', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_premium_rates_to_xml(*args)
|
25
|
+
return get_soap_xml('create_premium_rates', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_premium_rates_by_statement(*args, &block)
|
29
|
+
return execute_action('get_premium_rates_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_premium_rates_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_premium_rates_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def update_premium_rates(*args, &block)
|
37
|
+
return execute_action('update_premium_rates', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def update_premium_rates_to_xml(*args)
|
41
|
+
return get_soap_xml('update_premium_rates', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def get_service_registry()
|
47
|
+
return PremiumRateServiceRegistry
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_module()
|
51
|
+
return DfpApi::V201605::PremiumRateService
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:41.
|
9
|
+
|
10
|
+
require 'dfp_api/errors'
|
11
|
+
|
12
|
+
module DfpApi; module V201605; module PremiumRateService
|
13
|
+
class PremiumRateServiceRegistry
|
14
|
+
PREMIUMRATESERVICE_METHODS = {:create_premium_rates=>{:input=>[{:name=>:premium_rates, :type=>"PremiumRate", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_premium_rates_response", :fields=>[{:name=>:rval, :type=>"PremiumRate", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_premium_rates_by_statement=>{:input=>[{:name=>:filter_statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_premium_rates_by_statement_response", :fields=>[{:name=>:rval, :type=>"PremiumRatePage", :min_occurs=>0, :max_occurs=>1}]}}, :update_premium_rates=>{:input=>[{:name=>:premium_rates, :type=>"PremiumRate", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_premium_rates_response", :fields=>[{:name=>:rval, :type=>"PremiumRate", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
PREMIUMRATESERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :AdUnitPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :AudienceSegmentPremiumFeature=>{:fields=>[{:name=>:audience_segment_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"PremiumFeature"}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BandwidthPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :BrowserPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :BrowserLanguagePremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ContentBundlePremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :CustomTargetingPremiumFeature=>{:fields=>[{:name=>:custom_targeting_key_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:custom_targeting_value_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :base=>"PremiumFeature"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :original_name=>"timeZoneID", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DaypartPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :DeviceCapabilityPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :DeviceCategoryPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :DeviceManufacturerPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :EntityChildrenLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityChildrenLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FrequencyCapPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :GeographyPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :MobileCarrierPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NullError=>{:fields=>[{:name=>:reason, :type=>"NullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :OperatingSystemPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PlacementPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :PremiumFeature=>{:fields=>[], :abstract=>true}, :PremiumRate=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_card_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:pricing_method, :type=>"PricingMethod", :min_occurs=>0, :max_occurs=>1}, {:name=>:premium_feature, :type=>"PremiumFeature", :min_occurs=>0, :max_occurs=>1}, {:name=>:premium_rate_values, :type=>"PremiumRateValue", :min_occurs=>0, :max_occurs=>:unbounded}]}, :PremiumRateError=>{:fields=>[{:name=>:reason, :type=>"PremiumRateError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PremiumRatePage=>{:fields=>[{:name=>:results, :type=>"PremiumRate", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :PremiumRateValue=>{:fields=>[{:name=>:premium_rate_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:premium_feature, :type=>"PremiumFeature", :min_occurs=>0, :max_occurs=>1}, {:name=>:rate_type, :type=>"RateType", :min_occurs=>0, :max_occurs=>1}, {:name=>:adjustment_type, :type=>"PremiumAdjustmentType", :min_occurs=>0, :max_occurs=>1}, {:name=>:adjustment_size, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UnknownPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :UserDomainPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :Value=>{:fields=>[], :abstract=>true}, :VideoPositionPremiumFeature=>{:fields=>[], :base=>"PremiumFeature"}, :"ApiVersionError.Reason"=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"EntityChildrenLimitReachedError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"NullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :PremiumAdjustmentType=>{:fields=>[]}, :"PremiumRateError.Reason"=>{:fields=>[]}, :PricingMethod=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :RateType=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}}
|
16
|
+
PREMIUMRATESERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return PREMIUMRATESERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return PREMIUMRATESERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return PREMIUMRATESERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, PremiumRateServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:40.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'dfp_api/v201605/product_package_item_service_registry'
|
12
|
+
|
13
|
+
module DfpApi; module V201605; module ProductPackageItemService
|
14
|
+
class ProductPackageItemService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201605'
|
17
|
+
super(config, endpoint, namespace, :v201605)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_product_package_items(*args, &block)
|
21
|
+
return execute_action('create_product_package_items', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_product_package_items_to_xml(*args)
|
25
|
+
return get_soap_xml('create_product_package_items', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_product_package_items_by_statement(*args, &block)
|
29
|
+
return execute_action('get_product_package_items_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_product_package_items_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_product_package_items_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_product_package_item_action(*args, &block)
|
37
|
+
return execute_action('perform_product_package_item_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_product_package_item_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_product_package_item_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_product_package_items(*args, &block)
|
45
|
+
return execute_action('update_product_package_items', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_product_package_items_to_xml(*args)
|
49
|
+
return get_soap_xml('update_product_package_items', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return ProductPackageItemServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return DfpApi::V201605::ProductPackageItemService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:40.
|
9
|
+
|
10
|
+
require 'dfp_api/errors'
|
11
|
+
|
12
|
+
module DfpApi; module V201605; module ProductPackageItemService
|
13
|
+
class ProductPackageItemServiceRegistry
|
14
|
+
PRODUCTPACKAGEITEMSERVICE_METHODS = {:create_product_package_items=>{:input=>[{:name=>:product_package_items, :type=>"ProductPackageItem", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"create_product_package_items_response", :fields=>[{:name=>:rval, :type=>"ProductPackageItem", :min_occurs=>0, :max_occurs=>:unbounded}]}}, :get_product_package_items_by_statement=>{:input=>[{:name=>:statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_product_package_items_by_statement_response", :fields=>[{:name=>:rval, :type=>"ProductPackageItemPage", :min_occurs=>0, :max_occurs=>1}]}}, :perform_product_package_item_action=>{:input=>[{:name=>:product_package_item_action, :type=>"ProductPackageItemAction", :min_occurs=>0, :max_occurs=>1}, {:name=>:statement, :type=>"Statement", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"perform_product_package_item_action_response", :fields=>[{:name=>:rval, :type=>"UpdateResult", :min_occurs=>0, :max_occurs=>1}]}}, :update_product_package_items=>{:input=>[{:name=>:product_package_items, :type=>"ProductPackageItem", :min_occurs=>0, :max_occurs=>:unbounded}], :output=>{:name=>"update_product_package_items_response", :fields=>[{:name=>:rval, :type=>"ProductPackageItem", :min_occurs=>0, :max_occurs=>:unbounded}]}}}
|
15
|
+
PRODUCTPACKAGEITEMSERVICE_TYPES = {:ObjectValue=>{:fields=>[], :abstract=>true, :base=>"Value"}, :ApiError=>{:fields=>[{:name=>:field_path, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:error_string, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true}, :ApiException=>{:fields=>[{:name=>:errors, :type=>"ApiError", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"ApplicationException"}, :ApiVersionError=>{:fields=>[{:name=>:reason, :type=>"ApiVersionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ApplicationException=>{:fields=>[{:name=>:message, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :ArchiveProductPackageItems=>{:fields=>[], :base=>"ProductPackageItemAction"}, :AuthenticationError=>{:fields=>[{:name=>:reason, :type=>"AuthenticationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :BooleanValue=>{:fields=>[{:name=>:value, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :CollectionSizeError=>{:fields=>[{:name=>:reason, :type=>"CollectionSizeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :CommonError=>{:fields=>[{:name=>:reason, :type=>"CommonError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :Date=>{:fields=>[{:name=>:year, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:month, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:day, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :DateTime=>{:fields=>[{:name=>:date, :type=>"Date", :min_occurs=>0, :max_occurs=>1}, {:name=>:hour, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:minute, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:second, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:time_zone_id, :original_name=>"timeZoneID", :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :DateTimeValue=>{:fields=>[{:name=>:value, :type=>"DateTime", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :DateValue=>{:fields=>[{:name=>:value, :type=>"Date", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :EntityChildrenLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityChildrenLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :EntityLimitReachedError=>{:fields=>[{:name=>:reason, :type=>"EntityLimitReachedError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :FeatureError=>{:fields=>[{:name=>:reason, :type=>"FeatureError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :InternalApiError=>{:fields=>[{:name=>:reason, :type=>"InternalApiError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NotNullError=>{:fields=>[{:name=>:reason, :type=>"NotNullError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :NumberValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :ParseError=>{:fields=>[{:name=>:reason, :type=>"ParseError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PermissionError=>{:fields=>[{:name=>:reason, :type=>"PermissionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductError=>{:fields=>[{:name=>:reason, :type=>"ProductError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductPackageActionError=>{:fields=>[{:name=>:reason, :type=>"ProductPackageActionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductPackageItemAction=>{:fields=>[], :abstract=>true}, :ProductPackageItemActionError=>{:fields=>[{:name=>:reason, :type=>"ProductPackageItemActionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductPackageItem=>{:fields=>[{:name=>:id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:product_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:product_package_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:is_mandatory, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:archive_status, :type=>"ArchiveStatus", :min_occurs=>0, :max_occurs=>1}]}, :ProductPackageItemError=>{:fields=>[{:name=>:reason, :type=>"ProductPackageItemError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ProductPackageItemPage=>{:fields=>[{:name=>:total_result_set_size, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:results, :type=>"ProductPackageItem", :min_occurs=>0, :max_occurs=>:unbounded}]}, :ProductPackageRateCardAssociationError=>{:fields=>[{:name=>:reason, :type=>"ProductPackageRateCardAssociationError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageContextError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageContextError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :PublisherQueryLanguageSyntaxError=>{:fields=>[{:name=>:reason, :type=>"PublisherQueryLanguageSyntaxError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :QuotaError=>{:fields=>[{:name=>:reason, :type=>"QuotaError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RangeError=>{:fields=>[{:name=>:reason, :type=>"RangeError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredCollectionError=>{:fields=>[{:name=>:reason, :type=>"RequiredCollectionError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :RequiredError=>{:fields=>[{:name=>:reason, :type=>"RequiredError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :ServerError=>{:fields=>[{:name=>:reason, :type=>"ServerError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :SetValue=>{:fields=>[{:name=>:values, :type=>"Value", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"Value"}, :SoapRequestHeader=>{:fields=>[{:name=>:network_code, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:application_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}]}, :Statement=>{:fields=>[{:name=>:query, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:values, :type=>"String_ValueMapEntry", :min_occurs=>0, :max_occurs=>:unbounded}]}, :StatementError=>{:fields=>[{:name=>:reason, :type=>"StatementError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :StringLengthError=>{:fields=>[{:name=>:reason, :type=>"StringLengthError.Reason", :min_occurs=>0, :max_occurs=>1}], :base=>"ApiError"}, :String_ValueMapEntry=>{:fields=>[{:name=>:key, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:value, :type=>"Value", :min_occurs=>0, :max_occurs=>1}]}, :TextValue=>{:fields=>[{:name=>:value, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :base=>"Value"}, :UnArchiveProductPackageItems=>{:fields=>[], :base=>"ProductPackageItemAction"}, :UniqueError=>{:fields=>[], :base=>"ApiError"}, :UpdateResult=>{:fields=>[{:name=>:num_changes, :type=>"int", :min_occurs=>0, :max_occurs=>1}]}, :Value=>{:fields=>[], :abstract=>true}, :"ApiVersionError.Reason"=>{:fields=>[]}, :ArchiveStatus=>{:fields=>[]}, :"AuthenticationError.Reason"=>{:fields=>[]}, :"CollectionSizeError.Reason"=>{:fields=>[]}, :"CommonError.Reason"=>{:fields=>[]}, :"EntityChildrenLimitReachedError.Reason"=>{:fields=>[]}, :"EntityLimitReachedError.Reason"=>{:fields=>[]}, :"FeatureError.Reason"=>{:fields=>[]}, :"InternalApiError.Reason"=>{:fields=>[]}, :"NotNullError.Reason"=>{:fields=>[]}, :"ParseError.Reason"=>{:fields=>[]}, :"PermissionError.Reason"=>{:fields=>[]}, :"ProductError.Reason"=>{:fields=>[]}, :"ProductPackageActionError.Reason"=>{:fields=>[]}, :"ProductPackageItemActionError.Reason"=>{:fields=>[]}, :"ProductPackageItemError.Reason"=>{:fields=>[]}, :"ProductPackageRateCardAssociationError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageContextError.Reason"=>{:fields=>[]}, :"PublisherQueryLanguageSyntaxError.Reason"=>{:fields=>[]}, :"QuotaError.Reason"=>{:fields=>[]}, :"RangeError.Reason"=>{:fields=>[]}, :"RequiredCollectionError.Reason"=>{:fields=>[]}, :"RequiredError.Reason"=>{:fields=>[]}, :"ServerError.Reason"=>{:fields=>[]}, :"StatementError.Reason"=>{:fields=>[]}, :"StringLengthError.Reason"=>{:fields=>[]}}
|
16
|
+
PRODUCTPACKAGEITEMSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return PRODUCTPACKAGEITEMSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return PRODUCTPACKAGEITEMSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return PRODUCTPACKAGEITEMSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Base class for exceptions.
|
32
|
+
class ApplicationException < DfpApi::Errors::ApiException
|
33
|
+
attr_reader :message # string
|
34
|
+
end
|
35
|
+
|
36
|
+
# Exception class for holding a list of service errors.
|
37
|
+
class ApiException < ApplicationException
|
38
|
+
attr_reader :errors # ApiError
|
39
|
+
def initialize(exception_fault)
|
40
|
+
@array_fields ||= []
|
41
|
+
@array_fields << 'errors'
|
42
|
+
super(exception_fault, ProductPackageItemServiceRegistry)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end; end; end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2016, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.12.3 on 2016-05-23 15:37:39.
|
9
|
+
|
10
|
+
require 'ads_common/savon_service'
|
11
|
+
require 'dfp_api/v201605/product_package_service_registry'
|
12
|
+
|
13
|
+
module DfpApi; module V201605; module ProductPackageService
|
14
|
+
class ProductPackageService < AdsCommon::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://www.google.com/apis/ads/publisher/v201605'
|
17
|
+
super(config, endpoint, namespace, :v201605)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_product_packages(*args, &block)
|
21
|
+
return execute_action('create_product_packages', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_product_packages_to_xml(*args)
|
25
|
+
return get_soap_xml('create_product_packages', args)
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_product_packages_by_statement(*args, &block)
|
29
|
+
return execute_action('get_product_packages_by_statement', args, &block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_product_packages_by_statement_to_xml(*args)
|
33
|
+
return get_soap_xml('get_product_packages_by_statement', args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def perform_product_package_action(*args, &block)
|
37
|
+
return execute_action('perform_product_package_action', args, &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
def perform_product_package_action_to_xml(*args)
|
41
|
+
return get_soap_xml('perform_product_package_action', args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_product_packages(*args, &block)
|
45
|
+
return execute_action('update_product_packages', args, &block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def update_product_packages_to_xml(*args)
|
49
|
+
return get_soap_xml('update_product_packages', args)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def get_service_registry()
|
55
|
+
return ProductPackageServiceRegistry
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_module()
|
59
|
+
return DfpApi::V201605::ProductPackageService
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end; end; end
|