Hi Evaldas,
Thank you for reaching out to us.
Kindly note that you cannot opt in or out of automated extensions feature using the Google Ads API. This is done through the Google Ads UI. If you want further insights regarding this, you may reach out instead to the Product team via this link (https://support.google.com/google-ads/gethelp), as they are better equipped to provide guidance on UI-related matters.
You may also check this documentation (https://developers.google.com/google-ads/api/docs/extensions/assets/automated-asset-extensions) for more information on Dynamic extensions.
Let me know if this is what you are looking for. If not, then you may provide more details on it, so that we could provide precise guidance accordingly.
![]() |
Google Ads API Team |
Hi Evaldas,
Thank you for your clarification and the screenshot you have provided.
Upon checking you may change the Final URL setting via API by changing the url_expansion_opt_out field of the campaign. Please refer to this documentation for more information(https://developers.google.com/google-ads/api/reference/rpc/v14/Campaign#url_expansion_opt_out). You may also refer to the code example found in this documentation for Creating a campaign(Performance Max) - https://developers.google.com/google-ads/api/docs/performance-max/create-campaign#php. Here you will find the part of the code where you can set “url_expansion_opt_out” during the creation.
Please also note that changing the TEXT ASSETS option in the “Automatically created assets” is currently not available in the Google Ads API. Allow me to raise a feature request for this to become available in the API. Kindly note that this is a subject for review and what we can do is to advise you to keep an eye on our blog post for the updates and releases.
I hope this information is helpful. Let me know if you have any questions.
![]() |
|
Hi:
I'll consult with a colleague on the Performance Max team and get back to you.
![]() |
|
asset_automation_settings {
asset_automation_type: TEXT_ASSET_AUTOMATION
asset_automation_status: OPTED_OUT
}
asset_automation_settings {
asset_automation_type: GENERATE_SHORTER_YOUTUBE_VIDEOS
asset_automation_status: OPTED_OUT
}
asset_automation_settings {
asset_automation_type: GENERATE_VERTICAL_YOUTUBE_VIDEOS
asset_automation_status: OPTED_OUT
}
request-id=6BrN25X-bKip5q8xkbsKmg
message: "Multiple errors in \342\200\230details\342\200\231. First error: The enum value is not permitted., at operations[0].update.asset_automation_settings[1].asset_automation_type"
Peter:
Pete:
My colleagues on the Performance Max and Campaigns did not have an answer and it is now with the assets team. I just pinged the manager there for an update.
Amit:
https://developers.google.com/google-ads/api/performance-max/assets Key Point describes the process if you want to set TEXT_ASSET_AUTOMATION to OPTED_OUT.
I just pinged the PMax team about the other two settings and whether they will be applicable to PMax in the next release.
Amit:
YouTube videos enums are currently only allowed for Demand Gen ads. In v19 we'll expose GENERATE_ENHANCED_YOUTUBE_VIDEOS, which is allowed for PMax campaigns and controls generation for both shorter and vertical videos.