so i am trying to create assetgroup in perfomance max with bulk creation as 
it it is an non retail 
" In a non-retail Performance Max campaign, an AssetGroup and all 
AssetGroupAsset objects linking the minimum required assets 
<https://developers.google.com/google-ads/api/performance-max/asset-requirements>
 to 
that AssetGroup must be created in the same bulk mutate request 
<https://developers.google.com/google-ads/api/docs/mutating/bulk-mutate>. 
Asset requirements may still apply 
<https://developers.google.com/google-ads/api/performance-max/asset-groups#link_asset_groups_to_assets_in_performance_max_retail_campaigns>
 to 
retail campaigns in some situations.  "

but not able to do this as not able to create right api structure

here is the structure

  const assetGroupData = {
    
      "mutateOperations": [
        {
          "assetGroupOperation": {
            "create": {
              "resourceName": `customers/${customerId}/assetGroups/${temp_id
}`,
              "campaign": campaignId,
              "name": "Performance Max Asset Group",
              "finalUrls": [
                "https://zyper.ai";
              ],
              "finalMobileUrls": [
               "https://zyper.ai";
              ]
            }
          }
        },...opsarr
       
     
      ]
    
    
  }; i am getting the error Error creating asset group: 
{"error":{"code":400,"message":"Invalid JSON payload received. Unknown name 
\"mutateOperations\": Cannot find 
field.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"description":"Invalid
 
JSON payload received. Unknown name \"mutateOperations\": Cannot find 
field."}]}]}} 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/267cf348-a4aa-489b-b1cd-54fef64bba56n%40googlegroups.com.

Reply via email to