diff --git a/clients/google-api-services-datamanager/v1/2.0.0/README.md b/clients/google-api-services-datamanager/v1/2.0.0/README.md
index eca2c4959f6..bc1b70f4367 100644
--- a/clients/google-api-services-datamanager/v1/2.0.0/README.md
+++ b/clients/google-api-services-datamanager/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code DataManager datamanager = new DataManager(...);}
+ * {@code DataManager.AdEvents.List request = datamanager.adEvents().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AdEvents adEvents() {
+ return new AdEvents();
+ }
+
+ /**
+ * The "adEvents" collection of methods.
+ */
+ public class AdEvents {
+
+ /**
+ * Uploads a list of AdEvent resources to Google Analytics. This feature is only available to
+ * accounts on an allowlist.
+ *
+ * Create a request for the method "adEvents.ingest".
+ *
+ * This request holds the parameters needed by the datamanager server. After setting any optional
+ * parameters, call the {@link Ingest#execute()} method to invoke the remote operation.
+ *
+ * @param content the {@link com.google.api.services.datamanager.v1.model.IngestAdEventsRequest}
+ * @return the request
+ */
+ public Ingest ingest(com.google.api.services.datamanager.v1.model.IngestAdEventsRequest content) throws java.io.IOException {
+ Ingest result = new Ingest(content);
+ initialize(result);
+ return result;
+ }
+
+ public class Ingest extends DataManagerRequest{@link + * Ingest#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param content the {@link com.google.api.services.datamanager.v1.model.IngestAdEventsRequest} + * @since 1.13 + */ + protected Ingest(com.google.api.services.datamanager.v1.model.IngestAdEventsRequest content) { + super(DataManager.this, "POST", REST_PATH, content, com.google.api.services.datamanager.v1.model.IngestAdEventsResponse.class); + } + + @Override + public Ingest set$Xgafv(java.lang.String $Xgafv) { + return (Ingest) super.set$Xgafv($Xgafv); + } + + @Override + public Ingest setAccessToken(java.lang.String accessToken) { + return (Ingest) super.setAccessToken(accessToken); + } + + @Override + public Ingest setAlt(java.lang.String alt) { + return (Ingest) super.setAlt(alt); + } + + @Override + public Ingest setCallback(java.lang.String callback) { + return (Ingest) super.setCallback(callback); + } + + @Override + public Ingest setFields(java.lang.String fields) { + return (Ingest) super.setFields(fields); + } + + @Override + public Ingest setKey(java.lang.String key) { + return (Ingest) super.setKey(key); + } + + @Override + public Ingest setOauthToken(java.lang.String oauthToken) { + return (Ingest) super.setOauthToken(oauthToken); + } + + @Override + public Ingest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Ingest) super.setPrettyPrint(prettyPrint); + } + + @Override + public Ingest setQuotaUser(java.lang.String quotaUser) { + return (Ingest) super.setQuotaUser(quotaUser); + } + + @Override + public Ingest setUploadType(java.lang.String uploadType) { + return (Ingest) super.setUploadType(uploadType); + } + + @Override + public Ingest setUploadProtocol(java.lang.String uploadProtocol) { + return (Ingest) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Ingest set(String parameterName, Object value) { + return (Ingest) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the AudienceMembers collection. * diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/AdEvent.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/AdEvent.java new file mode 100644 index 00000000000..0f3f5f9be38 --- /dev/null +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/AdEvent.java @@ -0,0 +1,858 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datamanager.v1.model; + +/** + * An ad event. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AdEvent extends com.google.api.client.json.GenericJson { + + /** + * Enum value for ad format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adFormat; + + /** + * String value for ad format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adFormatString; + + /** + * Optional. The ID of the associated ad group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adGroupId; + + /** + * Optional. The height of the ad in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer adHeight; + + /** + * Optional. The ID of the associated ad within the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adId; + + /** + * Enum value for ad placement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adPlacement; + + /** + * String value for ad placement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adPlacementString; + + /** + * Enum value for ad type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adType; + + /** + * String value for ad type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adTypeString; + + /** + * Optional. The width of the ad in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer adWidth; + + /** + * Required. The ID of the advertiser for the ad event. This must match the ID sent in the linking + * flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String advertiserId; + + /** + * Optional. The partner-assumed attribution status for this ad event. This acts only as a signal + * for how the partner assumed attribution played out, and does not force an end result in final + * reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributionHint; + + /** + * Required. The ID of the associated campaign. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String campaignId; + + /** + * Required. The name of the associated campaign. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String campaignName; + + /** + * Optional. Information gathered about the device being used when the ad event happened. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeviceInfo deviceInfo; + + /** + * Optional. An ID created and managed by the caller that uniquely identifies this event. Required + * if you want to deduplicate ad events that are included in multiple requests. Otherwise, this + * field is optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * Enum value for event subtype. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventSubtype; + + /** + * String value for event subtype. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventSubtypeString; + + /** + * Required. The type of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventType; + + /** + * Optional. Represents if the row is allowed to be used for measurement purposes, as governed by + * applicable privacy laws within regional jurisdiction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean measurementAllowed; + + /** + * Required. The medium of the ad, akin to the Google Analytics medium. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String medium; + + /** + * Optional. The device ID of the device that the ad was served to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mobileDeviceId; + + /** + * Enum value for platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String platform; + + /** + * String value for platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String platformString; + + /** + * Enum value for platform type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String platformType; + + /** + * String value for platform type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String platformTypeString; + + /** + * Required. The ISO 3166-2 country plus subdivision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * Required. The platform source of the ad, akin to the Google Analytics source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Enum value for targeting type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetingType; + + /** + * String value for targeting type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetingTypeString; + + /** + * Required. The time the event occurred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Optional. Multiple pieces of user-provided data, representing the user the event is associated + * with. It is possible to provide multiple instances of the same type of data (e.g. email + * address). The more data provided, the more likely a match will be found. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UserData userData; + + /** + * Required. Details of the viewability of the ad served. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ViewabilityInfo viewabilityInfo; + + /** + * Enum value for ad format. + * @return value or {@code null} for none + */ + public java.lang.String getAdFormat() { + return adFormat; + } + + /** + * Enum value for ad format. + * @param adFormat adFormat or {@code null} for none + */ + public AdEvent setAdFormat(java.lang.String adFormat) { + this.adFormat = adFormat; + return this; + } + + /** + * String value for ad format. + * @return value or {@code null} for none + */ + public java.lang.String getAdFormatString() { + return adFormatString; + } + + /** + * String value for ad format. + * @param adFormatString adFormatString or {@code null} for none + */ + public AdEvent setAdFormatString(java.lang.String adFormatString) { + this.adFormatString = adFormatString; + return this; + } + + /** + * Optional. The ID of the associated ad group. + * @return value or {@code null} for none + */ + public java.lang.String getAdGroupId() { + return adGroupId; + } + + /** + * Optional. The ID of the associated ad group. + * @param adGroupId adGroupId or {@code null} for none + */ + public AdEvent setAdGroupId(java.lang.String adGroupId) { + this.adGroupId = adGroupId; + return this; + } + + /** + * Optional. The height of the ad in pixels. + * @return value or {@code null} for none + */ + public java.lang.Integer getAdHeight() { + return adHeight; + } + + /** + * Optional. The height of the ad in pixels. + * @param adHeight adHeight or {@code null} for none + */ + public AdEvent setAdHeight(java.lang.Integer adHeight) { + this.adHeight = adHeight; + return this; + } + + /** + * Optional. The ID of the associated ad within the group. + * @return value or {@code null} for none + */ + public java.lang.String getAdId() { + return adId; + } + + /** + * Optional. The ID of the associated ad within the group. + * @param adId adId or {@code null} for none + */ + public AdEvent setAdId(java.lang.String adId) { + this.adId = adId; + return this; + } + + /** + * Enum value for ad placement. + * @return value or {@code null} for none + */ + public java.lang.String getAdPlacement() { + return adPlacement; + } + + /** + * Enum value for ad placement. + * @param adPlacement adPlacement or {@code null} for none + */ + public AdEvent setAdPlacement(java.lang.String adPlacement) { + this.adPlacement = adPlacement; + return this; + } + + /** + * String value for ad placement. + * @return value or {@code null} for none + */ + public java.lang.String getAdPlacementString() { + return adPlacementString; + } + + /** + * String value for ad placement. + * @param adPlacementString adPlacementString or {@code null} for none + */ + public AdEvent setAdPlacementString(java.lang.String adPlacementString) { + this.adPlacementString = adPlacementString; + return this; + } + + /** + * Enum value for ad type. + * @return value or {@code null} for none + */ + public java.lang.String getAdType() { + return adType; + } + + /** + * Enum value for ad type. + * @param adType adType or {@code null} for none + */ + public AdEvent setAdType(java.lang.String adType) { + this.adType = adType; + return this; + } + + /** + * String value for ad type. + * @return value or {@code null} for none + */ + public java.lang.String getAdTypeString() { + return adTypeString; + } + + /** + * String value for ad type. + * @param adTypeString adTypeString or {@code null} for none + */ + public AdEvent setAdTypeString(java.lang.String adTypeString) { + this.adTypeString = adTypeString; + return this; + } + + /** + * Optional. The width of the ad in pixels. + * @return value or {@code null} for none + */ + public java.lang.Integer getAdWidth() { + return adWidth; + } + + /** + * Optional. The width of the ad in pixels. + * @param adWidth adWidth or {@code null} for none + */ + public AdEvent setAdWidth(java.lang.Integer adWidth) { + this.adWidth = adWidth; + return this; + } + + /** + * Required. The ID of the advertiser for the ad event. This must match the ID sent in the linking + * flow. + * @return value or {@code null} for none + */ + public java.lang.String getAdvertiserId() { + return advertiserId; + } + + /** + * Required. The ID of the advertiser for the ad event. This must match the ID sent in the linking + * flow. + * @param advertiserId advertiserId or {@code null} for none + */ + public AdEvent setAdvertiserId(java.lang.String advertiserId) { + this.advertiserId = advertiserId; + return this; + } + + /** + * Optional. The partner-assumed attribution status for this ad event. This acts only as a signal + * for how the partner assumed attribution played out, and does not force an end result in final + * reports. + * @return value or {@code null} for none + */ + public java.lang.String getAttributionHint() { + return attributionHint; + } + + /** + * Optional. The partner-assumed attribution status for this ad event. This acts only as a signal + * for how the partner assumed attribution played out, and does not force an end result in final + * reports. + * @param attributionHint attributionHint or {@code null} for none + */ + public AdEvent setAttributionHint(java.lang.String attributionHint) { + this.attributionHint = attributionHint; + return this; + } + + /** + * Required. The ID of the associated campaign. + * @return value or {@code null} for none + */ + public java.lang.String getCampaignId() { + return campaignId; + } + + /** + * Required. The ID of the associated campaign. + * @param campaignId campaignId or {@code null} for none + */ + public AdEvent setCampaignId(java.lang.String campaignId) { + this.campaignId = campaignId; + return this; + } + + /** + * Required. The name of the associated campaign. + * @return value or {@code null} for none + */ + public java.lang.String getCampaignName() { + return campaignName; + } + + /** + * Required. The name of the associated campaign. + * @param campaignName campaignName or {@code null} for none + */ + public AdEvent setCampaignName(java.lang.String campaignName) { + this.campaignName = campaignName; + return this; + } + + /** + * Optional. Information gathered about the device being used when the ad event happened. + * @return value or {@code null} for none + */ + public DeviceInfo getDeviceInfo() { + return deviceInfo; + } + + /** + * Optional. Information gathered about the device being used when the ad event happened. + * @param deviceInfo deviceInfo or {@code null} for none + */ + public AdEvent setDeviceInfo(DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + return this; + } + + /** + * Optional. An ID created and managed by the caller that uniquely identifies this event. Required + * if you want to deduplicate ad events that are included in multiple requests. Otherwise, this + * field is optional. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * Optional. An ID created and managed by the caller that uniquely identifies this event. Required + * if you want to deduplicate ad events that are included in multiple requests. Otherwise, this + * field is optional. + * @param eventId eventId or {@code null} for none + */ + public AdEvent setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * Enum value for event subtype. + * @return value or {@code null} for none + */ + public java.lang.String getEventSubtype() { + return eventSubtype; + } + + /** + * Enum value for event subtype. + * @param eventSubtype eventSubtype or {@code null} for none + */ + public AdEvent setEventSubtype(java.lang.String eventSubtype) { + this.eventSubtype = eventSubtype; + return this; + } + + /** + * String value for event subtype. + * @return value or {@code null} for none + */ + public java.lang.String getEventSubtypeString() { + return eventSubtypeString; + } + + /** + * String value for event subtype. + * @param eventSubtypeString eventSubtypeString or {@code null} for none + */ + public AdEvent setEventSubtypeString(java.lang.String eventSubtypeString) { + this.eventSubtypeString = eventSubtypeString; + return this; + } + + /** + * Required. The type of the event. + * @return value or {@code null} for none + */ + public java.lang.String getEventType() { + return eventType; + } + + /** + * Required. The type of the event. + * @param eventType eventType or {@code null} for none + */ + public AdEvent setEventType(java.lang.String eventType) { + this.eventType = eventType; + return this; + } + + /** + * Optional. Represents if the row is allowed to be used for measurement purposes, as governed by + * applicable privacy laws within regional jurisdiction. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMeasurementAllowed() { + return measurementAllowed; + } + + /** + * Optional. Represents if the row is allowed to be used for measurement purposes, as governed by + * applicable privacy laws within regional jurisdiction. + * @param measurementAllowed measurementAllowed or {@code null} for none + */ + public AdEvent setMeasurementAllowed(java.lang.Boolean measurementAllowed) { + this.measurementAllowed = measurementAllowed; + return this; + } + + /** + * Required. The medium of the ad, akin to the Google Analytics medium. + * @return value or {@code null} for none + */ + public java.lang.String getMedium() { + return medium; + } + + /** + * Required. The medium of the ad, akin to the Google Analytics medium. + * @param medium medium or {@code null} for none + */ + public AdEvent setMedium(java.lang.String medium) { + this.medium = medium; + return this; + } + + /** + * Optional. The device ID of the device that the ad was served to. + * @return value or {@code null} for none + */ + public java.lang.String getMobileDeviceId() { + return mobileDeviceId; + } + + /** + * Optional. The device ID of the device that the ad was served to. + * @param mobileDeviceId mobileDeviceId or {@code null} for none + */ + public AdEvent setMobileDeviceId(java.lang.String mobileDeviceId) { + this.mobileDeviceId = mobileDeviceId; + return this; + } + + /** + * Enum value for platform. + * @return value or {@code null} for none + */ + public java.lang.String getPlatform() { + return platform; + } + + /** + * Enum value for platform. + * @param platform platform or {@code null} for none + */ + public AdEvent setPlatform(java.lang.String platform) { + this.platform = platform; + return this; + } + + /** + * String value for platform. + * @return value or {@code null} for none + */ + public java.lang.String getPlatformString() { + return platformString; + } + + /** + * String value for platform. + * @param platformString platformString or {@code null} for none + */ + public AdEvent setPlatformString(java.lang.String platformString) { + this.platformString = platformString; + return this; + } + + /** + * Enum value for platform type. + * @return value or {@code null} for none + */ + public java.lang.String getPlatformType() { + return platformType; + } + + /** + * Enum value for platform type. + * @param platformType platformType or {@code null} for none + */ + public AdEvent setPlatformType(java.lang.String platformType) { + this.platformType = platformType; + return this; + } + + /** + * String value for platform type. + * @return value or {@code null} for none + */ + public java.lang.String getPlatformTypeString() { + return platformTypeString; + } + + /** + * String value for platform type. + * @param platformTypeString platformTypeString or {@code null} for none + */ + public AdEvent setPlatformTypeString(java.lang.String platformTypeString) { + this.platformTypeString = platformTypeString; + return this; + } + + /** + * Required. The ISO 3166-2 country plus subdivision. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Required. The ISO 3166-2 country plus subdivision. + * @param regionCode regionCode or {@code null} for none + */ + public AdEvent setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Required. The platform source of the ad, akin to the Google Analytics source. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Required. The platform source of the ad, akin to the Google Analytics source. + * @param source source or {@code null} for none + */ + public AdEvent setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Enum value for targeting type. + * @return value or {@code null} for none + */ + public java.lang.String getTargetingType() { + return targetingType; + } + + /** + * Enum value for targeting type. + * @param targetingType targetingType or {@code null} for none + */ + public AdEvent setTargetingType(java.lang.String targetingType) { + this.targetingType = targetingType; + return this; + } + + /** + * String value for targeting type. + * @return value or {@code null} for none + */ + public java.lang.String getTargetingTypeString() { + return targetingTypeString; + } + + /** + * String value for targeting type. + * @param targetingTypeString targetingTypeString or {@code null} for none + */ + public AdEvent setTargetingTypeString(java.lang.String targetingTypeString) { + this.targetingTypeString = targetingTypeString; + return this; + } + + /** + * Required. The time the event occurred. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Required. The time the event occurred. + * @param timestamp timestamp or {@code null} for none + */ + public AdEvent setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * Optional. Multiple pieces of user-provided data, representing the user the event is associated + * with. It is possible to provide multiple instances of the same type of data (e.g. email + * address). The more data provided, the more likely a match will be found. + * @return value or {@code null} for none + */ + public UserData getUserData() { + return userData; + } + + /** + * Optional. Multiple pieces of user-provided data, representing the user the event is associated + * with. It is possible to provide multiple instances of the same type of data (e.g. email + * address). The more data provided, the more likely a match will be found. + * @param userData userData or {@code null} for none + */ + public AdEvent setUserData(UserData userData) { + this.userData = userData; + return this; + } + + /** + * Required. Details of the viewability of the ad served. + * @return value or {@code null} for none + */ + public ViewabilityInfo getViewabilityInfo() { + return viewabilityInfo; + } + + /** + * Required. Details of the viewability of the ad served. + * @param viewabilityInfo viewabilityInfo or {@code null} for none + */ + public AdEvent setViewabilityInfo(ViewabilityInfo viewabilityInfo) { + this.viewabilityInfo = viewabilityInfo; + return this; + } + + @Override + public AdEvent set(String fieldName, Object value) { + return (AdEvent) super.set(fieldName, value); + } + + @Override + public AdEvent clone() { + return (AdEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/CoordinatorKeyInfo.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/CoordinatorKeyInfo.java new file mode 100644 index 00000000000..5399fef2048 --- /dev/null +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/CoordinatorKeyInfo.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datamanager.v1.model; + +/** + * Information about the coordinator key. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CoordinatorKeyInfo extends com.google.api.client.json.GenericJson { + + /** + * Required. The ID of the chosen coordinator key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyId; + + /** + * Required. The ID of the chosen coordinator key. + * @return value or {@code null} for none + */ + public java.lang.String getKeyId() { + return keyId; + } + + /** + * Required. The ID of the chosen coordinator key. + * @param keyId keyId or {@code null} for none + */ + public CoordinatorKeyInfo setKeyId(java.lang.String keyId) { + this.keyId = keyId; + return this; + } + + @Override + public CoordinatorKeyInfo set(String fieldName, Object value) { + return (CoordinatorKeyInfo) super.set(fieldName, value); + } + + @Override + public CoordinatorKeyInfo clone() { + return (CoordinatorKeyInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/EncryptionInfo.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/EncryptionInfo.java index 329021caddb..f80e4161951 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/EncryptionInfo.java +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/EncryptionInfo.java @@ -36,6 +36,14 @@ public final class EncryptionInfo extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private AwsWrappedKeyInfo awsWrappedKeyInfo; + /** + * Key information for the chosen coordinator key. This is not supported for the IngestEvents, + * IngestAudienceMembers, and RemoveAudienceMembers methods. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CoordinatorKeyInfo coordinatorKeyInfo; + /** * Google Cloud Platform wrapped key information. * The value may be {@code null}. @@ -60,6 +68,25 @@ public EncryptionInfo setAwsWrappedKeyInfo(AwsWrappedKeyInfo awsWrappedKeyInfo) return this; } + /** + * Key information for the chosen coordinator key. This is not supported for the IngestEvents, + * IngestAudienceMembers, and RemoveAudienceMembers methods. + * @return value or {@code null} for none + */ + public CoordinatorKeyInfo getCoordinatorKeyInfo() { + return coordinatorKeyInfo; + } + + /** + * Key information for the chosen coordinator key. This is not supported for the IngestEvents, + * IngestAudienceMembers, and RemoveAudienceMembers methods. + * @param coordinatorKeyInfo coordinatorKeyInfo or {@code null} for none + */ + public EncryptionInfo setCoordinatorKeyInfo(CoordinatorKeyInfo coordinatorKeyInfo) { + this.coordinatorKeyInfo = coordinatorKeyInfo; + return this; + } + /** * Google Cloud Platform wrapped key information. * @return value or {@code null} for none diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/IngestAdEventsRequest.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/IngestAdEventsRequest.java new file mode 100644 index 00000000000..88f0f078698 --- /dev/null +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/IngestAdEventsRequest.java @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datamanager.v1.model; + +/** + * Request to upload ad events. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IngestAdEventsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Required (at least 1). A list of ad events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IngestAdEventsResponse extends com.google.api.client.json.GenericJson { + + @Override + public IngestAdEventsResponse set(String fieldName, Object value) { + return (IngestAdEventsResponse) super.set(fieldName, value); + } + + @Override + public IngestAdEventsResponse clone() { + return (IngestAdEventsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerCustomerAccount.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerCustomerAccount.java new file mode 100644 index 00000000000..6211dad3a92 --- /dev/null +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerCustomerAccount.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datamanager.v1.model; + +/** + * Represents a customer account in the partner's system. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PartnerCustomerAccount extends com.google.api.client.json.GenericJson { + + /** + * Required. The identifier of the customer account in the partner's ID space. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accountId; + + /** + * Optional. The name of the account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accountName; + + /** + * Optional. The type of the account. Can be used to distinguish between advertiser accounts and + * business level accounts, for example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accountType; + + /** + * Required. The identifier of the customer account in the partner's ID space. + * @return value or {@code null} for none + */ + public java.lang.String getAccountId() { + return accountId; + } + + /** + * Required. The identifier of the customer account in the partner's ID space. + * @param accountId accountId or {@code null} for none + */ + public PartnerCustomerAccount setAccountId(java.lang.String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Optional. The name of the account. + * @return value or {@code null} for none + */ + public java.lang.String getAccountName() { + return accountName; + } + + /** + * Optional. The name of the account. + * @param accountName accountName or {@code null} for none + */ + public PartnerCustomerAccount setAccountName(java.lang.String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Optional. The type of the account. Can be used to distinguish between advertiser accounts and + * business level accounts, for example. + * @return value or {@code null} for none + */ + public java.lang.String getAccountType() { + return accountType; + } + + /** + * Optional. The type of the account. Can be used to distinguish between advertiser accounts and + * business level accounts, for example. + * @param accountType accountType or {@code null} for none + */ + public PartnerCustomerAccount setAccountType(java.lang.String accountType) { + this.accountType = accountType; + return this; + } + + @Override + public PartnerCustomerAccount set(String fieldName, Object value) { + return (PartnerCustomerAccount) super.set(fieldName, value); + } + + @Override + public PartnerCustomerAccount clone() { + return (PartnerCustomerAccount) super.clone(); + } + +} diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLink.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLink.java index 0f330195656..abe70811920 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLink.java +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLink.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class PartnerLink extends com.google.api.client.json.GenericJson { + /** + * Optional. Immutable. The set of features supported for the partner link. If not specified, the + * system behavior defaults to FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String featureSet; + /** * Identifier. The name of the partner link. Format: * accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link} @@ -51,6 +59,14 @@ public final class PartnerLink extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private ProductAccount partnerAccount; + /** + * Optional. The customer account in the partner system. This is required for partner links with + * the FEATURE_SET_AD_EVENT_MANAGEMENT feature set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PartnerCustomerAccount partnerCustomerAccount; + /** * Output only. The partner link ID. * The value may be {@code null}. @@ -58,6 +74,33 @@ public final class PartnerLink extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String partnerLinkId; + /** + * Optional. Metadata associated with the partner link. This is optional and only accepted for + * partner links with the FEATURE_SET_AD_EVENT_MANAGEMENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PartnerLinkMetadata partnerLinkMetadata; + + /** + * Optional. Immutable. The set of features supported for the partner link. If not specified, the + * system behavior defaults to FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT. + * @return value or {@code null} for none + */ + public java.lang.String getFeatureSet() { + return featureSet; + } + + /** + * Optional. Immutable. The set of features supported for the partner link. If not specified, the + * system behavior defaults to FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT. + * @param featureSet featureSet or {@code null} for none + */ + public PartnerLink setFeatureSet(java.lang.String featureSet) { + this.featureSet = featureSet; + return this; + } + /** * Identifier. The name of the partner link. Format: * accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link} @@ -111,6 +154,25 @@ public PartnerLink setPartnerAccount(ProductAccount partnerAccount) { return this; } + /** + * Optional. The customer account in the partner system. This is required for partner links with + * the FEATURE_SET_AD_EVENT_MANAGEMENT feature set. + * @return value or {@code null} for none + */ + public PartnerCustomerAccount getPartnerCustomerAccount() { + return partnerCustomerAccount; + } + + /** + * Optional. The customer account in the partner system. This is required for partner links with + * the FEATURE_SET_AD_EVENT_MANAGEMENT feature set. + * @param partnerCustomerAccount partnerCustomerAccount or {@code null} for none + */ + public PartnerLink setPartnerCustomerAccount(PartnerCustomerAccount partnerCustomerAccount) { + this.partnerCustomerAccount = partnerCustomerAccount; + return this; + } + /** * Output only. The partner link ID. * @return value or {@code null} for none @@ -128,6 +190,25 @@ public PartnerLink setPartnerLinkId(java.lang.String partnerLinkId) { return this; } + /** + * Optional. Metadata associated with the partner link. This is optional and only accepted for + * partner links with the FEATURE_SET_AD_EVENT_MANAGEMENT. + * @return value or {@code null} for none + */ + public PartnerLinkMetadata getPartnerLinkMetadata() { + return partnerLinkMetadata; + } + + /** + * Optional. Metadata associated with the partner link. This is optional and only accepted for + * partner links with the FEATURE_SET_AD_EVENT_MANAGEMENT. + * @param partnerLinkMetadata partnerLinkMetadata or {@code null} for none + */ + public PartnerLink setPartnerLinkMetadata(PartnerLinkMetadata partnerLinkMetadata) { + this.partnerLinkMetadata = partnerLinkMetadata; + return this; + } + @Override public PartnerLink set(String fieldName, Object value) { return (PartnerLink) super.set(fieldName, value); diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLinkMetadata.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLinkMetadata.java new file mode 100644 index 00000000000..c74f403e881 --- /dev/null +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/PartnerLinkMetadata.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datamanager.v1.model; + +/** + * Represents metadata associated with a partner link. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PartnerLinkMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of implicit accounts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Data Manager API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ViewabilityInfo extends com.google.api.client.json.GenericJson { + + /** + * Optional. The duration of the ad media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String mediaDuration; + + /** + * Optional. The amount of the media that was played as discrete quartiles. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mediaQuartile; + + /** + * Optional. Whether the ad media was skippable or not. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean mediaSkippable; + + /** + * Optional. The numerical percent (0-100) of the volume of the media playback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer mediaVolumePercent; + + /** + * Optional. The duration of playback of the ad media, regardless of whether it was viewable or + * not. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String playbackDuration; + + /** + * Required. The type of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String viewType; + + /** + * Optional. The amount of time the ad was viewable for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String viewableDuration; + + /** + * Optional. The numerical percent (0-100) of the pixels that were viewable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer viewablePercent; + + /** + * Optional. The duration of the ad media. + * @return value or {@code null} for none + */ + public String getMediaDuration() { + return mediaDuration; + } + + /** + * Optional. The duration of the ad media. + * @param mediaDuration mediaDuration or {@code null} for none + */ + public ViewabilityInfo setMediaDuration(String mediaDuration) { + this.mediaDuration = mediaDuration; + return this; + } + + /** + * Optional. The amount of the media that was played as discrete quartiles. + * @return value or {@code null} for none + */ + public java.lang.String getMediaQuartile() { + return mediaQuartile; + } + + /** + * Optional. The amount of the media that was played as discrete quartiles. + * @param mediaQuartile mediaQuartile or {@code null} for none + */ + public ViewabilityInfo setMediaQuartile(java.lang.String mediaQuartile) { + this.mediaQuartile = mediaQuartile; + return this; + } + + /** + * Optional. Whether the ad media was skippable or not. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMediaSkippable() { + return mediaSkippable; + } + + /** + * Optional. Whether the ad media was skippable or not. + * @param mediaSkippable mediaSkippable or {@code null} for none + */ + public ViewabilityInfo setMediaSkippable(java.lang.Boolean mediaSkippable) { + this.mediaSkippable = mediaSkippable; + return this; + } + + /** + * Optional. The numerical percent (0-100) of the volume of the media playback. + * @return value or {@code null} for none + */ + public java.lang.Integer getMediaVolumePercent() { + return mediaVolumePercent; + } + + /** + * Optional. The numerical percent (0-100) of the volume of the media playback. + * @param mediaVolumePercent mediaVolumePercent or {@code null} for none + */ + public ViewabilityInfo setMediaVolumePercent(java.lang.Integer mediaVolumePercent) { + this.mediaVolumePercent = mediaVolumePercent; + return this; + } + + /** + * Optional. The duration of playback of the ad media, regardless of whether it was viewable or + * not. + * @return value or {@code null} for none + */ + public String getPlaybackDuration() { + return playbackDuration; + } + + /** + * Optional. The duration of playback of the ad media, regardless of whether it was viewable or + * not. + * @param playbackDuration playbackDuration or {@code null} for none + */ + public ViewabilityInfo setPlaybackDuration(String playbackDuration) { + this.playbackDuration = playbackDuration; + return this; + } + + /** + * Required. The type of the event. + * @return value or {@code null} for none + */ + public java.lang.String getViewType() { + return viewType; + } + + /** + * Required. The type of the event. + * @param viewType viewType or {@code null} for none + */ + public ViewabilityInfo setViewType(java.lang.String viewType) { + this.viewType = viewType; + return this; + } + + /** + * Optional. The amount of time the ad was viewable for. + * @return value or {@code null} for none + */ + public String getViewableDuration() { + return viewableDuration; + } + + /** + * Optional. The amount of time the ad was viewable for. + * @param viewableDuration viewableDuration or {@code null} for none + */ + public ViewabilityInfo setViewableDuration(String viewableDuration) { + this.viewableDuration = viewableDuration; + return this; + } + + /** + * Optional. The numerical percent (0-100) of the pixels that were viewable. + * @return value or {@code null} for none + */ + public java.lang.Integer getViewablePercent() { + return viewablePercent; + } + + /** + * Optional. The numerical percent (0-100) of the pixels that were viewable. + * @param viewablePercent viewablePercent or {@code null} for none + */ + public ViewabilityInfo setViewablePercent(java.lang.Integer viewablePercent) { + this.viewablePercent = viewablePercent; + return this; + } + + @Override + public ViewabilityInfo set(String fieldName, Object value) { + return (ViewabilityInfo) super.set(fieldName, value); + } + + @Override + public ViewabilityInfo clone() { + return (ViewabilityInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-datamanager/v1/2.0.0/pom.xml b/clients/google-api-services-datamanager/v1/2.0.0/pom.xml index 6ce473743c8..23024e4d279 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datamanager/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@