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 discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/groups/opt_out.