Skip to content

Commit 43373c1

Browse files
feat(tagmanager): update the API
#### tagmanager:v2 The following keys were added: - schemas.CompilerErrorLite.id - schemas.CompilerErrorLite.properties.errorMessage.type - schemas.CompilerErrorLite.properties.errorType.enum - schemas.CompilerErrorLite.properties.errorType.enumDescriptions - schemas.CompilerErrorLite.properties.errorType.type - schemas.CompilerErrorLite.type - schemas.CreateContainerVersionResponse.properties.compilerErrors.description - schemas.CreateContainerVersionResponse.properties.compilerErrors.items.$ref - schemas.CreateContainerVersionResponse.properties.compilerErrors.type - schemas.PublishContainerVersionResponse.properties.compilerErrors.description - schemas.PublishContainerVersionResponse.properties.compilerErrors.items.$ref - schemas.PublishContainerVersionResponse.properties.compilerErrors.type - schemas.QuickPreviewResponse.properties.compilerErrors.description - schemas.QuickPreviewResponse.properties.compilerErrors.items.$ref - schemas.QuickPreviewResponse.properties.compilerErrors.type
1 parent 0a7c671 commit 43373c1

2 files changed

Lines changed: 151 additions & 1 deletion

File tree

discovery/tagmanager-v2.json

Lines changed: 132 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3986,7 +3986,7 @@
39863986
}
39873987
}
39883988
},
3989-
"revision": "20260304",
3989+
"revision": "20260511",
39903990
"rootUrl": "https://tagmanager.googleapis.com/",
39913991
"schemas": {
39923992
"Account": {
@@ -4405,6 +4405,116 @@
44054405
},
44064406
"type": "object"
44074407
},
4408+
"CompilerErrorLite": {
4409+
"id": "CompilerErrorLite",
4410+
"properties": {
4411+
"errorMessage": {
4412+
"type": "string"
4413+
},
4414+
"errorType": {
4415+
"enum": [
4416+
"unknownErrorType",
4417+
"duplicateAutoEventName",
4418+
"duplicateConditionId",
4419+
"duplicateDefaultMacro",
4420+
"duplicateTagName",
4421+
"internalCompilerError",
4422+
"invalidMacroKey",
4423+
"invalidNumberPredicateArgs",
4424+
"invalidMacroFormat",
4425+
"invalidMacroNameReference",
4426+
"invalidMacroParameter",
4427+
"invalidUsageContext",
4428+
"invalidRegex",
4429+
"macroCycle",
4430+
"unknownConditionId",
4431+
"unknownMacroInstance",
4432+
"invalidManualEscaping",
4433+
"invalidHtmlCssJs",
4434+
"macroInCommentsError",
4435+
"jsCompilerError",
4436+
"jsonError",
4437+
"invalidTagParameter",
4438+
"javascriptTooLong",
4439+
"unknownTagInstance",
4440+
"invalidTagReference",
4441+
"unknownTriggerId",
4442+
"customTriggerMissingEventFilter",
4443+
"duplicateTriggerId",
4444+
"unsupportedTriggerType",
4445+
"invalidTriggerParameter",
4446+
"duplicateExperimentId",
4447+
"pixieCompilerError",
4448+
"macroNotServerSideResolvable",
4449+
"invalidBlockingTrigger",
4450+
"lineTooLong",
4451+
"invalidTypeInSelect",
4452+
"gaExperimentMacroIsDeprecated",
4453+
"unsafeHtmlContent",
4454+
"unsafeHtmlAttributeValue",
4455+
"unsafeCssContent",
4456+
"parameterReferenceNotFound",
4457+
"invalidCustomTemplateRuntimeCode",
4458+
"conflictingDestinationRouting",
4459+
"missingRequiredActivity",
4460+
"unresolvableDestinationTag",
4461+
"invalidDestinationTag",
4462+
"tosRequiredForThirdPartyTags"
4463+
],
4464+
"enumDescriptions": [
4465+
"Unknown error type. Place holder for the enum's default value; not valid.",
4466+
"There are multiple auto-event instances with the same name. parent - N EntityKeys each with their auto_event_key populated.",
4467+
"There are multiple conditions with the same id. parent - N EntityKeys each with their condition_key populated.",
4468+
"There are multiple default macros with the same name. parent - N EntityKeys each with their macro_key populated. context - The macro name.",
4469+
"There are multiple tag instances with the same name. parent - N EntityKeys each with their tag_key populated.",
4470+
"An internal compiler invariant was broken. parent - 1 EntityKey which may have macro_key, condition_key, or tag_key populated. It's also possible that no keys are populated. context - An internal string (shouldn't be shown to the user) describing the problem.",
4471+
"An macro instance key was invalid e.g. foo#bar parent - 1 EntityKey with one of the following populated: macro_key, condition_key, tag_key. context - The string of the invalid name.",
4472+
"Wrong number of args passed to a predicate. parent - 1 EntityKey with its condition_key populated.",
4473+
"Macro format was invalid e.g. foo#bar parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The full string of the invalid macro and surrounding literals.",
4474+
"A macro name was referenced instead of a macro key. parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The name of the invalid macro name.",
4475+
"Macro had an invalid parameter. This could be anything from a parameter being a complex type or a macro parameter containing a macro reference. parent - 1 EntityKey with its macro_key populated. context - The value of the offending parameter if it is string-able.",
4476+
"Usage context of a container was invalid. Currently, this error can occur when a container context specifies both web and mobile. The UI shouldn't allowed creating such a mixed container. parent - not set context - The description of the context",
4477+
"Contents of an Regex predicate had an invalid pattern. parent - 1 EntityKey with one of the following populated: condition_key. context - The offending pattern.",
4478+
"There was a macro whose resolution would depend on itself. parent - N EntityKeys each with their macro_key, trigger_key, or condition_key populated. This represents the macro cycle. context - Empty.",
4479+
"A condition id was used which doesn't exist in the conditions list. parent - 1 EntityKey with its tag_key populated. context - The integer id of the missing conditional.",
4480+
"A macro name was used which doesn't exist in the macro list. parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The name of the missing macro instance.",
4481+
"User-provided escaping inappropriate for the context in which it is used. parent - 1 EntityKey with one of the following populated: macro_key, condition_key, tag_key. context - Empty.",
4482+
"Auto-escaped content is not valid HTML, CSS or JavaScript. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.",
4483+
"Macro reference found inside an HTML, CSS or JavaScript comment. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.",
4484+
"Contents of an HTML script tag could not be compiled by JsCompiler. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.",
4485+
"Contents of a ConfigurationValue script tag could not be parsed by the JSON parser. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.",
4486+
"Tag had an invalid parameter. This could be anything from a parameter being a complex type or a macro parameter containing a macro reference. parent - 1 EntityKey with its tag_key populated. context - The value of the offending parameter if it is string-able.",
4487+
"An arbitrary HTML tag contains a piece of javascript with too many contiguous non-whitespace characters (e.g. a long array with no spaces between elements or an extremely long variable name).",
4488+
"A tag name was used which doesn't exist in the input tag list. parent - 1 EntityKey with tag_key populated. context - The name of the missing tag instance.",
4489+
"A tag name was used which doesn't exist in the compiled tag list. This happens if a tag is dependent on another tag, but the other tag has no rules attached to it and is pruned in the compiler. parent - 1 EntityKey with tag_key populated. context - The name of the missing tag instance.",
4490+
"A trigger id was used which doesn't exist in the triggers list. parent - 1 EntityKey parent of the unknown trigger. context - The id of the missing trigger instance.",
4491+
"A trigger of type custom trigger was created that doesn't include a custom event filter. parent - 1 EntityKey with its trigger_key populated. context - Empty.",
4492+
"There are multiple triggers with the same id. parent - N EntityKeys each with their trigger_key populated. context - Empty.",
4493+
"There is an unknown or unsupported trigger type. parent - 1 EntityKey with its trigger_key populated. context - The trigger type.",
4494+
"A trigger has an invalid parameter. parent - 1 EntityKey with its trigger_key populated. context - The invalid field.",
4495+
"There are multiple experiments with the same id. parent - N EntityKeys each with their experiment_key populated. context - Empty.",
4496+
"Contents of a pixie tag/macro could not be compiled by Pixie Parser. parent - 1 EntityKey with one of the following populated: tag_key, macro_key. context - Empty.",
4497+
"The macro cannot be resolved at server side. parent - 1 EntityKey indicating the entity in which this macro is used. context - The macro name.",
4498+
"The trigger cannot be used in blocking predicates (i.e. only All/Some pages triggers work for AMP, NS etc.) parent - 1 EntityKey indicating the tag in which this trigger is used. context - The trigger name.",
4499+
"A line in the input text is too long.",
4500+
"The value of a SELECT parameter in a vendor template instance does not point to an allowed vendor template instance. For details, see the documentation of the typesInSelect property in a vendor template. parent - 1 EntityKey indicating the tag/macro with this parameter. context - The parameter name.",
4501+
"The input container version contains a deprecated GA content experiment macro that needs to be removed.",
4502+
"Reminder: new error types will be treated as internal errors and trigger alerts unless they are handled in j/c/g/analytics/containertag/compiler/ErrorReporter.java&l=104 Please also remember to add new error types to CTUI at j/c/g/analytics/containertag/ui/app/components/container/compilererror/ HTML is not sanitized and contains unsafe content.",
4503+
"HTML attribute is not sanitized and the value is unsafe.",
4504+
"CSS is not sanitized and contains unsafe content.",
4505+
"The specified parameter was not found in the referenced entity. parent - 1 EntityKey with tag_key populated. context - The missing parameter in the form of \".\".",
4506+
"The custom template has invalid runtime code. parent - Entity key for the custom template. context - The error message.",
4507+
"The container version contains a Google tag tag and a destination tag that use the same destination ID. parent - Entity key for the conflicting Google tag. context - The Google tag tag name.",
4508+
"The container version has routing destinations, but is missing required activity instances. parent - Empty. context - Empty. proposed_change - The proposed change to add the missing activities.",
4509+
"The container version contains a product destination tag with a destination ID value that cannot be resolved statically. parent - Entity key of the destination tag. context - The name of the variable that could not be resolved. If the destination ID was a template value, then this will be the serialized value.",
4510+
"The container version contains a product destination tag with a destination ID value that is in an invalid format. parent - Entity key of the destination tag. context - The invalid destination ID.",
4511+
"GTM ToS is required for publishing versions with 3P tags. parent - not set context - Empty."
4512+
],
4513+
"type": "string"
4514+
}
4515+
},
4516+
"type": "object"
4517+
},
44084518
"Condition": {
44094519
"description": "Represents a predicate.",
44104520
"id": "Condition",
@@ -4851,6 +4961,13 @@
48514961
"description": "Compiler errors or not.",
48524962
"type": "boolean"
48534963
},
4964+
"compilerErrors": {
4965+
"description": "Compiler error details.",
4966+
"items": {
4967+
"$ref": "CompilerErrorLite"
4968+
},
4969+
"type": "array"
4970+
},
48544971
"containerVersion": {
48554972
"$ref": "ContainerVersion",
48564973
"description": "The container version created."
@@ -5685,6 +5802,13 @@
56855802
"description": "Compiler errors or not.",
56865803
"type": "boolean"
56875804
},
5805+
"compilerErrors": {
5806+
"description": "Compiler error details.",
5807+
"items": {
5808+
"$ref": "CompilerErrorLite"
5809+
},
5810+
"type": "array"
5811+
},
56885812
"containerVersion": {
56895813
"$ref": "ContainerVersion",
56905814
"description": "The container version created."
@@ -5700,6 +5824,13 @@
57005824
"description": "Were there compiler errors or not.",
57015825
"type": "boolean"
57025826
},
5827+
"compilerErrors": {
5828+
"description": "Compiler error details.",
5829+
"items": {
5830+
"$ref": "CompilerErrorLite"
5831+
},
5832+
"type": "array"
5833+
},
57035834
"containerVersion": {
57045835
"$ref": "ContainerVersion",
57055836
"description": "The quick previewed container version."

src/apis/tagmanager/v2.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ export namespace tagmanager_v2 {
265265
*/
266266
workspaceId?: string | null;
267267
}
268+
export interface Schema$CompilerErrorLite {
269+
errorMessage?: string | null;
270+
errorType?: string | null;
271+
}
268272
/**
269273
* Represents a predicate.
270274
*/
@@ -579,6 +583,10 @@ export namespace tagmanager_v2 {
579583
* Compiler errors or not.
580584
*/
581585
compilerError?: boolean | null;
586+
/**
587+
* Compiler error details.
588+
*/
589+
compilerErrors?: Schema$CompilerErrorLite[];
582590
/**
583591
* The container version created.
584592
*/
@@ -1210,6 +1218,10 @@ export namespace tagmanager_v2 {
12101218
* Compiler errors or not.
12111219
*/
12121220
compilerError?: boolean | null;
1221+
/**
1222+
* Compiler error details.
1223+
*/
1224+
compilerErrors?: Schema$CompilerErrorLite[];
12131225
/**
12141226
* The container version created.
12151227
*/
@@ -1223,6 +1235,10 @@ export namespace tagmanager_v2 {
12231235
* Were there compiler errors or not.
12241236
*/
12251237
compilerError?: boolean | null;
1238+
/**
1239+
* Compiler error details.
1240+
*/
1241+
compilerErrors?: Schema$CompilerErrorLite[];
12261242
/**
12271243
* The quick previewed container version.
12281244
*/
@@ -5926,6 +5942,7 @@ export namespace tagmanager_v2 {
59265942
* // Example response
59275943
* // {
59285944
* // "compilerError": false,
5945+
* // "compilerErrors": [],
59295946
* // "containerVersion": {}
59305947
* // }
59315948
* }
@@ -7334,6 +7351,7 @@ export namespace tagmanager_v2 {
73347351
* // Example response
73357352
* // {
73367353
* // "compilerError": false,
7354+
* // "compilerErrors": [],
73377355
* // "containerVersion": {},
73387356
* // "newWorkspacePath": "my_newWorkspacePath",
73397357
* // "syncStatus": {}
@@ -8050,6 +8068,7 @@ export namespace tagmanager_v2 {
80508068
* // Example response
80518069
* // {
80528070
* // "compilerError": false,
8071+
* // "compilerErrors": [],
80538072
* // "containerVersion": {},
80548073
* // "syncStatus": {}
80558074
* // }

0 commit comments

Comments
 (0)