/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> /// <param name="args">The command line arguments.</param> public static void Main(string[] args) { AddGoogleMyBusinessLocationExtensions codeExample = new AddGoogleMyBusinessLocationExtensions(); Console.WriteLine(codeExample.Description); try { // The email address of either an owner or a manager of the GMB account. string gmbEmailAddress = "INSERT_GMB_EMAIL_ADDRESS_HERE"; // To obtain an access token for your GMB account, run the OAuth Token // generator utility and copy the access token. Make sure you are // logged in as the same user as gmbEmailAddress above when running the // OAuth token generator utility. string gmbAccessToken = "INSERT_GMB_OAUTH_ACCESS_TOKEN_HERE"; // If the gmbEmailAddress above is for a GMB manager instead of the GMB // account owner, then set businessAccountIdentifier to the +Page ID of // a location for which the manager has access. See the location // extensions guide at // https://developers.google.com/adwords/api/docs/guides/feed-services-locations // for details. String businessAccountIdentifier = null; codeExample.Run(new AdWordsUser(), gmbEmailAddress, gmbAccessToken, businessAccountIdentifier); } catch (Exception ex) { Console.WriteLine("An exception occurred while running this code example. {0}", ExampleUtilities.FormatException(ex)); } }