How to GetUserList using Googld ads api ?
Hi public long LookAudienceIdUsingName(string name) { AdwordsUserListService userListService = (AdwordsUserListService)_user.GetService( AdWordsService.v201809.AdwordsUserListService); string query = $"SELECT Id, Name, Status, AccountUserListStatus Where Name = '{name}' ORDER BY Id Desc"; int offset = 0; int pageSize = 1; UserListPage page = new UserListPage(); string queryWithPaging = $"{query} LIMIT {offset}, {pageSize}"; page = userListService.query(queryWithPaging); foreach (UserList userList in page.entries) return page.entries[0].id; return 0; } The above is my C# code to get an audience Id calling AdWords API - this works fine no problem. I'm now migrating our integration to Google Ads API. Can you please provide a sample code that do the same as the above ? I couldn't find one. Thanks. Sarah -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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+unsubscr...@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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@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/a4dcfac3-42dc-4a42-9fc5-86b744b44390%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How to logout after obtaining refresh token for adwords api ?
I used this string.Format to form the url successfully to obtain a refresh token to access adwords api : string body = string.Format("code={0}_id={1}_secret={2}_uri={3}_type={4}", HttpUtility.UrlEncode(authorizationCode), HttpUtility.UrlEncode(_appConfig.OAuth2ClientId), HttpUtility.UrlEncode(_appConfig.OAuth2ClientSecret), HttpUtility.UrlEncode(_appConfig.OAuth2RedirectUri), HttpUtility.UrlEncode("authorization_code")); I would like to log that user out afterward. What's the string.Format to logout programmatically? Thanks in advance. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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+unsubscr...@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+unsubscr...@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/92e36aa2-698e-4c82-a6d0-f5b2fa089f3b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.