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:
-
Identify the Problematic Value:
- Locate the Custom Targeting Value Name in Google Ad Manager that exceeds the character limit.
-
Exclude the Entire CustomTargetingKey:
- Modify the
inventorySyncStrategy.jsonfile to exclude the entire CustomTargetingKey associated with the problematic value. - Example snippet:
{ "customTargetings": { "synchronize": true, "items": [ { "type": "customTarget", "filters": { "exclude": [ [ { "field": "Id", "value": "KeyId" } ] ] } } ] } }
- Modify the
-
Perform the Inventory Sync:
- Upload the updated
inventorySyncStrategy.jsonto Salesforce. - Initiate the inventory sync process again.
- Upload the updated
-
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.jsonfile 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.
Priyanka Bhotika
Comments