Service account and client secret

484 views
Skip to first unread message

Shikha Arzare

unread,
Jun 9, 2021, 3:43:24 AM6/9/21
to AdWords API and Google Ads API Forum
Hi Team,

We are beginner to Google ADs API and integrating with it to access ADs specific data for one of our client. The client is already registered for Google ADs with having service account. 

As per documentation if we want to call ADs related API then we have to use client Id and client secret as an authentication way but the our client is having service account, so we can't see the value of client secret in his account. 
We are referring the examples which Google ADs published, it is using client Id, client secret for calling API. We tried to search it on internet but unfortunately couldn't find anything. 

So could you please guide us how can we get value for 'client secret ' corresponding to his service account.

Please let me know in case of any query.

Thanks,

Google Ads API Forum Advisor

unread,
Jun 10, 2021, 1:30:49 AM6/10/21
to shikha...@hiteshi.com, adwor...@googlegroups.com

Hello there,

Thank you for reaching out to us.

With regard to your concern related to service account, we suggest that you follow this guide on setting up the Google Ads API using service accounts. As stated on that guide, we strongly recommend using OAuth2 desktop app or web app flow instead of service accounts unless you need a domain-specific feature (for example, impersonation).

Also included in the above guide are the steps on how you can create your client ID, client secret, and refresh token, for the desktop app flow.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I1MKN:ref

shikha...@hiteshi.com

unread,
Jun 14, 2021, 2:10:39 AM6/14/21
to AdWords API and Google Ads API Forum
Thanks Team.

 Our client wants to use service account only and as we saw your guide it recommends to use client OAuth client instead of service account.

I am working on it for last 2 weeks, and confused. For getting below details (tracking ) for campaigns which way needs to be used service account or OAuth client?

IP = IP of click
app = app Id for marketing
device = device type id of user mobile
phone (eg iphone 6 plus, huawei etc)
OS = OS version
channel = channel id of publisher
click_time = time stamp of click (UTC)

And also there is no API, as I searched very much, seems to return above parameters, so could you please let me know which scope's which API would be used for this?

Thanks.

Google Ads API Forum Advisor

unread,
Jun 14, 2021, 10:57:48 PM6/14/21
to shikha...@hiteshi.com, adwor...@googlegroups.com
Hi Shikha,

I work with Mark and allow me to assist you.

For generating a service account, you may continue to refer to this guide. For issues that you may encounter when authenticating using the service account, even after following the API guide, you may reach out to the Google API Console support team, via this link, as they are the more appropriate team to provide guidance related to authentication credentials.

You may also note that you can use either the recommended flow or the service account to authenticate your API requests to retrieve, create, or modify data within your Google Ads account. 

As for the below :

1. "IP = IP of click app =

app Id for marketing
device = device type id of user
mobile phone (eg iphone 6 plus, huawei etc)
OS = OS version
channel = channel id of publisher
click_time = time stamp of click (UTC)"

2. "And also there is no API, as I searched very much, seems to return above parameters, so could you please let me know which scope's which API would be used for this?" Could you further elaborate your concern on the above items?

So our team can more accurately assist you, could you further elaborate on the above items?

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I1MKN:ref

Shikha Arzare

unread,
Jun 15, 2021, 5:11:13 AM6/15/21
to ads...@forumsupport.google, adwor...@googlegroups.com
Hi,

Our client needs the campaign specific tracking data from Google ADs APi programmatically i.e.

CampaignID
channel
Js enabled
VPN/Proxy in use
Country
City
Continent
Language
Browser
ISP
IP = IP of click
app = app Id for marketing
device = device type id of user mobile
phone (eg iphone 6 plus, huawei etc)
OS = OS version
channel = channel id of publisher
click_time = time stamp of click (UTC)

So, which scope and which API we need to use to get all the above details.

Please suggest.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/_Tnnu000000000000000000000000000000000000000000000QUQ2VR00tzutvSW4RxqSMGcYfPECAQ%40sfdc.net.
Reply all
Reply to author
Forward
0 new messages