Hi, anyone have issues with the Google Ads connect...
# replication-troubleshooting
w
Hi, anyone have issues with the Google Ads connector 0.2.1 -> BQ denormalized 1.2.4 with GCS staging ?
Copy code
BigQueryError{reason=invalidQuery, location=query, message=Field ad_group_criterion_final_urls has incompatible types. Configured schema: string. Avro file: record}
Is this a bug on the source connector?
✍️ 1
u
@[DEPRECATED] Marcos Marx turned this message into Zendesk ticket 2793 to ensure timely resolution!
m
Can you share the complete file log @wp?
w
Copy code
"ad_group_criterion.final_mobile_urls": {
      "type": ["null", "string", "array"]
    },
    "ad_group_criterion.final_urls": {
      "type": ["null", "string", "array"]
    },
I think the schema might be missing the child node of
items
for the array seen in other array type field. example:
Copy code
"ad_group.targeting_setting.target_restrictions": {
      "type": ["null", "array"],
      "items": {
        "type": "string"
      }
    },
Here is the log file
Tried reverting back to different versions of the connector and still getting the same error.
0.1.44
0.1.42
m
@wp can you disable the staging and test without it
?
w
sure, ill test it with standard insert and get back to you.
seems like its the same error using standard insert
Here is the log
seems like similar fields are in two different streams which will cause the error when trying to sync them
display_topics_performace_report
display_keyword_performace_report
u
Sorry I missed this, do you still need help here?
w
Yes. Using the latest google ads connector 0.2.3 I am still seeing the same error coming from the two streams mentioned. Here is the latest log from the run.
Copy code
Caused by: com.google.cloud.bigquery.BigQueryException: Field ad_group_criterion_final_urls has incompatible types. Configured schema: string. Avro file: record
seems like an error in the schema fields for the two streams?
Copy code
Field{name=ad_group_criterion_final_urls, type=STRING, mode=NULLABLE, description=null, policyTags=null}
should be
mode=REPEATED
if the field is of record type?
m
Copy code
Stack Trace: java.lang.RuntimeException: Failed to upload data from stage testing/ws_3_s_13_GOOGLE_ADS_display_keyword_performance_report/2022/10/25/13/39a51fb1-b141-4bd8-8d01-695b569c532d/
Are you using staging? could you try without it?
w
I did and it was the same error here along with the log.