pythongoogle-apigoogle-ads-apiads-api

Not getting data from Google Ads API


I follow all step of connectivity to Google Ads API. Using it I get account info like account number and time zone etc. But when I call API for campaign id or ads group at that time it return below output. In ads account (ui) I can see many campaigns.

output :

SearchPager<field_mask { paths: "campaign.id" paths: "ad_group.id"paths: "ad_group.name"}>

additionally : above output is getting in result variable and after that the for loop is not executing in image ofimage of code code


Solution

  • After some research I found that in code when you enter customer_id at that time it will be of manager account. and in load_from_storage non manager account developer token and that's all. Now I can fetch all data from ads account