Unable to create Asset Group Signal via. API call

735 views
Skip to first unread message

AMAP TEST

unread,
May 24, 2022, 6:54:31 AM5/24/22
to Google Ads API and AdWords API Forum
Hi,

I want to create an Asset Group Signal via. API call. For that I am trying to do the following steps:
1. Create Performance Max Campaign
2. Create AssetGroup
3. Create Audience
4. Create AssetGroupSignal

But when i try to create the asset group via. API call I'm getting errors.

Request:
{
    "operations": {
        "create": {
                "campaign": "customers/xxxx/campaigns/xxxx",
                "name": "Test Group asset 2",
                "finalUrls": [
                    "http://www.google.com"
                ],
                "status": "ENABLED"
        }
    }
}

Response:
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_MARKETING_IMAGE_ASSET"
                        },
                        "message": "Marketing image asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: marketing image"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET"
                        },
                        "message": "Square marketing image asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: square marketing image"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_HEADLINE_ASSET"
                        },
                        "message": "Headline asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: headline"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_LONG_HEADLINE_ASSET"
                        },
                        "message": "Long headline asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: long headline"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_LOGO_ASSET"
                        },
                        "message": "Logo asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: logo"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "trigger": {
                            "stringValue": "Asset type: description"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_BUSINESS_NAME_ASSET"
                        },
                        "message": "Business name asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: business name"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_DESCRIPTION_ASSET"
                        },
                        "message": "Description headline asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: description"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    }
                ],
                "requestId": "goIaWJmp68WgnqZV5H43yQ"
            }
        ]
    }
}

Questions:
1. Are the steps I am following to create the Asset Group Signal via. API correct?
2. How to resolve the errors which I am getting while trying to create the Asset Group?

Google Ads API Forum Advisor

unread,
May 24, 2022, 10:23:54 PM5/24/22
to amap.acce...@gmail.com, adwor...@googlegroups.com

Hi,
 

Thanks for reaching out to the Google Ads API Support team.


To answer your concerns and questions in general. Yes, the step you followed to create the asset group is correct but I noticed that the error that you encountered is because you haven’t met the minimum asset requirements. However, to resolve this error you need to ensure minimum asset requirements are met. You may refer to this guide as the Performance Max campaign requires an initial minimum set of assets. These may be existing assets used in other campaigns or new assets specifically for a Performance Max campaign.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bCvlU:ref

lezhne...@gmail.com

unread,
May 25, 2023, 12:17:36 PM5/25/23
to Google Ads API and AdWords API Forum
I just encountered the same problem (funny, exactly one year later). Does the above mean that asset group creation must follow asset creation in order to succeed?

san...@knorex.com

unread,
May 26, 2023, 4:49:27 AM5/26/23
to Google Ads API and AdWords API Forum
Hi Darwin,

I am facing the same issue too. We have successfully created new Asset Groups without any assets until today.


When was the minimum requirement for assets rolled out? It is breaking our product.

Martin

san...@knorex.com

unread,
May 28, 2023, 10:25:52 PM5/28/23
to Google Ads API and AdWords API Forum
Hi Darwin,

From this documentation, to create an asset group with minimum assets, the API requires an asset group ID or asset group resource name.


How can we do that? It seems there is a blocking issue.

Martin

Google Ads API Forum Advisor

unread,
May 29, 2023, 12:02:38 PM5/29/23
to san...@knorex.com, adwor...@googlegroups.com
Hi everyone,

Thank you for reaching out to us.

1.) Does the above mean that asset group creation must follow asset creation in order to succeed?
>>> Yes. Kindly note that each Performance Max campaign requires an initial minimum set of assets. These may be existing assets used in other campaigns or new assets specifically for a Performance Max campaign. You may check this guide (https://developers.google.com/google-ads/api/docs/performance-max/assets?hl=en#ensure_minimum_asset_requirements_are_met) for more information.

2.) When was the minimum requirement for assets rolled out? How can we do that?
>>> Are you referring to linking assets to asset groups? If so, then I would suggest referring to the below guides as these will walk you through the steps on how you can do this on your end. In addition, if you need the asset group data like id and resource name, you may use this asset_group (https://developers.google.com/google-ads/api/fields/v13/asset_group?hl=en) report on your end.
Let us know if you have further specific questions about this.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2bCvlU:ref"

Thanks,
 
Google Logo Google Ads API Team


san...@knorex.com

unread,
May 29, 2023, 2:09:35 PM5/29/23
to Google Ads API and AdWords API Forum
Hi,


1) How to assign created assets to a campaign? 
2) How a campaign knows whether it has minimum assets or not? 

Note that in my account, there are many Pmax campaigns & many assets. I till cannot create new asset group in new campaign.

Martin

san...@knorex.com

unread,
May 29, 2023, 2:14:58 PM5/29/23
to Google Ads API and AdWords API Forum
Hi,

I created one Pmax campaign in the Adwords console, having one valid asset group with minimum assets in it.
I cannot create a new asset group in that campaign. That's an insanely sudden API error.

Martin

Meri Sahakyan

unread,
May 31, 2023, 4:50:29 AM5/31/23
to Google Ads API and AdWords API Forum
Hi all, I have the same issue with asset group creation. I'm creating assets with minimum required types, and then it again fails to create asset group by API for PMAX campaign.
Can you guys from Google share some working solution instead of repeating same answers again and again?

lezhne...@gmail.com

unread,
Jun 1, 2023, 4:22:24 AM6/1/23
to Google Ads API and AdWords API Forum
Let me clarify the problem. We are ABLE to create pmax campaigns. But later when we want to create an asset group it fails. It used to work just weeks ago as we have this code in production. 

Steps to reproduce:
1. create assets - WORKS
2. Create a pmax campaign - WORKS
3. create asset group in a pmax campaign - FAILS
4. link assets to an asset group - <can't get here>

The above flow used to work, so that is where all the confusion comes from.

Google Ads API Forum Advisor

unread,
Jun 1, 2023, 10:11:09 AM6/1/23
to lezhne...@gmail.com, adwor...@googlegroups.com

Hi Everyone,

Thank you for reaching out to us.

You may see the answers for reach question:

1) How to assign created assets to a campaign? 

2) How a campaign knows whether it has minimum assets or not? 

Moving forward to this, “Note that in my account, there are many Pmax campaigns & many assets. I till cannot create new asset group in new campaign.”, “Hi all, I have the same issue with asset group creation. I'm creating assets with minimum required types, and then it again fails to create asset group by API for PMAX campaign.Can you guys from Google share some working solution instead of repeating same answers again and again?”,  and for this,We are ABLE to create pmax campaigns. But later when we want to create an asset group it fails

Note that logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Google Ads API Forum Advisor

unread,
Jun 2, 2023, 5:15:53 AM6/2/23
to lezhne...@gmail.com, adwor...@googlegroups.com

Hi Everyone,

Upon checking, this has already been resolved on our end. Can you please try once again and let us know how it goes on your end?

Dmitriy Lezhnev

unread,
Jun 2, 2023, 8:46:29 AM6/2/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Yeah, our tests are no longer red. Seems to be OK now.

Google Ads API Forum Advisor

unread,
Jun 6, 2023, 12:29:38 PM6/6/23
to lezhne...@gmail.com, adwor...@googlegroups.com

Hello Dmitriy,

Thank you for responding back to us and confirming that the issue appears to be resolved on your end. Do not hesitate to come back to us should you encounter any API related concerns in the future and we will be glad to assist you.
 

lezhne...@gmail.com

unread,
Oct 11, 2023, 6:36:09 AM10/11/23
to Google Ads API and AdWords API Forum
The problem re-surfaced. I emailed google over email but wanted to ping here too in case others experience the same issue.

Google Ads API Forum Advisor

unread,
Oct 11, 2023, 2:48:23 PM10/11/23
to lezhne...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Upon checking further, I understand that you are facing an issue with the campaigns. Could you please provide us with the complete API logs (request and response 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, .NetPHPPythonRuby 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.
Reply all
Reply to author
Forward
0 new messages