Re: There is any solution with limits of matchingFunction when i go over 20 items

2017-08-08 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

The rhsOperand 

 while 
using the IN operator has a limit of 20 ConstantOperands. Please check the 
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. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2fa8d26c-13f4-4bf0-82ed-dd04a7aeb9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


There is any solution with limits of matchingFunction when i go over 20 items

2017-08-08 Thread Abdelghani GUILIGHE
Hi,

when I go over 20 feed items in the camaping Feed, I have this error : 


[CollectionSizeError.TOO_MANY @ 
operations[0].operand.matchingFunction.lhsOperand[0].value.rhsOperand] 

please how can I solve this, I'm working with PHP client library.

Here's the code :

($arrSiteLinkFeedItemsIds this array have over 20 items)
$matchingFunctionString = sprintf(
'AND( IN(FEED_ITEM_ID, {%s}), EQUALS(CONTEXT.DEVICE, "Desktop") )',
implode(',', $arrSiteLinkFeedItemsIds)
  );

// Create a campaign feed and its feed function.
$campaignFeed = new CampaignFeed();
$campaignFeed->setFeedId($sitelinksData['sitelinksFeedId']);
$campaignFeed->setCampaignId($campaignId);

$matchingFunction = new MatchingFunction();
$matchingFunction->setFunctionString($matchingFunctionString);
$campaignFeed->setMatchingFunction($matchingFunction);
$campaignFeed->setPlaceholderTypes([self::PLACEHOLDER_SITELINKS]);

Best Regards,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/347c1a98-7809-445f-b0c9-4d26f38639f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.