Hi Google Team,

I also get the error today. Does google api support link a "MARKETING_IMAGE" 
to a exist ad group now? Below is my sample code:
operations := make([]*services.AdGroupAssetOperation, 0)
adGroupAd := resources.AdGroupAsset{}
adGroupAd.AdGroup = "customers/xxxxxx/adGroups/166011065928"
adGroupAd.Asset = "customers/xxxxxx/assets/128153732981"
adGroupAd.FieldType = enums.AssetFieldTypeEnum_MARKETING_IMAGE
adGroupAdOperation_create := services.AdGroupAssetOperation_Create{}
adGroupAdOperation_create.Create = &adGroupAd
operation := services.AdGroupAssetOperation{}
operation.Operation = &adGroupAdOperation_create
operations = append(operations, &operation)
req := services.MutateAdGroupAssetsRequest{}
req.Operations = operations
req.CustomerId = "xxxxxx"
requestBody, err := protojson.Marshal(&req)
if err != nil {
panic(err)
}
//fmt.Println(requestBody)
request, err := http.NewRequest("POST", 
"https://googleads.googleapis.com/v15/customers/xxxxxx/adGroupAssets:mutate";, 
bytes.NewBuffer(requestBody))
if err != nil {
panic(err)
}

Thanks.


在2023年10月27日星期五 UTC+8 17:28:45<Google Ads API Forum Advisor> 写道:

> Hi Daniel,
>
> Thank you for reaching out to the Google Ads API support team. 
>
> By reviewing your concern, I understand that you are seeking information 
> regarding the addition of “image extensions” in the Google Ads API. 
> According to the Blog Post, it has been announced that image and location 
> extensions will automatically transition to assets. Following the 
> migration, new accounts will have the ability to create image and location 
> assets, but they won't be able to create extensions. I would suggest you to 
> follow this Blog Post 
> <https://ads-developers.googleblog.com/2023/07/image-and-location-assets-in-new.html>
>  
> for further updates. 
>
> To create an image asset via the API, I would recommend you to refer to 
> this “Asset creation and usage 
> <https://developers.google.com/google-ads/api/docs/assets/working-with-assets>”
>  
> documentation for more information.
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02kV0tK:ref"
>
> Thanks,
>
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d964e206-bf95-478e-8926-4aec7d709e16n%40googlegroups.com.
  • Re... Daniel Larsson
    • ... zheng william
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to