Hi,

I'm encountering an issue while attaching an asset (such as Sitelink, Call, 
or Callout extensions) to an asset group. In the request below, I first 
create an asset group and then attach various assets, including Text 
assets, Image assets, and YouTube Video assets, linking them to the created 
asset group. Could you guide me on how to attach an existing Sitelink asset 
to the asset group using the API?
Here is request - 

{
  "customerId": "4973912890",
  "mutateOperations": [
    {
      "assetGroupOperation": {
        "create": {
          "resourceName": "customers/4973912890/assetGroups/-100000",
          "campaign": "customers/4973912890/campaigns/21146493036",
          "name": "new Ag Group17-02-2025 17:38:14",
          "finalUrls": [
            "https://groups.google.com/u/2/g/adwords-api";
          ],
          "status": "ENABLED"
        }
      }
    },
   







* {      "assetGroupAssetOperation": {        "create": {          
"assetGroup": "customers/4973912890/assetGroups/-100000",          "asset": 
"customers/4973912890/assets/202672153914",          "fieldType": 
"SITELINK"        }      }    },*
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189106280",
          "fieldType": "HEADLINE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189106283",
          "fieldType": "HEADLINE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189106286",
          "fieldType": "HEADLINE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189123767",
          "fieldType": "DESCRIPTION"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189123770",
          "fieldType": "DESCRIPTION"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189116558",
          "fieldType": "LONG_HEADLINE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201189319394",
          "fieldType": "BUSINESS_NAME"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/133180855373",
          "fieldType": "MARKETING_IMAGE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/133180886666",
          "fieldType": "LOGO"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201244091977",
          "fieldType": "SQUARE_MARKETING_IMAGE"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201244084885",
          "fieldType": "YOUTUBE_VIDEO"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": "customers/4973912890/assetGroups/-100000",
          "asset": "customers/4973912890/assets/201211721643",
          "fieldType": "CALL_TO_ACTION_SELECTION"
        }
      }
    }
  ]
}


I am getting this error in response - 

{
  "status": {
    "statusCode": "InvalidArgument",
    "detail": "*Request contains an invalid argument.*"
  },
  "data": "System.Collections.ListDictionaryInternal",
  "failure": {
    "errors": [
      {
        "errorCode": {
          "requestError": "UNKNOWN"
        },
        "message": "The error code is not in this version.",
        "trigger": {
          "stringValue": "SITELINK,UBERVERSAL"
        },
        "location": {
          "fieldPathElements": [
            {
              "fieldName": "mutate_operations",
              "index": 1
            },
            {
              "fieldName": "asset_group_asset_operation"
            },
            {
              "fieldName": "create"
            },
            {
              "fieldName": "field_type"
            }
          ]
        }
      }
    ],
    "requestId": "qTI2L_0RnvYdbxiqeM4Fnw"
  },
  "hResult": -2146233088,
  "helpLink": null,
  "innerException": null,
  "message": "Status(StatusCode=\"InvalidArgument\", Detail=\"Request 
contains an invalid argument.\")",
  "requestId": "qTI2L_0RnvYdbxiqeM4Fnw",
  "source": "Google.Ads.Gax",
  "stackTrace": [
    "at 
Google.Ads.Gax.Interceptors.UnaryRpcInterceptor.<>c__DisplayClass1_0`2.<Intercept>b__0(Task`1
 
oldTask)",
    "at 
System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()",
    "at 
System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread 
threadPoolThread, ExecutionContext executionContext, ContextCallback 
callback, Object state)",
    "--- End of stack trace from previous location ---",
    "at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& 
currentTaskSlot, Thread threadPoolThread)",
    "--- End of stack trace from previous location ---",
    "at 
Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.<>c__DisplayClass4_0.<<CallAsync>g__WaitAndCallHandlers|0>d.MoveNext()",
    "at Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task 
task)",
    "at 
Google.Api.Gax.TaskExtensions.ResultWithUnwrappedExceptions[T](Task`1 
task)",
    "at Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.CallSync(TRequest 
request, CallSettings callSettings)",
    "at Google.Api.Gax.Grpc."
  ]
}

Additionally, is there a way to update the *Final URL* and *Business Name* 
of an existing asset group?

Thanks in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/64659bba-57cf-463b-884f-1445cf88a433n%40googlegroups.com.
  • Un... Shahil Verma
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Shahil Verma

Reply via email to