Hi,

Please be informed that I have removed your response from the forums as it 
contains the PII information.

I understand that you are using the assetGroups method to create the asset 
groups for PMax campaigns using the Google Ads API. Performance Max campaigns 
are composed of multiple resources, and you have the option to create these 
separate resources in unique requests or in a single bulk mutate request. 
However, AssetGroups and associated AssetGroupAssets in standard Performance 
Max campaigns must be created in a single atomic request. Assets can be created 
individually and need to be attached with the asset IDs directly or you need to 
create the assets using the assetOperation. You need to make the bulk request 
using the 'googleAds.mutate' method in the Google Ads API. You can refer to the 
sample Java code for your requirement. Also, I would recommend you to refer to 
the 'Group operations with mutate requests' for more information. We have tried 
this approach and were successfully able to create the assetGroup. However, I 
have attached the sample request body for your requirement.
This message is in relation to case "ref:!00D1U01174p.!5004Q02vF9hE:ref" 
(ADR-00263997)

Thanks,

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/zsgHN000000000000000000000000000000000000000000000SLCQQD00zl3pF8gtT2-GuFnzHAXy4A%40sfdc.net.
{
  "mutateOperations": [
    {
      "assetGroupOperation": {
        "create": {
          "campaign": "customers/{customer ID}/campaigns/{campaign ID}",
          "name": "pmax asset group final",
          "finalUrls": [
            "https://www.amazon.com";
          ],
          "status": "ENABLED",
          "path1": "home",
          "path2": "orders",
          "resourceName": "customers/{customer ID}/assetGroups/-1"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Headline 1"
          },
          "resourceName": "customers/{customer ID}/assets/-2"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Headline 2"
          },
          "resourceName": "customers/{customer ID}/assets/-3"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Headline 3"
          },
          "resourceName": "customers/{customer ID}/assets/-4"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Long head line sndjd jkdsdsi idjsidjsj jdnidjsijd"
          },
          "resourceName": "customers/{customer ID}/assets/-5"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Description 1 kdnwjd ajdsj mndkdj nskedei"
          },
          "resourceName": "customers/{customer ID}/assets/-6"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Description 2 ndshd sjdsj jewid kdsid"
          },
          "resourceName": "customers/{customer ID}/assets/-7"
        }
      }
    },
    
    {
      "assetOperation": {
        "create": {
          "textAsset": {
            "text": "Business name"
          },
          "resourceName": "customers/{customer ID}/assets/-8"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "imageAsset": {
            "mimeType": "UNKNOWN",
            "data": "image url should be encoded with base 64 and needs to be 
provided here."
            "fullSize": {
              "heightPixels": 1200,
              "widthPixels": 628,
              "url": "sample url"
            }
          },
          "resourceName": "customers/{customer ID}/assets/-9"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "imageAsset": {
            "mimeType": "UNKNOWN",
            "data": "image url should be encoded with base 64 and needs to be 
provided here."
            "fullSize": {
              "heightPixels": 1200,
              "widthPixels": 1200,
              "url": "sample url"
            }
          },
          "resourceName": "customers/{customer ID}/assets/-10"
        }
      }
    },
    {
      "assetOperation": {
        "create": {
          "imageAsset": {
            "mimeType": "UNKNOWN",
            "data": "image url should be encoded with base 64 and needs to be 
provided here."
            "fullSize": {
              "heightPixels": 1200,
              "widthPixels": 1200,
              "url": "sample url"
            }
          },
          "resourceName": "customers/{customer ID}/assets/-11"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "HEADLINE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-2"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "HEADLINE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-3"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "HEADLINE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-4"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "LONG_HEADLINE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-5"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "DESCRIPTION",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-6"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "DESCRIPTION",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-7"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "BUSINESS_NAME",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-8"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "MARKETING_IMAGE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-9"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "SQUARE_MARKETING_IMAGE",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-10"
        }
      }
    },
    {
      "assetGroupAssetOperation": {
        "create": {
          "fieldType": "LOGO",
          "assetGroup": "customers/{customer ID}/assetGroups/-1",
          "asset": "customers/{customer ID}/assets/-11"
        }
      }
    }
  ]
}
  • Er... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 3P Integration
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to