Hi, Thank you for reaching out to the Google Ads API support team.
Please find the answers for your questions below: 1. Could you please confirm which Google Ads API endpoint or method should be used to fetch all location groups? You need to use the campaign_criterion resource to retrieve all the location groups from the Google Ads API. As you are specifically looking for the PMax campaigns, I have build a GAQL query using which you can retrieve the location groups of a PMax campaigns in the Google Ads API. You can find the sample GAQL query as per your requirement: SELECT campaign_criterion.criterion_id, campaign_criterion.type, campaign_criterion.resource_name, campaign.advertising_channel_type FROM campaign_criterion WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX' AND campaign_criterion.type = 'LOCATION_GROUP' You can use the search or searchStream methods in making the API calls while retrieving the data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API. 2. When creating a campaign via the API, which field in the campaign resource should be used to define or associate location groups? While creating a campaign via the API, you need to use the campainCriteria method for creating the location groups in the Google Ads API. I would recommend you to refer to the Create the campaign criteria documentation for more detailed information. Also, you can refer to the LocationGroupInfo guide for more information. However, I am providing you the sample request and response logs for creating the location groups for PMax campaign using the Google Ads API. Request Body: =============== POST https://googleads.googleapis.com/v19/customers/{customerId}/campaignCriteria:mutate?key=[YOUR_API_KEY] HTTP/1.1 developer-token: ********************** Authorization: Bearer [YOUR_ACCESS_TOKEN] Accept: application/json Content-Type: application/json { "operations": [ { "create": { "campaign": "customers/{customerId}/campaigns/{campaignId}", //PMax campaign ID "locationGroup": { "geoTargetConstants": [ "geoTargetConstants/2008" ], "radius": 3000, "radiusUnits": "METERS", "locationGroupAssetSets": [ "customers/{customerId}/assetSets/{assetSetId}" ] } } } ] } Response: =========== HTTP/1.1 200 content-encoding: gzip content-length: 128 content-type: application/json; charset=UTF-8 date: Thu, 24 Apr 2025 18:03:51 GMT server: ESF vary: Origin, X-Origin, Referer { "results": [ { "resourceName": "customers/{customerId}/campaignCriteria/{campaignId}~{campaignCriterionId}" } ] } I hope this clarifies. Thanks, Google Ads API Team Feedback How was our support today? [2025-04-24 18:24:57Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUriR:ref" (ADR-00301563) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 visit https://groups.google.com/d/msgid/adwords-api/SvD3X000000000000000000000000000000000000000000000SV8J5L00cIC5gIwzTWeZ0PB3Lwk-EQ%40sfdc.net.