Why do we get SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED when setting campaign device bid modifier?

96 views
Skip to first unread message

Ryutaro Ikeda

unread,
Jan 15, 2018, 7:42:53 AM1/15/18
to AdWords API Forum
We're seeing SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED errors on mutate operations to the campaign criterion service.
We're sending them in chunks of at most 50 operations, and the total number of operations is around 300.
We're not using the Bulk service.
This seems to affect only one of our AdWords accounts. The others work with the same chunk size.

We previously had a similar error which we "fixed" by reducing chunk size from 100 to 50.
I don't know if this is related, but the last occurrence coincided with someone creating a large number (thousands) of location bid adjustments on campaigns from AdWords Editor.

It would be helpful to know why we're getting this error, and why different accounts seem to have different request size limits.

Peter Oliquino

unread,
Jan 16, 2018, 12:37:05 AM1/16/18
to AdWords API Forum
Hi Ryutaro,

The SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED error you encountered indicates that you are passing too many operations in a single request. This being said, in order to avoid such errors, I would recommend that you either lessen the number of operations you include in a single request or use the BatchJobService of the AdWords API. The CampaignCriterionOperation is supported by the said service and you may refer to this documentation for the implementation of bulk processing.

As for your other accounts not encountering the same error, could you provide the SOAP request and response generated by the different accounts (successful account and the account with the error) so I can further investigate? You may reply to me via the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages