Hi , I want to add a exit image or video to exist ad grouop. and i am using the api "https://googleads.googleapis.com/v15/customers/8656609886/adGroupAssets:mutate" . but this api return below error : "errorCode": { "assetLinkError": "UNSUPPORTED_FIELD_TYPE" }, "message": "The given field type is not supported to be added directly through asset links.", "trigger": { "stringValue": "MARKETING_IMAGE" }
Below is my sample code which using golang: operations := make([]*services.AdGroupAssetOperation, 0) adGroupAd := resources.AdGroupAsset{} adGroupAd.AdGroup = "customers/xxxxxx/adGroups/166011065928" adGroupAd.Asset = "customers/xxxxxx/assets/128153732981" adGroupAd.FieldType = enums.AssetFieldTypeEnum_YOUTUBE_VIDEO 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) } please help. Thanks. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/4234e0c8-9508-430f-b3be-f0d068077fd6n%40googlegroups.com.