RE: final url from custom dynamic ad feed - gaql/api

3 views
Skip to first unread message

Google Ads API Forum Advisor

unread,
5:43 AM (10 hours ago) 5:43 AM
to jesper.fahno...@gmail.com, adwor...@googlegroups.com
Hi,

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

Based on the information provided, I understand that you are looking for guidance on how to retrieve and set the custom dynamic ad feed asset using the Google Ads API. To retrieve the final URL, I would recommend you to include the asset.final_urls field from the asset resource using the Google Ads API. However, I am sharing the sample GAQL query as per your requirement: 
SELECT asset.resource_name, asset.dynamic_custom_asset.item_title, asset.dynamic_custom_asset.item_description, 
asset.dynamic_custom_asset.price, asset.final_urls FROM asset WHERE asset.dynamic_custom_asset.id = '{dynamicCustomAssetId}'
From the above GAQL query you will be able to retrieve the asset resource name and the final urls of an asset as per your screenshot. To update the final URL of a custom dynamic ad feed asset, I would recommend you to use the AssetService and pass the resource name which is obtained from the above query and then update the finalUrls field. However, I am providing you the sample request body as per your requirement: 
Request Body:
==============
POST https://googleads.googleapis.com/v22/customers/{customerId}/assets:mutate?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "update": {
        "finalUrls": [
          "https://examplechnagedurl2.com"
        ],
        "resourceName": "customers/{customerId}/assets/{assetId}"
      },
      "updateMask": "finalUrls"
    }
  ]
}
Additionally, you can refer to this code example as it clearly explains how to use the Asset service for managing the final urls using the Google Ads API. This will allow you to successfully update the custom dynamic ad feed asset using the Google Ads API. 

I hope this clarifies. 
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-10-21 09:43:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRDOb:ref" (ADR-00335909)



Reply all
Reply to author
Forward
0 new messages