From 0f7a0cb14c80de738b10f0b16a1d8a98aca09fca Mon Sep 17 00:00:00 2001 From: Sherif Nada Date: Fri, 12 Feb 2021 09:15:22 -0800 Subject: [PATCH] run it back --- .../fixtures/create_test_fixtures.py | 141 + .../sample_files/configured_catalog.json | 19858 ++++++++++++++-- .../configured_catalog_adsinsights.json | 1064 + .../source_facebook_marketing/client/api.py | 194 +- .../client/client.py | 18 +- .../schemas/ads_insights.json | 179 + .../schemas/ads_insights_age_and_gender.json | 186 + .../schemas/ads_insights_country.json | 185 + .../schemas/ads_insights_dma.json | 185 + .../ads_insights_platform_and_device.json | 388 + .../schemas/ads_insights_region.json | 185 + 11 files changed, 20332 insertions(+), 2251 deletions(-) create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/integration_tests/fixtures/create_test_fixtures.py create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog_adsinsights.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_age_and_gender.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_country.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_dma.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_platform_and_device.json create mode 100644 airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_region.json diff --git a/airbyte-integrations/connectors/source-facebook-marketing/integration_tests/fixtures/create_test_fixtures.py b/airbyte-integrations/connectors/source-facebook-marketing/integration_tests/fixtures/create_test_fixtures.py new file mode 100644 index 0000000000000..6c3877b640881 --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/integration_tests/fixtures/create_test_fixtures.py @@ -0,0 +1,141 @@ +from facebook_business.adobjects.ad import Ad +from facebook_business.adobjects.adaccount import AdAccount +from facebook_business.adobjects.adset import AdSet +from facebook_business.adobjects.campaign import Campaign +from facebook_business.api import FacebookAdsApi +from typing import List, Set +import json + +import pendulum + +REQUIRED_CONFIG_KEYS = ["access_token", "app_secret", "app_id", "ad_account_id"] + + +def get_missing_fields(expected_fields: Set[str], actual: Set[str]) -> List[str]: + return [f for f in expected_fields if f not in actual] + + +def read_credentials(path: str): + with open(path, 'r') as creds_json: + creds = json.load(creds_json) + missing_fields = get_missing_fields(REQUIRED_CONFIG_KEYS, set(creds.keys())) + if len(missing_fields) > 0: + raise Exception(f"Input config at {path} does not contain required config keys: {missing_fields}") + else: + return creds + + +def create_campaign(ad_account: AdAccount): + fields = [ + ] + params = { + 'name': 'My campaign', + 'objective': 'LINK_CLICKS', + 'status': 'ACTIVE', + 'special_ad_categories': [], + } + return ad_account.create_campaign(fields=fields, params=params) + + +def create_adset(ad_account: AdAccount, campaign_id): + print("campaign ID " + campaign_id) + params = { + 'name': 'My Adset', + 'lifetime_budget': '200000', + 'start_time': '2021-01-01T10:12:46-0800', + 'end_time': '2021-12-31T10:12:46-0800', + 'campaign_id': campaign_id, + 'bid_amount': '500', + 'billing_event': 'IMPRESSIONS', + 'optimization_goal': 'POST_ENGAGEMENT', + 'targeting': { + 'geo_locations': { + 'countries': ['US'], 'regions': [{'key': '4081'}], + 'cities': [{'key': '777934', 'radius': 10, 'distance_unit': 'mile'}] + }, + 'interests': [{'id': 6003139266461, 'name': 'Movies'}], + }, + 'status': 'ACTIVE', + } + + return ad_account.create_ad_set(fields=[], params=params) + + +def create_adcreative(ad_account: AdAccount): + # Uploaded a random image to FB, this is the ID + image_hash = "00dda74887ba52c3c8044cfa731a9776" + params = { + 'name': 'Sample Creative', + 'object_story_spec': { + 'page_id': '112704783733939', + 'link_data': { + 'image_hash': image_hash, + 'link': 'https://www.facebook.com/AirbyteHQ/', + 'message': 'try it out'} + }, + } + return ad_account.create_ad_creative(fields=[], params=params) + + +def create_ad(ad_account: AdAccount, adset_id, creative_id): + params = { + 'name': 'My test Ad', + 'adset_id': adset_id, + 'creative': {'creative_id': creative_id}, + 'status': 'PAUSED' + } + return ad_account.create_ad(fields=[], params=params) + + +def main(): + # Follows https://developers.facebook.com/docs/marketing-apis/get-started/ + + creds = read_credentials("secrets/fixtures_config.json") + app_id = creds["app_id"] + access_token = creds["access_token"] + ad_account_id = creds["ad_account_id"] + + FacebookAdsApi.init(app_id, access_token=access_token) + + ad_account = AdAccount(ad_account_id) + + # # create_campaign(ad_account) + # campaigns: List[Campaign] = ad_account.get_campaigns() + # print(f"CAMPAIGNS: {campaigns}") + # campaign_id = campaigns[0].get_id() + # + # # create_adset(ad_account, campaign_id) + # adsets: List[AdSet] = ad_account.get_ad_sets(fields=['start_time']) + # # adsets[0].api_update(params={'start_time': '2021-01-01T10:12:46-0800'}) + # print(f"ADSETS: {adsets}") + # adset_id = adsets[0].get_id() + # + # # create_adcreative(ad_account) + # adcreatives = ad_account.get_ad_creatives() + # adcreative_id = adcreatives[0].get_id() + # print(f"CREATIVES: {adcreatives}") + # + # # create_ad(ad_account, adset_id, adcreative_id) + # ads: List[Ad] = ad_account.get_ads() + # print(f"ADS: {ads}") + # + # + start_date = pendulum.parse("2021-02-01T00:00:00Z") + + print(start_date) + print(start_date) + params = { + "level": "ad", + "action_breakdowns": ["action_type", "action_target_id", "action_destination"], + "breakdowns": ["publisher_platform", "platform_position", "impression_device"], + "fields": ["clicks", "reach"], + "time_increment": 1, + "action_attribution_windows": ["1d_view"], + "time_ranges": [{"since": start_date.to_date_string(), "until": start_date.add(days=30).to_date_string()}], + } + print(params) + print(ad_account.get_insights(params=params)) + + +if __name__ == '__main__': + main() diff --git a/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog.json b/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog.json index 6d9d639f09645..66ca7902e5d0d 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog.json +++ b/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog.json @@ -4,28 +4,48 @@ "stream": { "name": "campaigns", "json_schema": { - "$schema": "http://json-schema.org/draft-07/schema#", "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "objective": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "account_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "effective_status": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "buying_type": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "spend_cap": { - "type": ["null", "number"] + "type": [ + "null", + "number" + ] }, "start_time": { "type": "string", @@ -41,18 +61,33 @@ "items": { "properties": { "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, - "type": ["null", "object"] + "type": [ + "null", + "object" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] } }, - "type": ["null", "object"] + "type": [ + "null", + "object" + ] }, "adlabels": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { "type": "object", "properties": { @@ -74,2034 +109,10521 @@ } } }, - "type": ["null", "object"] + "type": [ + "null", + "object" + ] }, - "supported_sync_modes": ["incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_time"] + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true }, - "sync_mode": "incremental", - "cursor_field": ["updated_time"] + "sync_mode": "incremental" }, { "stream": { "name": "adsets", "json_schema": { - "$schema": "http://json-schema.org/draft-07/schema#", - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "end_time": { - "type": ["null", "string"], + "type": [ + "null", + "string" + ], "format": "date-time" }, "promoted_object": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "custom_event_type": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "pixel_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "pixel_rule": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "page_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "object_store_url": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "application_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "product_set_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "offer_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "account_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "updated_time": { - "type": ["null", "string"], + "type": [ + "null", + "string" + ], "format": "date-time" }, "daily_budget": { - "type": ["null", "number"], - "maximum": 100000000000000000000000000000000, - "minimum": -100000000000000000000000000000000, - "multipleOf": 0.000001, + "type": [ + "null", + "number" + ], + "maximum": 1e+32, + "minimum": -1e+32, + "multipleOf": 1e-06, "exclusiveMaximum": true, "exclusiveMinimum": true }, "budget_remaining": { - "type": ["null", "number"], - "maximum": 100000000000000000000000000000000, - "minimum": -100000000000000000000000000000000, - "multipleOf": 0.000001, + "type": [ + "null", + "number" + ], + "maximum": 1e+32, + "minimum": -1e+32, + "multipleOf": 1e-06, "exclusiveMaximum": true, "exclusiveMinimum": true }, "effective_status": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "campaign_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "created_time": { - "type": ["null", "string"], + "type": [ + "null", + "string" + ], "format": "date-time" }, "start_time": { - "type": ["null", "string"], + "type": [ + "null", + "string" + ], "format": "date-time" }, "lifetime_budget": { - "type": ["null", "number"], - "maximum": 100000000000000000000000000000000, - "minimum": -100000000000000000000000000000000, - "multipleOf": 0.000001, + "type": [ + "null", + "number" + ], + "maximum": 1e+32, + "minimum": -1e+32, + "multipleOf": 1e-06, "exclusiveMaximum": true, "exclusiveMinimum": true }, "targeting": { - "$ref": "targeting.json" - }, - "bid_info": { - "type": ["null", "object"], - "properties": { - "CLICKS": { - "type": ["null", "integer"] - }, - "ACTIONS": { - "type": ["null", "integer"] - }, - "IMPRESSIONS": { - "type": ["null", "integer"] - }, - "REACH": { - "type": ["null", "integer"] - } - } - }, - "adlabels": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "created_time": { - "type": "string", - "format": "date-time" - }, - "updated_time": { - "type": "string", - "format": "date-time" - } - } - } - } - } - }, - "supported_sync_modes": ["incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_time"] - }, - "sync_mode": "incremental", - "cursor_field": ["updated_time"] - }, - { - "stream": { - "name": "adcreatives", - "json_schema": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "body": { - "type": ["null", "string"] - }, - "object_story_id": { - "type": ["null", "string"] - }, - "image_url": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "account_id": { - "type": ["null", "string"] - }, - "actor_id": { - "type": ["null", "string"] - }, - "adlabels": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created_time": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "updated_time": { - "type": "string", - "format": "date-time" - } - } - } - }, - "applink_treatment": { - "type": ["null", "string"] - }, - "call_to_action_type": { - "type": ["null", "string"] - }, - "effective_instagram_story_id": { - "type": ["null", "string"] - }, - "effective_object_story_id": { - "type": ["null", "string"] - }, - "title": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "image_crops": { - "properties": { - "100x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "100x72": { + "definitions": { + "id_name_pairs": { "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, - "191x100": { - "items": { - "items": { - "type": ["null", "integer"] + "targeting_fields": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x150": { - "items": { - "items": { - "type": ["null", "integer"] + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x500": { - "items": { - "items": { - "type": ["null", "integer"] + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "600x360": { - "items": { - "items": { - "type": ["null", "integer"] + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "90x160": { - "items": { - "items": { - "type": ["null", "integer"] + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - } - }, - "type": ["null", "object"] - }, - "instagram_actor_id": { - "type": ["null", "string"] - }, - "instagram_permalink_url": { - "type": ["null", "string"] - }, - "instagram_story_id": { - "type": ["null", "string"] - }, - "link_og_id": { - "type": ["null", "string"] - }, - "object_id": { - "type": ["null", "string"] - }, - "object_story_spec": { - "properties": { - "page_id": { - "type": ["null", "string"] - }, - "instagram_actor_id": { - "type": ["null", "string"] - }, - "link_data": { - "properties": { - "additional_image_index": { - "type": ["null", "integer"] + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "app_link_spec": { - "type": ["null", "object"], - "properties": { - "android": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "class": { - "type": "string" - }, - "package": { - "type": "string" - }, - "url": { - "type": "string" - } - } + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "ios": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "ipad": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } - } - }, - "iphone": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } } - } - }, - "attachment_style": { - "type": ["null", "string"] - }, - "branded_content_sponsor_page_id": { - "type": ["null", "string"] - }, - "branded_content_sponsor_relationship": { - "type": ["null", "string"] + }, + "type": [ + "null", + "array" + ] }, - "call_to_action": { - "properties": { - "value": { - "properties": { - "app_destination": { - "type": ["null", "string"] - }, - "app_link": { - "type": ["null", "string"] - }, - "application": { - "type": ["null", "string"] - }, - "event_id": { - "type": ["null", "string"] - }, - "lead_gen_form_id": { - "type": ["null", "string"] - }, - "link": { - "type": ["null", "string"] - }, - "link_caption": { - "type": ["null", "string"] - }, - "link_format": { - "type": ["null", "string"] - }, - "page": { - "type": ["null", "string"] - }, - "product_link": { - "type": ["null", "string"] - } + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "object"] - }, - "type": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } } }, - "type": ["null", "object"] - }, - "caption": { - "type": ["null", "string"] + "type": [ + "null", + "array" + ] }, - "child_attachments": { + "behaviors": { "items": { + "type": [ + "null", + "object" + ], "properties": { - "image_hash": { - "type": ["null", "string"] - }, - "link": { - "type": ["null", "string"] - }, - "call_to_action": { - "properties": { - "value": { - "properties": { - "app_destination": { - "type": ["null", "string"] - }, - "app_link": { - "type": ["null", "string"] - }, - "application": { - "type": ["null", "string"] - }, - "event_id": { - "type": ["null", "string"] - }, - "lead_gen_form_id": { - "type": ["null", "string"] - }, - "link": { - "type": ["null", "string"] - }, - "link_caption": { - "type": ["null", "string"] - }, - "link_format": { - "type": ["null", "string"] - }, - "page": { - "type": ["null", "string"] - }, - "product_link": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "caption": { - "type": ["null", "string"] - }, - "picture": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "image_crops": { - "properties": { - "100x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "100x72": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "191x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x150": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x500": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "600x360": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "90x160": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - } - }, - "type": ["null", "object"] - }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "static_card": { - "type": ["null", "boolean"] - }, - "video_id": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "object"] + } }, - "type": ["null", "array"] - }, - "multi_share_optimized": { - "type": ["null", "boolean"] + "type": [ + "null", + "array" + ] }, - "link": { - "type": ["null", "string"] + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "image_crops": { - "properties": { - "100x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "100x72": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "191x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "400x150": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "400x500": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "600x360": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "90x160": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } } }, - "type": ["null", "object"] + "type": [ + "null", + "array" + ] }, - "description": { - "type": ["null", "string"] + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } }, - "event_id": { - "type": ["null", "string"] + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "force_single_link": { - "type": ["null", "boolean"] + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "multi_share_end_card": { - "type": ["null", "boolean"] - }, - "message": { - "type": ["null", "string"] - }, - "image_hash": { - "type": ["null", "string"] - }, - "picture": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "offer_id": { - "type": ["null", "string"] - }, - "page_welcome_message": { - "type": ["null", "string"] - }, - "retailer_item_ids": { - "type": ["null", "array"], + "politics": { "items": { - "type": "string" + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + } + }, + "type": [ + "null", + "object" + ], + "properties": { + "messenger_positions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "locales": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "show_multiple_images": { - "type": ["null", "boolean"] } }, - "type": ["null", "object"] + "type": [ + "null", + "array" + ] }, - "photo_data": { - "type": ["null", "object"], + "instagram_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "audience_network_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "exclusions": { + "type": [ + "null", + "object" + ], "properties": { - "branded_content_sponsor_page_id": { - "type": ["null", "string"] - }, - "branded_content_sponsor_relationship": { - "type": ["null", "string"] + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "caption": { - "type": "string" + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" }, - "image_hash": { - "type": ["null", "string"] + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "page_welcome_message": { - "type": ["null", "string"] + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "url": { - "type": ["null", "string"] - } - } - }, - "template_data": { - "properties": { - "additional_image_index": { - "type": ["null", "integer"] + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "app_link_spec": { - "type": ["null", "object"], - "properties": { - "android": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "class": { - "type": "string" - }, - "package": { - "type": "string" - }, - "url": { - "type": "string" - } - } + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "ios": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "ipad": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "iphone": { - "type": ["null", "array"], - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } } - } + }, + "type": [ + "null", + "array" + ] }, - "attachment_style": { - "type": ["null", "string"] + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "branded_content_sponsor_page_id": { - "type": ["null", "string"] + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "branded_content_sponsor_relationship": { - "type": ["null", "string"] + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "call_to_action": { - "properties": { - "value": { - "properties": { - "app_destination": { - "type": ["null", "string"] - }, - "app_link": { - "type": ["null", "string"] - }, - "application": { - "type": ["null", "string"] - }, - "event_id": { - "type": ["null", "string"] - }, - "lead_gen_form_id": { - "type": ["null", "string"] - }, - "link": { - "type": ["null", "string"] - }, - "link_caption": { - "type": ["null", "string"] - }, - "link_format": { - "type": ["null", "string"] - }, - "page": { - "type": ["null", "string"] - }, - "product_link": { - "type": ["null", "string"] - } + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "object"] - }, - "type": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } } }, - "type": ["null", "object"] + "type": [ + "null", + "array" + ] }, - "caption": { - "type": ["null", "string"] + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "child_attachments": { + "income": { "items": { + "type": [ + "null", + "object" + ], "properties": { - "image_hash": { - "type": ["null", "string"] + "name": { + "type": [ + "null", + "string" + ] }, - "link": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "call_to_action": { - "properties": { - "value": { - "properties": { - "app_destination": { - "type": ["null", "string"] - }, - "app_link": { - "type": ["null", "string"] - }, - "application": { - "type": ["null", "string"] - }, - "event_id": { - "type": ["null", "string"] - }, - "lead_gen_form_id": { - "type": ["null", "string"] - }, - "link": { - "type": ["null", "string"] - }, - "link_caption": { - "type": ["null", "string"] - }, - "link_format": { - "type": ["null", "string"] - }, - "page": { - "type": ["null", "string"] - }, - "product_link": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "type": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "caption": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "picture": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "description": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "image_crops": { - "properties": { - "100x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "100x72": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "191x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x150": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "400x500": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "600x360": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "90x160": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - } - }, - "type": ["null", "object"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "static_card": { - "type": ["null", "boolean"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "geo_locations": { + "type": [ + "null", + "object" + ], + "properties": { + "regions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "video_id": { - "type": ["null", "string"] + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "object"] + } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, - "multi_share_optimized": { - "type": ["null", "boolean"] - }, - "link": { - "type": ["null", "string"] + "countries": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] }, - "image_crops": { - "properties": { - "100x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "type": ["null", "array"] - }, - "100x72": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "cities": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "191x100": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "distance_unit": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "400x150": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "region": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "400x500": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "name": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "600x360": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "country": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] - }, - "90x160": { - "items": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] + "region_id": { + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "radius": { + "type": [ + "null", + "integer" + ] + } } }, - "type": ["null", "object"] - }, - "description": { - "type": ["null", "string"] - }, - "event_id": { - "type": ["null", "string"] - }, - "force_single_link": { - "type": ["null", "boolean"] + "type": [ + "null", + "array" + ] }, - "multi_share_end_card": { - "type": ["null", "boolean"] - }, - "message": { - "type": ["null", "string"] - }, - "image_hash": { - "type": ["null", "string"] - }, - "picture": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] + "location_types": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] }, - "offer_id": { - "type": ["null", "string"] + "zips": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } }, - "page_welcome_message": { - "type": ["null", "string"] + "custom_locations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "address_string": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } }, - "retailer_item_ids": { - "type": ["null", "array"], + "country_groups": { + "type": [ + "null", + "array" + ], "items": { - "type": "string" + "type": [ + "null", + "string" + ] } }, - "show_multiple_images": { - "type": ["null", "boolean"] - } - }, - "type": ["null", "object"] - }, - "text_data": { - "type": ["null", "object"], - "properties": { - "message": { - "type": "string" + "geo-markets": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + } + } + } } } }, - "video_data": { - "type": ["null", "object"], + "excluded_geo_locations": { + "type": [ + "null", + "object" + ], "properties": { - "additional_image_index": { - "type": ["null", "integer"] + "regions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "branded_content_sponsor_page_id": { - "type": ["null", "string"] + "countries": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] }, - "branded_content_sponsor_relationship": { - "type": ["null", "string"] + "cities": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "region": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "region_id": { + "type": [ + "null", + "string" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + } + } + }, + "type": [ + "null", + "array" + ] }, - "call_to_action": { - "properties": { - "value": { + "location_types": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "zips": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "custom_locations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "address_string": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "country_groups": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "geo-markets": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_statuses": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "publisher_platforms": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "age_max": { + "type": [ + "null", + "integer" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "device_platforms": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "age_min": { + "type": [ + "null", + "integer" + ] + }, + "facebook_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "flexible_spec": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], "properties": { - "app_destination": { - "type": ["null", "string"] + "name": { + "type": [ + "null", + "string" + ] }, - "app_link": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "application": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "event_id": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "lead_gen_form_id": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "link": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "link_caption": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "link_format": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "page": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "product_link": { - "type": ["null", "string"] + "id": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "object"] + } }, - "type": { - "type": ["null", "string"] - } + "type": [ + "null", + "array" + ] }, - "type": ["null", "object"] - }, - "image_hash": { - "type": ["null", "string"] - }, - "image_url": { - "type": ["null", "string"] - }, - "link_description": { - "type": ["null", "string"] - }, - "message": { - "type": ["null", "string"] - }, - "offer_id": { - "type": ["null", "string"] - }, - "page_welcome_message": { - "type": ["null", "string"] - }, - "retailer_item_ids": { - "type": ["null", "array"], - "items": { - "type": "string" - } - }, - "targeting": { - "definitions": { - "id_name_pairs": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "array"] + } }, - "targeting_fields": { - "type": ["null", "object"], + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], "properties": { - "household_composition": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "name": { + "type": [ + "null", + "string" + ] }, - "home_type": { - "$ref$": "targeting.json#/definitions/id_name_pairs" + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "friends_of_connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "family_statuses": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "work_positions": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "education_majors": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "life_events": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "moms": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "custom_audiences": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "interests": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "behaviors": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "excluded_connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "user_adclusters": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "income": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "excluded_custom_audiences": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "work_employers": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "industries": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "net_worth": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "relationship_statuses": { - "type": ["null", "array"], - "items": { - "type": ["null", "integer"] - } + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "generation": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "home_ownership": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] }, - "politics": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] } } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] } }, - "type": ["null", "object"], - "properties": { - "messenger_positions": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } } }, - "locales": { - "items": { - "type": ["null", "integer"] - }, - "type": ["null", "array"] - }, - "connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "array"] - }, - "instagram_positions": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "audience_network_positions": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] + } }, - "exclusions": { - "type": ["null", "object"], + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], "properties": { - "household_composition": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "home_type": { - "$ref$": "targeting.json#/definitions/id_name_pairs" - }, - "friends_of_connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "family_statuses": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "work_positions": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "name": { + "type": [ + "null", + "string" + ] }, - "education_majors": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "life_events": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "moms": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "custom_audiences": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "interests": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "behaviors": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "excluded_connections": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "user_adclusters": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "income": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "excluded_custom_audiences": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "work_employers": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "industries": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "net_worth": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "relationship_statuses": { - "type": ["null", "array"], - "items": { - "type": ["null", "integer"] - } - }, - "generation": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "home_ownership": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "politics": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] + "id": { + "type": [ + "null", + "string" + ] } } }, - "interests": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "geo_locations": { - "type": ["null", "object"], - "properties": { - "regions": { - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "key": { - "type": ["null", "string"] - } - } - }, - "type": ["null", "array"] - }, - "countries": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "cities": { - "items": { - "type": ["null", "object"], - "properties": { - "key": { - "type": ["null", "string"] - }, - "distance_unit": { - "type": ["null", "string"] - }, - "region": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "region_id": { - "type": ["null", "string"] - }, - "radius": { - "type": ["null", "integer"] - } - } - }, - "type": ["null", "array"] - }, - "location_types": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "zips": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "country": { - "type": ["null", "string"] - }, - "key": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "primary_city_id": { - "type": ["null", "integer"] - }, - "region_id": { - "type": ["null", "integer"] - } - } - } - }, - "custom_locations": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "address_string": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "distance_unit": { - "type": ["null", "string"] - }, - "latitude": { - "type": ["null", "number"] - }, - "longitude": { - "type": ["null", "number"] - }, - "name": { - "type": ["null", "string"] - }, - "primary_city_id": { - "type": ["null", "integer"] - }, - "radius": { - "type": ["null", "integer"] - }, + "type": [ + "null", + "array" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_os": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "user_device": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_publisher_categories": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "genders": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "targeting_optimization": { + "type": [ + "null", + "string" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "office_type": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "app_install_state": { + "type": [ + "null", + "string" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interested_in": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "excluded_user_device": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "bid_info": { + "type": [ + "null", + "object" + ], + "properties": { + "CLICKS": { + "type": [ + "null", + "integer" + ] + }, + "ACTIONS": { + "type": [ + "null", + "integer" + ] + }, + "IMPRESSIONS": { + "type": [ + "null", + "integer" + ] + }, + "REACH": { + "type": [ + "null", + "integer" + ] + } + } + }, + "adlabels": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "created_time": { + "type": "string", + "format": "date-time" + }, + "updated_time": { + "type": "string", + "format": "date-time" + } + } + } + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "bid_type": { + "type": [ + "null", + "string" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "adlabels": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_time": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "updated_time": { + "type": "string", + "format": "date-time" + } + } + } + }, + "bid_amount": { + "type": [ + "null", + "integer" + ] + }, + "bid_info": { + "type": [ + "null", + "object" + ], + "properties": { + "CLICKS": { + "type": [ + "null", + "integer" + ] + }, + "ACTIONS": { + "type": [ + "null", + "integer" + ] + }, + "REACH": { + "type": [ + "null", + "integer" + ] + }, + "IMPRESSIONS": { + "type": [ + "null", + "integer" + ] + }, + "SOCIAL": { + "type": [ + "null", + "integer" + ] + } + } + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "creative": { + "type": [ + "null", + "object" + ], + "properties": { + "creative_id": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "updated_time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "created_time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "targeting": { + "definitions": { + "id_name_pairs": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "targeting_fields": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + } + }, + "type": [ + "null", + "object" + ], + "properties": { + "messenger_positions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "locales": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "instagram_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "audience_network_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "exclusions": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "geo_locations": { + "type": [ + "null", + "object" + ], + "properties": { + "regions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "countries": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "cities": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "region": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "region_id": { + "type": [ + "null", + "string" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "location_types": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "zips": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "custom_locations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "address_string": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "country_groups": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "geo-markets": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + }, + "excluded_geo_locations": { + "type": [ + "null", + "object" + ], + "properties": { + "regions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "countries": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "cities": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "region": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "region_id": { + "type": [ + "null", + "string" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "location_types": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "zips": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "custom_locations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "address_string": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "country_groups": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "geo-markets": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_statuses": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "publisher_platforms": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "age_max": { + "type": [ + "null", + "integer" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "device_platforms": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "age_min": { + "type": [ + "null", + "integer" + ] + }, + "facebook_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "flexible_spec": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_os": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "user_device": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_publisher_categories": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "genders": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "targeting_optimization": { + "type": [ + "null", + "string" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "office_type": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "app_install_state": { + "type": [ + "null", + "string" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interested_in": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "excluded_user_device": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "effective_status": { + "type": [ + "null", + "string" + ] + }, + "last_updated_by_app_id": { + "type": [ + "null", + "string" + ] + }, + "recommendations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "blame_field": { + "type": [ + "null", + "string" + ] + }, + "code": { + "type": "integer" + }, + "confidence": { + "type": "string" + }, + "importance": { + "type": "string" + }, + "message": { + "type": "string" + }, + "title": { + "type": "string" + } + } + } + }, + "source_ad_id": { + "type": [ + "null", + "string" + ] + }, + "tracking_specs": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "application": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "conversion_id": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "action.type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.wall": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "page": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "creative": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "dataset": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "fb_pixel": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "fb_pixel_event": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "leadgen": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "object": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "object.domain": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offer": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offer.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offsite_pixel": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "page.parent": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.object": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.object.wall": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "question": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "question.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "response": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "subtype": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + } + } + } + }, + "conversion_specs": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "application": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "conversion_id": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "action.type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.wall": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "page": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "creative": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "dataset": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "event_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "fb_pixel": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "fb_pixel_event": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "leadgen": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "object": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "object.domain": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offer": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offer.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "offsite_pixel": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "page.parent": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.object": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "post.object.wall": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "question": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "question.creator": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "response": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "subtype": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "adcreatives", + "json_schema": { + "properties": { + "body": { + "type": [ + "null", + "string" + ] + }, + "object_story_id": { + "type": [ + "null", + "string" + ] + }, + "image_url": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "actor_id": { + "type": [ + "null", + "string" + ] + }, + "adlabels": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "created_time": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "updated_time": { + "type": "string", + "format": "date-time" + } + } + } + }, + "applink_treatment": { + "type": [ + "null", + "string" + ] + }, + "call_to_action_type": { + "type": [ + "null", + "string" + ] + }, + "effective_instagram_story_id": { + "type": [ + "null", + "string" + ] + }, + "effective_object_story_id": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "image_crops": { + "properties": { + "100x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "100x72": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "191x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x150": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x500": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "600x360": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "90x160": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "instagram_actor_id": { + "type": [ + "null", + "string" + ] + }, + "instagram_permalink_url": { + "type": [ + "null", + "string" + ] + }, + "instagram_story_id": { + "type": [ + "null", + "string" + ] + }, + "link_og_id": { + "type": [ + "null", + "string" + ] + }, + "object_id": { + "type": [ + "null", + "string" + ] + }, + "object_story_spec": { + "properties": { + "page_id": { + "type": [ + "null", + "string" + ] + }, + "instagram_actor_id": { + "type": [ + "null", + "string" + ] + }, + "link_data": { + "properties": { + "additional_image_index": { + "type": [ + "null", + "integer" + ] + }, + "app_link_spec": { + "type": [ + "null", + "object" + ], + "properties": { + "android": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "class": { + "type": "string" + }, + "package": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "ios": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "ipad": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "iphone": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + } + } + }, + "attachment_style": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_page_id": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_relationship": { + "type": [ + "null", + "string" + ] + }, + "call_to_action": { + "properties": { + "value": { + "properties": { + "app_destination": { + "type": [ + "null", + "string" + ] + }, + "app_link": { + "type": [ + "null", + "string" + ] + }, + "application": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "lead_gen_form_id": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "link_caption": { + "type": [ + "null", + "string" + ] + }, + "link_format": { + "type": [ + "null", + "string" + ] + }, + "page": { + "type": [ + "null", + "string" + ] + }, + "product_link": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "caption": { + "type": [ + "null", + "string" + ] + }, + "child_attachments": { + "items": { + "properties": { + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "call_to_action": { + "properties": { + "value": { + "properties": { + "app_destination": { + "type": [ + "null", + "string" + ] + }, + "app_link": { + "type": [ + "null", + "string" + ] + }, + "application": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "lead_gen_form_id": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "link_caption": { + "type": [ + "null", + "string" + ] + }, + "link_format": { + "type": [ + "null", + "string" + ] + }, + "page": { + "type": [ + "null", + "string" + ] + }, + "product_link": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "caption": { + "type": [ + "null", + "string" + ] + }, + "picture": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "image_crops": { + "properties": { + "100x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "100x72": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "191x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x150": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x500": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "600x360": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "90x160": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "static_card": { + "type": [ + "null", + "boolean" + ] + }, + "video_id": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "multi_share_optimized": { + "type": [ + "null", + "boolean" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "image_crops": { + "properties": { + "100x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "100x72": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "191x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x150": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x500": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "600x360": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "90x160": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "force_single_link": { + "type": [ + "null", + "boolean" + ] + }, + "multi_share_end_card": { + "type": [ + "null", + "boolean" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "picture": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "offer_id": { + "type": [ + "null", + "string" + ] + }, + "page_welcome_message": { + "type": [ + "null", + "string" + ] + }, + "retailer_item_ids": { + "type": [ + "null", + "array" + ], + "items": { + "type": "string" + } + }, + "show_multiple_images": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "photo_data": { + "type": [ + "null", + "object" + ], + "properties": { + "branded_content_sponsor_page_id": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_relationship": { + "type": [ + "null", + "string" + ] + }, + "caption": { + "type": "string" + }, + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "page_welcome_message": { + "type": [ + "null", + "string" + ] + }, + "url": { + "type": [ + "null", + "string" + ] + } + } + }, + "template_data": { + "properties": { + "additional_image_index": { + "type": [ + "null", + "integer" + ] + }, + "app_link_spec": { + "type": [ + "null", + "object" + ], + "properties": { + "android": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "class": { + "type": "string" + }, + "package": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "ios": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "ipad": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "iphone": { + "type": [ + "null", + "array" + ], + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + } + } + }, + "attachment_style": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_page_id": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_relationship": { + "type": [ + "null", + "string" + ] + }, + "call_to_action": { + "properties": { + "value": { + "properties": { + "app_destination": { + "type": [ + "null", + "string" + ] + }, + "app_link": { + "type": [ + "null", + "string" + ] + }, + "application": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "lead_gen_form_id": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "link_caption": { + "type": [ + "null", + "string" + ] + }, + "link_format": { + "type": [ + "null", + "string" + ] + }, + "page": { + "type": [ + "null", + "string" + ] + }, + "product_link": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "caption": { + "type": [ + "null", + "string" + ] + }, + "child_attachments": { + "items": { + "properties": { + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "call_to_action": { + "properties": { + "value": { + "properties": { + "app_destination": { + "type": [ + "null", + "string" + ] + }, + "app_link": { + "type": [ + "null", + "string" + ] + }, + "application": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "lead_gen_form_id": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "link_caption": { + "type": [ + "null", + "string" + ] + }, + "link_format": { + "type": [ + "null", + "string" + ] + }, + "page": { + "type": [ + "null", + "string" + ] + }, + "product_link": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "caption": { + "type": [ + "null", + "string" + ] + }, + "picture": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "image_crops": { + "properties": { + "100x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "100x72": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "191x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x150": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x500": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "600x360": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "90x160": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "static_card": { + "type": [ + "null", + "boolean" + ] + }, + "video_id": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "multi_share_optimized": { + "type": [ + "null", + "boolean" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "image_crops": { + "properties": { + "100x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "100x72": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "191x100": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x150": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "400x500": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "600x360": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + }, + "90x160": { + "items": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "force_single_link": { + "type": [ + "null", + "boolean" + ] + }, + "multi_share_end_card": { + "type": [ + "null", + "boolean" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "picture": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "offer_id": { + "type": [ + "null", + "string" + ] + }, + "page_welcome_message": { + "type": [ + "null", + "string" + ] + }, + "retailer_item_ids": { + "type": [ + "null", + "array" + ], + "items": { + "type": "string" + } + }, + "show_multiple_images": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "text_data": { + "type": [ + "null", + "object" + ], + "properties": { + "message": { + "type": "string" + } + } + }, + "video_data": { + "type": [ + "null", + "object" + ], + "properties": { + "additional_image_index": { + "type": [ + "null", + "integer" + ] + }, + "branded_content_sponsor_page_id": { + "type": [ + "null", + "string" + ] + }, + "branded_content_sponsor_relationship": { + "type": [ + "null", + "string" + ] + }, + "call_to_action": { + "properties": { + "value": { + "properties": { + "app_destination": { + "type": [ + "null", + "string" + ] + }, + "app_link": { + "type": [ + "null", + "string" + ] + }, + "application": { + "type": [ + "null", + "string" + ] + }, + "event_id": { + "type": [ + "null", + "string" + ] + }, + "lead_gen_form_id": { + "type": [ + "null", + "string" + ] + }, + "link": { + "type": [ + "null", + "string" + ] + }, + "link_caption": { + "type": [ + "null", + "string" + ] + }, + "link_format": { + "type": [ + "null", + "string" + ] + }, + "page": { + "type": [ + "null", + "string" + ] + }, + "product_link": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "image_url": { + "type": [ + "null", + "string" + ] + }, + "link_description": { + "type": [ + "null", + "string" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "offer_id": { + "type": [ + "null", + "string" + ] + }, + "page_welcome_message": { + "type": [ + "null", + "string" + ] + }, + "retailer_item_ids": { + "type": [ + "null", + "array" + ], + "items": { + "type": "string" + } + }, + "targeting": { + "definitions": { + "id_name_pairs": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "targeting_fields": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + } + }, + "type": [ + "null", + "object" + ], + "properties": { + "messenger_positions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "locales": { + "items": { + "type": [ + "null", + "integer" + ] + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "instagram_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "audience_network_positions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "exclusions": { + "type": [ + "null", + "object" + ], + "properties": { + "household_composition": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_type": { + "$ref$": "targeting.json#/definitions/id_name_pairs" + }, + "friends_of_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "family_statuses": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_positions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "education_majors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "life_events": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "moms": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "behaviors": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_connections": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "user_adclusters": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "income": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "excluded_custom_audiences": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "work_employers": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "industries": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "net_worth": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "relationship_statuses": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + }, + "generation": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "home_ownership": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "politics": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + } + } + }, + "interests": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "geo_locations": { + "type": [ + "null", + "object" + ], + "properties": { + "regions": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "countries": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "cities": { + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "key": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "region": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "region_id": { + "type": [ + "null", + "string" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + } + } + }, + "type": [ + "null", + "array" + ] + }, + "location_types": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "zips": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "country": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "region_id": { + "type": [ + "null", + "integer" + ] + } + } + } + }, + "custom_locations": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "address_string": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "distance_unit": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "primary_city_id": { + "type": [ + "null", + "integer" + ] + }, + "radius": { + "type": [ + "null", + "integer" + ] + }, "region_id": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } } } }, "country_groups": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, "geo-markets": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "key": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } } @@ -2109,140 +10631,269 @@ } }, "excluded_geo_locations": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "regions": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "country": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "key": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "countries": { "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "cities": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "key": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "distance_unit": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "region": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "country": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "region_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "radius": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "location_types": { "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "zips": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "country": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "key": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "primary_city_id": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, "region_id": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } } } }, "custom_locations": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "address_string": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "country": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "distance_unit": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "latitude": { - "type": ["null", "number"] + "type": [ + "null", + "number" + ] }, "longitude": { - "type": ["null", "number"] + "type": [ + "null", + "number" + ] }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "primary_city_id": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, "radius": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, "region_id": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } } } }, "country_groups": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, "geo-markets": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "key": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } } @@ -2251,773 +10902,7658 @@ }, "work_positions": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "education_statuses": { "items": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "publisher_platforms": { "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "age_max": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, "custom_audiences": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "device_platforms": { "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "age_min": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] }, "facebook_positions": { "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "excluded_connections": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "flexible_spec": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "household_composition": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "home_type": { "$ref$": "targeting.json#/definitions/id_name_pairs" }, "friends_of_connections": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "family_statuses": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "work_positions": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "education_majors": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "life_events": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "moms": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "custom_audiences": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "interests": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "behaviors": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "connections": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "excluded_connections": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "user_adclusters": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "income": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "excluded_custom_audiences": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "work_employers": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "industries": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "net_worth": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "relationship_statuses": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } }, "generation": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "home_ownership": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "politics": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "friends_of_connections": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "user_os": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, "user_device": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, "excluded_custom_audiences": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "excluded_publisher_categories": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } }, "genders": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } }, "targeting_optimization": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "user_adclusters": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "generation": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "behaviors": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "moms": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "home_ownership": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "office_type": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "home_type": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "family_statuses": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "relationship_statuses": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } }, "industries": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "income": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "app_install_state": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "net_worth": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "politics": { "items": { - "type": ["null", "object"], + "type": [ + "null", + "object" + ], "properties": { "name": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } }, - "type": ["null", "array"] + "type": [ + "null", + "array" + ] }, "interested_in": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "integer"] + "type": [ + "null", + "integer" + ] } }, "excluded_user_device": { - "type": ["null", "array"], + "type": [ + "null", + "array" + ], "items": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] } } } }, "title": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] }, "video_id": { - "type": ["null", "string"] + "type": [ + "null", + "string" + ] + } + } + } + }, + "type": [ + "null", + "object" + ] + }, + "object_type": { + "type": [ + "null", + "string" + ] + }, + "object_url": { + "type": [ + "null", + "string" + ] + }, + "product_set_id": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "template_url": { + "type": [ + "null", + "string" + ] + }, + "template_url_spec": { + "type": [ + "null", + "object" + ], + "properties": { + "android": { + "type": [ + "null", + "object" + ], + "properties": { + "app_name": { + "type": "string" + }, + "package": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "config": { + "type": [ + "null", + "object" + ], + "properties": { + "app_id": { + "type": "string" + } + } + }, + "ios": { + "type": [ + "null", + "object" + ], + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "ipad": { + "type": [ + "null", + "object" + ], + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "iphone": { + "type": [ + "null", + "object" + ], + "properties": { + "app_name": { + "type": "string" + }, + "app_store_id": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "web": { + "type": [ + "null", + "object" + ], + "properties": { + "should_fallback": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "windows_phone": { + "type": [ + "null", + "object" + ], + "properties": { + "app_id": { + "type": "string" + }, + "app_name": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + } + }, + "thumbnail_url": { + "type": [ + "null", + "string" + ] + }, + "image_hash": { + "type": [ + "null", + "string" + ] + }, + "url_tags": { + "type": [ + "null", + "string" + ] + }, + "video_id": { + "type": [ + "null", + "string" + ] + }, + "link_url": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "supported_sync_modes": [ + "full_refresh" + ], + "source_defined_cursor": false + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + } + } + } + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights_age_and_gender", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + } + } + } + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ] + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ] + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "age": { + "type": [ + "null", + "integer", + "string" + ] + }, + "gender": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights_country", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + } + } + } + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights_region", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + } + } + } + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "region": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights_dma", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] } } } - }, - "type": ["null", "object"] - }, - "object_type": { - "type": ["null", "string"] + } + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "dma": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" + }, + { + "stream": { + "name": "ads_insights_platform_and_device", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } }, - "object_url": { - "type": ["null", "string"] + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } }, - "product_set_id": { - "type": ["null", "string"] + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } }, - "status": { - "type": ["null", "string"] + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } }, - "template_url": { - "type": ["null", "string"] + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } }, - "template_url_spec": { - "type": ["null", "object"], - "properties": { - "android": { - "type": ["null", "object"], - "properties": { - "app_name": { - "type": "string" - }, - "package": { - "type": "string" - }, - "url": { - "type": "string" - } + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] } - }, - "config": { - "type": ["null", "object"], - "properties": { - "app_id": { - "type": "string" - } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] } - }, - "ios": { - "type": ["null", "object"], - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] } - }, - "ipad": { - "type": ["null", "object"], - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] } } - }, - "iphone": { - "type": ["null", "object"], - "properties": { - "app_name": { - "type": "string" - }, - "app_store_id": { - "type": "string" - }, - "url": { - "type": "string" - } + } + } + }, + "impression_device": { + "type": [ + "null", + "string" + ] + }, + "platform_position": { + "type": [ + "null", + "string" + ] + }, + "publisher_platform": { + "type": [ + "null", + "string" + ] + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] } - }, - "web": { - "type": ["null", "object"], - "properties": { - "should_fallback": { - "type": "string" - }, - "url": { - "type": "string" - } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] } - }, - "windows_phone": { - "type": ["null", "object"], - "properties": { - "app_id": { - "type": "string" - }, - "app_name": { - "type": "string" - }, - "url": { - "type": "string" - } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] } } } }, - "thumbnail_url": { - "type": ["null", "string"] + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] }, - "image_hash": { - "type": ["null", "string"] + "spend": { + "type": [ + "null", + "number" + ] }, - "url_tags": { - "type": ["null", "string"] + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] }, - "video_id": { - "type": ["null", "string"] + "adset_name": { + "type": [ + "null", + "string" + ] }, - "link_url": { - "type": ["null", "string"] + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "placement": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] } - }, - "type": ["null", "object"] + } }, - "supported_sync_modes": ["full_refresh"] - } + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + }, + "sync_mode": "incremental" } ] } diff --git a/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog_adsinsights.json b/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog_adsinsights.json new file mode 100644 index 0000000000000..159cded1f6009 --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/sample_files/configured_catalog_adsinsights.json @@ -0,0 +1,1064 @@ +{ + "streams": [ + { + "stream": { + "name": "ads_insights_platform_and_device", + "json_schema": { + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "action_values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "outbound_clicks": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_30_sec_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p25_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p50_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p75_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_p100_watched_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "1d_click": { + "type": [ + "null", + "number" + ] + }, + "7d_click": { + "type": [ + "null", + "number" + ] + }, + "28d_click": { + "type": [ + "null", + "number" + ] + }, + "1d_view": { + "type": [ + "null", + "number" + ] + }, + "7d_view": { + "type": [ + "null", + "number" + ] + }, + "28d_view": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + } + } + }, + "video_play_curve_actions": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "action_type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "integer" + ] + } + } + } + } + }, + "impression_device": { + "type": [ + "null", + "string" + ] + }, + "platform_position": { + "type": [ + "null", + "string" + ] + }, + "publisher_platform": { + "type": [ + "null", + "string" + ] + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "placement": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } + }, + "supported_sync_modes": [ + "incremental" + ], + "source_defined_cursor": true + } + } + ] +} + diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/api.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/api.py index 77bbfa944150b..1d587c5526e35 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/api.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/api.py @@ -21,14 +21,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ - +import time from abc import ABC, abstractmethod from typing import Any, Iterator, Sequence import backoff import pendulum as pendulum from base_python.entrypoint import logger # FIXME (Eugene K): register logger as standard python logger -from facebook_business.exceptions import FacebookRequestError +from facebook_business.adobjects.adreportrun import AdReportRun +from facebook_business.exceptions import FacebookRequestError, FacebookBadObjectError from .common import retry_pattern @@ -225,82 +226,113 @@ def _get_campaigns(self, params): return self._api.account.get_campaigns(params={**params, **self._state_filter()}, fields=[self.state_pk]) -# -# FIXME: Disabled until we populate test account with AdsInsights data to test -# https://github.com/airbytehq/airbyte/issues/1709 -# -# class AdsInsightAPI(IncrementalStreamAPI): -# entity_prefix = "" -# state_pk = "date_start" -# -# ALL_ACTION_ATTRIBUTION_WINDOWS = [ -# "1d_click", -# "7d_click", -# "28d_click", -# "1d_view", -# "7d_view", -# "28d_view", -# ] -# -# ALL_ACTION_BREAKDOWNS = [ -# "action_type", -# "action_target_id", -# "action_destination", -# ] -# -# # Some automatic fields (primary-keys) cannot be used as 'fields' query params. -# INVALID_INSIGHT_FIELDS = [ -# "impression_device", -# "publisher_platform", -# "platform_position", -# "age", -# "gender", -# "country", -# "placement", -# "region", -# "dma", -# ] -# -# MAX_WAIT_TO_START_SECONDS = 2 * 60 -# MAX_WAIT_TO_FINISH_SECONDS = 30 * 60 -# MAX_ASYNC_SLEEP_SECONDS = 5 * 60 -# -# action_breakdowns = ALL_ACTION_BREAKDOWNS -# level = "ad" -# action_attribution_windows = ALL_ACTION_ATTRIBUTION_WINDOWS -# time_increment = 1 -# buffer_days = 28 -# -# def __init__(self, api, start_date, breakdowns=None): -# super().__init__(api=api) -# self.start_date = start_date -# self._state = start_date -# self.breakdowns = breakdowns -# -# def list(self, fields: Sequence[str] = None) -> Iterator[dict]: -# for params in self._params(fields=fields): -# for rec in self.state_filter(obj.export_all_data() for obj in self._get_insights(params)): -# yield rec -# -# def _params(self, fields: Sequence[str] = None) -> Iterator[dict]: -# buffered_start_date = self._state.subtract(days=self.buffer_days) -# end_date = pendulum.now() -# -# fields = list(set(fields) - set(self.INVALID_INSIGHT_FIELDS)) -# -# while buffered_start_date <= end_date: -# yield { -# "level": self.level, -# "action_breakdowns": self.action_breakdowns, -# "breakdowns": self.breakdowns, -# "limit": self.result_return_limit, -# "fields": fields, -# "time_increment": self.time_increment, -# "action_attribution_windows": self.action_attribution_windows, -# "time_ranges": [{"since": buffered_start_date.to_date_string(), "until": buffered_start_date.to_date_string()}], -# } -# buffered_start_date = buffered_start_date.add(days=1) -# -# @backoff_policy -# def _get_insights(self, params): -# return self._api.account.get_insights(params=params) +class JobTimeoutException(Exception): + pass + + +class AdsInsightAPI(IncrementalStreamAPI): + entity_prefix = "" + state_pk = "date_start" + + ALL_ACTION_ATTRIBUTION_WINDOWS = [ + "1d_click", + "7d_click", + "28d_click", + "1d_view", + "7d_view", + "28d_view", + ] + + ALL_ACTION_BREAKDOWNS = [ + "action_type", + "action_target_id", + "action_destination", + ] + + # Some automatic fields (primary-keys) cannot be used as 'fields' query params. + INVALID_INSIGHT_FIELDS = [ + "impression_device", + "publisher_platform", + "platform_position", + "age", + "gender", + "country", + "placement", + "region", + "dma", + ] + + MAX_WAIT_TO_START_SECONDS = 2 * 60 + MAX_WAIT_TO_FINISH_SECONDS = 30 * 60 + MAX_ASYNC_SLEEP_SECONDS = 5 * 60 + + action_breakdowns = ALL_ACTION_BREAKDOWNS + level = "ad" + action_attribution_windows = ALL_ACTION_ATTRIBUTION_WINDOWS + time_increment = 1 + buffer_days = 28 + + def __init__(self, api, start_date, breakdowns=None): + super().__init__(api=api) + self.start_date = start_date + self._state = start_date + self.breakdowns = breakdowns + + def list(self, fields: Sequence[str] = None) -> Iterator[dict]: + for params in self._params(fields=fields): + job = self._run_job_until_completion(params) + yield from self.state_filter(obj.export_all_data() for obj in job.get_result()) + + @retry_pattern(backoff.expo, (FacebookRequestError, JobTimeoutException, FacebookBadObjectError), max_tries=5, factor=4) + def _run_job_until_completion(self, params) -> AdReportRun: + # TODO parallelize running these jobs + job = self._get_insights(params) + logger.info(f"Created AdReportRun: {job} to sync insights with breakdown {self.breakdowns}") + start_time = pendulum.now() + sleep_seconds = 2 + while True: + job = job.api_get() + job_progress_pct = job['async_percent_completion'] + logger.info(f"ReportRunId {job['report_run_id']} is {job_progress_pct}% complete") + + if job['async_status'] == "Job Completed": + return job + + runtime_seconds = (pendulum.now() - start_time).in_seconds() + if runtime_seconds > self.MAX_WAIT_TO_START_SECONDS and job_progress_pct == 0: + raise JobTimeoutException( + f"AdReportRun {job} did not start after {runtime_seconds} seconds. This is an intermittent error which may be fixed by retrying the job. Aborting." + ) + elif runtime_seconds > self.MAX_WAIT_TO_FINISH_SECONDS: + raise JobTimeoutException( + f"AdReportRun {job} did not finish after {runtime_seconds} seconds. This is an intermittent error which may be fixed by retrying the job. Aborting." + ) + logger.info(f"Sleeping {sleep_seconds} seconds while waiting for AdReportRun: {job} to complete") + time.sleep(sleep_seconds) + if sleep_seconds < self.MAX_ASYNC_SLEEP_SECONDS: + sleep_seconds *= 2 + + def _params(self, fields: Sequence[str] = None) -> Iterator[dict]: + # Facebook freezes insight data 28 days after it was generated, which means that all data + # from the past 28 days may have changed since we last emitted it, so we retrieve it again. + buffered_start_date = self._state.subtract(days=self.buffer_days) + end_date = pendulum.now() + + fields = list(set(fields) - set(self.INVALID_INSIGHT_FIELDS)) + + while buffered_start_date <= end_date: + yield { + "level": self.level, + "action_breakdowns": self.action_breakdowns, + "breakdowns": self.breakdowns, + "limit": self.result_return_limit, + "fields": fields, + "time_increment": self.time_increment, + "action_attribution_windows": self.action_attribution_windows, + "time_ranges": [{"since": buffered_start_date.to_date_string(), "until": buffered_start_date.to_date_string()}], + } + buffered_start_date = buffered_start_date.add(days=1) + + @backoff_policy + def _get_insights(self, params) -> AdReportRun: + return self._api.account.get_insights(params=params, is_async=True) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/client.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/client.py index 09adcdacdbb47..2c982525b4753 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/client.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/client/client.py @@ -32,7 +32,7 @@ from facebook_business.adobjects import user as fb_user from facebook_business.exceptions import FacebookRequestError -from .api import AdCreativeAPI, AdsAPI, AdSetsAPI, CampaignAPI +from .api import AdCreativeAPI, AdsAPI, AdSetsAPI, CampaignAPI, AdsInsightAPI from .common import FacebookAPIException @@ -47,14 +47,14 @@ def __init__(self, account_id: str, access_token: str, start_date: str): "adsets": AdSetsAPI(self), "ads": AdsAPI(self), "adcreatives": AdCreativeAPI(self), - # "ads_insights": AdsInsightAPI(self, start_date=self._start_date), - # "ads_insights_age_and_gender": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["age", "gender"]), - # "ads_insights_country": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["country"]), - # "ads_insights_region": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["region"]), - # "ads_insights_dma": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["dma"]), - # "ads_insights_platform_and_device": AdsInsightAPI( - # self, start_date=self._start_date, breakdowns=["publisher_platform", "platform_position", "impression_device"] - # ), + "ads_insights": AdsInsightAPI(self, start_date=self._start_date), + "ads_insights_age_and_gender": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["age", "gender"]), + "ads_insights_country": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["country"]), + "ads_insights_region": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["region"]), + "ads_insights_dma": AdsInsightAPI(self, start_date=self._start_date, breakdowns=["dma"]), + "ads_insights_platform_and_device": AdsInsightAPI( + self, start_date=self._start_date, breakdowns=["publisher_platform", "platform_position", "impression_device"] + ), } super().__init__() diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights.json new file mode 100644 index 0000000000000..9e5ea7186e90f --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights.json @@ -0,0 +1,179 @@ +{ + "type": ["null", "object"], + "properties": { + "unique_actions": { "$ref": "ads_action_stats.json" }, + "actions": { "$ref": "ads_action_stats.json" }, + "action_values": { "$ref": "ads_action_stats.json" }, + "outbound_clicks": { "$ref": "ads_action_stats.json" }, + "video_30_sec_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p25_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p50_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p75_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p100_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_play_curve_actions": { "$ref": "ads_histogram_stats.json" }, + "clicks": { + "type": ["null", "integer"] + }, + "date_stop": { + "type": ["null", "string"], + "format": "date-time" + }, + "ad_id": { + "type": ["null", "string"] + }, + "website_ctr": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "number"] + }, + "action_destination": { + "type": ["null", "string"] + }, + "action_target_id": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": ["null", "number"] + }, + "adset_id": { + "type": ["null", "string"] + }, + "frequency": { + "type": ["null", "number"] + }, + "account_name": { + "type": ["null", "string"] + }, + "canvas_avg_view_time": { + "type": ["null", "number"] + }, + "unique_inline_link_clicks": { + "type": ["null", "integer"] + }, + "cost_per_unique_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "inline_post_engagement": { + "type": ["null", "integer"] + }, + "campaign_name": { + "type": ["null", "string"] + }, + "inline_link_clicks": { + "type": ["null", "integer"] + }, + "campaign_id": { + "type": ["null", "string"] + }, + "cpc": { + "type": ["null", "number"] + }, + "ad_name": { + "type": ["null", "string"] + }, + "cost_per_unique_inline_link_click": { + "type": ["null", "number"] + }, + "cpm": { + "type": ["null", "number"] + }, + "cost_per_inline_post_engagement": { + "type": ["null", "number"] + }, + "inline_link_click_ctr": { + "type": ["null", "number"] + }, + "cpp": { + "type": ["null", "number"] + }, + "cost_per_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": ["null", "number"] + }, + "spend": { + "type": ["null", "number"] + }, + "cost_per_unique_click": { + "type": ["null", "number"] + }, + "adset_name": { + "type": ["null", "string"] + }, + "unique_clicks": { + "type": ["null", "integer"] + }, + "social_spend": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "canvas_avg_view_percent": { + "type": ["null", "number"] + }, + "account_id": { + "type": ["null", "string"] + }, + "date_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "objective": { + "type": ["null", "string"] + }, + "quality_ranking": { + "type": ["null", "string"] + }, + "engagement_rate_ranking": { + "type": ["null", "string"] + }, + "conversion_rate_ranking": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "integer"] + }, + "unique_ctr": { + "type": ["null", "number"] + }, + "cost_per_inline_link_click": { + "type": ["null", "number"] + }, + "ctr": { + "type": ["null", "number"] + } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_age_and_gender.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_age_and_gender.json new file mode 100644 index 0000000000000..0de28798b28bd --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_age_and_gender.json @@ -0,0 +1,186 @@ +{ + "type": ["null", "object"], + "properties": { + "unique_actions": { "$ref": "ads_action_stats.json" }, + "actions": { "$ref": "ads_action_stats.json" }, + "action_values": { "$ref": "ads_action_stats.json" }, + "outbound_clicks": { "$ref": "ads_action_stats.json" }, + "video_30_sec_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p25_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p50_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p75_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p100_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_play_curve_actions": { "$ref": "ads_histogram_stats.json" }, + "clicks": { + "type": ["null", "integer"] + }, + "date_stop": { + "type": ["null", "string"] + }, + "ad_id": { + "type": ["null", "string"] + }, + "website_ctr": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "number"] + }, + "action_destination": { + "type": ["null", "string"] + }, + "action_target_id": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": ["null", "number"] + }, + "adset_id": { + "type": ["null", "string"] + }, + "frequency": { + "type": ["null", "number"] + }, + "account_name": { + "type": ["null", "string"] + }, + "canvas_avg_view_time": { + "type": ["null", "number"] + }, + "unique_inline_link_clicks": { + "type": ["null", "integer"] + }, + "cost_per_unique_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "inline_post_engagement": { + "type": ["null", "integer"] + }, + "campaign_name": { + "type": ["null", "string"] + }, + "inline_link_clicks": { + "type": ["null", "integer"] + }, + "campaign_id": { + "type": ["null", "string"] + }, + "cpc": { + "type": ["null", "number"] + }, + "ad_name": { + "type": ["null", "string"] + }, + "cost_per_unique_inline_link_click": { + "type": ["null", "number"] + }, + "cpm": { + "type": ["null", "number"] + }, + "cost_per_inline_post_engagement": { + "type": ["null", "number"] + }, + "inline_link_click_ctr": { + "type": ["null", "number"] + }, + "cpp": { + "type": ["null", "number"] + }, + "cost_per_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": ["null", "number"] + }, + "spend": { + "type": ["null", "number"] + }, + "cost_per_unique_click": { + "type": ["null", "number"] + }, + "adset_name": { + "type": ["null", "string"] + }, + "unique_clicks": { + "type": ["null", "integer"] + }, + "social_spend": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "canvas_avg_view_percent": { + "type": ["null", "number"] + }, + "account_id": { + "type": ["null", "string"] + }, + "date_start": { + "type": ["null", "string"] + }, + "objective": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "integer"] + }, + "unique_ctr": { + "type": ["null", "number"] + }, + "cost_per_inline_link_click": { + "type": ["null", "number"] + }, + "ctr": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "age": { + "type": ["null", "integer", "string"] + }, + "gender": { + "type": ["null", "string"] + }, + "quality_ranking": { + "type": ["null", "string"] + }, + "engagement_rate_ranking": { + "type": ["null", "string"] + }, + "conversion_rate_ranking": { + "type": ["null", "string"] + } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_country.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_country.json new file mode 100644 index 0000000000000..40614ab2a32b7 --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_country.json @@ -0,0 +1,185 @@ +{ + "type": ["null", "object"], + "properties": { + "unique_actions": { "$ref": "ads_action_stats.json" }, + "actions": { "$ref": "ads_action_stats.json" }, + "action_values": { "$ref": "ads_action_stats.json" }, + "outbound_clicks": { "$ref": "ads_action_stats.json" }, + "video_30_sec_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p25_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p50_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p75_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p100_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_play_curve_actions": { "$ref": "ads_histogram_stats.json" }, + "clicks": { + "type": ["null", "integer"] + }, + "date_stop": { + "type": ["null", "string"], + "format": "date-time" + }, + "ad_id": { + "type": ["null", "string"] + }, + "website_ctr": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "number"] + }, + "action_destination": { + "type": ["null", "string"] + }, + "action_target_id": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": ["null", "number"] + }, + "adset_id": { + "type": ["null", "string"] + }, + "frequency": { + "type": ["null", "number"] + }, + "account_name": { + "type": ["null", "string"] + }, + "canvas_avg_view_time": { + "type": ["null", "number"] + }, + "unique_inline_link_clicks": { + "type": ["null", "integer"] + }, + "cost_per_unique_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "inline_post_engagement": { + "type": ["null", "integer"] + }, + "campaign_name": { + "type": ["null", "string"] + }, + "inline_link_clicks": { + "type": ["null", "integer"] + }, + "campaign_id": { + "type": ["null", "string"] + }, + "cpc": { + "type": ["null", "number"] + }, + "ad_name": { + "type": ["null", "string"] + }, + "cost_per_unique_inline_link_click": { + "type": ["null", "number"] + }, + "cpm": { + "type": ["null", "number"] + }, + "cost_per_inline_post_engagement": { + "type": ["null", "number"] + }, + "inline_link_click_ctr": { + "type": ["null", "number"] + }, + "cpp": { + "type": ["null", "number"] + }, + "cost_per_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": ["null", "number"] + }, + "spend": { + "type": ["null", "number"] + }, + "cost_per_unique_click": { + "type": ["null", "number"] + }, + "adset_name": { + "type": ["null", "string"] + }, + "unique_clicks": { + "type": ["null", "integer"] + }, + "social_spend": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "canvas_avg_view_percent": { + "type": ["null", "number"] + }, + "account_id": { + "type": ["null", "string"] + }, + "date_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "objective": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "integer"] + }, + "unique_ctr": { + "type": ["null", "number"] + }, + "cost_per_inline_link_click": { + "type": ["null", "number"] + }, + "ctr": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "country": { + "type": ["null", "string"] + }, + "quality_ranking": { + "type": ["null", "string"] + }, + "engagement_rate_ranking": { + "type": ["null", "string"] + }, + "conversion_rate_ranking": { + "type": ["null", "string"] + } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_dma.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_dma.json new file mode 100644 index 0000000000000..f6a59632004f9 --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_dma.json @@ -0,0 +1,185 @@ +{ + "type": ["null", "object"], + "properties": { + "unique_actions": { "$ref": "ads_action_stats.json" }, + "actions": { "$ref": "ads_action_stats.json" }, + "action_values": { "$ref": "ads_action_stats.json" }, + "outbound_clicks": { "$ref": "ads_action_stats.json" }, + "video_30_sec_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p25_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p50_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p75_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p100_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_play_curve_actions": { "$ref": "ads_histogram_stats.json" }, + "clicks": { + "type": ["null", "integer"] + }, + "date_stop": { + "type": ["null", "string"], + "format": "date-time" + }, + "ad_id": { + "type": ["null", "string"] + }, + "website_ctr": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "number"] + }, + "action_destination": { + "type": ["null", "string"] + }, + "action_target_id": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": ["null", "number"] + }, + "adset_id": { + "type": ["null", "string"] + }, + "frequency": { + "type": ["null", "number"] + }, + "account_name": { + "type": ["null", "string"] + }, + "canvas_avg_view_time": { + "type": ["null", "number"] + }, + "unique_inline_link_clicks": { + "type": ["null", "integer"] + }, + "cost_per_unique_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "inline_post_engagement": { + "type": ["null", "integer"] + }, + "campaign_name": { + "type": ["null", "string"] + }, + "inline_link_clicks": { + "type": ["null", "integer"] + }, + "campaign_id": { + "type": ["null", "string"] + }, + "cpc": { + "type": ["null", "number"] + }, + "ad_name": { + "type": ["null", "string"] + }, + "cost_per_unique_inline_link_click": { + "type": ["null", "number"] + }, + "cpm": { + "type": ["null", "number"] + }, + "cost_per_inline_post_engagement": { + "type": ["null", "number"] + }, + "inline_link_click_ctr": { + "type": ["null", "number"] + }, + "cpp": { + "type": ["null", "number"] + }, + "cost_per_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": ["null", "number"] + }, + "spend": { + "type": ["null", "number"] + }, + "cost_per_unique_click": { + "type": ["null", "number"] + }, + "adset_name": { + "type": ["null", "string"] + }, + "unique_clicks": { + "type": ["null", "integer"] + }, + "social_spend": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "canvas_avg_view_percent": { + "type": ["null", "number"] + }, + "account_id": { + "type": ["null", "string"] + }, + "date_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "objective": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "integer"] + }, + "unique_ctr": { + "type": ["null", "number"] + }, + "cost_per_inline_link_click": { + "type": ["null", "number"] + }, + "ctr": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "dma": { + "type": ["null", "string"] + }, + "quality_ranking": { + "type": ["null", "string"] + }, + "engagement_rate_ranking": { + "type": ["null", "string"] + }, + "conversion_rate_ranking": { + "type": ["null", "string"] + } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_platform_and_device.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_platform_and_device.json new file mode 100644 index 0000000000000..f6d0a93c368ac --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_platform_and_device.json @@ -0,0 +1,388 @@ +{ + "type": [ + "null", + "object" + ], + "properties": { + "unique_actions": { + "$ref": "ads_action_stats.json" + }, + "actions": { + "$ref": "ads_action_stats.json" + }, + "action_values": { + "$ref": "ads_action_stats.json" + }, + "outbound_clicks": { + "$ref": "ads_action_stats.json" + }, + "video_30_sec_watched_actions": { + "$ref": "ads_action_stats.json" + }, + "video_p25_watched_actions": { + "$ref": "ads_action_stats.json" + }, + "video_p50_watched_actions": { + "$ref": "ads_action_stats.json" + }, + "video_p75_watched_actions": { + "$ref": "ads_action_stats.json" + }, + "video_p100_watched_actions": { + "$ref": "ads_action_stats.json" + }, + "video_play_curve_actions": { + "$ref": "ads_histogram_stats.json" + }, + "impression_device": { + "type": [ + "null", + "string" + ] + }, + "platform_position": { + "type": [ + "null", + "string" + ] + }, + "publisher_platform": { + "type": [ + "null", + "string" + ] + }, + "clicks": { + "type": [ + "null", + "integer" + ] + }, + "date_stop": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ad_id": { + "type": [ + "null", + "string" + ] + }, + "website_ctr": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "number" + ] + }, + "action_destination": { + "type": [ + "null", + "string" + ] + }, + "action_target_id": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "adset_id": { + "type": [ + "null", + "string" + ] + }, + "frequency": { + "type": [ + "null", + "number" + ] + }, + "account_name": { + "type": [ + "null", + "string" + ] + }, + "canvas_avg_view_time": { + "type": [ + "null", + "number" + ] + }, + "unique_inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "cost_per_unique_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "inline_post_engagement": { + "type": [ + "null", + "integer" + ] + }, + "campaign_name": { + "type": [ + "null", + "string" + ] + }, + "inline_link_clicks": { + "type": [ + "null", + "integer" + ] + }, + "campaign_id": { + "type": [ + "null", + "string" + ] + }, + "cpc": { + "type": [ + "null", + "number" + ] + }, + "ad_name": { + "type": [ + "null", + "string" + ] + }, + "cost_per_unique_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "cpm": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_post_engagement": { + "type": [ + "null", + "number" + ] + }, + "inline_link_click_ctr": { + "type": [ + "null", + "number" + ] + }, + "cpp": { + "type": [ + "null", + "number" + ] + }, + "cost_per_action_type": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "value": { + "type": [ + "null", + "string" + ] + }, + "action_type": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": [ + "null", + "number" + ] + }, + "spend": { + "type": [ + "null", + "number" + ] + }, + "cost_per_unique_click": { + "type": [ + "null", + "number" + ] + }, + "adset_name": { + "type": [ + "null", + "string" + ] + }, + "unique_clicks": { + "type": [ + "null", + "integer" + ] + }, + "social_spend": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "canvas_avg_view_percent": { + "type": [ + "null", + "number" + ] + }, + "account_id": { + "type": [ + "null", + "string" + ] + }, + "date_start": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "objective": { + "type": [ + "null", + "string" + ] + }, + "impressions": { + "type": [ + "null", + "integer" + ] + }, + "unique_ctr": { + "type": [ + "null", + "number" + ] + }, + "cost_per_inline_link_click": { + "type": [ + "null", + "number" + ] + }, + "ctr": { + "type": [ + "null", + "number" + ] + }, + "reach": { + "type": [ + "null", + "integer" + ] + }, + "placement": { + "type": [ + "null", + "string" + ] + }, + "quality_ranking": { + "type": [ + "null", + "string" + ] + }, + "engagement_rate_ranking": { + "type": [ + "null", + "string" + ] + }, + "conversion_rate_ranking": { + "type": [ + "null", + "string" + ] + } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_region.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_region.json new file mode 100644 index 0000000000000..ec841bde28473 --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_region.json @@ -0,0 +1,185 @@ +{ + "type": ["null", "object"], + "properties": { + "unique_actions": { "$ref": "ads_action_stats.json" }, + "actions": { "$ref": "ads_action_stats.json" }, + "action_values": { "$ref": "ads_action_stats.json" }, + "outbound_clicks": { "$ref": "ads_action_stats.json" }, + "video_30_sec_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p25_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p50_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p75_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_p100_watched_actions": { "$ref": "ads_action_stats.json" }, + "video_play_curve_actions": { "$ref": "ads_histogram_stats.json" }, + "clicks": { + "type": ["null", "integer"] + }, + "date_stop": { + "type": ["null", "string"], + "format": "date-time" + }, + "ad_id": { + "type": ["null", "string"] + }, + "website_ctr": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "number"] + }, + "action_destination": { + "type": ["null", "string"] + }, + "action_target_id": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_inline_link_click_ctr": { + "type": ["null", "number"] + }, + "adset_id": { + "type": ["null", "string"] + }, + "frequency": { + "type": ["null", "number"] + }, + "account_name": { + "type": ["null", "string"] + }, + "canvas_avg_view_time": { + "type": ["null", "number"] + }, + "unique_inline_link_clicks": { + "type": ["null", "integer"] + }, + "cost_per_unique_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "inline_post_engagement": { + "type": ["null", "integer"] + }, + "campaign_name": { + "type": ["null", "string"] + }, + "inline_link_clicks": { + "type": ["null", "integer"] + }, + "campaign_id": { + "type": ["null", "string"] + }, + "cpc": { + "type": ["null", "number"] + }, + "ad_name": { + "type": ["null", "string"] + }, + "cost_per_unique_inline_link_click": { + "type": ["null", "number"] + }, + "cpm": { + "type": ["null", "number"] + }, + "cost_per_inline_post_engagement": { + "type": ["null", "number"] + }, + "inline_link_click_ctr": { + "type": ["null", "number"] + }, + "cpp": { + "type": ["null", "number"] + }, + "cost_per_action_type": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "value": { + "type": ["null", "string"] + }, + "action_type": { + "type": ["null", "string"] + } + } + } + }, + "unique_link_clicks_ctr": { + "type": ["null", "number"] + }, + "spend": { + "type": ["null", "number"] + }, + "cost_per_unique_click": { + "type": ["null", "number"] + }, + "adset_name": { + "type": ["null", "string"] + }, + "unique_clicks": { + "type": ["null", "integer"] + }, + "social_spend": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "canvas_avg_view_percent": { + "type": ["null", "number"] + }, + "account_id": { + "type": ["null", "string"] + }, + "date_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "objective": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "integer"] + }, + "unique_ctr": { + "type": ["null", "number"] + }, + "cost_per_inline_link_click": { + "type": ["null", "number"] + }, + "ctr": { + "type": ["null", "number"] + }, + "reach": { + "type": ["null", "integer"] + }, + "region": { + "type": ["null", "string"] + }, + "quality_ranking": { + "type": ["null", "string"] + }, + "engagement_rate_ranking": { + "type": ["null", "string"] + }, + "conversion_rate_ranking": { + "type": ["null", "string"] + } + } +}