Skip to content

Commit

Permalink
Bugfix for GAM cmd (#12795)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-po authored Feb 20, 2025
1 parent 34e0c84 commit 8813b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/intentIqIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function tryParse(data) {
* @param {string} userGroup - The A/B testing group assigned to the user (e.g., 'A', 'B', or a custom value).
*/
export function setGamReporting(gamObjectReference, gamParameterName, userGroup) {
if (isPlainObject(gamObjectReference) && Array.isArray(gamObjectReference.cmd)) {
if (isPlainObject(gamObjectReference) && gamObjectReference.cmd) {
gamObjectReference.cmd.push(() => {
gamObjectReference
.pubads()
Expand Down

0 comments on commit 8813b40

Please sign in to comment.