Hi, Please see my responses below in blue and let me know if you have any follow-up questions.
Thanks, Josh, AdWords API Team On Wednesday, May 6, 2015 at 9:38:22 AM UTC-4, Лена Про wrote: > > Hello! > > > 1) I need to check if Google My Business account is connected to AdWords > and at this moment. As far as I know, I can perform a get request on > *FeedService > *with predicates* FeedStatus = Enabled* and *Origin = AdWords* > By doing so, I am getting a lot of Feeds, I have to loop through them and > check if the feed contains *PlacesLocationFeedData *object in > *systemFeedGenerationData*. > > Is it possible to get only the Feed with *PlacesLocationFeedData *object? > You cannot filter by any of the attributes of PlacesLocationFeedData <https://developers.google.com/adwords/api/docs/reference/v201502/FeedService.PlacesLocationFeedData>, unfortunately. You could try one of the following, however: 1. Add a predicate for status <https://developers.google.com/adwords/api/docs/reference/v201502/FeedService.Feed#status> *= ENABLED* to reduce the number of *Feed* objects returned OR 2. First issue a CustomerFeedService.get <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerFeedService#get> with a predicate on *placeholderTypes <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerFeedService.CustomerFeed#placeholderTypes> CONTAINS_ANY [7] AND status <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerFeedService.CustomerFeed#status> = ENABLED*, then use the CustomerFeed.feedId <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerFeedService.CustomerFeed#feedId> of the returned object to select the *Feed* using FeedService.get <https://developers.google.com/adwords/api/docs/reference/latest/FeedService#get> . > Is there any easier way to get corresponding GMB account, particularly the > email address? > I'm not aware of an alternate way to get this information via the AdWords API. > > 2) How to get the status, if GMB locations are synchronized or not, and > the list of locations available? > You can only determine if the sync process is complete when you *first* create a *Feed* with a *PlacesLocationFeedData*. As soon as you create the *Feed*, AdWords will start the sync process with *Google My Business* in the background. Until that initial sync completes, any attempt to create a *CustomerFeed* referencing the new feed ID will fail. After that, there isn't a way to determine if incremental updates have been synchronized. The synchronization process often only takes a few minutes, but it can take up to 24 hours. To retrieve the list of locations, you can issue a FeedItemService.get <https://developers.google.com/adwords/api/docs/reference/latest/FeedItemService#get> for the feed ID. > 3) How to get campaign-level location extensions through API? (If GMB > account is connected, locations are synced and user has added > campaign-level location extensions) > This can be tricky because you have to parse the *CampaignFeed* matchingFunction <https://developers.google.com/adwords/api/docs/reference/v201502/CampaignFeedService.CampaignFeed#matchingFunction>. If you want to try to do this, please check out our matching function guide <https://developers.google.com/adwords/api/docs/guides/feed-matching-functions> that explains the possible function formats. If you are only interested in seeing location extensions *with impressions*, then you can use the PLACEHOLDER_FEED_ITEM_REPORT <https://developers.google.com/adwords/api/docs/appendix/reports#placeholder-feed-item> and include the *CampaignId* and *AdGroupId* fields. > Thanks. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c4130566-3e45-4a47-8036-3c093b1f7384%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
