I'm writing an application for limited amount of users and logging to app is designed only via google accounts. Now I need to add functionality of adding permissions of accessing app based on email address. Problem is, on the database level, verification of permission to access app is based on Google ID. Since Google ID is more of less not a secret information, is there a way how to get Google ID of account based on email address, without actually logging in with this account?
Related
I am trying to create a web application (backend is in PHP / Laravel), with this functionality
user ads a valid gmail address
system checks if the address is valid and if such a address is assigned to a Google Ads Account
if true, system should "somehow" retrieve the customerId of the google ads account, or all of them if there are more than one accessible from the address
system checks if the ads account is an MCC account
step
if so, system should list all of the customers the mcc account is "handling"
...
My question is - how do I do step 3?
The "input" data I have is the e-mail address, at this point I already know that it's valid, and the account has already given permission to my application to access google ads, I have everything properly configured, but
I have no clue HOW to do it. The official API documentation is not very helpful, just like the official PHP library which I'm using, it assumes that I KNOW the customerId (or the loginCustomerId in the case of MCC accounts).
Any clue how could I do it?
We want to send email to logged in users in our Drupal application. We are authenticating using AAD and our site is hosted in Azure app service.
we have a generic service account with a mailbox attached and we would like to notify the logged in users in case of any event using MS graph API and O365 connections.
Can we please get some guidance in this respect.
You can use the Graph API to send emails from your service account. Where you are going to have a problem is with identifying logged in users. An AAD token will be valid for your site even if the user originally signed in somewhere else, so logging signins isn't foolproof. Unless your users specifically sign out, the token will also be valid past when they stop using the site.
If you wanted to go down this road, then doing some logging of user actions and then sending the email to users that have been active within X amount of time might be an option.
If your goal is to notify users and you don't need an email specifically, then you might want to looking into using websockets or something similar to send notifications to the users within their browser.
I am trying to create a website where a user can sign up for the site (with a master username and password) and enter account information for various services, Google (anayltics, adwords) and non google (hootsuite).
Once they have created their account and logged in, it will take them to a custom page displaying their data from the various services.
I have created a Google Console Developer account and created the credentials (API keys, 0Auth2.0 client ids, and a service account.)
How I will access the users' custom data? The information I entered when setting up the credentials pertained to the server my website is hosted on. When I call the API won't I be getting data on my own website?
Which ID will I use to access the users' data like their Audience overview? Will I need their Google account information to be stored (username and password) or will username be enough? I haven't been able to find this information reading the beginners guides nor on YouTube.
I've downloaded the PHP client library for Google Adwords API. I need to insert my login details in /src/Google/Api/Ads/AdWords/auth.ini. One of the variable is developerToken.
How can I get it?
Directly from the API...
Your assigned Developer Token will be activated once your application
for API access is approved. Your token will be available through your
AdWords API Center—accessible through the My Account menu for the MCC
account you applied with. You'll be able to access the API by
including it in your request headers when interacting with our system.
It is very important that you keep your Contact Email up to date—we
may send you important information regarding disruptions to service
and urgent changes via this channel.
https://developers.google.com/adwords/api/docs/signingup
I understand this might be old, but since Google updated their API, let me share my experience.
You need to create an MCC account (My Client Center), basically if you already have a Google Adwords account you cannot use it to generate developerToken however, you still can you use same Gmail account to create a new MCC account.
Follow below:
https://adwords.google.com/home/tools/manager-accounts/
Click on Start Now
Probably you are already logged in using your Gmail account, in all cases use your Gmail account in the email address field.
Choose name for your account let's say main-account
Do not click save and continue
Check below picture, you need to click, click here in the message below.
You will then redirect to the main dashboard, where you can click on Tools and then under SETUP tab you will find Adwords API Centre where you will be able to generate developerToken
you have to use the developer token from your live account. The token will work fine even if its status is pending
I am building an app on top of Google Reader. Since users have to enter their Google Account data, I'd like to use this data to assign personal settings to each user.
However, if I do so and a user would change his email adress or password(for the whole Google Account), I wouldn't be able to identify him anymore.
Thus, I need to know if there's a Google Account ID or something that I can use to identify users regardless of an email adress or password.
Thanks for your help!
If you use the Google Account API, you can connect the user to your app using OpenID or OAuth. Both methods return an account ID which stays static for that user.
More information: http://code.google.com/apis/accounts/