How to get and set Final URL of a DYNAMIC_CUSTOM Business data feed

34 views
Skip to first unread message

Jesper Jørgensen

unread,
Oct 17, 2025, 7:30:36 PM10/17/25
to Google Ads API and AdWords API Forum
In the UI you can see the Final URL that has been uploaded:
datafeed.jpg

How do I get the final url value with GAQL like
query = f"""
    SELECT
      asset.resource_name,
      asset.dynamic_custom_asset.item_title,
      asset.dynamic_custom_asset.item_description,
      asset.dynamic_custom_asset.price
    FROM asset
    WHERE asset.dynamic_custom_asset.id = '11009'
"""
And how do you change the value through the API?
Had a look at this, that does not have a final url

Jesper Jørgensen

unread,
Oct 21, 2025, 5:57:25 PM10/21/25
to Google Ads API and AdWords API Forum
Update: 

I am now able to update (but not read) the final_url, with the following lines (Python)

# Update fields
operation.update.final_urls = ["https://www.mysite.dk/12345"]
operation.update.dynamic_custom_asset.item_title = "Updated Title5"
operation.update.dynamic_custom_asset.item_description = "Updated Description5"
operation.update.dynamic_custom_asset.price = "12.99 USD"

# Create the update mask
operation.update_mask.CopyFrom(
    field_mask.FieldMask(paths=[
        "final_urls",
        "dynamic_custom_asset.item_title",
        "dynamic_custom_asset.item_description",
        "dynamic_custom_asset.price"
    ])
)

Google Ads API Forum Advisor

unread,
Oct 22, 2025, 10:03:42 AM10/22/25
to jesper.fahno...@gmail.com, adwor...@googlegroups.com

Hi,

Based on the information provided, I understand that you are looking for guidance on how to retrieve 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.

If you encounter difficulties in interpreting the return results, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end.

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.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-10-22 14:02:54Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRDOW:ref" (ADR-00335908)



Google Ads API Forum Advisor

unread,
Oct 22, 2025, 10:08:14 AM10/22/25
to jesper.fahno...@gmail.com, adwor...@googlegroups.com

Hi,

Please ignore my previous email.

Based on the information provided, I understand that you are looking for guidance on how to retrieve 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.

If you encounter difficulties in interpreting the return results, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end.

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.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-10-22 14:07:21Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRDOW:ref" (ADR-00335908)



Reply all
Reply to author
Forward
0 new messages