---
title: "POST /v23/customers/{customersId}/campaigns:enablePMaxBrandGuidelines"
method: POST
path: "/v23/customers/{customersId}/campaigns:enablePMaxBrandGuidelines"
tags: ["customers"]
---

# POST /v23/customers/{customersId}/campaigns:enablePMaxBrandGuidelines

`POST /v23/customers/{customersId}/campaigns:enablePMaxBrandGuidelines`

## Request

- Base URL: `https://searchads360.googleapis.com`
- URL: `https://searchads360.googleapis.com/v23/customers/{customersId}/campaigns:enablePMaxBrandGuidelines`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/doubleclicksearch`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/doubleclicksearch`
- TypeScript: <https://skmtc.dev/google/apis/searchads360/docs/v23/customers/:customersId/campaigns:enablePMaxBrandGuidelines/post.ts> (a function with typed inputs; its response is checked against the schema)

Enables Brand Guidelines for Performance Max campaigns. List of thrown errors: [AuthenticationError]() [AssetError]() [AssetLinkError]() [AuthorizationError]() [BrandGuidelinesMigrationError]() [CampaignError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]() [ResourceCountLimitExceededError]()

## Path parameters

- `customersId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesEnablePMaxBrandGuidelinesRequest: Request to enable Brand Guidelines for a Performance Max campaign.
  - `operations` GoogleAdsSearchads360V23ServicesEnableOperation[]: Required. The list of individual campaign operations. A maximum of 10 enable operations can be executed in a request.
    - `accentColor` string: Optional. Hex code representation of the accent brand color, for example #00ff00. accent_color is required when main_color is specified.
    - `autoPopulateBrandAssets` boolean: Required. The switch to automatically populate top-performing brand assets. This field is required. If true, top-performing brand assets will be automatically populated. If false, the brand_assets field is required.
    - `brandAssets` GoogleAdsSearchads360V23ServicesBrandCampaignAssets: Assets linked at the campaign level. A business_name and at least one logo_asset are required.
      - `businessNameAsset` string: Required. The resource name of the business name text asset.
      - `landscapeLogoAsset` string[]: Optional. The resource name of landscape logo assets.
      - `logoAsset` string[]: Required. The resource name of square logo assets.
    - `campaign` string: Required. The resource name of the campaign to enable.
    - `finalUriDomain` string: Optional. The domain of the final uri.
    - `fontFamily` string: Optional. The font family is specified as a string, and must be one of the following: "Open Sans", "Roboto", "Roboto Slab", "Montserrat", "Poppins", "Lato", "Oswald", or "Playfair Display".
    - `mainColor` string: Optional. Hex code representation of the main brand color, for example #00ff00. main_color is required when accent color is specified.

## Response `200`

Successful response

- GoogleAdsSearchads360V23ServicesEnablePMaxBrandGuidelinesResponse: Brand Guidelines campaign enablement response.
  - `results` GoogleAdsSearchads360V23ServicesEnablementResult[]: Campaign enablement results per campaign.
    - `campaign` string: This indicates the campaign for which enablement was tried, regardless of the outcome.
    - `enablementError` GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
      - `code` integer: The status code, which should be an enum value of google.rpc.Code.
      - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
      - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

---

[API](https://skmtc.dev/google/apis/searchads360.md) - [All operations](https://skmtc.dev/google/apis/searchads360/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/searchads360/revisions/4a4511f84b18?raw)
