Hi, I can't retrieve FeedItemIds from the matching function of the
adGrouoFeeds, because they return null.
The CampaignFeeds return the matching function normaly.
I created the adGroupFeed adapting the example to create CampaignFeed from
the documentation.
// Get the AdGroupFeedService.
AdGroupFeedServiceInterface adGroupFeedService =
adWordsServices.get(session,
AdGroupFeedServiceInterface.class);
RequestContextOperand requestContextOperand = new
RequestContextOperand();
requestContextOperand.setContextType(RequestContextOperandContextType.FEED_ITEM_ID);
Function function = new Function();
function.setLhsOperand(new FunctionArgumentOperand[]
{requestContextOperand});
function.setOperator(FunctionOperator.IN);
List<FunctionArgumentOperand> operands = new
ArrayList<FunctionArgumentOperand>();
for (long feedItemId : siteLinksData.siteLinkFeedItemIds) {
ConstantOperand constantOperand = new ConstantOperand();
constantOperand.setLongValue(feedItemId);
constantOperand.setType(ConstantOperandConstantType.LONG);
operands.add(constantOperand);
}
function.setRhsOperand(operands.toArray(new
FunctionArgumentOperand[operands.size()]));
AdGroupFeed adGroupFeed = new AdGroupFeed();
adGroupFeed.setFeedId(siteLinksData.siteLinksFeedId);
adGroupFeed.setAdGroupId(adGroupId);
adGroupFeed.setMatchingFunction(function);
adGroupFeed.setPlaceholderTypes(new int[] {PLACEHOLDER_SITELINKS});
AdGroupFeedOperation operation = new AdGroupFeedOperation();
operation.setOperand(adGroupFeed);
operation.setOperator(Operator.ADD);
AdGroupFeedReturnValue result =
adGroupFeedService.mutate(new AdGroupFeedOperation[]
{operation});
When I tried to retrieve the FeedItemId from the adGroupFeeds created, the
matching function return null.
So I created new adGroupFeeds in the AdwordsEditor, but they return a null
matching function too.
Thanks in advance.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.