Feed item matching function gives CollectionSizeError.TOO_MANY error

157 views
Skip to first unread message

hita...@media.net

unread,
Feb 22, 2019, 2:52:33 PM2/22/19
to AdWords API and Google Ads API Forum
Hi,
I have multiple campaigns with me and I have a large number of feed items in my feed (let's say 10000). Now, I know the list of feed items I need to associate with every campaign (let's say 1000 ). This section explains how I can use the CampaignFeedService and matching function (IN (FEED_ITEM_ID {%s})) to achieve what I want. 

However, the issue that I am facing is that if my matching function has more than 20 feed item ids, then I get theCollectionSizeError.TOO_MANY error when I do campaignFeedService.mutate. If the size of the matching function turns out to be the bottleneck can I please know how to achieve what I want?

Thanks,
Hitarth Kanakia 

googleadsapi...@google.com

unread,
Feb 22, 2019, 5:54:53 PM2/22/19
to AdWords API and Google Ads API Forum
Hello Hitarth,

Please find my response below:
  1. The error CollectionSizeError.TOO_MANY is thrown when the limit for a particular API request is exceeded. Please note that the rhsOperand must contain at least 1 and no more than 20 ConstantOperand objects. For more information, please refer to this documentation for reference. You will have to make sure that the number of feed item ids that you are setting is 20 or less than that.
  2. You can use IDENTITY matching function as true to select all of the feed items in a feed. For more information, please refer to this document. 
Let me know if you are still facing an issue. 

Thanks,
Milind, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

hita...@media.net

unread,
Feb 27, 2019, 5:25:38 AM2/27/19
to AdWords API and Google Ads API Forum
Using IDENTITY solved my issue.
Thank you,
Hitarth Kanakia
Message has been deleted

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 10:06:20 AM6/28/22
to ajit.triv...@gmail.com, adwor...@googlegroups.com

Hi Ajit,

Thanks for reaching out to us.

Could you please elaborate on the concern on the feed item that you may have with Google Ads API? If encountering API errors, please provide our team privately with the complete request and response logs along with request-id, so that our team may take a closer look.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cDyx0:ref
Reply all
Reply to author
Forward
0 new messages