Hello Danial, How set matchingFunction other than mobile from the PHP client? The example you link to does not show it. There seems also no documentation about it.
On Wednesday, 7 August 2013 11:43:47 UTC+2, Danial Klimkin wrote: > > Hello Yury, > > > Please see this example on how to create a campaign feed: > > > https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php > > > -Danial, AdWords API Team. > > > On Thursday, August 1, 2013 7:46:26 PM UTC+4, Yury Tolochko wrote: >> >> Hi, >> >> I have feed for sitelinks. This feed contains attribute `campaign_id` >> (type INT64). For each feed item I specify campaign_id where it should be >> used. >> Finally, I'm trying to add CampaignFeedMapping like: >> >> // PHP >> $matchingFunction = new FeedFunction() >> $matchingFunction->lhsOperand = array(new FeedAttributeOperand(<my feed >> id>, <campaign_id attribute id>)); >> $matchingFunction->operator = 'EQUALS'; >> $matchingFunction->rhsOperand = array(new >> RequestContextOperand('CAMPAIGN_ID')); >> >> $campaignFeed = new CampaignFeed(); >> $campaignFeed->feedId = <my feed id>; >> $campaignFeed->campaignId = <some campaign id>; >> $campaignFeed->matchingFunction = $matchingFunction; >> $campaignFeed->placeholderTypes = array(1); // sitelinks >> >> After mutate I got following error: >> >> Google\Adwords\Api\Type\FunctionError Object >> ( >> [reason] => INVALID_OPERAND_TYPE >> [fieldPath] => operations[0].operand.matchingFunction.lhsOperand[0] >> [trigger] => FeedAttributeOperand{feedId=FeedId{id=2019488}, >> feedAttributeId=FeedAttributeId{id=1}} >> [errorString] => FunctionError.INVALID_OPERAND_TYPE >> [ApiErrorType] => FunctionError >> [_parameterMap:Google\Adwords\Api\Type\ApiError:private] => Array >> ( >> [ApiError.Type] => ApiErrorType >> ) >> >> ) >> >> Why it can happens? I tried different function configurations, but only >> matching by FEET_ITEM_ID works. >> >> Thnx. >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/9d3eca2b-9a5b-4319-9392-6c14fd8d6416%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.