Skip to content

Commit

Permalink
Merge pull request #59 from sebastianswms/conversions
Browse files Browse the repository at this point in the history
feat: Add conversion metrics to campaign_performance.
  • Loading branch information
sebastianswms authored Jul 28, 2023
2 parents bdd140d + b95579d commit 386fa21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tap_googleads/schemas/campaign_performance.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"metrics": {
"type": "object",
"properties": {
"conversions": {
"type": "number"
},
"clicks": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions tap_googleads/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def gaql(self) -> str:
, campaign.advertising_channel_sub_type
, segments.device
, segments.date
, metrics.conversions
, metrics.impressions
, metrics.clicks
, metrics.ctr
Expand Down
2 changes: 1 addition & 1 deletion tap_googleads/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


SAMPLE_CONFIG = {
"start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
"client_id": "12345",
"client_secret": "12345",
"developer_token": "12345",
Expand Down
2 changes: 1 addition & 1 deletion tap_googleads/tests/test_customer_not_found.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import responses

SAMPLE_CONFIG = {
"start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
"client_id": "12345",
"client_secret": "12345",
"developer_token": "12345",
Expand Down

0 comments on commit 386fa21

Please sign in to comment.