def __init__(self, type=None, template=None, custom_template=None, data=None, body=None, local_vars_configuration=None): # noqa: E501 """Content - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._type = None self._template = None self._custom_template = None self._data = None self._body = None self.discriminator = None if type is not None: self.type = type if template is not None: self.template = template if custom_template is not None: self.custom_template = custom_template if data is not None: self.data = data if body is not None: self.body = body
def __init__(self, price=None, clear_price=None, revenue=None, rate_type=None, e_cpm=None, local_vars_configuration=None): # noqa: E501 """PricingData - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._price = None self._clear_price = None self._revenue = None self._rate_type = None self._e_cpm = None self.discriminator = None if price is not None: self.price = price if clear_price is not None: self.clear_price = clear_price if revenue is not None: self.revenue = revenue if rate_type is not None: self.rate_type = rate_type if e_cpm is not None: self.e_cpm = e_cpm
def __init__(self, network_id, protocol='https', host=None, path=None, api_key=None, logger_format=None, logger_file=None, site_id=None): host = f'{protocol}://e-{network_id}.adzerk.net' if host is None else host configuration = Configuration(host, api_key={'X-Adzerk-ApiKey': api_key}) if logger_format is not None: configuration.logger_format = logger_format if logger_file is not None: configuration.logger_file = logger_file api_client = ApiClient(configuration) api_client.set_default_header( 'X-Adzerk-Sdk-Version', f'adzerk-decision-sdk-python:{__version__}') if api_key is not None: api_client.set_default_header('X-Adzerk-ApiKey', api_key) self.__logger = logging.getLogger("adzerk_decision_sdk.client") if self.__logger.level == 0: self.__logger.setLevel(logging.DEBUG) restLogger = logging.getLogger("adzerk_decision_sdk.rest") if restLogger.level == 0: restLogger.setLevel(logging.DEBUG) self.decision_client = self._DecisionClient(network_id, site_id, self.__logger, configuration, api_client) self.user_db_client = self._UserDbClient(network_id, self.__logger, api_client) self.pixel_client = self._PixelClient(configuration, self.__logger)
def __init__(self, gdpr=None, local_vars_configuration=None): # noqa: E501 """RequestConsent - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._gdpr = None self.discriminator = None if gdpr is not None: self.gdpr = gdpr
def __init__(self, key=None, local_vars_configuration=None): # noqa: E501 """User - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._key = None self.discriminator = None if key is not None: self.key = key
def __init__(self, ad_id=None, creative_id=None, flight_id=None, campaign_id=None, priority_id=None, click_url=None, contents=None, impression_url=None, events=None, matched_points=None, pricing=None, local_vars_configuration=None): # noqa: E501 """Decision - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._ad_id = None self._creative_id = None self._flight_id = None self._campaign_id = None self._priority_id = None self._click_url = None self._contents = None self._impression_url = None self._events = None self._matched_points = None self._pricing = None self.discriminator = None if ad_id is not None: self.ad_id = ad_id if creative_id is not None: self.creative_id = creative_id if flight_id is not None: self.flight_id = flight_id if campaign_id is not None: self.campaign_id = campaign_id if priority_id is not None: self.priority_id = priority_id if click_url is not None: self.click_url = click_url if contents is not None: self.contents = contents if impression_url is not None: self.impression_url = impression_url if events is not None: self.events = events if matched_points is not None: self.matched_points = matched_points if pricing is not None: self.pricing = pricing
def __init__(self, div_name=None, network_id=None, site_id=None, ad_types=None, zone_ids=None, campaign_id=None, flight_id=None, ad_id=None, click_url=None, properties=None, event_ids=None, overrides=None, content_keys=None, count=None, proportionality=None, ecpm_partition=None, ecpm_partitions=None, event_multiplier=None, skip_selection=None, ad_query=None, local_vars_configuration=None): # noqa: E501 """Placement - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._div_name = None self._network_id = None self._site_id = None self._ad_types = None self._zone_ids = None self._campaign_id = None self._flight_id = None self._ad_id = None self._click_url = None self._properties = None self._event_ids = None self._overrides = None self._content_keys = None self._count = None self._proportionality = None self._ecpm_partition = None self._ecpm_partitions = None self._event_multiplier = None self._skip_selection = None self._ad_query = None self.discriminator = None if div_name is not None: self.div_name = div_name if network_id is not None: self.network_id = network_id if site_id is not None: self.site_id = site_id if ad_types is not None: self.ad_types = ad_types self.zone_ids = zone_ids self.campaign_id = campaign_id self.flight_id = flight_id self.ad_id = ad_id self.click_url = click_url self.properties = properties self.event_ids = event_ids self.overrides = overrides self.content_keys = content_keys self.count = count self.proportionality = proportionality self.ecpm_partition = ecpm_partition self.ecpm_partitions = ecpm_partitions self.event_multiplier = event_multiplier self.skip_selection = skip_selection self.ad_query = ad_query
def __init__(self, placements=None, user=None, keywords=None, url=None, referrer=None, ip=None, blocked_creatives=None, is_mobile=None, include_pricing_data=None, notrack=None, enable_bot_filtering=None, enable_user_dbip=None, consent=None, device_id=None, local_vars_configuration=None): # noqa: E501 """Request - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._placements = None self._user = None self._keywords = None self._url = None self._referrer = None self._ip = None self._blocked_creatives = None self._is_mobile = None self._include_pricing_data = None self._notrack = None self._enable_bot_filtering = None self._enable_user_dbip = None self._consent = None self._device_id = None self.discriminator = None self.placements = placements if user is not None: self.user = user self.keywords = keywords self.url = url self.referrer = referrer self.ip = ip self.blocked_creatives = blocked_creatives self.is_mobile = is_mobile self.include_pricing_data = include_pricing_data self.notrack = notrack self.enable_bot_filtering = enable_bot_filtering self.enable_user_dbip = enable_user_dbip self.consent = consent self.device_id = device_id
def __init__(self, id=None, url=None, local_vars_configuration=None): # noqa: E501 """Event - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self._url = None self.discriminator = None if id is not None: self.id = id if url is not None: self.url = url
def __init__(self, configuration=None, header_name=None, header_value=None, cookie=None, pool_threads=1): if configuration is None: configuration = Configuration.get_default_copy() self.configuration = configuration self.pool_threads = pool_threads self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation
def __init__(self, lat=None, lon=None, local_vars_configuration=None): # noqa: E501 """MatchedPoint - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._lat = None self._lon = None self.discriminator = None if lat is not None: self.lat = lat if lon is not None: self.lon = lon
def __init__(self, user_key=None, consent=None, local_vars_configuration=None): # noqa: E501 """ConsentRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._user_key = None self._consent = None self.discriminator = None if user_key is not None: self.user_key = user_key if consent is not None: self.consent = consent
def __init__(self, user=None, decisions=None, explain=None, local_vars_configuration=None): # noqa: E501 """DecisionResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._user = None self._decisions = None self._explain = None self.discriminator = None if user is not None: self.user = user if decisions is not None: self.decisions = decisions if explain is not None: self.explain = explain
def __init__(self, latitude=None, longitude=None, local_vars_configuration=None): # noqa: E501 """RequestLocation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._latitude = None self._longitude = None self.discriminator = None if latitude is not None: self.latitude = latitude if longitude is not None: self.longitude = longitude