How to manage Location groups

96 views
Skip to first unread message

san...@knorex.com

unread,
Sep 14, 2024, 3:31:15 AM9/14/24
to Google Ads API and AdWords API Forum
Hi,
I see we can set Location groups in the Performance Max campaign.
I wonder whether can we manage them via Google Ads API or not?
1. How to get a list of location assets?
2. How to create/edit a location group?
3. How to add/remove location group into a campaign.
I attached screenshots.
Thank you.
location_group_1.png
location_group_2.png
location_group_3.png

Google Ads API Forum Advisor

unread,
Sep 16, 2024, 4:04:42 AM9/16/24
to san...@knorex.com, adwor...@googlegroups.com

Hi, 

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

After reviewing your concern, I would like to inform you to go through and follow the steps mentioned in the Location asset document to create/add location asset/group, also refer Performance max asset groups to create Asset groups in performance max campaigns.

I hope this helps.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vG9JF:ref" (ADR-00268197)

Thanks,
 
Google Logo Google Ads API Team


san...@knorex.com

unread,
Sep 17, 2024, 5:55:59 AM9/17/24
to Google Ads API and AdWords API Forum
Hi,
Thanks for the info. Now we can get the list of location asset sets via the table campaign_asset_set.
However, when we get location assets inside those asset sets, there is no basic info like the asset name.

SELECT asset_set_asset.asset, asset_set_asset.asset_set, asset_set_asset.resource_name, asset_set_asset.status, asset.id, asset.name, asset.location_asset.business_profile_locations, asset.location_asset.location_ownership_type, asset.location_asset.place_id, asset.type, asset.resource_name FROM asset_set_asset WHERE asset_set.id = abc

Response:

asset {
  resource_name: "customers/xxx/assets/xxx"
  type: LOCATION
  id: 102148499347
  location_asset {
    place_id: "ChIJeb-zUsgsT4gRorVBHMToRD5"
    business_profile_locations {
      store_code: "Charleston"
      listing_id: -4765484175702897042
    }
    location_ownership_type: BUSINESS_OWNER
  }
}

I attached the image, we have 1 location asset showing in the G Ads manager.

Regards,
Martin

location_assets.png

san...@knorex.com

unread,
Sep 22, 2024, 11:51:19 PM9/22/24
to Google Ads API and AdWords API Forum
Hi, 

Did you check this issue?

Martin

Google Ads API Forum Advisor

unread,
Sep 23, 2024, 7:42:11 AM9/23/24
to san...@knorex.com, adwor...@googlegroups.com

Hi,

By reviewing your concern, I understand that you are not able to retrieve some of the fields like asset_name. As you are trying to compare the Asset level data with Asset_set_asset data which are different resources which serve for different purposes. While comparing the data from the Google Ads UI and the API, you should compare the equivalent resources. As per the query you provided, I could see that you are comparing asset data so the equivalent resource from the Google Ads API would be asset resource not the asset_set_asset.

Here’s a sample query to get you started for asset. You can add any additional fields you require:

SELECT asset.id, asset.name, asset.location_asset.business_profile_locations, asset.location_asset.location_ownership_type, asset.location_asset.place_id, asset.type, asset.resource_name FROM asset WHERE asset.id = “Replace your asset Id”

Here’s a sample query to get you started for asset_set_asset. You can add any additional fields you require:

SELECT asset_set_asset.asset, asset_set_asset.asset_set, asset_set_asset.resource_name, asset_set_asset.status FROM asset_set_asset WHERE asset_set.id = “Replace you asset_set Id”

As I can see the provided screenshots are redacted, so we cannot see the customer id and asset_id, to replicate the issue from our end, so could you please provide us with the unredacted and uncropped UI screenshots to further investigate your issue?

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

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

san...@knorex.com

unread,
Sep 24, 2024, 3:16:57 AM9/24/24
to Google Ads API and AdWords API Forum
Hi,

I know about asset sets, and can get those info.
What we want to know is how to get a list of location assets with addresses.
In the response, it returns only place ID, not clear address.
----
Request
-------
MethodName: google.ads.googleads.v17.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=xxx, x-goog-api-client=gl-java/1.8.0_202 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 grpc/1.56.1}
Body: customer_id: "5355568482"
query: "SELECT asset.location_asset.business_profile_locations, asset.location_asset.location_ownership_type, asset.location_asset.place_id, asset.id, asset.name, asset.resource_name, asset.source FROM asset WHERE asset.type = \'LOCATION\'"

Response
--------
Headers: Metadata(content-disposition=attachment,content-type=application/grpc,request-id=Wvz6dPovqJ5fpTV7Oe1hBA,date=Tue, 24 Sep 2024 07:00:31 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)
Body: results {
  asset {
    resource_name: "customers/5355568482/assets/102148499257"
    id: 102148499257
    source: ADVERTISER
    location_asset {
      place_id: "ChIJiTjVZGVsAIkRKpJTExs3-WE"
      business_profile_locations {
        labels: "ECSSC"
        listing_id: 5123109052702335796
      }
      location_ownership_type: BUSINESS_OWNER
    }
  }
}
results {
  asset {
    resource_name: "customers/5355568482/assets/102148499260"
    id: 102148499260
    source: ADVERTISER
    location_asset {
      place_id: "ChIJO3sSB-s8TIYRDCdqo3r6Yp4"
      business_profile_locations {
        store_code: "LCOD1202-210004112"
        listing_id: 5650292623727015954
      }
      location_ownership_type: BUSINESS_OWNER
    }
  }
}

--- Here is what we see in the G UI

location_assets_3.png

Google Ads API Forum Advisor

unread,
Sep 24, 2024, 7:47:46 AM9/24/24
to san...@knorex.com, adwor...@googlegroups.com
Hi,

Location assets do not store the location details in the asset. Instead, they store a Place Id that allows you to obtain the data via the Places ID. To get the addresses of the location assets, you need to use the Places API which comes at cost. 
Reply all
Reply to author
Forward
0 new messages