Google Ads API integration

58 views
Skip to first unread message

Alex Rocha

unread,
Jun 5, 2023, 3:44:03 AM6/5/23
to Google Ads API and AdWords API Forum
Hello,

We develop an invoice management tool and we want to automatise google ads invoice fetching for our customers.

But, by investigating the Google Ads API it's not clear if this is possible. We have an Google App to authenticate our users (OAuth2) but we would need the developer token for each of our customers accounts right? 

And accordingly with the documentation, each App can use only one Developer token.

The concept of service accounts goes in the same direction right? (one app per "customer")

Am I not seeing something or that's the objective?
- companies should be able to "automatise" their own invoices only with the API.

Google Ads API Forum Advisor

unread,
Jun 8, 2023, 7:24:02 AM6/8/23
to alexs...@gmail.com, adwor...@googlegroups.com

Hi Alex, 

Thank you for reaching out to Google Ads API Forum.

Please note that as mentioned in the document for obtaining developer token (https://developers.google.com/google-ads/api/docs/first-call/dev-token)“Each Google API Console project can be associated with the developer token from only one manager account and the compliance team can only grant one developer token under an entity or organization regardless if they are not in the same hierarchy.  

Note that the developer token is like a license key; it is tied to an MCC account for approval purposes, but once approved, you can use it to make calls against any Google Ads account. The MCC hierarchy for making API calls doesn't matter. That being said, you’ll need only to authenticate API requests with OAuth2 credentials (https://developers.google.com/google-ads/api/docs/oauth/cloud-project) using the email with the appropriate access (https://support.google.com/google-ads/answer/9978556?visit_id=637631240193711507-751960742&rd=1) to the accounts (customer_id) you will specify in your requests. Please make sure you use the correct login-customer-id that you used to generate the OAuth2 credentials.

With regards to using service accounts, you may try to refer to this API documentation (https://developers.google.com/google-ads/api/docs/oauth/service-accounts) that discusses how to access the Google Ads API with service accounts for more information.

Moreover, you may check this guide (https://developers.google.com/google-ads/api/docs/billing/invoice#retrieving_invoices) for retrieving invoices in Google Ads API. If this is not what you are looking for, can you elaborate more on your concern? This is so we could provide more appropriate recommendations.

This message is in relation to case "ref:_00D1U1174p._5004Q2m9MO5:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages