Start a conversation

Resolving "Data Value Too Large" Error During Inventory Sync with Google Ad Manager

Overview

The error "data value too large" occurs when a Custom Targeting Value Name exceeds Salesforce's character limit during an inventory sync with Google Ad Manager. This issue blocks the sync process, impacting production environments. The problem was resolved by excluding the entire CustomTargetingKey from the sync, allowing the process to complete successfully. Customers are advised to rename the value in GAM to prevent future occurrences.

Solution

Follow these steps to resolve the "data value too large" error:

  1. Identify the Problematic Value:
    • Locate the Custom Targeting Value Name in Google Ad Manager that exceeds the character limit.
  2. Exclude the Entire CustomTargetingKey:
    • Modify the inventorySyncStrategy.json file to exclude the entire CustomTargetingKey associated with the problematic value.
    • Example snippet:
      {
        "customTargetings": {
          "synchronize": true,
          "items": [
            {
              "type": "customTarget",
              "filters": {
                "exclude": [
                  [
                    {
                      "field": "Id",
                      "value": "KeyId"              }
                  ]
                ]
              }
            }
          ]
        }
      }
  3. Perform the Inventory Sync:
    • Upload the updated inventorySyncStrategy.json to Salesforce.
    • Initiate the inventory sync process again.
  4. Verify Resolution:
    • Confirm that the inventory sync completes successfully without errors.
    • Check that the status changes from "Pending" to "Completed".

Preventive Action: Rename the Custom Targeting Value in Google Ad Manager to ensure it does not exceed the character limit in future syncs.

Note: This solution was specific to a Salesforce platform-related issue, and the customer was advised to make changes in Google Ad Manager to prevent recurrence.

Frequently Asked Questions

1. How do I identify if this error applies to my situation?
You will encounter the "data value too large" error during an inventory sync with Google Ad Manager if a Custom Targeting Value Name exceeds Salesforce's character limit.
2. What should I do if the error persists after excluding the key?
Ensure that the inventorySyncStrategy.json file is correctly updated and uploaded. If the issue persists, consider renaming the Custom Targeting Value in Google Ad Manager to comply with character limits.
3. Can I exclude only the problematic value instead of the entire key?
Currently, the workaround involves excluding the entire CustomTargetingKey. Renaming the value in Google Ad Manager is recommended for a permanent fix.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments