# coding: utf-8

"""
    Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference

    <div lang=\"ja\">Yahoo!広告 検索広告 APIのWebサービスについて説明します。</div> <div lang=\"en\">Search Ads API Web Services supported in Yahoo! JAPAN Ads API.</div> <div><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v6/Route.yaml\">OpenAPI Specification</a></div> <div lang=\"ja\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja\">Best Practice</a></div> <div lang=\"en\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en\">Best Practice</a></div>   # noqa: E501

    The version of the OpenAPI document: v6
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import yahoo_search_api
from yahoo_search_api.models.bidding_strategy_service_return_value import BiddingStrategyServiceReturnValue  # noqa: E501
from yahoo_search_api.rest import ApiException

class TestBiddingStrategyServiceReturnValue(unittest.TestCase):
    """BiddingStrategyServiceReturnValue unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test BiddingStrategyServiceReturnValue
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = yahoo_search_api.models.bidding_strategy_service_return_value.BiddingStrategyServiceReturnValue()  # noqa: E501
        if include_optional :
            return BiddingStrategyServiceReturnValue(
                values = [
                    yahoo_search_api.models.bidding_strategy_service_value.BiddingStrategyServiceValue(
                        bidding_strategy = yahoo_search_api.models.bidding_strategy.BiddingStrategy(
                            account_id = 56, 
                            bidding_scheme = yahoo_search_api.models.bidding_strategy_service_bidding_scheme.BiddingStrategyServiceBiddingScheme(
                                target_cpa_bidding_scheme = yahoo_search_api.models.bidding_strategy_service_target_cpa_bidding_scheme.BiddingStrategyServiceTargetCpaBiddingScheme(
                                    bid_ceiling = 56, 
                                    bid_floor = 56, 
                                    target_cpa = 56, ), 
                                target_roas_bidding_scheme = yahoo_search_api.models.bidding_strategy_service_target_roas_bidding_scheme.BiddingStrategyServiceTargetRoasBiddingScheme(
                                    bid_ceiling = 56, 
                                    bid_floor = 56, 
                                    target_roas = 1.337, ), 
                                target_spend_bidding_scheme = yahoo_search_api.models.bidding_strategy_service_target_spend_bidding_scheme.BiddingStrategyServiceTargetSpendBiddingScheme(
                                    bid_ceiling = 56, ), 
                                target_impression_share_scheme = yahoo_search_api.models.bidding_strategy_service_target_impression_share_scheme.BiddingStrategyServiceTargetImpressionShareScheme(
                                    location = 'ANYWHERE_ON_PAGE', 
                                    bid_ceiling = 56, 
                                    target_impression_share = 56, ), 
                                type = 'TARGET_ROAS', ), 
                            bidding_strategy_id = 56, 
                            bidding_strategy_name = '0', ), 
                        errors = [
                            yahoo_search_api.models.error.Error(
                                code = '0', 
                                message = '0', 
                                details = [
                                    yahoo_search_api.models.error_detail.ErrorDetail(
                                        request_key = '0', 
                                        request_value = '0', )
                                    ], )
                            ], 
                        operation_succeeded = True, )
                    ]
            )
        else :
            return BiddingStrategyServiceReturnValue(
        )

    def testBiddingStrategyServiceReturnValue(self):
        """Test BiddingStrategyServiceReturnValue"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
