diff --git a/_data/taps/schemas/linkedin-ads/v2/json/campaigns.json b/_data/taps/schemas/linkedin-ads/v2/json/campaigns.json index 70b7c8dc8..0b0781187 100644 --- a/_data/taps/schemas/linkedin-ads/v2/json/campaigns.json +++ b/_data/taps/schemas/linkedin-ads/v2/json/campaigns.json @@ -1,314 +1,26 @@ { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { - "account": { - "type": [ - "null", - "string" - ] - }, - "account_id": { - "type": [ - "null", - "integer" - ] - }, - "associated_entity": { - "type": [ - "null", - "string" - ] - }, - "associated_entity_organization_id": { - "type": [ - "null", - "integer" - ] - }, - "associated_entity_person_id": { - "type": [ - "null", - "string" - ] - }, - "audience_expansion_enabled": { - "type": [ - "null", - "boolean" - ] - }, - "campaign_group": { - "type": [ - "null", - "string" - ] - }, - "campaign_group_id": { - "type": [ - "null", - "integer" - ] - }, - "change_audit_stamps": { - "additionalProperties": false, - "properties": { - "created": { - "additionalProperties": false, - "properties": { - "time": { - "type": [ - "null", - "date-time" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "last_modified": { - "additionalProperties": false, - "properties": { - "time": { - "type": [ - "null", - "date-time" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "cost_type": { - "type": [ - "null", - "string" - ] - }, - "created_time": { - "type": [ - "null", - "date-time" - ] - }, - "creative_selection": { - "type": [ - "null", - "string" - ] - }, - "daily_budget": { - "additionalProperties": false, - "properties": { - "amount": { - "type": [ - "null", - "number" - ] - }, - "currency_code": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "format": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": [ - "null", - "integer" - ] - }, - "last_modified_time": { - "type": [ - "null", - "date-time" - ] - }, - "locale": { - "additionalProperties": false, - "properties": { - "country": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "objective_type": { - "type": [ - "null", - "string" - ] - }, - "offsite_delivery_enabled": { - "type": [ - "null", - "boolean" - ] - }, - "offsite_preferences": { - "additionalProperties": false, - "properties": { - "iab_categories": { - "additionalProperties": false, - "properties": { - "exclude": { - "additionalProperties": false, - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - }, - "include": { - "additionalProperties": false, - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "publisher_restriction_files": { - "additionalProperties": false, - "properties": { - "exclude": { - "additionalProperties": false, - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "optimization_target_type": { - "type": [ - "null", - "string" - ] - }, - "pacing_strategy": { - "type": [ - "null", - "string" - ] - }, - "run_schedule": { - "additionalProperties": false, - "properties": { - "end": { - "type": [ - "null", - "date-time" - ] - }, - "start": { - "type": [ - "null", - "date-time" - ] - } - }, + "targeting": { "type": [ "null", "object" - ] - }, - "serving_statuses": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ] - }, - "status": { - "type": [ - "null", - "string" - ] - }, - "targeting": { + ], "additionalProperties": false, "properties": { - "excluded_targeting_facets": { + "included_targeting_facets": { "anyOf": [ { + "type": "array", "items": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { "type": { @@ -320,33 +32,33 @@ "values": { "anyOf": [ { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, { "type": "null" } ] } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" + } + } }, { "type": "null" } ] }, - "included_targeting_facets": { + "excluded_targeting_facets": { "anyOf": [ { + "type": "array", "items": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { "type": { @@ -358,196 +70,374 @@ "values": { "anyOf": [ { + "type": "array", "items": { "type": "string" - }, - "type": "array" + } }, { "type": "null" } ] } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" + } + } }, { "type": "null" } ] } - }, + } + }, + "targeting_criteria": { "type": [ "null", "object" - ] - }, - "targeting_criteria": { + ], "additionalProperties": false, "properties": { + "include": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "and": { + "anyOf": [ + { + "type": "array", + "items": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "type": { + "type": [ + "null", + "string" + ] + }, + "values": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + } + } + }, + { + "type": "null" + } + ] + } + } + }, "exclude": { + "type": [ + "null", + "object" + ], "properties": { "or": { + "type": [ + "null", + "object" + ], "properties": { - "urn:li:ad_targeting_facet:followed_companies": { + "urn:li:ad_targeting_facet:titles": { + "type": [ + "null", + "array" + ], "items": { "type": [ "null", "string" ] - }, + } + }, + "urn:li:ad_targeting_facet:staff_count_ranges": { "type": [ "null", "array" - ] - }, - "urn:li:ad_targeting_facet:seniorities": { + ], "items": { "type": [ "null", "string" ] - }, + } + }, + "urn:li:ad_targeting_facet:followed_companies": { "type": [ "null", "array" - ] - }, - "urn:li:ad_targeting_facet:staff_count_ranges": { + ], "items": { "type": [ "null", "string" ] - }, + } + }, + "urn:li:ad_targeting_facet:seniorities": { "type": [ "null", "array" - ] - }, - "urn:li:ad_targeting_facet:titles": { + ], "items": { "type": [ "null", "string" ] - }, - "type": [ - "null", - "array" - ] + } } - }, - "type": [ - "null", - "object" - ] + } } - }, + } + } + } + }, + "serving_statuses": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "type": { + "type": [ + "null", + "string" + ] + }, + "story_delivery_enabled": { + "type": [ + "null", + "boolean" + ] + }, + "connected_television_only": { + "type": [ + "null", + "boolean" + ] + }, + "political_intent": { + "type": [ + "null", + "string" + ] + }, + "total_budget": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "currency_code": { "type": [ "null", - "object" + "string" ] }, - "include": { - "additionalProperties": false, - "properties": { - "and": { - "anyOf": [ - { - "items": { - "additionalProperties": false, - "properties": { - "type": { - "type": [ - "null", - "string" - ] - }, - "values": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" - }, - { - "type": "null" - } - ] - } - }, + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + } + } + }, + "version_tag": { + "type": [ + "null", + "string" + ] + }, + "locale": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "country": { "type": [ "null", - "object" + "string" + ] + }, + "language": { + "type": [ + "null", + "string" ] } - }, + } + }, + "version": { "type": [ "null", "object" + ], + "additionalProperties": false, + "properties": { + "version_tag": { + "type": [ + "null", + "string" + ] + } + } + }, + "associated_entity": { + "type": [ + "null", + "string" ] }, - "test": { + "associated_entity_organization_id": { "type": [ "null", - "boolean" + "integer" ] }, - "total_budget": { + "associated_entity_person_id": { + "type": [ + "null", + "string" + ] + }, + "run_schedule": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { - "amount": { + "start": { "type": [ "null", - "number" - ] + "string" + ], + "format": "date-time" }, - "currency_code": { + "end": { "type": [ "null", "string" - ] + ], + "format": "date-time" } - }, + } + }, + "optimization_target_type": { "type": [ "null", - "object" + "string" ] }, - "type": { + "change_audit_stamps": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "created": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + } + } + }, + "last_modified": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + } + } + } + } + }, + "created_time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "last_modified_time": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "campaign_group": { "type": [ "null", "string" ] }, - "unit_cost": { + "campaign_group_id": { + "type": [ + "null", + "integer" + ] + }, + "daily_budget": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { "amount": { "type": [ "null", - "number" - ] + "string" + ], + "format": "singer.decimal" }, "currency_code": { "type": [ @@ -555,36 +445,173 @@ "string" ] } - }, + } + }, + "unit_cost": { "type": [ "null", "object" - ] - }, - "version": { + ], "additionalProperties": false, "properties": { - "version_tag": { + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "currency_code": { "type": [ "null", "string" ] } - }, + } + }, + "creative_selection": { + "type": [ + "null", + "string" + ] + }, + "cost_type": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "objective_type": { + "type": [ + "null", + "string" + ] + }, + "offsite_delivery_enabled": { + "type": [ + "null", + "boolean" + ] + }, + "offsite_preferences": { "type": [ "null", "object" + ], + "additionalProperties": false, + "properties": { + "iab_categories": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "exclude": { + "type": [ + "null", + "array" + ], + "additionalProperties": false, + "items": { + "type": [ + "null", + "string" + ] + } + }, + "include": { + "type": [ + "null", + "array" + ], + "additionalProperties": false, + "items": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "publisher_restriction_files": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "exclude": { + "type": [ + "null", + "array" + ], + "additionalProperties": false, + "items": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + }, + "id": { + "type": [ + "null", + "integer" ] }, - "version_tag": { + "audience_expansion_enabled": { + "type": [ + "null", + "boolean" + ] + }, + "test": { + "type": [ + "null", + "boolean" + ] + }, + "format": { + "type": [ + "null", + "string" + ] + }, + "pacing_strategy": { + "type": [ + "null", + "string" + ] + }, + "account": { + "type": [ + "null", + "string" + ] + }, + "account_id": { + "type": [ + "null", + "integer" + ] + }, + "status": { "type": [ "null", "string" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +} diff --git a/_data/taps/schemas/linkedin-ads/v2/json/creatives.json b/_data/taps/schemas/linkedin-ads/v2/json/creatives.json index bdc32f8c7..4c338b7ed 100644 --- a/_data/taps/schemas/linkedin-ads/v2/json/creatives.json +++ b/_data/taps/schemas/linkedin-ads/v2/json/creatives.json @@ -1,4 +1,8 @@ { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { "account": { @@ -7,6 +11,27 @@ "string" ] }, + "name": { + "type": [ + "null", + "string" + ] + }, + "review": { + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "status": { + "type": [ + "null", + "string" + ] + } + } + }, "account_id": { "type": [ "null", @@ -26,6 +51,10 @@ ] }, "content": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { "reference": { @@ -35,15 +64,19 @@ ] }, "text_ad": { + "type": [ + "null", + "object" + ], "additionalProperties": false, "properties": { - "description": { + "headline": { "type": [ "null", "string" ] }, - "headline": { + "description": { "type": [ "null", "string" @@ -55,25 +88,31 @@ "string" ] } - }, - "type": [ - "null", - "object" - ] + } } - }, + } + }, + "created_at": { "type": [ "null", - "object" - ] + "string" + ], + "format": "date-time" }, - "created_at": { + "created_by": { "type": [ "null", - "date-time" + "string" ] }, - "created_by": { + "last_modified_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "last_modified_by": { "type": [ "null", "string" @@ -103,33 +142,17 @@ "boolean" ] }, - "last_modified_at": { - "type": [ - "null", - "date-time" - ] - }, - "last_modified_by": { + "serving_hold_reasons": { "type": [ "null", - "string" - ] - }, - "serving_hold_reasons": { + "array" + ], "items": { "type": [ "null", "string" ] - }, - "type": [ - "null", - "array" - ] + } } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +}