# 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


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class AdsAnalyticsAdGroupTargetingType(str, Enum):
    """
    Reporting targeting type for ad groups
    """

    """
    allowed enum values
    """
    KEYWORD = 'KEYWORD'
    APPTYPE = 'APPTYPE'
    GENDER = 'GENDER'
    LOCATION = 'LOCATION'
    PLACEMENT = 'PLACEMENT'
    COUNTRY = 'COUNTRY'
    TARGETED_INTEREST = 'TARGETED_INTEREST'
    PINNER_INTEREST = 'PINNER_INTEREST'
    AUDIENCE_INCLUDE = 'AUDIENCE_INCLUDE'
    GEO = 'GEO'
    AGE_BUCKET = 'AGE_BUCKET'
    REGION = 'REGION'
    AGE_BUCKET_AND_GENDER = 'AGE_BUCKET_AND_GENDER'
    CREATIVE_ENHANCEMENTS = 'CREATIVE_ENHANCEMENTS'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of AdsAnalyticsAdGroupTargetingType from a JSON string"""
        return cls(json.loads(json_str))


