Hello,
I had executed my first request in Python for test, using service account,
with the code below :
AUTH_PATH="lib/google-ads.yaml"
client = GoogleAdsClient.load_from_storage(AUTH_PATH)
ga_service=client.get_service("GoogleAdsService",version="v13")
query = """
SELECT
campaign.id,
ad_group.id,
ad_group.name
FROM ad_group
"""
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)
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}."
)
The request worked but it did not show the results. While I check the
results, it was masked
SearchPager<field_mask { paths: "campaign.id" paths: "ad_group.id" paths:
"ad_group.name" } >
How could I solve this problem pls ?
Thx
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/6036eca5-0cef-4917-9046-719736b10cf2n%40googlegroups.com.