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".
What am I missing?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/3b214439-d341-4ba8-9459-e269d0960a06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.