Permax campaign: how to get number of clicks per url placement (google ads api)

99 views
Skip to first unread message

Anton Goldberg

unread,
Mar 24, 2025, 5:22:14 PMMar 24
to Google Ads API and AdWords API Forum

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

Google Ads API Forum Advisor

unread,
Mar 24, 2025, 10:12:54 PMMar 24
to anton...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

To know more about the Pmax campaigns and their available resources, I would suggest to refer to the Pmax reporting. To know about the metrics of a placement, please refer to the Performance Max campaign placements and the below sample query:
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_DAYS
You 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.

If you are trying to retrieve any specific information from Google Ads API, please provide us with the uncropped UI screenshot with a visible customer Id by highlighting the fields or metrics that you are trying to fetch from API.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-25 02:11:46Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)



Anton Goldberg

unread,
Mar 25, 2025, 5:27:11 AMMar 25
to Google Ads API and AdWords API Forum

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!

Google Ads API Forum Advisor

unread,
Mar 25, 2025, 11:02:31 AMMar 25
to anton...@gmail.com, adwor...@googlegroups.com

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.

 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-03-25 15:01:23Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)



Anton Goldberg

unread,
Mar 27, 2025, 4:59:09 AMMar 27
to Google Ads API and AdWords API Forum
Hi,

I'm trying to retrieve specific data from Google Performance Max campaigns using an SQL join across several tables. My goal is to pull detailed information about URLs, including the number of clicks each URL has received. However, I'm unable to find the appropriate way or the correct fields to accurately retrieve the number of clicks per URL within Performance Max.

Could you please guide me on how to perform this query correctly? Specifically, I'd appreciate your assistance in identifying the correct Google Performance Max tables, fields, and recommended joins to achieve this.

Thank you for your support.

Best regards,

Google Ads API Forum Advisor

unread,
Mar 27, 2025, 8:42:14 AMMar 27
to anton...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that you can retrieve the data from Google Ads API only if you can retrieve it by using Google Ads UI. As requested earlier, kindly provide us with the uncropped UI screenshot if you are able to get the data so that we can help you get the same using the Google Ads API. Kindly ensure to make the customer ID visible in the provided screenshot.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-03-27 12:41:32Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)



Google Ads API Forum Advisor

unread,
Mar 27, 2025, 8:51:45 AMMar 27
to adwor...@googlegroups.com, anton...@gmail.com
Hi,

Kindly disregard my previous email. Please note that you can retrieve the data from Google Ads API only if you can retrieve it by using Google Ads UI. As requested earlier, kindly provide us with the uncropped UI screenshot if you are able to get the data so that we can help you get the same using the Google Ads API. Kindly ensure to make the customer ID visible in the provided screenshot.


You can send the details via Reply privately to the author option, or direct private reply to this email.​ ​ ​ ​
Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-03-27 12:51:07Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)



Anton Goldberg

unread,
Mar 27, 2025, 5:51:08 PMMar 27
to Google Ads API and AdWords API Forum
Hello,

thank you for this advice. However, I think there could be a way to obtain the data I am searching for. All what I need is to know from which table I can get the number of clicks on a url. Is there a way to get this data with the API?  I do not see it on the UI but it is a basic info...

Google Ads API Forum Advisor

unread,
Mar 28, 2025, 12:13:31 AMMar 28
to anton...@gmail.com, adwor...@googlegroups.com
Hi,

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.​

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-03-28 04:12:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHCLy:ref" (ADR-00296324)



Screenshot 2025-03-28 9.40.09 AM.png
Screenshot 2025-03-28 9.40.01 AM.png
Reply all
Reply to author
Forward
0 new messages