Answers.Body: <p>I got some help to look into this. Turns out that when I first set it up, I didn't have things set up correctly on the Google side of things. Which I realized pretty early on and fixed. The problem was that the googlegroups extension creates and stores the access token in the database and then never refreshes it. So it had an incorrect value stored from when I first tried setting it up that Google was rejecting. It continued to not work even after I had gotten everything set up correctly since it never refreshed it. We forced it to refresh and then it worked :) –</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-26T03:42:12.463Z
Answers.Text: How did you force it to refresh?
Answers.UserDisplayName: Allen Hutchison
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-28T00:43:15.700Z
Answers.Text: added this around line 26 in the googlegroup\api\v3\Googlegroup.php file just before $accessToken=CRM_Core_BAO_Setting...
  
  CRM_Core_BAO_Setting::setItem($client->getRefreshToken(), CRM_Googlegroup_Form_Setting::GG_SETTING_GROUP, 'access_token' );
  
  reload the Googlegroups setting page in CiviCRM once with the line in, then comment it back out.
Answers.UserDisplayName: Cynthia Woodard
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-20T02:42:57.847Z
Answers.Text: We tried following these steps for our site, and we still can't get any groups to appear. There doesn't seem to be any verification of the API link with Google, in fact, it almost appears as though the plugin isn't being called at all.
Answers.UserDisplayName: Paul Dufresne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-24T23:18:11.473Z
Answers.Text: @CynthiaWoodard is this plugin still working for you?
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-26T02:32:03.683Z
Answers.LastActivityDate: 2016-01-26T02:32:03.683Z
Answers.UserDisplayName: Cynthia Woodard
Answers.Body: <p>I am on Wordpress, but I had the same problem. I saw the group, but could not see the field. The reason was that my connection to Google API was not properly setup.</p>
  
  <ol>
  <li><p>If you use Google Apps, pay attention, that on the Google Dev Console you create the Keys with a user which is a Google Domain Admin.</p></li>
  <li><p>You also need to enable the Advanced API for Admin SDK. Search in Googles Developer Console for the Admin SDK and click on enable API.</p></li>
  </ol>
  
  <p>When that was done, it took me a couple of hours of searching/debugging, the dropdown to select the groups appeared. </p>
  
  <p>regards,
  Alain</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-23T22:39:29.743Z
Answers.Text: I think I've done this correctly. 
  
  When I go here: https://admin.google.com/  The account I'm using is marked as a Super Admin. 
  
  THen I went here: https://console.developers.google.com  and made a project. 
  
  Then I went here: https://console.developers.google.com/apis/credentials?project=analog-ace-119621 and clicked on New Credentials.
Answers.UserDisplayName: Cynthia Woodard
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-23T22:39:35.657Z
Answers.Text: Selected OAuth Client ID. I selected Web application. left Authorized Javascript origins blank and entered http://www.mydomain.com/civicrm/googlegroup/settings?reset=1  as the authorized redirect uri. I turned on every API I could find. Admin SDK is turned on. 
  
  I copied the Client ID and Client secret and added them to the Google Groups setting page in CiviCRM and to googlegroup.php.
  
  Do you see anything I've missed or done incorrectly?
  
  Thanks so much for your response.
Answers.UserDisplayName: Cynthia Woodard
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-23T22:40:53.017Z
Answers.Text: In CiviCRM Googlegroups Settings, what did you put down for domain? Just the domain of your website? Any particular format? www.domain.com? http://www.domain.com? domain.com?
Answers.UserDisplayName: Cynthia Woodard
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-25T00:22:40.053Z
Answers.Text: I have used just domain.org in the settings. if you have access to your webhost you could try to debug, Try to edit the file api/v3/Googlegroups.php. What I had done, i have added error_log($e) in the exception handling in getgroups or getmembers function. Then check your webservers errorlog and you will see googles errorsmessage which gives you a hint what is missing.
Answers.UserDisplayName: Alain Schaefer
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-23T06:28:27.223Z
Answers.LastActivityDate: 2016-01-23T06:28:27.223Z
Answers.UserDisplayName: Alain Schaefer
Answers.Body: <p>I'm almost too embarrassed to post this: The solution for me was, on Mailings > Googlegroup Settings, to enter my google domain not my database domain. Why did I think of putting my database's URL there in the first place? It makes no sense to even consider it. Such an obvious mistake, I'm going to go crawl in a hole now. But I hope this confession helps someone else.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T22:33:15.017Z
Answers.LastActivityDate: 2016-10-12T22:33:15.017Z
Answers.UserDisplayName: Eric H
Body: <p>I think I have the connection with Google established. At least, Mailings/Googlegroup Settings confirms that I am connected. When I go to Manage Groups and select a group so I can set the Google Group to sync with, the Google Group box is blank. No groups to select.</p>
  
  <p>Would appreciate it if anyone had any ideas for solving this.</p>
  
  <p>Thanks!</p>
  
  <p>Drupal 7.4
  CiviCRM 4.6.11</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-12T23:15:20.610Z
Comments.Text: Cynthia, the extension you're referring to is https://civicrm.org/extensions/google-groups-civicrm-integration ?
Comments.UserDisplayName: Joe McLaughlin
Tags: <drupal><groups>
Title: No Google Groups showing up after setting up Googlegroups Sync extension
ThreadText: # No Google Groups showing up after setting up Googlegroups Sync extension
  
  (Asked by: username_0 on 2016-01-22)
  
  I think I have the connection with Google established. At least, Mailings/Googlegroup Settings confirms that I am connected. When I go to Manage Groups and select a group so I can set the Google Group to sync with, the Google Group box is blank. No groups to select.
  
  Would appreciate it if anyone had any ideas for solving this.
  
  Thanks!
  
  Drupal 7.4
  CiviCRM 4.6.11
  
  **Tags:** drupal, groups
  
  > **Comments:**
  > **username_1**: Cynthia, the extension you're referring to is https://civicrm.org/extensions/google-groups-civicrm-integration ?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2016-01-26. Score: 1 | Accepted answer
  
  I got some help to look into this. Turns out that when I first set it up, I didn't have things set up correctly on the Google side of things. Which I realized pretty early on and fixed. The problem was that the googlegroups extension creates and stores the access token in the database and then never refreshes it. So it had an incorrect value stored from when I first tried setting it up that Google was rejecting. It continued to not work even after I had gotten everything set up correctly since it never refreshed it. We forced it to refresh and then it worked :) –
  
  > **Comments:**
  > **username_2**: How did you force it to refresh?  
  > **username_0**: added this around line 26 in the googlegroup\api\v3\Googlegroup.php file just before $accessToken=CRM_Core_BAO_Setting...  CRM_Core_BAO_Setting::setItem($client->getRefreshToken(), CRM_Googlegroup_Form_Setting::GG_SETTING_GROUP, 'access_token' );  reload the Googlegroups setting page in CiviCRM once with the line in, then comment it back out.  
  > **username_3**: We tried following these steps for our site, and we still can't get any groups to appear. There doesn't seem to be any verification of the API link with Google, in fact, it almost appears as though the plugin isn't being called at all.  
  > **username_4**: @CynthiaWoodard is this plugin still working for you?  
  
  ---
  
  ### Answer by username_5 on 2016-01-23. Score: 2
  
  I am on Wordpress, but I had the same problem. I saw the group, but could not see the field. The reason was that my connection to Google API was not properly setup.
  
  1. If you use Google Apps, pay attention, that on the Google Dev Console you create the Keys with a user which is a Google Domain Admin.
  2. You also need to enable the Advanced API for Admin SDK. Search in Googles Developer Console for the Admin SDK and click on enable API.
  
  When that was done, it took me a couple of hours of searching/debugging, the dropdown to select the groups appeared.
  
  regards,
  Alain
  
  > **Comments:**
  > **username_0**: I think I've done this correctly.   When I go here: https://admin.google.com/  The account I'm using is marked as a Super Admin.   THen I went here: https://console.developers.google.com  and made a project.   Then I went here: https://console.developers.google.com/apis/credentials?project=analog-ace-119621 and clicked on New Credentials.  
  > **username_0**: Selected OAuth Client ID. I selected Web application. left Authorized Javascript origins blank and entered http://www.mydomain.com/civicrm/googlegroup/settings?reset=1  as the authorized redirect uri. I turned on every API I could find. Admin SDK is turned on.   I copied the Client ID and Client secret and added them to the Google Groups setting page in CiviCRM and to googlegroup.php.  Do you see anything I've missed or done incorrectly?  Thanks so much for your response.  
  > **username_0**: In CiviCRM Googlegroups Settings, what did you put down for domain? Just the domain of your website? Any particular format? www.domain.com? http://www.domain.com? domain.com?  
  > **username_5**: I have used just domain.org in the settings. if you have access to your webhost you could try to debug, Try to edit the file api/v3/Googlegroups.php. What I had done, i have added error_log($e) in the exception handling in getgroups or getmembers function. Then check your webservers errorlog and you will see googles errorsmessage which gives you a hint what is missing.  
  
  ---
  
  ### Answer by username_6 on 2016-10-12. Score: 0
  
  I'm almost too embarrassed to post this: The solution for me was, on Mailings > Googlegroup Settings, to enter my google domain not my database domain. Why did I think of putting my database's URL there in the first place? It makes no sense to even consider it. Such an obvious mistake, I'm going to go crawl in a hole now. But I hope this confession helps someone else.
  
  
  ---
  
  