Hi everyone, I am trying to use the google ads api inorder to get more informations about my Pmax campaign. I do not find how I can get following
I need number of clicks, conversions, for every placement . Could you advise me on how to obtain this data by using the api (sql query) ?
Could you please help me
SELECT performance_max_placement_view.display_name, performance_max_placement_view.placement, performance_max_placement_view.placement_type, performance_max_placement_view.target_url, metrics.impressions, campaign.id FROM performance_max_placement_view WHERE campaign.id = campaign_id AND segments.date DURING LAST_30_DAYSYou can try making a request using the Search or SearchStream by passing the customer Id. Also, you can use QueryBuilder to create your query and QueryValidator to validate your query.
![]() |
Google Ads API Team |
[2025-03-25 02:11:46Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)
Hi,
Thanks for your response. Let me clarify what I am looking for:
I would like to retrieve the following details from my Performance Max campaign using the Google Ads API:
• Campaign name and ID
• Associated asset information (e.g., asset names, asset IDs, etc.)
• Placement URLs (where the ads appeared)
• For each placement URL, I need:
• Number of impressions
• Number of clicks
• Conversions (if available)
Could you provide guidance or a sample query on how I can obtain this specific information through the API?
Thank you!
Hi,
Please be advised that the retrieval of a combination of all provided fields within a single query is not possible. It is recommended that you utilize distinct reporting mechanisms, specifically the asset_group_asset, campaign and performance_max_placement_view reports. Comprehensive details regarding Performance Max reporting can be found in the API documentation.
To facilitate further assistance, could you please confirm if you are able to see all these fields together in the Google ads UI? If so, kindly provide an earlier requested uncropped Google Ads UI screenshot where you are able to get all the mentioned fields in a single page with the visibility of the customer Id.
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |
[2025-03-25 15:01:23Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)
![]() |
Google Ads API Team |
[2025-03-27 12:41:32Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)
![]() |
Google Ads API Team |
[2025-03-27 12:51:07Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)
Please note that there are different types of clicks at the URL level, such as clicks at the campaign level, asset group level, and asset level. Since you are specifically requesting information at the Performance Max placement URL level, I am providing the relevant details accordingly. Based on the available information, I understand that you are trying to retrieve the number of clicks for a Performance Max (PMax) campaign placement URL through the Google Ads API. However, the only relevant report available in the API is the 'performance_max_placement_view', which currently supports impressions but not clicks.
I would recommend you to refer to the Fields/Segments/Metrics guide to check the supported metrics, segments, and fields. We have also verified this in the Google Ads UI by navigating to:
Campaigns Tab > Insights and Reports > Report Editor > Template Gallery (under 'When and where ads showed') > Performance Max Campaigns placement.
When attempting to manually add the clicks field in the UI, it shows that this metric is not compatible with Performance Max Placement. For your reference, I am sharing relevant Google Ads UI screenshots. As mentioned earlier, the Google Ads API can only retrieve data that is available in the Google Ads UI. If a particular metric is not supported in the UI, it cannot be fetched via the API either.
If you need further assistance from the Google Ads API support team in retrieving this data, I would recommend you to share an uncropped screenshot of the Google Ads UI with the visible customer ID. This will help us better understand your request and provide accurate guidance. Without a screenshot, it would be difficult for us to accurately determine the data you are referring to and offer precise assistance.
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |
[2025-03-28 04:12:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)