Location Extensions With Google My Business Account

141 views
Skip to first unread message

Лена Про

unread,
May 6, 2015, 9:38:22 AM5/6/15
to adwor...@googlegroups.com
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?

Is there any easier way to get corresponding GMB account, particularly the email address?

2) How to get the status, if GMB locations are synchronized or not, and the list of locations available?

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)

Thanks.

Josh Radcliff (AdWords API Team)

unread,
May 6, 2015, 6:07:28 PM5/6/15
to adwor...@googlegroups.com, gar...@realweb.ru
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, unfortunately. You could try one of the following, however:
  1. Add a predicate for status = ENABLED to reduce the number of Feed objects returned OR
  2. First issue a CustomerFeedService.get with a predicate on placeholderTypes CONTAINS_ANY [7] AND status = ENABLED, then use the CustomerFeed.feedId of the returned object to select the Feed using 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 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. If you want to try to do this, please check out our matching function guide 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 and include the CampaignId and AdGroupId fields.


Thanks.
Reply all
Reply to author
Forward
0 new messages