Hi.
My problem is that I need to use only default adwords feeds. They appear when user creates an extension through the UI with the name like "_Main callout feed" or "_Main sitelink feed". Until then this feeds are not visible in the Shared Library / Business data section and I can't get them through the API:
API doesn't allow to create feeds with such name because of "_" symbol and I get FeedError.INVALID_FEED_NAME error:
When I try to use "ADWORDS" origin I get another error: FeedError.CANNOT_SPECIFY_ADWORDS_ORIGIN_FOR_NON_SYSTEM_FEED
So my question is:
Is there a way to create or get the default "_Main ... feed" through the API when it wasn't already created by Adwords?
-- My problem is that I need to use only default adwords feeds. They appear when user creates an extension through the UI with the name like "_Main callout feed" or "_Main sitelink feed". Until then this feeds are not visible in the Shared Library / Business data section and I can't get them through the API:
$feedService = $user->GetService('FeedService', self::ADWORDS_VERSION);
$selector = new \Selector();
$selector->fields = ['Id', 'Name', 'Attributes', 'FeedStatus'];
$feeds = $feedService->get($selector);
API doesn't allow to create feeds with such name because of "_" symbol and I get FeedError.INVALID_FEED_NAME error:
$textAttribute = new \FeedAttribute();
$textAttribute->type = self::EXT_ATTR_TYPE_STRING;
$textAttribute->name = 'Callout Text';
$feed = new \Feed();
$feed->name = "_Main callout feed";
$feed->attributes = [$textAttribute];
$feed->origin = 'USER';
$operation = new \FeedOperation();
$operation->operator = 'ADD';
$operation->operand = $feed;
$operations = [$operation];
When I try to use "ADWORDS" origin I get another error: FeedError.CANNOT_SPECIFY_ADWORDS_ORIGIN_FOR_NON_SYSTEM_FEED
So my question is:
Is there a way to create or get the default "_Main ... feed" through the API when it wasn't already created by Adwords?
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
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/a897d863-afb5-42dd-a4d0-dc34c19a9764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment