diff --git a/notebooks/audience_e2e_advertiser_flow.ipynb b/notebooks/audience_e2e_advertiser_flow.ipynb
index 5ba3869..76037e5 100644
--- a/notebooks/audience_e2e_advertiser_flow.ipynb
+++ b/notebooks/audience_e2e_advertiser_flow.ipynb
@@ -112,6 +112,7 @@
},
{
"cell_type": "markdown",
+ "id": "cdd998cb",
"metadata": {},
"source": [
"
"
- ],
- "id": "cdd998cb"
+ ]
},
{
"cell_type": "markdown",
@@ -481,9 +481,12 @@
" request=ingest_payload\n",
" )\n",
"\n",
- " ingestion_request_id = ingest_res.request_id\n",
" print(f\"Ingestion Submitted!\")\n",
- " print(f\"Request ID: {ingestion_request_id}\")\n",
+ " print(f\"{ingest_res}\")\n",
+ "\n",
+ " if ingest_res.field_warnings:\n",
+ " print(\"Request ingested successfully, but field warnings were returned. \"\n",
+ " \"Review warning details and update your implementation as needed.\")\n",
"\n",
" except Exception as e:\n",
" print(f\"Failed to ingest data: {e}\")\n",
@@ -499,10 +502,10 @@
{
"cell_type": "code",
"execution_count": null,
+ "id": "c93a9f18",
"metadata": {},
"outputs": [],
- "source": [],
- "id": "c93a9f18"
+ "source": []
},
{
"cell_type": "markdown",
diff --git a/notebooks/audience_e2e_data_partner_dual_persona.ipynb b/notebooks/audience_e2e_data_partner_dual_persona.ipynb
index 1bebe26..92426cb 100644
--- a/notebooks/audience_e2e_data_partner_dual_persona.ipynb
+++ b/notebooks/audience_e2e_data_partner_dual_persona.ipynb
@@ -112,6 +112,7 @@
},
{
"cell_type": "markdown",
+ "id": "e31a76c3",
"metadata": {},
"source": [
" "
- ],
- "id": "e31a76c3"
+ ]
},
{
"cell_type": "markdown",
@@ -652,9 +652,12 @@
" request=ingest_payload\n",
" )\n",
"\n",
- " ingestion_request_id = ingest_res.request_id\n",
" print(f\"Ingestion Submitted!\")\n",
- " print(f\"Request ID: {ingestion_request_id}\")\n",
+ " print(f\"{ingest_res}\")\n",
+ "\n",
+ " if ingest_res.field_warnings:\n",
+ " print(\"Request ingested successfully, but field warnings were returned. \"\n",
+ " \"Review warning details and update your implementation as needed.\")\n",
"\n",
" except Exception as e:\n",
" print(f\"Failed to ingest data: {e}\")\n",
@@ -670,10 +673,10 @@
{
"cell_type": "code",
"execution_count": null,
+ "id": "1cc3db4d",
"metadata": {},
"outputs": [],
- "source": [],
- "id": "1cc3db4d"
+ "source": []
},
{
"cell_type": "markdown",
diff --git a/notebooks/audience_e2e_data_partner_simplified.ipynb b/notebooks/audience_e2e_data_partner_simplified.ipynb
index ee75cee..aa0ea6f 100644
--- a/notebooks/audience_e2e_data_partner_simplified.ipynb
+++ b/notebooks/audience_e2e_data_partner_simplified.ipynb
@@ -493,9 +493,12 @@
" request=ingest_payload\n",
" )\n",
"\n",
- " ingestion_request_id = ingest_res.request_id\n",
" print(f\"Ingestion Submitted!\")\n",
- " print(f\"Request ID: {ingestion_request_id}\")\n",
+ " print(f\"{ingest_res}\")\n",
+ "\n",
+ " if ingest_res.field_warnings:\n",
+ " print(\"Request ingested successfully, but field warnings were returned. \"\n",
+ " \"Review warning details and update your implementation as needed.\")\n",
"\n",
" except Exception as e:\n",
" print(f\"Failed to ingest data: {e}\")\n",
diff --git a/samples/audiences/ingest_audience_members.py b/samples/audiences/ingest_audience_members.py
index 9ab43ca..3cdbc15 100755
--- a/samples/audiences/ingest_audience_members.py
+++ b/samples/audiences/ingest_audience_members.py
@@ -251,6 +251,12 @@ def main(
# Logs the response.
_logger.info("Response for request #%d:\n%s", request_count, response)
+ if response.field_warnings:
+ _logger.warning(
+ "Request ingested successfully, but field warnings were returned. "
+ "Review warning details and update your implementation as needed."
+ )
+
_logger.info("# of requests sent: %d", request_count)
diff --git a/samples/events/ingest_events.py b/samples/events/ingest_events.py
index eb522f3..c49d66c 100755
--- a/samples/events/ingest_events.py
+++ b/samples/events/ingest_events.py
@@ -199,6 +199,12 @@ def main(
# Logs the response.
_logger.info("Response for request #%d:\n%s", request_count, response)
+ if response.field_warnings:
+ _logger.warning(
+ "Request ingested successfully, but field warnings were returned. "
+ "Review warning details and update your implementation as needed."
+ )
+
_logger.info("# of requests sent: %d", request_count)