# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from pinterestsdk.models.ad_group_common import AdGroupCommon

class TestAdGroupCommon(unittest.TestCase):
    """AdGroupCommon unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> AdGroupCommon:
        """Test AdGroupCommon
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `AdGroupCommon`
        """
        model = AdGroupCommon()
        if include_optional:
            return AdGroupCommon(
                auto_targeting_enabled = True,
                bid_in_micro_currency = 5000000,
                bid_strategy_type = 'MAX_BID',
                billable_event = 'CLICKTHROUGH',
                budget_in_micro_currency = 5000000,
                budget_type = 'DAILY',
                campaign_id = '626736533506',
                end_time = 5705424000,
                is_creative_optimization = True,
                lifetime_frequency_cap = 100,
                name = 'Ad Group For Pin: 687195905986',
                optimization_goal_metadata = pinterestsdk.models.optimization_goal_metadata.OptimizationGoalMetadata(
                    conversion_tag_v3_goal_metadata = pinterestsdk.models.optimization_goal_metadata_conversion_tag_v3_goal_metadata.OptimizationGoalMetadata_conversion_tag_v3_goal_metadata(
                        attribution_windows = pinterestsdk.models.optimization_goal_metadata_conversion_tag_v3_goal_metadata_attribution_windows.OptimizationGoalMetadata_conversion_tag_v3_goal_metadata_attribution_windows(
                            click_window_days = 56, 
                            engagement_window_days = 56, 
                            view_window_days = 56, ), 
                        conversion_event = 'PAGE_VISIT', 
                        conversion_tag_id = '4', 
                        cpa_goal_value_in_micro_currency = '4', 
                        is_roas_optimized = True, 
                        learning_mode_type = 'ACTIVE', 
                        reporting_event = 'INITIATE_CHECKOUT', ), 
                    frequency_goal_metadata = pinterestsdk.models.optimization_goal_metadata_frequency_goal_metadata.OptimizationGoalMetadata_frequency_goal_metadata(
                        frequency = 2, 
                        timerange = 'DAY', ), 
                    scrollup_goal_metadata = pinterestsdk.models.optimization_goal_metadata_scrollup_goal_metadata.OptimizationGoalMetadata_scrollup_goal_metadata(
                        scrollup_goal_value_in_micro_currency = '4', ), ),
                pacing_delivery_type = 'STANDARD',
                placement_group = 'ALL',
                promotion_application_level = 'ITEM',
                promotion_id = '0',
                start_time = 5686848000,
                status = 'ACTIVE',
                targeting_spec = pinterestsdk.models.targeting_spec.TargetingSpec(
                    age_bucket = ["35-44","50-54"], 
                    apptype = ["ipad","iphone"], 
                    audience_exclude = [
                        '4'
                        ], 
                    audience_include = [
                        '4'
                        ], 
                    gender = [
                        'unknown'
                        ], 
                    geo = [
                        ''
                        ], 
                    interest = [
                        ''
                        ], 
                    locale = [
                        ''
                        ], 
                    location = [
                        ''
                        ], 
                    maximum_age = '65+', 
                    minimum_age = '18', 
                    shopping_retargeting = [
                        {"lookback_window":30,"exclusion_window":14,"tag_types":[0,6]}
                        ], 
                    targeting_strategy = [
                        'CHOOSE_YOUR_OWN'
                        ], ),
                targeting_template_ids = [
                    '643'
                    ],
                tracking_urls = {"impression":["URL1","URL2"],"click":["URL1","URL2"],"engagement":["URL1","URL2"],"buyable_button":["URL1","URL2"],"audience_verification":["URL1","URL2"]}
            )
        else:
            return AdGroupCommon(
        )
        """

    def testAdGroupCommon(self):
        """Test AdGroupCommon"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

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