- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- EnableOperation
- BrandCampaignAssets
- EnablementResult
- Try it!
Enables Brand Guidelines for Performance Max campaigns.
List of thrown errors: AuthenticationError AssetError AssetLinkError AuthorizationError BrandGuidelinesMigrationError CampaignError HeaderError InternalError MutateError QuotaError RequestError ResourceCountLimitExceededError
HTTP request
POST https://googleads.googleapis.com/v19/customers/{customerId}/campaigns:enablePMaxBrandGuidelines
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. The ID of the customer whose campaigns are being enabled. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"operations": [
{
object ( |
Fields | |
---|---|
operations[] |
Required. The list of individual campaign operations. A maximum of 10 enable operations can be executed in a request. |
Response body
Brand Guidelines campaign enablement response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"results": [
{
object ( |
Fields | |
---|---|
results[] |
Campaign enablement results per campaign. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
EnableOperation
A single enable operation of a campaign.
JSON representation |
---|
{
"campaign": string,
"autoPopulateBrandAssets": boolean,
"brandAssets": {
object ( |
Fields | |
---|---|
campaign |
Required. The resource name of the campaign to enable. |
autoPopulateBrandAssets |
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 brandAssets field is required. |
brandAssets |
Optional. The brand assets linked to the campaign. This field is required when the value of autoPopulateBrandAssets is false. |
finalUriDomain |
Optional. The domain of the final uri. |
mainColor |
Optional. Hex code representation of the main brand color, for example #00ff00. mainColor is required when accent color is specified. |
accentColor |
Optional. Hex code representation of the accent brand color, for example #00ff00. accentColor is required when mainColor is specified. |
fontFamily |
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". |
BrandCampaignAssets
Assets linked at the campaign level. A businessName and at least one logoAsset are required.
JSON representation |
---|
{ "businessNameAsset": string, "logoAsset": [ string ], "landscapeLogoAsset": [ string ] } |
Fields | |
---|---|
businessNameAsset |
Required. The resource name of the business name text asset. |
logoAsset[] |
Required. The resource name of square logo assets. |
landscapeLogoAsset[] |
Optional. The resource name of landscape logo assets. |
EnablementResult
A single enablement result of a campaign.
JSON representation |
---|
{
"campaign": string,
"enablementError": {
object ( |
Fields | |
---|---|
campaign |
This indicates the campaign for which enablement was tried, regardless of the outcome. |
enablementError |
Details of the error when enablement fails. |