Hello, I tried to use 1 feed to create custom sitelinks for AdGroups, but I cant understand how to use MatchingFunction to associate some Feed Items to AdGroup...
From Example:
// There we creating list of feed items
foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) {
$constantOperand = new ConstantOperand();
$constantOperand->longValue = $feedItemId;
$constantOperand->type = 'LONG';
$operands[] = $constantOperand;
}
$feedItemFunction->rhsOperand = $operands;
// There we creating Operand with this list of items
$feedItemFunctionOperand->value = $feedItemFunction;
// There we creating function with this Operand
$combinedFunction->lhsOperand = array($feedItemFunctionOperand,
$platformFunctionOperand);
// There we linking Feed with Campaign
$campaignFeed = new CampaignFeed();
$campaignFeed->feedId = $sitelinksData['sitelinksFeedId'];
$campaignFeed->campaignId = $campaignId;
$campaignFeed->matchingFunction = $combinedFunction;
// Specifying placeholder types on the CampaignFeed allows the same feed
// to be used for different placeholders in different Campaigns.
$campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS);
Am I right in my comments? Can i use same way to link feed Items with AdGroup?
середа, 1 жовтня 2014 р. 21:07:33 UTC+3 користувач Anash P. Oommen (AdWords API Team) написав: