Skip to content

Commit

Permalink
feat: Add DEMAND_GEN_ADS and DEMAND_GEN_ADS_DISCOVER_SURFACE in Repor…
Browse files Browse the repository at this point in the history
…tingContextEnum

docs: Deprecate DISCOVERY_ADS and document the new enum values

PiperOrigin-RevId: 619534137
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 27, 2024
1 parent b998015 commit b4771b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions google/shopping/type/BUILD.bazel
@@ -1,5 +1,7 @@
# This file was automatically generated by BuildFileGenerator

# buildifier: disable=load-on-top

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

Expand All @@ -20,6 +22,7 @@ proto_library(
##############################################################################
# Java
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_proto_library",
Expand All @@ -43,6 +46,7 @@ java_gapic_assembly_gradle_pkg(
##############################################################################
# Go
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_proto_library",
Expand All @@ -68,6 +72,7 @@ go_gapic_assembly_pkg(
##############################################################################
# Python
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"moved_proto_library",
Expand Down Expand Up @@ -113,6 +118,7 @@ py_gapic_assembly_pkg(
##############################################################################
# PHP
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
Expand All @@ -134,6 +140,7 @@ php_gapic_assembly_pkg(
##############################################################################
# Ruby
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_grpc_library",
Expand All @@ -154,6 +161,7 @@ ruby_grpc_library(
##############################################################################
# C#
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_proto_library",
Expand All @@ -178,6 +186,7 @@ csharp_gapic_assembly_pkg(
##############################################################################
# C++
##############################################################################
# buildifier: disable=same-origin-load
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
Expand Down
12 changes: 10 additions & 2 deletions google/shopping/type/types.proto
Expand Up @@ -89,7 +89,7 @@ message Destination {
// Reporting contexts are groups of surfaces and formats for product results on
// Google. They can represent the entire destination (for example, [Shopping
// ads](https://support.google.com/merchants/answer/6149970)) or a subset of
// formats within a destination (for example, [Discovery
// formats within a destination (for example, [Demand Gen
// ads](https://support.google.com/merchants/answer/13389785)).
//
message ReportingContext {
Expand All @@ -101,9 +101,17 @@ message ReportingContext {
// [Shopping ads](https://support.google.com/merchants/answer/6149970).
SHOPPING_ADS = 1;

// Deprecated: Use `DEMAND_GEN_ADS` instead.
// [Discovery and Demand Gen
// ads](https://support.google.com/merchants/answer/13389785).
DISCOVERY_ADS = 2;
DISCOVERY_ADS = 2 [deprecated = true];

// [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
DEMAND_GEN_ADS = 13;

// [Demand Gen ads on Discover
// surface](https://support.google.com/merchants/answer/13389785).
DEMAND_GEN_ADS_DISCOVER_SURFACE = 14;

// [Video ads](https://support.google.com/google-ads/answer/6340491).
VIDEO_ADS = 3;
Expand Down

0 comments on commit b4771b1

Please sign in to comment.