Hello Daniel,
thanks for the suggestion but I am not going to switch yet.
{
"operations": [
{
"create": {
"resourceName": "customers/5526191782/assetGroups/-1",
"campaign": "customers/5526191782/campaigns/18800555689",
"name": "test1",
"final_urls": ["https://example.com/"],
"final_mobile_urls": ["https://example.com/"],
"status": "PAUSED"
}
}
]
}
This is my request to create an assetGroup but I keep getting this error:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type":
"type.googleapis.com/google.ads.googleads.v12.errors.GoogleAdsFailure",
"errors": [
{
"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_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
}
]
}
},
{
"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_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_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
}
]
}
}
],
"requestId": "K4RVSdZJrMJpXQyHa_JR2g"
}
]
}
}
I dont understand why this is going wrong.
It would be great if you could help me with this.
Regards,
Jip Veerbeek
On Friday, November 4, 2022 at 5:45:39 PM UTC+1 adsapi wrote:
> Hi Jip,
>
> We don't have full HTTP requests examples but we have multiple examples in
> the different client libraries that we provide
> <https://developers.google.com/google-ads/api/docs/client-libs> . Since
> you are doing a lot of operations I would suggest using one of the
> libraries as they make this process a lot easier.
>
> For your particular question regarding creating an AssetGroup you can see
> an example using Python here
> <https://github.com/googleads/google-ads-python/blob/main/examples/advanced_operations/add_performance_max_campaign.py#L370-L409>
> .
>
> Regards,
>
> [image: Google Logo]
> Daniel
> Google Ads API Team
>
>
>
>
> ref:_00D1U1174p._5004Q2fpC2r:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/af92aa4f-4a77-427b-a4b2-873cbbedce5bn%40googlegroups.com.