Google Ads API PHP - How to disable an option "Automatically created assets" when creating campaign

821 views
Skip to first unread message

Evaldas Gudavičius

unread,
Jul 17, 2023, 4:36:23 PM7/17/23
to Google Ads API and AdWords API Forum
Hi,

I'm following this instruction to create a performance max campaign -> https://developers.google.com/google-ads/api/samples/add-performance-max-campaign

But I can't find how to Disable these settings when creating the campaign.
  • Automatically created assets
    • Text assets
    • Final URL
Thanks


Google Ads API Forum Advisor

unread,
Jul 18, 2023, 6:51:57 AM7/18/23
to evaldas.g...@gmail.com, adwor...@googlegroups.com

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.


This message is in relation to case "ref:_00D1U1174p._5004Q2n8hFW:ref"

Thanks,
 
Google Logo Google Ads API Team


Evaldas Gudavičius

unread,
Jul 18, 2023, 6:56:45 AM7/18/23
to Google Ads API and AdWords API Forum
Hi,

Thank you for your answer, but I think we're talking about different things.

You're talking about automated asset extensions.

I'm talking about Performance Max campaign settings:

This is a Campaign Settings, not extensions.

Please see the attachment.

Are you sure that there is no way to change this campaign setting via Google Ads API?

Screenshot 2023-07-18 at 13.54.39.png

Google Ads API Forum Advisor

unread,
Jul 18, 2023, 10:17:28 AM7/18/23
to evaldas.g...@gmail.com, adwor...@googlegroups.com

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. 

Nick Hall

unread,
Sep 21, 2023, 6:12:32 PM9/21/23
to Google Ads API and AdWords API Forum
Hi, I also have a question about API support for Automated Assets. Per this doc (About automatically created assets - Google Ads Help), this is "an opt-in, campaign-level setting" for responsive search ads. But per this other doc (Automated assets  |  Google Ads API  |  Google for Developers) and the earlier replies here, it seems you can only opt in or opt out of this setting via the web UI, which is an unfortunate missing feature. 

However, I am wondering if it is possible just to check if this setting is enabled for a given campaign via the API (i.e. just read the setting field and not write to it)? It seems there already is an AssetSource field for Asset entities and it is also possible to retrieve automated assets by filtering with AssetSource = AUTOMATICALLY_CREATED. But I would like to be able to check if automated assets are enabled at campaign-level for specific campaigns-- is this currently possible or planned soon now that this feature is generally available? (Source: Google rolls out automatically created assets to all advertisers [eb20-5bf6-aa7-d1db] (searchengineland.com)

Thanks

Google Ads API Forum Advisor

unread,
Sep 25, 2023, 3:35:44 PM9/25/23
to nhal...@gmail.com, adwor...@googlegroups.com
Currently, you can only opt in or out via the UI. In a future release you will be able use the API to report on whether system create created assets are enabled for a campaign and you will be able to filter by system created vs user supplied. I don't have an exact timeline.

Each release of our API contains a release notes list at https://developers.google.com/google-ads/api/docs/release-notes. When this functionality is available, it will be listed there.

For future reference, you will frequently see new functionality introduced in the UI first, and only when it is determined that it is to be a long term feature is it incorporated into the API.

 
This message is in relation to case "ref:_00D1U1174p._5004Q2n8hFW:ref"

Thanks,
 
Google Logo
Bob Hancock
Google Ads API Team


Susmit Kumar Mishra

unread,
Oct 29, 2024, 5:19:31 AM10/29/24
to Google Ads API and AdWords API Forum
I am using the newly introduced (v18) AssetAutomationSetting. This allows for opting out from: GENERATE_VERTICAL_YOUTUBE_VIDEOS, GENERATE_SHORTER_YOUTUBE_VIDEOS, however when these attributes are passed in bulk mutate request we are getting ENUM_VALUE_NOT_PERMITTED.

Also this works well with the TEXT_ASSET_AUTOMATION attribute.

Complete request
{
    "campaignOperation": {
    "create": {
        "resourceName": "customers/{{GOOGLE_ADS_CUSTOMER_ID}}/campaigns/-1",
        "name": "pmax campaign without automated ads",
        "advertisingChannelType": "PERFORMANCE_MAX",
        "status": "PAUSED",
        "campaign_budget": "customers/{{GOOGLE_ADS_CUSTOMER_ID}}/campaignBudgets/-2",
        "start_date": "20250901",
        "end_date": "20250929",
        "maximizeConversions": {
        "targetCpaMicros": "500000"
        },
        "listingType": "VEHICLES",
        "urlExpansionOptOut": "true",
        "shoppingSetting": {
        "merchantId": {{DEALER_MERCHANT_CENTER_ID}},
        "feedLabel": "US",
        "enableLocal": "true"
        },
        "assetAutomationSettings": [{
            "assetAutomationType": "TEXT_ASSET_AUTOMATION",
            "assetAutomationStatus": "OPTED_OUT"
        },
        {
            "assetAutomationType": "GENERATE_VERTICAL_YOUTUBE_VIDEOS",
            "assetAutomationStatus": "OPTED_OUT"
        },
        {
            "assetAutomationType": "GENERATE_SHORTER_YOUTUBE_VIDEOS",
            "assetAutomationStatus": "OPTED_OUT"
        }
        ]
    }
    }
}

Google Ads API Forum Advisor

unread,
Oct 29, 2024, 8:45:54 AM10/29/24
to susmitm...@gmail.com, adwor...@googlegroups.com

Hi:

I'll consult with a colleague on the Performance Max team and get back to you.

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


Thanks,
 
Google Logo
Bob Hancock
Google Ads API Team


Ramanajee

unread,
Dec 2, 2024, 9:34:10 AM12/2/24
to Google Ads API and AdWords API Forum
I'm also facing the same as above for both Vertical and Sorter YouTube video settings. is there any solution for this ?

Thanks,
Ramanajee

Google Ads API Forum Advisor

unread,
Dec 4, 2024, 8:02:20 AM12/4/24
to adwor...@googlegroups.com, susmitm...@gmail.com
Hi:

I just pinged the team for an update and included your latest question.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02n8hFW:ref" (ADR-00188843)

Thanks,
 
Google Logo
Bob Hancock
Google Ads API Team


Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
 

 



Pete Lavetsky (AdWords API Guru)

unread,
Dec 12, 2024, 4:54:03 PM12/12/24
to Google Ads API and AdWords API Forum
Any update to this? Last response from Google 8 days ago.

We're facing the same issue. Are Opt In / Opt Out for GENERATE_SHORTER_YOUTUBE_VIDEOS and GENERATE_VERTICAL_YOUTUBE_VIDEOS whitelisted?

    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"


Thanks
Pete

Google Ads API Forum Advisor

unread,
Dec 13, 2024, 1:36:55 PM12/13/24
to pete.l...@gmail.com, adwor...@googlegroups.com

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.

Google Ads API Forum Advisor

unread,
Dec 13, 2024, 2:45:05 PM12/13/24
to pete.l...@gmail.com, adwor...@googlegroups.com
Pete:

I just heard back on the tech lead for this and these enums appear to be only applicable to Demand Gen campaigns. I'll need to talk to the engineer who wrote the code, in Zurich, on Monday to confirm.

Sorry this has taken to long but our documentation on this is really poor and has taken a lot long than it should have to get to this point. Once I have a a confirmed answer, I will ensure that our devsite documentation is updated to be clear and let you know.

Amit Tomar

unread,
Feb 6, 2025, 11:37:30 PMFeb 6
to Google Ads API and AdWords API Forum
Could you please provide an update on the API support for automated assets in Performance Max campaigns, particularly regarding the TEXT ASSETS option and the issues with GENERATE_VERTICAL_YOUTUBE_VIDEOS and GENERATE_SHORTER_YOUTUBE_VIDEOS settings?

Google Ads API Forum Advisor

unread,
Feb 7, 2025, 10:08:37 AMFeb 7
to amittomar...@gmail.com, adwor...@googlegroups.com

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.

Google Ads API Forum Advisor

unread,
Feb 10, 2025, 8:47:28 AMFeb 10
to amittomar...@gmail.com, adwor...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages