Get access to data for campaigns created by expert outside my company using Google Ads API - google-api

I have a company which does music promotion and we are working with Google Ads experts to run campaigns for us on some Youtube Videos.
We are currently tracking all the Youtube stats like comments, views, likes and etc... using the Youtube API.
But we would also like to track data from the Google Ads API like campaign_budget, click_views etc...
What would be the best way to do so.
Should I create a manager account and invite the google ads expert
or
Should he invite me as a client ?
In this case how could he give me a token that only works for my campaigns and not for the campaigns of other of its clients ?
Thanks
Giovanni

He should be running your campaigns in it's own account (if not then there's something dodgy going on!)
If that's the case he'll be able to invite you to the account, and then you'll be able to authorise the api access with your own Google account

Related

Post reviews to Google Business Profile

I am creating an app that allows users to rate businesses (who are our customers). The businesses would like the user reviews to be cross-posted to their Google Business Profile in addition to appearing as an in-app review in our ecosystem. Does anyone know if there is a way to embed a Google-blessed widget in a mobile app that would allow posting a review to the Google Business Profile?
New reviews can only be created via Google Maps UI or the Google Knowledge Graph UI. The Google Business Profile APIs only support listing and replying to reviews (https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews).
So the closest way to get directly to posting a new review would be via this URL pattern:
https://search.google.com/local/writereview?placeid=<PLACE_ID>
e.g.
https://search.google.com/local/writereview?placeid=ChIJj61dQgK6j4AR4GeTYWZsKWw

Lookup user's YouTube Account with Google Id

I need to locate the user's YouTube account/channel Google user Id.
A Google Search on find YouTube channel from google id yields several StackeOverflow possible options, some use the Google+ API which has been deprecated, but I'm sure there are alternatives using the Google Identity API or some other Google API.
Can anyone give me idea or a solution about how can I convert Google Account Id to YouTube Channel Id Account?
You need to remember that YouTube and google where originally two different companies there is probably no direct link that you are going to be able to hack your way to.
This is partly why (IMO) YouTube login is channel based. A user can have more then one channel so your not going to be able to find a single channel for a user relation its going to be a one to many relation. I dont think google has any way for you to see this without having the user login.
Your best option will be to ask the user to sign in and then use channels.list with the option mine.

Google Calendar API - Designed for?

I would like to implement a Google Calendar API using FullCalendar Javascript.
Before any start of coding I have some problem to understand what is the main purpose of the Google Calendar API.
As you know there is some Auth process before creation and enabling API.
That means that I, as owner or developer want to use Google Calendar API so I get client/secret/keys strings and it is OK.
I can create an app where I can “promote” my Google Account Calendar being public and then I can show all events from that calendar (dentist booking etc).
Also I am able to use Calendar in another way. For example: Within my App I can create one page where users can auth to their google accounts and see their events
are already created.
But, What if my logged users don't have a Google Accounts.
Google Calendar is strongly connected to already created google accounts? Is it possible to use Google Calendar strictly as an REST API?
I know that this may be a stupid questions but this is something that most of Google Calendar API beginners have problem with.
There are technically two ways of accessing a calendar on Google Calendar.
Your first option is where you are using Oauth2 to authenticate your users. They give you access to their google calendar and you can then insert events directly into their calendar. You can also see the events that they currently have. This as you said wont work if the user in question does not have a google account.
Your second option is to use something called a service account. Think of a service account as a dummy user. It has its own Google calendar account minus the web view. You could potentially us that to store events in a global calendar application calendar. Then when you want to add a user to an event you invite them you can set notification no they should receive an email and they will them be able to add the event to their own personal calendar. For you this may work out better because it does not require you to have access to the Users google calendar the only draw back will be there is no way for you to see if said user has any events going on at that time since you don't have access to their account to check.
I have given you a couple of links to some tutorials that I have write a few years ago that explains the difference between oauth2 and service accounts.
Google Calendars are tied to users, which means Google users. First of all, to access the API you need a GoogleAPIs developer key. This requires a Google account. Then you need Google accounts to use or test with the API.
The Google Calendar is tied to a user account as described at https://developers.google.com/google-apps/calendar/concepts/. One thing to notice is that "event" is an atomic unit in the API and a calendar is a set of events. In other words, a calendar in the Calendar API isn't a timespan like we think of "this year's calendar", it's a set of event objects. Within the app you describe, if the users don't have google accounts then they don't have associated calendars. You would have to tie these users to some kind of public or shared calendar. It's unclear if using the Calendar API solely as a REST API as you describe (without actual or "verified" user accounts) is in accordance with the Terms & Conditions. That aside, in theory it may be possible to use a service like that as a REST API to suit your needs. Maybe you can try inverting the problem so an event becomes the user with a primary calendar. Now the location of the event can be treated as the API-event. Other (normal Google) users can "attend" the location, at the given time, created by this event (=user). You could also apply the same approach to invert the problem by location. Location becomes the user, event becomes the API-event, and attendees are normal users. The latter approach is used commonly in businesses to book resources like rooms, equipment, etc.

Use Google Wallet in my website for recurring payment, including user-authentication

I have a website that provides a specific SW service.
I would like to allow users to subscribe to this SW service:
Sign-Up: the user provides credit card details, a username and a password.
Sign-In: the user enters username+password in order to get access to my SW service.
The user's credit card should be charged once per month (i.e., recurring payment).
I'm considering Google Wallet for this purpose, but there are a couple of issues that I'm concerned about:
Can I use the Google Wallet API in order to implement sign-up and sign-in, or should I implement user-authentication separately within my server?
Is the Google Wallet API available only for mobile devices? This is implied in both Google Wallet's website and in Wikipedia. My website is primarily intended for use through desktop PCs, and not through smartphones.
Thank you for your help!
For the sign-up / sign-in part, if you want to use Google's OAuth service you can try at the Google+ Sign-In.
For the recurring payment part, the Google Wallet for digital goods API offers a monthly subscription API and a web-based payment flow. If the user does not already have a credit card saved in their Wallet, they will be prompted only once to add a card.

Using linkedin API, which is the better way of know when was accepted my invitation

Which is the best way of know when was accepted an linkedin invitation using API?
I'm developing a social search web site using linkedin among other social networks.
In my site, any user, can add many linkedin user account to your site account, for then find people from linkedin using Linkedin People Search API (http://developer.linkedin.com/docs/DOC-1191.html)
with the peoples found, i could be to send and invitation or a direct message, depend of the level connection of linkedin account using for that...
Then, using Linkedin API, what is the best way to monitoring when the invitation was accepted?...
Per the documentation, there is no way to directly monitor messages or invitations that you send via the API to another user. So you'll need to come up with some way to monitor this off-line if it is something that you really need. One idea would be to keep track of the ID of the member's you are sending invitations to, and on subsequent (or periodic) calls to the Connections API, you could scan the returned list to see if any of the stored ID's are now connections, and take the appropriate action.
Hope this helps!

Resources