Scope for pulling data from google ads API

27 views
Skip to first unread message

Rohit Sharma

unread,
Oct 19, 2020, 11:11:09 AM10/19/20
to AdWords API and Google Ads API Forum
Hi Team,

I am pretty new to google ads API. 

Problem Statement - I want to pull in campaign data from my google ads account using python google ads API. I am using a codebase from github https://github.com/googleads/google-ads-python/blob/master/examples/campaign_management/get_campaigns_by_label.py to ingest the data but running into an issue, error message - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. Few links on stackoverflow highlight that it may be issue related to scope. What all scopes are required in order to access data using google ads API ?

Appreciate if anyone can help here.

Google Ads API Forum Advisor Prod

unread,
Oct 19, 2020, 4:51:37 PM10/19/20
to rohitjag...@gmail.com, adwor...@googlegroups.com

Hi Rohit,

Thanks for reaching out. When you make API calls to the Google Ads API, you are supposed to authenticate yourself with a set of credentials. Please follow this guide to generate the OAuth2 credentials and configure them in the yaml file to successfully make the API calls.

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q26AMYo:ref
Reply all
Reply to author
Forward
0 new messages