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

class TestConversionTracker(unittest.TestCase):
    """ConversionTracker unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test ConversionTracker
            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.conversion_tracker.ConversionTracker()  # noqa: E501
        if include_optional :
            return ConversionTracker(
                account_id = 56, 
                all_conversion_value = '0', 
                all_conversions = 56, 
                app_conversion = yahoo_search_api.models.conversion_tracker_service_app_conversion.ConversionTrackerServiceAppConversion(
                    app_conversion_type = 'DOWNLOAD', 
                    app_id = '0', 
                    app_platform = 'ANDROID_MARKET', 
                    app_postback_url = yahoo_search_api.models.conversion_tracker_service_app_postback_url.ConversionTrackerServiceAppPostbackUrl(
                        app_postback_url_clear_flag = 'TRUE', 
                        url = '0', ), 
                    snippet_id = 56, 
                    snippet_label = '0', ), 
                app_link_conversion = yahoo_search_api.models.conversion_tracker_service_app_link_conversion.ConversionTrackerServiceAppLinkConversion(
                    app_vendor_id = '0', 
                    app_id = '0', 
                    app_link_platform = 'ANDROID', 
                    app_event_type = '0', 
                    snippet = '0', 
                    advanced_snippet = '0', ), 
                category = 'DEFAULT', 
                conversion_counting_type = 'ONE_PER_CLICK', 
                conversion_tracker_id = 56, 
                conversion_tracker_track_id = 56, 
                conversion_tracker_name = '0', 
                conversion_tracker_type = 'WEB_CONVERSION', 
                conversion_value = '0', 
                conversions = 56, 
                exclude_from_bidding = 'TRUE', 
                measurement_period = 56, 
                most_recent_conversion_date = '0', 
                status = 'ENABLED', 
                user_revenue_value = '0', 
                web_conversion = yahoo_search_api.models.conversion_tracker_service_web_conversion.ConversionTrackerServiceWebConversion(
                    markup_language = 'HTML', 
                    snippet = '0', 
                    advanced_snippet = '0', 
                    tracking_code_type = 'WEBPAGE', )
            )
        else :
            return ConversionTracker(
        )

    def testConversionTracker(self):
        """Test ConversionTracker"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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