# 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.ad_group_criterion_service_mutate_response import AdGroupCriterionServiceMutateResponse  # noqa: E501
from yahoo_search_api.rest import ApiException

class TestAdGroupCriterionServiceMutateResponse(unittest.TestCase):
    """AdGroupCriterionServiceMutateResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test AdGroupCriterionServiceMutateResponse
            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.ad_group_criterion_service_mutate_response.AdGroupCriterionServiceMutateResponse()  # noqa: E501
        if include_optional :
            return AdGroupCriterionServiceMutateResponse(
                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', )
                            ], )
                    ], 
                rid = '0', 
                rval = yahoo_search_api.models.ad_group_criterion_service_return_value.AdGroupCriterionServiceReturnValue(
                    values = [
                        yahoo_search_api.models.ad_group_criterion_service_value.AdGroupCriterionServiceValue(
                            ad_group_criterion = yahoo_search_api.models.ad_group_criterion.AdGroupCriterion(
                                account_id = 56, 
                                ad_group_id = 56, 
                                ad_group_name = '0', 
                                ad_group_track_id = 56, 
                                biddable_ad_group_criterion = yahoo_search_api.models.ad_group_criterion_service_biddable_ad_group_criterion.AdGroupCriterionServiceBiddableAdGroupCriterion(
                                    additional_advanced_mobile_urls = yahoo_search_api.models.ad_group_criterion_service_additional_advanced_mobile_urls.AdGroupCriterionServiceAdditionalAdvancedMobileUrls(
                                        additional_advanced_mobile_url = [
                                            yahoo_search_api.models.ad_group_criterion_service_additional_url.AdGroupCriterionServiceAdditionalUrl(
                                                disapproval_reason_codes = [
                                                    '0'
                                                    ], 
                                                review_url = '0', 
                                                url = '0', )
                                            ], 
                                        is_remove = 'TRUE', ), 
                                    additional_advanced_urls = yahoo_search_api.models.ad_group_criterion_service_additional_advanced_urls.AdGroupCriterionServiceAdditionalAdvancedUrls(
                                        additional_advanced_url = [
                                            yahoo_search_api.models.ad_group_criterion_service_additional_url.AdGroupCriterionServiceAdditionalUrl(
                                                review_url = '0', 
                                                url = '0', )
                                            ], ), 
                                    advanced_mobile_url = '0', 
                                    advanced_url = '0', 
                                    approval_status = 'APPROVED', 
                                    bid = yahoo_search_api.models.ad_group_criterion_service_bid.AdGroupCriterionServiceBid(
                                        ad_group_max_cpc = 56, 
                                        bid_source = 'ADGROUP', 
                                        keyword_max_cpc = 56, 
                                        max_cpc = 56, ), 
                                    custom_parameters = yahoo_search_api.models.ad_group_criterion_service_custom_parameters.AdGroupCriterionServiceCustomParameters(
                                        parameters = [
                                            yahoo_search_api.models.ad_group_criterion_service_custom_parameter.AdGroupCriterionServiceCustomParameter(
                                                key = '0', 
                                                value = '0', )
                                            ], ), 
                                    destination_url = '0', 
                                    disapproval_reason_codes = [
                                        '0'
                                        ], 
                                    review_advanced_mobile_url = '0', 
                                    review_advanced_url = '0', 
                                    review_custom_parameters = yahoo_search_api.models.ad_group_criterion_service_custom_parameters.AdGroupCriterionServiceCustomParameters(), 
                                    review_destination_url = '0', 
                                    review_tracking_url = '0', 
                                    tracking_url = '0', 
                                    user_status = 'ACTIVE', ), 
                                campaign_id = 56, 
                                campaign_name = '0', 
                                campaign_track_id = 56, 
                                criterion = yahoo_search_api.models.ad_group_criterion_service_criterion.AdGroupCriterionServiceCriterion(
                                    criterion_id = 56, 
                                    criterion_track_id = 56, 
                                    criterion_type = 'KEYWORD', 
                                    keyword = yahoo_search_api.models.ad_group_criterion_service_keyword.AdGroupCriterionServiceKeyword(
                                        keyword_match_type = 'EXACT', 
                                        text = '0', ), ), 
                                labels = [
                                    yahoo_search_api.models.ad_group_criterion_service_label.AdGroupCriterionServiceLabel(
                                        color = '0', 
                                        description = '0', 
                                        label_id = 56, 
                                        label_name = '0', )
                                    ], 
                                use = 'BIDDABLE', 
                                trademark_status = 'NO_RESTRICTION', 
                                invalided_trademarks = [
                                    '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 AdGroupCriterionServiceMutateResponse(
        )

    def testAdGroupCriterionServiceMutateResponse(self):
        """Test AdGroupCriterionServiceMutateResponse"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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