Skip to content

Commit

Permalink
Merge pull request #2 from Widen/fix-pk
Browse files Browse the repository at this point in the history
overhauld of the primary key designations and flatten of schemas to m…
  • Loading branch information
jlloyd-widen authored Mar 18, 2022
2 parents 3941c6e + 663ec2d commit 02d9ffc
Show file tree
Hide file tree
Showing 11 changed files with 635 additions and 566 deletions.
111 changes: 53 additions & 58 deletions tap_googleads/schemas/ad_group.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,66 @@
{
"type": "object",
"properties": {
"adGroup": {
"resourceName": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
},
"targetingSetting": {
"type": "object",
"properties": {
"resourceName": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
},
"targetingSetting": {
"type": "object",
"properties": {
"targetRestrictions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"targetingDimension": {
"type": "string"
},
"bidOnly": {
"type": "boolean"
}
}
"targetRestrictions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"targetingDimension": {
"type": "string"
},
"bidOnly": {
"type": "boolean"
}
}
}
},
"id": {
"type": "string"
},
"customer_id": {
"type": "string"
},
"name": {
"type": "string"
},
"baseAdGroup": {
"type": "string"
},
"campaign": {
"type": "string"
},
"cpcBidMicros": {
"type": "string"
},
"cpmBidMicros": {
"type": "string"
},
"targetCpaMicros": {
"type": "string"
},
"cpvBidMicros": {
"type": "string"
},
"targetCpmMicros": {
"type": "string"
},
"effectiveTargetCpaMicros": {
"type": "string"
}
}
},
"id": {
"type": "string"
},
"customer_id": {
"type": "string"
},
"name": {
"type": "string"
},
"baseAdGroup": {
"type": "string"
},
"campaign": {
"type": "string"
},
"cpcBidMicros": {
"type": "string"
},
"cpmBidMicros": {
"type": "string"
},
"targetCpaMicros": {
"type": "string"
},
"cpvBidMicros": {
"type": "string"
},
"targetCpmMicros": {
"type": "string"
},
"effectiveTargetCpaMicros": {
"type": "string"
}
}
}
64 changes: 26 additions & 38 deletions tap_googleads/schemas/adgroups_performance.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,32 @@
{
"type": "object",
"properties": {
"customer_id": {
"type": "string"
},
"campaign": {
"type": "object",
"properties": {
"resourceName": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"adGroup": {
"type": "object",
"properties": {
"resourceName": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"metrics": {
"type": "object",
"properties": {
"clicks": {
"type": "string"
},
"costMicros": {
"type": "string"
},
"impressions": {
"type": "string"
}
}
"customer_id": {
"type": "string"
},
"campaign_resourceName": {
"type": "string"
},
"campaign_id": {
"type": "string"
},
"adGroup_resourceName": {
"type": "string"
},
"adGroup_id": {
"type": "string"
},
"date": {
"type": "string"
},
"clicks": {
"type": "string"
},
"costMicros": {
"type": "string"
},
"impressions": {
"type": "string"
}
}
}
27 changes: 11 additions & 16 deletions tap_googleads/schemas/campaign.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"type": "object",
"properties": {
"customer_id": {
"type": "string"
},
"campaign": {
"type": "object",
"properties": {
"resourceName": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
}
}
"customer_id": {
"type": "string"
},
"resourceName": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
}
}
}
90 changes: 39 additions & 51 deletions tap_googleads/schemas/campaign_performance.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,41 @@
{
"type": "object",
"properties": {
"customer_id": {
"type": "string"
},
"campaign": {
"type": "object",
"properties": {
"resourceName": {
"type": "string"
},
"status": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"metrics": {
"type": "object",
"properties": {
"clicks": {
"type": "string"
},
"costMicros": {
"type": "string"
},
"ctr": {
"type": "number"
},
"averageCpc": {
"type": "number"
},
"impressions": {
"type": "string"
}
}
},
"segments": {
"type": "object",
"properties": {
"device": {
"type": "string"
},
"date": {
"type": "string"
}
}
}
}
"type": "object",
"properties": {
"customer_id": {
"type": "string"
},
"resourceName": {
"type": "string"
},
"status": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"clicks": {
"type": "string"
},
"costMicros": {
"type": "string"
},
"ctr": {
"type": "number"
},
"averageCpc": {
"type": "number"
},
"impressions": {
"type": "string"
},
"device": {
"type": "string"
},
"date": {
"type": "string"
}
}
}
Loading

0 comments on commit 02d9ffc

Please sign in to comment.