I have follow all step to of connectivity. I get data of my google ads account like name, customer id, time zone etc. But when I call API for campaign details or any other ad group details at that time it is getting below output. In UI I can see many campaigns but through API I can not getting it.
Output: SearchPager<field_mask { paths: "campaign.id" paths: "ad_group.id" paths: "ad_group.name" } > Code: In result variable I got above value and after that for loop is not executing ga_service = client.get_service("GoogleAdsService") query = """ SELECT campaign.id, ad_group.id, ad_group.name FROM ad_group""" if campaign_id: query += f" WHERE campaign.id = {campaign_id}" search_request = client.get_type("SearchGoogleAdsRequest") search_request.customer_id = customer_id search_request.query = query search_request.page_size = _DEFAULT_PAGE_SIZE results = ga_service.search(request=search_request) print(results) for row in results: print( f"Ad group with ID {row.ad_group.id} and name " f'"{row.ad_group.name}" was found in campaign with ' f"ID {row.campaign.id}." ) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/268b9043-18c0-4d02-b8a0-bd430b9435e2n%40googlegroups.com.