I'm struggling on how I can create a System Generated Feed (Call extension). I basically want to create the "Main phone number feed" feed if it does not exists. It gets created automatically if I enter a number manually and then I can add more feeditems through the API.
//******do not need feedattributes since I want a system feed - commented out *****
//FeedAttribute phoneNumberAttribute = new FeedAttribute();
//phoneNumberAttribute.type = FeedAttributeType.STRING;
//phoneNumberAttribute.name = "PHONE NUMBER";
//FeedAttribute countryCodeAttribute = new FeedAttribute();
//countryCodeAttribute.type = FeedAttributeType.STRING;
//countryCodeAttribute.name = "COUNTRY CODE";
Feed callAdFeed = new Feed();
callAdFeed.name = "Main phone number feed";
//callAdFeed.attributes = new FeedAttribute[] { phoneNumberAttribute, countryCodeAttribute }; //not required since it will be system feed - commented out
callAdFeed.origin = FeedOrigin.ADWORDS;
FeedOperation operation = new FeedOperation();
operation.operand = callAdFeed;
operation.@operator = Operator.ADD;
FeedReturnValue result = feedSvc.mutate(new FeedOperation[] { operation });
This returns error "Cannot specify ADWORDS origin for a non-system generated feed".