From 376203385dd033e34a9694757e4b698b776dadb6 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 18 Oct 2025 18:58:59 -0700 Subject: [PATCH] chore: regenerate dfareporting client --- .../v4/2.0.0/README.md | 4 +- .../services/dfareporting/Dfareporting.java | 15583 ++++++++-------- ...tingStudioCreativeAssetsInsertRequest.java | 121 + .../model/DynamicFeedsInsertRequest.java | 2 +- .../DynamicProfileGenerateCodeResponse.java | 67 + .../dfareporting/model/StudioCreative.java | 361 + .../model/StudioCreativeAsset.java | 295 + .../model/StudioCreativeAssetsResponse.java | 73 + .../model/StudioCreativeDimension.java | 91 + .../model/VideoProcessingData.java | 91 + .../v4/2.0.0/pom.xml | 4 +- .../v4/README.md | 4 +- .../v5/2.0.0/README.md | 4 +- .../services/dfareporting/Dfareporting.java | 13295 +++++++------ ...tingStudioCreativeAssetsInsertRequest.java | 121 + .../model/DynamicFeedsInsertRequest.java | 2 +- .../DynamicProfileGenerateCodeResponse.java | 67 + .../dfareporting/model/StudioCreative.java | 361 + .../model/StudioCreativeAsset.java | 295 + .../model/StudioCreativeAssetsResponse.java | 73 + .../model/StudioCreativeDimension.java | 91 + .../model/VideoProcessingData.java | 91 + .../v5/2.0.0/pom.xml | 4 +- .../v5/README.md | 4 +- 24 files changed, 17658 insertions(+), 13446 deletions(-) create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java create mode 100644 clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java create mode 100644 clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/README.md b/clients/google-api-services-dfareporting/v4/2.0.0/README.md index 62039c8229b..e04c8da8fa4 100644 --- a/clients/google-api-services-dfareporting/v4/2.0.0/README.md +++ b/clients/google-api-services-dfareporting/v4/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dfareporting - v4-rev20250902-2.0.0 + v4-rev20251009-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dfareporting:v4-rev20250902-2.0.0' + implementation 'com.google.apis:google-api-services-dfareporting:v4-rev20251009-2.0.0' } ``` diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/Dfareporting.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/Dfareporting.java index 56d01797c5f..419978aa3aa 100644 --- a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/Dfareporting.java +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/Dfareporting.java @@ -16590,281 +16590,150 @@ public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the DynamicProfiles collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.DynamicProfiles.List request = dfareporting.dynamicProfiles().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public DynamicProfiles dynamicProfiles() { - return new DynamicProfiles(); - } - - /** - * The "dynamicProfiles" collection of methods. - */ - public class DynamicProfiles { - /** - * Gets a dynamic profile by ID. + * Retransforms a dynamic feed. * - * Create a request for the method "dynamicProfiles.get". + * Create a request for the method "dynamicFeeds.retransform". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Retransform#execute()} method to invoke the remote operation. * - * @param dynamicProfileId Required. Dynamic profile ID. + * @param dynamicFeedId Required. Dynamic feed ID. * @return the request */ - public Get get(java.lang.Long dynamicProfileId) throws java.io.IOException { - Get result = new Get(dynamicProfileId); + public Retransform retransform(java.lang.Long dynamicFeedId) throws java.io.IOException { + Retransform result = new Retransform(dynamicFeedId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Retransform extends DfareportingRequest { - private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}"; + private static final String REST_PATH = "studio/dynamicFeeds/{+dynamicFeedId}/retransform"; - private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_FEED_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets a dynamic profile by ID. + * Retransforms a dynamic feed. * - * Create a request for the method "dynamicProfiles.get". + * Create a request for the method "dynamicFeeds.retransform". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Retransform#execute()} method to invoke the remote + * operation.

{@link + * Retransform#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param dynamicProfileId Required. Dynamic profile ID. + * @param dynamicFeedId Required. Dynamic feed ID. * @since 1.13 */ - protected Get(java.lang.Long dynamicProfileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfile.class); - this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Retransform(java.lang.Long dynamicFeedId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicFeed.class); + this.dynamicFeedId = com.google.api.client.util.Preconditions.checkNotNull(dynamicFeedId, "Required parameter dynamicFeedId must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Retransform set$Xgafv(java.lang.String $Xgafv) { + return (Retransform) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Retransform setAccessToken(java.lang.String accessToken) { + return (Retransform) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Retransform setAlt(java.lang.String alt) { + return (Retransform) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Retransform setCallback(java.lang.String callback) { + return (Retransform) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Retransform setFields(java.lang.String fields) { + return (Retransform) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Retransform setKey(java.lang.String key) { + return (Retransform) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Retransform setOauthToken(java.lang.String oauthToken) { + return (Retransform) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Retransform setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retransform) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Retransform setQuotaUser(java.lang.String quotaUser) { + return (Retransform) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Retransform setUploadType(java.lang.String uploadType) { + return (Retransform) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Retransform setUploadProtocol(java.lang.String uploadProtocol) { + return (Retransform) super.setUploadProtocol(uploadProtocol); } - /** Required. Dynamic profile ID. */ + /** Required. Dynamic feed ID. */ @com.google.api.client.util.Key - private java.lang.Long dynamicProfileId; + private java.lang.Long dynamicFeedId; - /** Required. Dynamic profile ID. + /** Required. Dynamic feed ID. */ - public java.lang.Long getDynamicProfileId() { - return dynamicProfileId; + public java.lang.Long getDynamicFeedId() { + return dynamicFeedId; } - /** Required. Dynamic profile ID. */ - public Get setDynamicProfileId(java.lang.Long dynamicProfileId) { - this.dynamicProfileId = dynamicProfileId; + /** Required. Dynamic feed ID. */ + public Retransform setDynamicFeedId(java.lang.Long dynamicFeedId) { + this.dynamicFeedId = dynamicFeedId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Inserts a new dynamic profile. - * - * Create a request for the method "dynamicProfiles.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} - * @return the request - */ - public Insert insert(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { - Insert result = new Insert(content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "studio/dynamicProfiles"; - - /** - * Inserts a new dynamic profile. - * - * Create a request for the method "dynamicProfiles.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#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.dfareporting.model.DynamicProfile} - * @since 1.13 - */ - protected Insert(com.google.api.services.dfareporting.model.DynamicProfile content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Retransform set(String parameterName, Object value) { + return (Retransform) super.set(parameterName, value); } } /** - * Updates an existing dynamic profile. + * Updates a new dynamic feed. * - * Create a request for the method "dynamicProfiles.update". + * Create a request for the method "dynamicFeeds.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicFeed} * @return the request */ - public Update update(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + public Update update(com.google.api.services.dfareporting.model.DynamicFeed content) throws java.io.IOException { Update result = new Update(content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "studio/dynamicProfiles"; + private static final String REST_PATH = "studio/dynamicFeeds"; /** - * Updates an existing dynamic profile. + * Updates a new dynamic feed. * - * Create a request for the method "dynamicProfiles.update". + * Create a request for the method "dynamicFeeds.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -16872,11 +16741,11 @@ public class Update extends DfareportingRequest * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicFeed} * @since 1.13 */ - protected Update(com.google.api.services.dfareporting.model.DynamicProfile content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); + protected Update(com.google.api.services.dfareporting.model.DynamicFeed content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicFeed.class); } @Override @@ -16943,246 +16812,307 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the DynamicTargetingKeys collection. + * An accessor for creating requests from the DynamicProfiles collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.DynamicTargetingKeys.List request = dfareporting.dynamicTargetingKeys().list(parameters ...)}
+   *   {@code Dfareporting.DynamicProfiles.List request = dfareporting.dynamicProfiles().list(parameters ...)}
    * 
* * @return the resource collection */ - public DynamicTargetingKeys dynamicTargetingKeys() { - return new DynamicTargetingKeys(); + public DynamicProfiles dynamicProfiles() { + return new DynamicProfiles(); } /** - * The "dynamicTargetingKeys" collection of methods. + * The "dynamicProfiles" collection of methods. */ - public class DynamicTargetingKeys { + public class DynamicProfiles { /** - * Deletes an existing dynamic targeting key. + * Generates code for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.delete". + * Create a request for the method "dynamicProfiles.generateCode". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GenerateCode#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param objectId ID of the object of this dynamic targeting key. This is a required field. - * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - * characters long and cannot contain commas. All characters are converted to lowercase. - * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. + * @param dynamicProfileId Required. Dynamic profile ID. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) throws java.io.IOException { - Delete result = new Delete(profileId, objectId, name, objectType); + public GenerateCode generateCode(java.lang.Long dynamicProfileId) throws java.io.IOException { + GenerateCode result = new GenerateCode(dynamicProfileId); initialize(result); return result; } - public class Delete extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys/{+objectId}"; + public class GenerateCode extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}/generateCode"; - private final java.util.regex.Pattern OBJECT_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Deletes an existing dynamic targeting key. + * Generates code for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.delete". + * Create a request for the method "dynamicProfiles.generateCode". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link GenerateCode#execute()} method to invoke the remote + * operation.

{@link + * GenerateCode#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param objectId ID of the object of this dynamic targeting key. This is a required field. - * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - * characters long and cannot contain commas. All characters are converted to lowercase. - * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. + * @param dynamicProfileId Required. Dynamic profile ID. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.objectId = com.google.api.client.util.Preconditions.checkNotNull(objectId, "Required parameter objectId must be specified."); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - this.objectType = com.google.api.client.util.Preconditions.checkNotNull(objectType, "Required parameter objectType must be specified."); + protected GenerateCode(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfileGenerateCodeResponse.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GenerateCode set$Xgafv(java.lang.String $Xgafv) { + return (GenerateCode) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GenerateCode setAccessToken(java.lang.String accessToken) { + return (GenerateCode) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GenerateCode setAlt(java.lang.String alt) { + return (GenerateCode) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GenerateCode setCallback(java.lang.String callback) { + return (GenerateCode) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GenerateCode setFields(java.lang.String fields) { + return (GenerateCode) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GenerateCode setKey(java.lang.String key) { + return (GenerateCode) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GenerateCode setOauthToken(java.lang.String oauthToken) { + return (GenerateCode) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GenerateCode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateCode) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GenerateCode setQuotaUser(java.lang.String quotaUser) { + return (GenerateCode) super.setQuotaUser(quotaUser); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; + @Override + public GenerateCode setUploadType(java.lang.String uploadType) { + return (GenerateCode) super.setUploadType(uploadType); } - /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; + @Override + public GenerateCode setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateCode) super.setUploadProtocol(uploadProtocol); } - /** ID of the object of this dynamic targeting key. This is a required field. */ + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.Long objectId; + private java.lang.Long dynamicProfileId; - /** ID of the object of this dynamic targeting key. This is a required field. + /** Required. Dynamic profile ID. */ - public java.lang.Long getObjectId() { - return objectId; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** ID of the object of this dynamic targeting key. This is a required field. */ - public Delete setObjectId(java.lang.Long objectId) { - this.objectId = objectId; + /** Required. Dynamic profile ID. */ + public GenerateCode setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } + @Override + public GenerateCode set(String parameterName, Object value) { + return (GenerateCode) super.set(parameterName, value); + } + } + /** + * Gets a dynamic profile by ID. + * + * Create a request for the method "dynamicProfiles.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param dynamicProfileId Required. Dynamic profile ID. + * @return the request + */ + public Get get(java.lang.Long dynamicProfileId) throws java.io.IOException { + Get result = new Get(dynamicProfileId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}"; + + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Required. Name of this dynamic targeting key. This is a required field. Must be less than - * 256 characters long and cannot contain commas. All characters are converted to lowercase. + * Gets a dynamic profile by ID. + * + * Create a request for the method "dynamicProfiles.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param dynamicProfileId Required. Dynamic profile ID. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String name; + protected Get(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfile.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); + } - /** Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - characters long and cannot contain commas. All characters are converted to lowercase. - */ - public java.lang.String getName() { - return name; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** - * Required. Name of this dynamic targeting key. This is a required field. Must be less than - * 256 characters long and cannot contain commas. All characters are converted to lowercase. - */ - public Delete setName(java.lang.String name) { - this.name = name; - return this; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** Required. Type of the object of this dynamic targeting key. This is a required field. */ + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.String objectType; + private java.lang.Long dynamicProfileId; - /** Required. Type of the object of this dynamic targeting key. This is a required field. + /** Required. Dynamic profile ID. */ - public java.lang.String getObjectType() { - return objectType; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** Required. Type of the object of this dynamic targeting key. This is a required field. */ - public Delete setObjectType(java.lang.String objectType) { - this.objectType = objectType; + /** Required. Dynamic profile ID. */ + public Get setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being - * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per - * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. + * Inserts a new dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.insert". + * Create a request for the method "dynamicProfiles.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/dynamicProfiles"; /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being - * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per - * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. + * Inserts a new dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.insert". + * Create a request for the method "dynamicProfiles.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -17190,13 +17120,11 @@ public class Insert extends DfareportingRequest * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicTargetingKey.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + protected Insert(com.google.api.services.dfareporting.model.DynamicProfile content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); } @Override @@ -17254,274 +17182,287 @@ public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of dynamic targeting keys. + * Publish for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.list". + * Create a request for the method "dynamicProfiles.publish". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Publish#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param dynamicProfileId Required. Dynamic profile ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Publish publish(java.lang.Long dynamicProfileId) throws java.io.IOException { + Publish result = new Publish(dynamicProfileId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Publish extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}/publish"; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of dynamic targeting keys. + * Publish for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.list". + * Create a request for the method "dynamicProfiles.publish". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Publish#execute()} method to invoke the remote operation. + *

{@link + * Publish#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param dynamicProfileId Required. Dynamic profile ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicTargetingKeysListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Publish(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "POST", REST_PATH, null, Void.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Publish set$Xgafv(java.lang.String $Xgafv) { + return (Publish) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Publish setAccessToken(java.lang.String accessToken) { + return (Publish) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Publish setAlt(java.lang.String alt) { + return (Publish) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Publish setCallback(java.lang.String callback) { + return (Publish) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Publish setFields(java.lang.String fields) { + return (Publish) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Publish setKey(java.lang.String key) { + return (Publish) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Publish setOauthToken(java.lang.String oauthToken) { + return (Publish) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Publish setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Publish) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Publish setQuotaUser(java.lang.String quotaUser) { + return (Publish) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Publish setUploadType(java.lang.String uploadType) { + return (Publish) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Publish setUploadProtocol(java.lang.String uploadProtocol) { + return (Publish) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long dynamicProfileId; - /** User profile ID associated with this request. + /** Required. Dynamic profile ID. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Required. Dynamic profile ID. */ + public Publish setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } - /** Select only dynamic targeting keys whose object has this advertiser ID. */ - @com.google.api.client.util.Key - private java.lang.Long advertiserId; + @Override + public Publish set(String parameterName, Object value) { + return (Publish) super.set(parameterName, value); + } + } + /** + * Updates an existing dynamic profile. + * + * Create a request for the method "dynamicProfiles.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @return the request + */ + public Update update(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + Update result = new Update(content); + initialize(result); + return result; + } - /** Select only dynamic targeting keys whose object has this advertiser ID. + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "studio/dynamicProfiles"; + + /** + * Updates an existing dynamic profile. + * + * Create a request for the method "dynamicProfiles.update". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#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.dfareporting.model.DynamicProfile} + * @since 1.13 */ - public java.lang.Long getAdvertiserId() { - return advertiserId; + protected Update(com.google.api.services.dfareporting.model.DynamicProfile content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); } - /** Select only dynamic targeting keys whose object has this advertiser ID. */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; - return this; + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } - /** Select only dynamic targeting keys exactly matching these names. */ - @com.google.api.client.util.Key - private java.util.List names; + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - /** Select only dynamic targeting keys exactly matching these names. - */ - public java.util.List getNames() { - return names; + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } - /** Select only dynamic targeting keys exactly matching these names. */ - public List setNames(java.util.List names) { - this.names = names; - return this; + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } - /** Select only dynamic targeting keys with this object ID. */ - @com.google.api.client.util.Key - private java.lang.Long objectId; + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - /** Select only dynamic targeting keys with this object ID. - */ - public java.lang.Long getObjectId() { - return objectId; + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } - /** Select only dynamic targeting keys with this object ID. */ - public List setObjectId(java.lang.Long objectId) { - this.objectId = objectId; - return this; + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } - /** Select only dynamic targeting keys with this object type. */ - @com.google.api.client.util.Key - private java.lang.String objectType; + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - /** Select only dynamic targeting keys with this object type. - */ - public java.lang.String getObjectType() { - return objectType; + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } - /** Select only dynamic targeting keys with this object type. */ - public List setObjectType(java.lang.String objectType) { - this.objectType = objectType; - return this; + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the EventTags collection. + * An accessor for creating requests from the DynamicTargetingKeys collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.EventTags.List request = dfareporting.eventTags().list(parameters ...)}
+   *   {@code Dfareporting.DynamicTargetingKeys.List request = dfareporting.dynamicTargetingKeys().list(parameters ...)}
    * 
* * @return the resource collection */ - public EventTags eventTags() { - return new EventTags(); + public DynamicTargetingKeys dynamicTargetingKeys() { + return new DynamicTargetingKeys(); } /** - * The "eventTags" collection of methods. + * The "dynamicTargetingKeys" collection of methods. */ - public class EventTags { + public class DynamicTargetingKeys { /** - * Deletes an existing event tag. + * Deletes an existing dynamic targeting key. * - * Create a request for the method "eventTags.delete". + * Create a request for the method "dynamicTargetingKeys.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Event tag ID. + * @param objectId ID of the object of this dynamic targeting key. This is a required field. + * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + * characters long and cannot contain commas. All characters are converted to lowercase. + * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public Delete delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) throws java.io.IOException { + Delete result = new Delete(profileId, objectId, name, objectType); initialize(result); return result; } public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys/{+objectId}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern OBJECT_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Deletes an existing event tag. + * Deletes an existing dynamic targeting key. * - * Create a request for the method "eventTags.delete". + * Create a request for the method "dynamicTargetingKeys.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -17530,13 +17471,18 @@ public class Delete extends DfareportingRequest { * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Event tag ID. + * @param objectId ID of the object of this dynamic targeting key. This is a required field. + * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + * characters long and cannot contain commas. All characters are converted to lowercase. + * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { + protected Delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) { super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + this.objectId = com.google.api.client.util.Preconditions.checkNotNull(objectId, "Required parameter objectId must be specified."); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + this.objectType = com.google.api.client.util.Preconditions.checkNotNull(objectType, "Required parameter objectType must be specified."); } @Override @@ -17610,206 +17556,99 @@ public Delete setProfileId(java.lang.Long profileId) { return this; } - /** Event tag ID. */ + /** ID of the object of this dynamic targeting key. This is a required field. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long objectId; - /** Event tag ID. + /** ID of the object of this dynamic targeting key. This is a required field. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getObjectId() { + return objectId; } - /** Event tag ID. */ - public Delete setId(java.lang.Long id) { - this.id = id; + /** ID of the object of this dynamic targeting key. This is a required field. */ + public Delete setObjectId(java.lang.Long objectId) { + this.objectId = objectId; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets one event tag by ID. - * - * Create a request for the method "eventTags.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param id Event tag ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); - initialize(result); - return result; - } - - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one event tag by ID. - * - * Create a request for the method "eventTags.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param id Event tag ID. - * @since 1.13 + * Required. Name of this dynamic targeting key. This is a required field. Must be less than + * 256 characters long and cannot contain commas. All characters are converted to lowercase. */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTag.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String name; - /** User profile ID associated with this request. + /** Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + characters long and cannot contain commas. All characters are converted to lowercase. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getName() { + return name; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** + * Required. Name of this dynamic targeting key. This is a required field. Must be less than + * 256 characters long and cannot contain commas. All characters are converted to lowercase. + */ + public Delete setName(java.lang.String name) { + this.name = name; return this; } - /** Event tag ID. */ + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String objectType; - /** Event tag ID. + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ - public java.lang.Long getId() { - return id; + public java.lang.String getObjectType() { + return objectType; } - /** Event tag ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ + public Delete setObjectType(java.lang.String objectType) { + this.objectType = objectType; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a new event tag. + * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being + * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per + * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. * - * Create a request for the method "eventTags.insert". + * Create a request for the method "dynamicTargetingKeys.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new event tag. + * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being + * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per + * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. * - * Create a request for the method "eventTags.insert". + * Create a request for the method "dynamicTargetingKeys.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -17818,11 +17657,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicTargetingKey.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -17903,9 +17742,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of event tags, possibly filtered. + * Retrieves a list of dynamic targeting keys. * - * Create a request for the method "eventTags.list". + * Create a request for the method "dynamicTargetingKeys.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -17919,17 +17758,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of event tags, possibly filtered. + * Retrieves a list of dynamic targeting keys. * - * Create a request for the method "eventTags.list". + * Create a request for the method "dynamicTargetingKeys.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -17940,7 +17779,7 @@ public class List extends DfareportingRequest names; - /** Select only event tags that belong to this campaign. + /** Select only dynamic targeting keys exactly matching these names. */ - public java.lang.Long getCampaignId() { - return campaignId; + public java.util.List getNames() { + return names; } - /** Select only event tags that belong to this campaign. */ - public List setCampaignId(java.lang.Long campaignId) { - this.campaignId = campaignId; + /** Select only dynamic targeting keys exactly matching these names. */ + public List setNames(java.util.List names) { + this.names = names; return this; } - /** - * Examine only the specified campaign or advertiser's event tags for matching selector - * criteria. When set to false, the parent advertiser and parent campaign of the specified ad - * or campaign is examined as well. In addition, when set to false, the status field is - * examined as well, along with the enabledByDefault field. This parameter can not be set to - * true when adId is specified as ads do not define their own even tags. - */ + /** Select only dynamic targeting keys with this object ID. */ @com.google.api.client.util.Key - private java.lang.Boolean definitionsOnly; + private java.lang.Long objectId; - /** Examine only the specified campaign or advertiser's event tags for matching selector criteria. When - set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined - as well. In addition, when set to false, the status field is examined as well, along with the - enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not - define their own even tags. + /** Select only dynamic targeting keys with this object ID. */ - public java.lang.Boolean getDefinitionsOnly() { - return definitionsOnly; + public java.lang.Long getObjectId() { + return objectId; } - /** - * Examine only the specified campaign or advertiser's event tags for matching selector - * criteria. When set to false, the parent advertiser and parent campaign of the specified ad - * or campaign is examined as well. In addition, when set to false, the status field is - * examined as well, along with the enabledByDefault field. This parameter can not be set to - * true when adId is specified as ads do not define their own even tags. - */ - public List setDefinitionsOnly(java.lang.Boolean definitionsOnly) { - this.definitionsOnly = definitionsOnly; + /** Select only dynamic targeting keys with this object ID. */ + public List setObjectId(java.lang.Long objectId) { + this.objectId = objectId; return this; } - /** - * Select only enabled event tags. What is considered enabled or disabled depends on the - * definitionsOnly parameter. When definitionsOnly is set to true, only the specified - * advertiser or campaign's event tags' enabledByDefault field is examined. When - * definitionsOnly is set to false, the specified ad or specified campaign's parent - * advertiser's or parent campaign's event tags' enabledByDefault and status fields are - * examined as well. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** Select only enabled event tags. What is considered enabled or disabled depends on the - definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or - campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, - the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' - enabledByDefault and status fields are examined as well. - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * Select only enabled event tags. What is considered enabled or disabled depends on the - * definitionsOnly parameter. When definitionsOnly is set to true, only the specified - * advertiser or campaign's event tags' enabledByDefault field is examined. When - * definitionsOnly is set to false, the specified ad or specified campaign's parent - * advertiser's or parent campaign's event tags' enabledByDefault and status fields are - * examined as well. - */ - public List setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Select only event tags with the specified event tag types. Event tag types can be used to - * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party - * click-through URL for either impression or click tracking. - */ - @com.google.api.client.util.Key - private java.util.List eventTagTypes; - - /** Select only event tags with the specified event tag types. Event tag types can be used to specify - whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through - URL for either impression or click tracking. - */ - public java.util.List getEventTagTypes() { - return eventTagTypes; - } - - /** - * Select only event tags with the specified event tag types. Event tag types can be used to - * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party - * click-through URL for either impression or click tracking. - */ - public List setEventTagTypes(java.util.List eventTagTypes) { - this.eventTagTypes = eventTagTypes; - return this; - } - - /** Select only event tags with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only event tags with these IDs. - */ - public java.util.List getIds() { - return ids; - } - - /** Select only event tags with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April - * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "eventtag" will - * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" - will return objects with names like "eventtag June 2015", "eventtag April 2015", or simply - "eventtag 2015". Most of the searches also add wildcards implicitly at the start and the end of the - search string. For example, a search string of "eventtag" will match objects with name "my - eventtag", "eventtag 2015", or simply "eventtag". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April - * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "eventtag" will - * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ + /** Select only dynamic targeting keys with this object type. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.String objectType; - /** Order of sorted results. [default: ASCENDING] + /** Select only dynamic targeting keys with this object type. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.String getObjectType() { + return objectType; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Select only dynamic targeting keys with this object type. */ + public List setObjectType(java.lang.String objectType) { + this.objectType = objectType; return this; } @@ -18250,107 +17933,131 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the EventTags collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.EventTags.List request = dfareporting.eventTags().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public EventTags eventTags() { + return new EventTags(); + } + + /** + * The "eventTags" collection of methods. + */ + public class EventTags { + /** - * Updates an existing event tag. This method supports patch semantics. + * Deletes an existing event tag. * - * Create a request for the method "eventTags.patch". + * Create a request for the method "eventTags.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing event tag. This method supports patch semantics. + * Deletes an existing event tag. * - * Create a request for the method "eventTags.patch". + * Create a request for the method "eventTags.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -18364,130 +18071,143 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** Event tag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. EventTag ID. + /** Event tag ID. */ public java.lang.Long getId() { return id; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { + /** Event tag ID. */ + public Delete setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an existing event tag. + * Gets one event tag by ID. * - * Create a request for the method "eventTags.update". + * Create a request for the method "eventTags.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing event tag. + * Gets one event tag by ID. * - * Create a request for the method "eventTags.update". + * Create a request for the method "eventTags.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -18501,208 +18221,162 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Event tag ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the Files collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Files files() { - return new Files(); - } + /** Event tag ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "files" collection of methods. - */ - public class Files { + /** Event tag ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Inserts a new event tag. * - * Create a request for the method "files.get". + * Create a request for the method "eventTags.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param reportId The ID of the report. - * @param fileId The ID of the report file. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Get get(java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { - Get result = new Get(reportId, fileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "reports/{reportId}/files/{fileId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Inserts a new event tag. * - * Create a request for the method "files.get". + * Create a request for the method "eventTags.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param reportId The ID of the report. - * @param fileId The ID of the report file. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Get(java.lang.Long reportId, java.lang.Long fileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); - initializeMediaDownload(); - } - - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; - - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } - - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } - - /** The ID of the report file. */ - @com.google.api.client.util.Key - private java.lang.Long fileId; - - /** The ID of the report file. - */ - public java.lang.Long getFileId() { - return fileId; - } - - /** The ID of the report file. */ - public Get setFileId(java.lang.Long fileId) { - this.fileId = fileId; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Lists files for a user profile. + * Retrieves a list of event tags, possibly filtered. * - * Create a request for the method "files.list". + * Create a request for the method "eventTags.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. * @return the request */ public List list(java.lang.Long profileId) throws java.io.IOException { @@ -18711,25 +18385,28 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/files"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Lists files for a user profile. + * Retrieves a list of event tags, possibly filtered. * - * Create a request for the method "files.list". + * Create a request for the method "eventTags.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. * @since 1.13 */ protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTagsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -18798,81 +18475,221 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Maximum number of results to return. */ + /** Select only event tags that belong to this ad. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long adId; - /** Maximum number of results to return. [default: 10] + /** Select only event tags that belong to this ad. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getAdId() { + return adId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** Select only event tags that belong to this ad. */ + public List setAdId(java.lang.Long adId) { + this.adId = adId; return this; } - /** The value of the nextToken from the previous result page. */ + /** Select only event tags that belong to this advertiser. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Long advertiserId; - /** The value of the nextToken from the previous result page. + /** Select only event tags that belong to this advertiser. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Select only event tags that belong to this advertiser. */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - /** The scope that defines which results are returned. */ + /** Select only event tags that belong to this campaign. */ @com.google.api.client.util.Key - private java.lang.String scope; + private java.lang.Long campaignId; - /** The scope that defines which results are returned. [default: MINE] + /** Select only event tags that belong to this campaign. */ - public java.lang.String getScope() { - return scope; + public java.lang.Long getCampaignId() { + return campaignId; } - /** The scope that defines which results are returned. */ - public List setScope(java.lang.String scope) { - this.scope = scope; + /** Select only event tags that belong to this campaign. */ + public List setCampaignId(java.lang.Long campaignId) { + this.campaignId = campaignId; return this; } - /** The field by which to sort the list. */ + /** + * Examine only the specified campaign or advertiser's event tags for matching selector + * criteria. When set to false, the parent advertiser and parent campaign of the specified ad + * or campaign is examined as well. In addition, when set to false, the status field is + * examined as well, along with the enabledByDefault field. This parameter can not be set to + * true when adId is specified as ads do not define their own even tags. + */ + @com.google.api.client.util.Key + private java.lang.Boolean definitionsOnly; + + /** Examine only the specified campaign or advertiser's event tags for matching selector criteria. When + set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined + as well. In addition, when set to false, the status field is examined as well, along with the + enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not + define their own even tags. + */ + public java.lang.Boolean getDefinitionsOnly() { + return definitionsOnly; + } + + /** + * Examine only the specified campaign or advertiser's event tags for matching selector + * criteria. When set to false, the parent advertiser and parent campaign of the specified ad + * or campaign is examined as well. In addition, when set to false, the status field is + * examined as well, along with the enabledByDefault field. This parameter can not be set to + * true when adId is specified as ads do not define their own even tags. + */ + public List setDefinitionsOnly(java.lang.Boolean definitionsOnly) { + this.definitionsOnly = definitionsOnly; + return this; + } + + /** + * Select only enabled event tags. What is considered enabled or disabled depends on the + * definitionsOnly parameter. When definitionsOnly is set to true, only the specified + * advertiser or campaign's event tags' enabledByDefault field is examined. When + * definitionsOnly is set to false, the specified ad or specified campaign's parent + * advertiser's or parent campaign's event tags' enabledByDefault and status fields are + * examined as well. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** Select only enabled event tags. What is considered enabled or disabled depends on the + definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or + campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, + the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' + enabledByDefault and status fields are examined as well. + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Select only enabled event tags. What is considered enabled or disabled depends on the + * definitionsOnly parameter. When definitionsOnly is set to true, only the specified + * advertiser or campaign's event tags' enabledByDefault field is examined. When + * definitionsOnly is set to false, the specified ad or specified campaign's parent + * advertiser's or parent campaign's event tags' enabledByDefault and status fields are + * examined as well. + */ + public List setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Select only event tags with the specified event tag types. Event tag types can be used to + * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party + * click-through URL for either impression or click tracking. + */ + @com.google.api.client.util.Key + private java.util.List eventTagTypes; + + /** Select only event tags with the specified event tag types. Event tag types can be used to specify + whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through + URL for either impression or click tracking. + */ + public java.util.List getEventTagTypes() { + return eventTagTypes; + } + + /** + * Select only event tags with the specified event tag types. Event tag types can be used to + * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party + * click-through URL for either impression or click tracking. + */ + public List setEventTagTypes(java.util.List eventTagTypes) { + this.eventTagTypes = eventTagTypes; + return this; + } + + /** Select only event tags with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only event tags with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only event tags with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April + * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" + will return objects with names like "eventtag June 2015", "eventtag April 2015", or simply + "eventtag 2015". Most of the searches also add wildcards implicitly at the start and the end of the + search string. For example, a search string of "eventtag" will match objects with name "my + eventtag", "eventtag 2015", or simply "eventtag". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April + * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** Field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + /** Field by which to sort the list. [default: ID] */ public java.lang.String getSortField() { return sortField; } - /** The field by which to sort the list. */ + /** Field by which to sort the list. */ public List setSortField(java.lang.String sortField) { this.sortField = sortField; return this; @@ -18882,7 +18699,7 @@ public List setSortField(java.lang.String sortField) { @com.google.api.client.util.Key private java.lang.String sortOrder; - /** Order of sorted results. [default: DESCENDING] + /** Order of sorted results. [default: ASCENDING] */ public java.lang.String getSortOrder() { return sortOrder; @@ -18899,131 +18716,107 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the FloodlightActivities collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightActivities.List request = dfareporting.floodlightActivities().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FloodlightActivities floodlightActivities() { - return new FloodlightActivities(); - } - - /** - * The "floodlightActivities" collection of methods. - */ - public class FloodlightActivities { - /** - * Deletes an existing floodlight activity. + * Updates an existing event tag. This method supports patch semantics. * - * Create a request for the method "floodlightActivities.delete". + * Create a request for the method "eventTags.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Delete extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Deletes an existing floodlight activity. + * Updates an existing event tag. This method supports patch semantics. * - * Create a request for the method "floodlightActivities.delete". + * Create a request for the method "eventTags.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19037,128 +18830,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Floodlight activity ID. */ + /** Required. EventTag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight activity ID. + /** Required. EventTag ID. */ public java.lang.Long getId() { return id; } - /** Floodlight activity ID. */ - public Delete setId(java.lang.Long id) { + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { this.id = id; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Generates a tag for a floodlight activity. + * Updates an existing event tag. * - * Create a request for the method "floodlightActivities.generatetag". + * Create a request for the method "eventTags.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Generatetag#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Generatetag generatetag(java.lang.Long profileId) throws java.io.IOException { - Generatetag result = new Generatetag(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Generatetag extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/generatetag"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Generates a tag for a floodlight activity. + * Updates an existing event tag. * - * Create a request for the method "floodlightActivities.generatetag". + * Create a request for the method "eventTags.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Generatetag#execute()} method to invoke the remote - * operation.

{@link - * Generatetag#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Generatetag(java.lang.Long profileId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesGenerateTagResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Generatetag set$Xgafv(java.lang.String $Xgafv) { - return (Generatetag) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Generatetag setAccessToken(java.lang.String accessToken) { - return (Generatetag) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Generatetag setAlt(java.lang.String alt) { - return (Generatetag) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Generatetag setCallback(java.lang.String callback) { - return (Generatetag) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Generatetag setFields(java.lang.String fields) { - return (Generatetag) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Generatetag setKey(java.lang.String key) { - return (Generatetag) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Generatetag setOauthToken(java.lang.String oauthToken) { - return (Generatetag) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Generatetag setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generatetag) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Generatetag setQuotaUser(java.lang.String quotaUser) { - return (Generatetag) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Generatetag setUploadType(java.lang.String uploadType) { - return (Generatetag) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Generatetag setUploadProtocol(java.lang.String uploadProtocol) { - return (Generatetag) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19172,78 +18967,95 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Generatetag setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Floodlight activity ID for which we want to generate a tag. */ - @com.google.api.client.util.Key - private java.lang.Long floodlightActivityId; - - /** Floodlight activity ID for which we want to generate a tag. - */ - public java.lang.Long getFloodlightActivityId() { - return floodlightActivityId; - } - - /** Floodlight activity ID for which we want to generate a tag. */ - public Generatetag setFloodlightActivityId(java.lang.Long floodlightActivityId) { - this.floodlightActivityId = floodlightActivityId; - return this; - } - @Override - public Generatetag set(String parameterName, Object value) { - return (Generatetag) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Files collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Files files() { + return new Files(); + } + + /** + * The "files" collection of methods. + */ + public class Files { + /** - * Gets one floodlight activity by ID. + * Retrieves a report file by its report ID and file ID. This method supports media download. * - * Create a request for the method "floodlightActivities.get". + * Create a request for the method "files.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { + Get result = new Get(reportId, fileId); initialize(result); return result; } - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; + public class Get extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "reports/{reportId}/files/{fileId}"; /** - * Gets one floodlight activity by ID. + * Retrieves a report file by its report ID and file ID. This method supports media download. * - * Create a request for the method "floodlightActivities.get". + * Create a request for the method "files.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivity.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + protected Get(java.lang.Long reportId, java.lang.Long fileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override @@ -19311,35 +19123,35 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** The ID of the report. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long reportId; - /** User profile ID associated with this request. + /** The ID of the report. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getReportId() { + return reportId; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; return this; } - /** Floodlight activity ID. */ + /** The ID of the report file. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long fileId; - /** Floodlight activity ID. + /** The ID of the report file. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getFileId() { + return fileId; } - /** Floodlight activity ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** The ID of the report file. */ + public Get setFileId(java.lang.Long fileId) { + this.fileId = fileId; return this; } @@ -19349,135 +19161,14 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new floodlight activity. - * - * Create a request for the method "floodlightActivities.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} - * @return the request - */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Insert result = new Insert(profileId, content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - /** - * Inserts a new floodlight activity. - * - * Create a request for the method "floodlightActivities.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} - * @since 1.13 - */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. + * Lists files for a user profile. * - * Create a request for the method "floodlightActivities.list". + * Create a request for the method "files.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param profileId The Campaign Manager 360 user profile ID. * @return the request */ public List list(java.lang.Long profileId) throws java.io.IOException { @@ -19486,28 +19177,25 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + public class List extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "userprofiles/{profileId}/files"; /** - * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. + * Lists files for a user profile. * - * Create a request for the method "floodlightActivities.list". + * Create a request for the method "files.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param profileId The Campaign Manager 360 user profile ID. * @since 1.13 */ protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesListResponse.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -19576,237 +19264,81 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** The Campaign Manager 360 user profile ID. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** User profile ID associated with this request. + /** The Campaign Manager 360 user profile ID. */ public java.lang.Long getProfileId() { return profileId; } - /** User profile ID associated with this request. */ + /** The Campaign Manager 360 user profile ID. */ public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * Select only floodlight activities for the specified advertiser ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.lang.Long advertiserId; + private java.lang.Integer maxResults; - /** Select only floodlight activities for the specified advertiser ID. Must specify either ids, - advertiserId, or floodlightConfigurationId for a non-empty result. + /** Maximum number of results to return. [default: 10] */ - public java.lang.Long getAdvertiserId() { - return advertiserId; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** - * Select only floodlight activities for the specified advertiser ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Select only floodlight activities with the specified floodlight activity group IDs. */ + /** The value of the nextToken from the previous result page. */ @com.google.api.client.util.Key - private java.util.List floodlightActivityGroupIds; + private java.lang.String pageToken; - /** Select only floodlight activities with the specified floodlight activity group IDs. + /** The value of the nextToken from the previous result page. */ - public java.util.List getFloodlightActivityGroupIds() { - return floodlightActivityGroupIds; + public java.lang.String getPageToken() { + return pageToken; } - /** Select only floodlight activities with the specified floodlight activity group IDs. */ - public List setFloodlightActivityGroupIds(java.util.List floodlightActivityGroupIds) { - this.floodlightActivityGroupIds = floodlightActivityGroupIds; + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Select only floodlight activities with the specified floodlight activity group name. */ + /** The scope that defines which results are returned. */ @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupName; - - /** Select only floodlight activities with the specified floodlight activity group name. - */ - public java.lang.String getFloodlightActivityGroupName() { - return floodlightActivityGroupName; - } - - /** Select only floodlight activities with the specified floodlight activity group name. */ - public List setFloodlightActivityGroupName(java.lang.String floodlightActivityGroupName) { - this.floodlightActivityGroupName = floodlightActivityGroupName; - return this; - } - - /** - * Select only floodlight activities with the specified floodlight activity group tag string. - */ - @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupTagString; - - /** Select only floodlight activities with the specified floodlight activity group tag string. - */ - public java.lang.String getFloodlightActivityGroupTagString() { - return floodlightActivityGroupTagString; - } - - /** - * Select only floodlight activities with the specified floodlight activity group tag string. - */ - public List setFloodlightActivityGroupTagString(java.lang.String floodlightActivityGroupTagString) { - this.floodlightActivityGroupTagString = floodlightActivityGroupTagString; - return this; - } - - /** Select only floodlight activities with the specified floodlight activity group type. */ - @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupType; - - /** Select only floodlight activities with the specified floodlight activity group type. - */ - public java.lang.String getFloodlightActivityGroupType() { - return floodlightActivityGroupType; - } - - /** Select only floodlight activities with the specified floodlight activity group type. */ - public List setFloodlightActivityGroupType(java.lang.String floodlightActivityGroupType) { - this.floodlightActivityGroupType = floodlightActivityGroupType; - return this; - } - - /** - * Select only floodlight activities for the specified floodlight configuration ID. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - @com.google.api.client.util.Key - private java.lang.Long floodlightConfigurationId; - - /** Select only floodlight activities for the specified floodlight configuration ID. Must specify - either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public java.lang.Long getFloodlightConfigurationId() { - return floodlightConfigurationId; - } - - /** - * Select only floodlight activities for the specified floodlight configuration ID. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { - this.floodlightConfigurationId = floodlightConfigurationId; - return this; - } - - /** - * Select only floodlight activities with the specified IDs. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or - floodlightConfigurationId for a non-empty result. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Select only floodlight activities with the specified IDs. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivity*2015" will return objects with names like "floodlightactivity June - * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name "my - * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; + private java.lang.String scope; - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "floodlightactivity*2015" will return objects with names like "floodlightactivity June 2015", - "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the searches also add - wildcards implicitly at the start and the end of the search string. For example, a search string of - "floodlightactivity" will match objects with name "my floodlightactivity activity", - "floodlightactivity 2015", or simply "floodlightactivity". + /** The scope that defines which results are returned. [default: MINE] */ - public java.lang.String getSearchString() { - return searchString; + public java.lang.String getScope() { + return scope; } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivity*2015" will return objects with names like "floodlightactivity June - * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name "my - * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; + /** The scope that defines which results are returned. */ + public List setScope(java.lang.String scope) { + this.scope = scope; return this; } - /** Field by which to sort the list. */ + /** The field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; - /** Field by which to sort the list. [default: ID] + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] */ public java.lang.String getSortField() { return sortField; } - /** Field by which to sort the list. */ + /** The field by which to sort the list. */ public List setSortField(java.lang.String sortField) { this.sortField = sortField; return this; @@ -19816,7 +19348,7 @@ public List setSortField(java.lang.String sortField) { @com.google.api.client.util.Key private java.lang.String sortOrder; - /** Order of sorted results. [default: ASCENDING] + /** Order of sorted results. [default: DESCENDING] */ public java.lang.String getSortOrder() { return sortOrder; @@ -19828,128 +19360,136 @@ public List setSortOrder(java.lang.String sortOrder) { return this; } - /** Select only floodlight activities with the specified tag string. */ - @com.google.api.client.util.Key - private java.lang.String tagString; - - /** Select only floodlight activities with the specified tag string. - */ - public java.lang.String getTagString() { - return tagString; - } - - /** Select only floodlight activities with the specified tag string. */ - public List setTagString(java.lang.String tagString) { - this.tagString = tagString; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the FloodlightActivities collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.FloodlightActivities.List request = dfareporting.floodlightActivities().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FloodlightActivities floodlightActivities() { + return new FloodlightActivities(); + } + + /** + * The "floodlightActivities" collection of methods. + */ + public class FloodlightActivities { + /** - * Updates an existing floodlight activity. This method supports patch semantics. + * Deletes an existing floodlight activity. * - * Create a request for the method "floodlightActivities.patch". + * Create a request for the method "floodlightActivities.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} + * @param id Floodlight activity ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing floodlight activity. This method supports patch semantics. + * Deletes an existing floodlight activity. * - * Create a request for the method "floodlightActivities.patch". + * Create a request for the method "floodlightActivities.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} + * @param id Floodlight activity ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19963,130 +19503,128 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** Floodlight activity ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. EventTag ID. + /** Floodlight activity ID. */ public java.lang.Long getId() { return id; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { + /** Floodlight activity ID. */ + public Delete setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an existing floodlight activity. + * Generates a tag for a floodlight activity. * - * Create a request for the method "floodlightActivities.update". + * Create a request for the method "floodlightActivities.generatetag". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Generatetag#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Generatetag generatetag(java.lang.Long profileId) throws java.io.IOException { + Generatetag result = new Generatetag(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Generatetag extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/generatetag"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity. + * Generates a tag for a floodlight activity. * - * Create a request for the method "floodlightActivities.update". + * Create a request for the method "floodlightActivities.generatetag". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Generatetag#execute()} method to invoke the remote + * operation.

{@link + * Generatetag#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); + protected Generatetag(java.lang.Long profileId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesGenerateTagResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Generatetag set$Xgafv(java.lang.String $Xgafv) { + return (Generatetag) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Generatetag setAccessToken(java.lang.String accessToken) { + return (Generatetag) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Generatetag setAlt(java.lang.String alt) { + return (Generatetag) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Generatetag setCallback(java.lang.String callback) { + return (Generatetag) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Generatetag setFields(java.lang.String fields) { + return (Generatetag) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Generatetag setKey(java.lang.String key) { + return (Generatetag) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Generatetag setOauthToken(java.lang.String oauthToken) { + return (Generatetag) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Generatetag setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generatetag) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Generatetag setQuotaUser(java.lang.String quotaUser) { + return (Generatetag) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Generatetag setUploadType(java.lang.String uploadType) { + return (Generatetag) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Generatetag setUploadProtocol(java.lang.String uploadProtocol) { + return (Generatetag) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -20100,49 +19638,42 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Generatetag setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Floodlight activity ID for which we want to generate a tag. */ + @com.google.api.client.util.Key + private java.lang.Long floodlightActivityId; - /** - * An accessor for creating requests from the FloodlightActivityGroups collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightActivityGroups.List request = dfareporting.floodlightActivityGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FloodlightActivityGroups floodlightActivityGroups() { - return new FloodlightActivityGroups(); - } + /** Floodlight activity ID for which we want to generate a tag. + */ + public java.lang.Long getFloodlightActivityId() { + return floodlightActivityId; + } - /** - * The "floodlightActivityGroups" collection of methods. - */ - public class FloodlightActivityGroups { + /** Floodlight activity ID for which we want to generate a tag. */ + public Generatetag setFloodlightActivityId(java.lang.Long floodlightActivityId) { + this.floodlightActivityId = floodlightActivityId; + return this; + } + @Override + public Generatetag set(String parameterName, Object value) { + return (Generatetag) super.set(parameterName, value); + } + } /** - * Gets one floodlight activity group by ID. + * Gets one floodlight activity by ID. * - * Create a request for the method "floodlightActivityGroups.get". + * Create a request for the method "floodlightActivities.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity Group ID. + * @param id Floodlight activity ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -20151,9 +19682,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -20162,9 +19693,9 @@ public class Get extends DfareportingRequest @@ -20172,11 +19703,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity Group ID. + * @param id Floodlight activity ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -20262,17 +19793,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Floodlight activity Group ID. */ + /** Floodlight activity ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight activity Group ID. + /** Floodlight activity ID. */ public java.lang.Long getId() { return id; } - /** Floodlight activity Group ID. */ + /** Floodlight activity ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -20284,34 +19815,34 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new floodlight activity group. + * Inserts a new floodlight activity. * - * Create a request for the method "floodlightActivityGroups.insert". + * Create a request for the method "floodlightActivities.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new floodlight activity group. + * Inserts a new floodlight activity. * - * Create a request for the method "floodlightActivityGroups.insert". + * Create a request for the method "floodlightActivities.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -20320,11 +19851,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -20405,9 +19936,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. + * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightActivityGroups.list". + * Create a request for the method "floodlightActivities.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -20421,17 +19952,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. + * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightActivityGroups.list". + * Create a request for the method "floodlightActivities.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -20442,7 +19973,7 @@ public class List extends DfareportingRequest floodlightActivityGroupIds; - /** Select only floodlight activity groups with the specified floodlight configuration ID. Must specify - either advertiserId, or floodlightConfigurationId for a non-empty result. + /** Select only floodlight activities with the specified floodlight activity group IDs. */ - public java.lang.Long getFloodlightConfigurationId() { - return floodlightConfigurationId; + public java.util.List getFloodlightActivityGroupIds() { + return floodlightActivityGroupIds; } - /** - * Select only floodlight activity groups with the specified floodlight configuration ID. Must - * specify either advertiserId, or floodlightConfigurationId for a non-empty result. + /** Select only floodlight activities with the specified floodlight activity group IDs. */ + public List setFloodlightActivityGroupIds(java.util.List floodlightActivityGroupIds) { + this.floodlightActivityGroupIds = floodlightActivityGroupIds; + return this; + } + + /** Select only floodlight activities with the specified floodlight activity group name. */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupName; + + /** Select only floodlight activities with the specified floodlight activity group name. + */ + public java.lang.String getFloodlightActivityGroupName() { + return floodlightActivityGroupName; + } + + /** Select only floodlight activities with the specified floodlight activity group name. */ + public List setFloodlightActivityGroupName(java.lang.String floodlightActivityGroupName) { + this.floodlightActivityGroupName = floodlightActivityGroupName; + return this; + } + + /** + * Select only floodlight activities with the specified floodlight activity group tag string. + */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupTagString; + + /** Select only floodlight activities with the specified floodlight activity group tag string. + */ + public java.lang.String getFloodlightActivityGroupTagString() { + return floodlightActivityGroupTagString; + } + + /** + * Select only floodlight activities with the specified floodlight activity group tag string. + */ + public List setFloodlightActivityGroupTagString(java.lang.String floodlightActivityGroupTagString) { + this.floodlightActivityGroupTagString = floodlightActivityGroupTagString; + return this; + } + + /** Select only floodlight activities with the specified floodlight activity group type. */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupType; + + /** Select only floodlight activities with the specified floodlight activity group type. + */ + public java.lang.String getFloodlightActivityGroupType() { + return floodlightActivityGroupType; + } + + /** Select only floodlight activities with the specified floodlight activity group type. */ + public List setFloodlightActivityGroupType(java.lang.String floodlightActivityGroupType) { + this.floodlightActivityGroupType = floodlightActivityGroupType; + return this; + } + + /** + * Select only floodlight activities for the specified floodlight configuration ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. + */ + @com.google.api.client.util.Key + private java.lang.Long floodlightConfigurationId; + + /** Select only floodlight activities for the specified floodlight configuration ID. Must specify + either ids, advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public java.lang.Long getFloodlightConfigurationId() { + return floodlightConfigurationId; + } + + /** + * Select only floodlight activities for the specified floodlight configuration ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. */ public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { this.floodlightConfigurationId = floodlightConfigurationId; @@ -20574,13 +20173,13 @@ public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationI } /** - * Select only floodlight activity groups with the specified IDs. Must specify either - * advertiserId or floodlightConfigurationId for a non-empty result. + * Select only floodlight activities with the specified IDs. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. */ @com.google.api.client.util.Key private java.util.List ids; - /** Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or + /** Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. */ public java.util.List getIds() { @@ -20588,8 +20187,8 @@ public java.util.List getIds() { } /** - * Select only floodlight activity groups with the specified IDs. Must specify either - * advertiserId or floodlightConfigurationId for a non-empty result. + * Select only floodlight activities with the specified IDs. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. */ public List setIds(java.util.List ids) { this.ids = ids; @@ -20630,23 +20229,21 @@ public List setPageToken(java.lang.String pageToken) { /** * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup - * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". - * Most of the searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "floodlightactivitygroup" will match objects with - * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". + * "floodlightactivity*2015" will return objects with names like "floodlightactivity June + * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". */ @com.google.api.client.util.Key private java.lang.String searchString; /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup June - 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". Most of the - searches also add wildcards implicitly at the start and the end of the search string. For example, - a search string of "floodlightactivitygroup" will match objects with name "my - floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - "floodlightactivitygroup". + "floodlightactivity*2015" will return objects with names like "floodlightactivity June 2015", + "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the searches also add + wildcards implicitly at the start and the end of the search string. For example, a search string of + "floodlightactivity" will match objects with name "my floodlightactivity activity", + "floodlightactivity 2015", or simply "floodlightactivity". */ public java.lang.String getSearchString() { return searchString; @@ -20654,12 +20251,11 @@ public java.lang.String getSearchString() { /** * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup - * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". - * Most of the searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "floodlightactivitygroup" will match objects with - * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". + * "floodlightactivity*2015" will return objects with names like "floodlightactivity June + * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". */ public List setSearchString(java.lang.String searchString) { this.searchString = searchString; @@ -20698,23 +20294,19 @@ public List setSortOrder(java.lang.String sortOrder) { return this; } - /** - * Select only floodlight activity groups with the specified floodlight activity group type. - */ + /** Select only floodlight activities with the specified tag string. */ @com.google.api.client.util.Key - private java.lang.String type; + private java.lang.String tagString; - /** Select only floodlight activity groups with the specified floodlight activity group type. + /** Select only floodlight activities with the specified tag string. */ - public java.lang.String getType() { - return type; + public java.lang.String getTagString() { + return tagString; } - /** - * Select only floodlight activity groups with the specified floodlight activity group type. - */ - public List setType(java.lang.String type) { - this.type = type; + /** Select only floodlight activities with the specified tag string. */ + public List setTagString(java.lang.String tagString) { + this.tagString = tagString; return this; } @@ -20724,35 +20316,35 @@ public List set(String parameterName, Object value) { } } /** - * Updates an existing floodlight activity group. This method supports patch semantics. + * Updates an existing floodlight activity. This method supports patch semantics. * - * Create a request for the method "floodlightActivityGroups.patch". + * Create a request for the method "floodlightActivities.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity group. This method supports patch semantics. + * Updates an existing floodlight activity. This method supports patch semantics. * - * Create a request for the method "floodlightActivityGroups.patch". + * Create a request for the method "floodlightActivities.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -20762,11 +20354,11 @@ public class Patch extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity group. + * Updates an existing floodlight activity. * - * Create a request for the method "floodlightActivityGroups.update". + * Create a request for the method "floodlightActivities.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -20900,11 +20492,11 @@ public class Update extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -20988,35 +20580,35 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the FloodlightConfigurations collection. + * An accessor for creating requests from the FloodlightActivityGroups collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightConfigurations.List request = dfareporting.floodlightConfigurations().list(parameters ...)}
+   *   {@code Dfareporting.FloodlightActivityGroups.List request = dfareporting.floodlightActivityGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public FloodlightConfigurations floodlightConfigurations() { - return new FloodlightConfigurations(); + public FloodlightActivityGroups floodlightActivityGroups() { + return new FloodlightActivityGroups(); } /** - * The "floodlightConfigurations" collection of methods. + * The "floodlightActivityGroups" collection of methods. */ - public class FloodlightConfigurations { + public class FloodlightActivityGroups { /** - * Gets one floodlight configuration by ID. + * Gets one floodlight activity group by ID. * - * Create a request for the method "floodlightConfigurations.get". + * Create a request for the method "floodlightActivityGroups.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight configuration ID. + * @param id Floodlight activity Group ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -21025,9 +20617,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -21036,9 +20628,9 @@ public class Get extends DfareportingRequest @@ -21046,11 +20638,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Floodlight configuration ID. + * @param id Floodlight activity Group ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -21136,17 +20728,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Floodlight configuration ID. */ + /** Floodlight activity Group ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight configuration ID. + /** Floodlight activity Group ID. */ public java.lang.Long getId() { return id; } - /** Floodlight configuration ID. */ + /** Floodlight activity Group ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -21158,110 +20750,103 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of floodlight configurations, possibly filtered. + * Inserts a new floodlight activity group. * - * Create a request for the method "floodlightConfigurations.list". + * Create a request for the method "floodlightActivityGroups.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of floodlight configurations, possibly filtered. + * Inserts a new floodlight activity group. * - * Create a request for the method "floodlightConfigurations.list". + * Create a request for the method "floodlightActivityGroups.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfigurationsListResponse.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21275,140 +20860,121 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty - * list will be returned. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will - be returned. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty - * list will be returned. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates an existing floodlight configuration. This method supports patch semantics. + * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightConfigurations.patch". + * Create a request for the method "floodlightActivityGroups.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight configuration. This method supports patch semantics. + * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightConfigurations.patch". + * Create a request for the method "floodlightActivityGroups.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroupsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21422,290 +20988,308 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** + * Select only floodlight activity groups with the specified advertiser ID. Must specify + * either advertiserId or floodlightConfigurationId for a non-empty result. + */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long advertiserId; - /** Required. EventTag ID. + /** Select only floodlight activity groups with the specified advertiser ID. Must specify either + advertiserId or floodlightConfigurationId for a non-empty result. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; + /** + * Select only floodlight activity groups with the specified advertiser ID. Must specify + * either advertiserId or floodlightConfigurationId for a non-empty result. + */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Updates an existing floodlight configuration. - * - * Create a request for the method "floodlightConfigurations.update". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} - * @return the request - */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { - Update result = new Update(profileId, content); - initialize(result); - return result; - } - - public class Update extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Updates an existing floodlight configuration. - * - * Create a request for the method "floodlightConfigurations.update". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} - * @since 1.13 + * Select only floodlight activity groups with the specified floodlight configuration ID. Must + * specify either advertiserId, or floodlightConfigurationId for a non-empty result. */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + @com.google.api.client.util.Key + private java.lang.Long floodlightConfigurationId; + + /** Select only floodlight activity groups with the specified floodlight configuration ID. Must specify + either advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public java.lang.Long getFloodlightConfigurationId() { + return floodlightConfigurationId; } - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + /** + * Select only floodlight activity groups with the specified floodlight configuration ID. Must + * specify either advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { + this.floodlightConfigurationId = floodlightConfigurationId; + return this; } - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } + /** + * Select only floodlight activity groups with the specified IDs. Must specify either + * advertiserId or floodlightConfigurationId for a non-empty result. + */ + @com.google.api.client.util.Key + private java.util.List ids; - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + /** Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or + floodlightConfigurationId for a non-empty result. + */ + public java.util.List getIds() { + return ids; } - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + /** + * Select only floodlight activity groups with the specified IDs. Must specify either + * advertiserId or floodlightConfigurationId for a non-empty result. + */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup + * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". + * Most of the searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "floodlightactivitygroup" will match objects with + * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup June + 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". Most of the + searches also add wildcards implicitly at the start and the end of the search string. For example, + a search string of "floodlightactivitygroup" will match objects with name "my + floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + "floodlightactivitygroup". + */ + public java.lang.String getSearchString() { + return searchString; } - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup + * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". + * Most of the searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "floodlightactivitygroup" will match objects with + * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; } - /** User profile ID associated with this request. */ + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String sortField; - /** User profile ID associated with this request. + /** Field by which to sort the list. [default: ID] */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getSortField() { + return sortField; } - /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; } - } - } + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } - /** - * An accessor for creating requests from the InventoryItems collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.InventoryItems.List request = dfareporting.inventoryItems().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InventoryItems inventoryItems() { - return new InventoryItems(); - } + /** + * Select only floodlight activity groups with the specified floodlight activity group type. + */ + @com.google.api.client.util.Key + private java.lang.String type; - /** - * The "inventoryItems" collection of methods. - */ - public class InventoryItems { + /** Select only floodlight activity groups with the specified floodlight activity group type. + */ + public java.lang.String getType() { + return type; + } + + /** + * Select only floodlight activity groups with the specified floodlight activity group type. + */ + public List setType(java.lang.String type) { + this.type = type; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Gets one inventory item by ID. + * Updates an existing floodlight activity group. This method supports patch semantics. * - * Create a request for the method "inventoryItems.get". + * Create a request for the method "floodlightActivityGroups.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for order documents. - * @param id Inventory item ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, projectId, id); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/inventoryItems/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one inventory item by ID. + * Updates an existing floodlight activity group. This method supports patch semantics. * - * Create a request for the method "inventoryItems.get". + * Create a request for the method "floodlightActivityGroups.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param projectId Project ID for order documents. - * @param id Inventory item ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.InventoryItem.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21719,156 +21303,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Project ID for order documents. */ - @com.google.api.client.util.Key - private java.lang.Long projectId; - - /** Project ID for order documents. - */ - public java.lang.Long getProjectId() { - return projectId; - } - - /** Project ID for order documents. */ - public Get setProjectId(java.lang.Long projectId) { - this.projectId = projectId; - return this; - } - - /** Inventory item ID. */ + /** Required. EventTag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Inventory item ID. + /** Required. EventTag ID. */ public java.lang.Long getId() { return id; } - /** Inventory item ID. */ - public Get setId(java.lang.Long id) { + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { this.id = id; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves a list of inventory items, possibly filtered. This method supports paging. + * Updates an existing floodlight activity group. * - * Create a request for the method "inventoryItems.list". + * Create a request for the method "floodlightActivityGroups.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for order documents. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public List list(java.lang.Long profileId, java.lang.Long projectId) throws java.io.IOException { - List result = new List(profileId, projectId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/inventoryItems"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of inventory items, possibly filtered. This method supports paging. + * Updates an existing floodlight activity group. * - * Create a request for the method "inventoryItems.list". + * Create a request for the method "floodlightActivityGroups.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param projectId Project ID for order documents. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected List(java.lang.Long profileId, java.lang.Long projectId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.InventoryItemsListResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21882,203 +21440,193 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Project ID for order documents. */ - @com.google.api.client.util.Key - private java.lang.Long projectId; - - /** Project ID for order documents. - */ - public java.lang.Long getProjectId() { - return projectId; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } + } - /** Project ID for order documents. */ - public List setProjectId(java.lang.Long projectId) { - this.projectId = projectId; - return this; - } + } - /** Select only inventory items with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + /** + * An accessor for creating requests from the FloodlightConfigurations collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.FloodlightConfigurations.List request = dfareporting.floodlightConfigurations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FloodlightConfigurations floodlightConfigurations() { + return new FloodlightConfigurations(); + } - /** Select only inventory items with these IDs. - */ - public java.util.List getIds() { - return ids; - } + /** + * The "floodlightConfigurations" collection of methods. + */ + public class FloodlightConfigurations { - /** Select only inventory items with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } + /** + * Gets one floodlight configuration by ID. + * + * Create a request for the method "floodlightConfigurations.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Floodlight configuration ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } - /** Select only inventory items that are in plan. */ - @com.google.api.client.util.Key - private java.lang.Boolean inPlan; + public class Get extends DfareportingRequest { - /** Select only inventory items that are in plan. - */ - public java.lang.Boolean getInPlan() { - return inPlan; - } + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations/{+id}"; - /** Select only inventory items that are in plan. */ - public List setInPlan(java.lang.Boolean inPlan) { - this.inPlan = inPlan; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Maximum number of results to return. [default: 1000] + /** + * Gets one floodlight configuration by ID. + * + * Create a request for the method "floodlightConfigurations.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Floodlight configuration ID. + * @since 1.13 */ - public java.lang.Integer getMaxResults() { - return maxResults; + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Select only inventory items that belong to specified orders. */ - @com.google.api.client.util.Key - private java.util.List orderId; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Select only inventory items that belong to specified orders. - */ - public java.util.List getOrderId() { - return orderId; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** Select only inventory items that belong to specified orders. */ - public List setOrderId(java.util.List orderId) { - this.orderId = orderId; - return this; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** Select only inventory items that are associated with these sites. */ - @com.google.api.client.util.Key - private java.util.List siteId; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Select only inventory items that are associated with these sites. - */ - public java.util.List getSiteId() { - return siteId; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** Select only inventory items that are associated with these sites. */ - public List setSiteId(java.util.List siteId) { - this.siteId = siteId; - return this; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Order of sorted results. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.Long profileId; - /** Order of sorted results. [default: ASCENDING] + /** User profile ID associated with this request. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.Long getProfileId() { + return profileId; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** Select only inventory items with this type. */ + /** Floodlight configuration ID. */ @com.google.api.client.util.Key - private java.lang.String type; + private java.lang.Long id; - /** Select only inventory items with this type. + /** Floodlight configuration ID. */ - public java.lang.String getType() { - return type; + public java.lang.Long getId() { + return id; } - /** Select only inventory items with this type. */ - public List setType(java.lang.String type) { - this.type = type; + /** Floodlight configuration ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Languages collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Languages.List request = dfareporting.languages().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Languages languages() { - return new Languages(); - } - - /** - * The "languages" collection of methods. - */ - public class Languages { - /** - * Retrieves a list of languages. + * Retrieves a list of floodlight configurations, possibly filtered. * - * Create a request for the method "languages.list". + * Create a request for the method "floodlightConfigurations.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -22092,17 +21640,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/languages"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of languages. + * Retrieves a list of floodlight configurations, possibly filtered. * - * Create a request for the method "languages.list". + * Create a request for the method "floodlightConfigurations.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -22113,7 +21661,7 @@ public class List extends DfareportingRequest ids; + + /** Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will + be returned. + */ + public java.util.List getIds() { + return ids; + } + + /** + * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty + * list will be returned. + */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Metros collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Metros.List request = dfareporting.metros().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Metros metros() { - return new Metros(); - } - - /** - * The "metros" collection of methods. - */ - public class Metros { - /** - * Retrieves a list of metros. + * Updates an existing floodlight configuration. This method supports patch semantics. * - * Create a request for the method "metros.list". + * Create a request for the method "floodlightConfigurations.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/metros"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of metros. + * Updates an existing floodlight configuration. This method supports patch semantics. * - * Create a request for the method "metros.list". + * Create a request for the method "floodlightConfigurations.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MetrosListResponse.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** Required. EventTag ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** Required. EventTag ID. + */ + public java.lang.Long getId() { + return id; + } + + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Updates an existing floodlight configuration. + * + * Create a request for the method "floodlightConfigurations.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} + * @return the request + */ + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { + Update result = new Update(profileId, content); + initialize(result); + return result; + } + + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Updates an existing floodlight configuration. + * + * Create a request for the method "floodlightConfigurations.update". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} + * @since 1.13 + */ + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -22344,60 +22025,61 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MobileApps collection. + * An accessor for creating requests from the InventoryItems collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.MobileApps.List request = dfareporting.mobileApps().list(parameters ...)}
+   *   {@code Dfareporting.InventoryItems.List request = dfareporting.inventoryItems().list(parameters ...)}
    * 
* * @return the resource collection */ - public MobileApps mobileApps() { - return new MobileApps(); + public InventoryItems inventoryItems() { + return new InventoryItems(); } /** - * The "mobileApps" collection of methods. + * The "inventoryItems" collection of methods. */ - public class MobileApps { + public class InventoryItems { /** - * Gets one mobile app by ID. + * Gets one inventory item by ID. * - * Create a request for the method "mobileApps.get". + * Create a request for the method "inventoryItems.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Mobile app ID. + * @param projectId Project ID for order documents. + * @param id Inventory item ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.String id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, projectId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/inventoryItems/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -22406,9 +22088,9 @@ public class Get extends DfareportingRequest @@ -22416,18 +22098,15 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Mobile app ID. + * @param projectId Project ID for order documents. + * @param id Inventory item ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.String id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileApp.class); + protected Get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.InventoryItem.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), - "Parameter id must conform to the pattern " + - "^[^/]+$"); - } } @Override @@ -22511,23 +22190,34 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Mobile app ID. */ + /** Project ID for order documents. */ @com.google.api.client.util.Key - private java.lang.String id; + private java.lang.Long projectId; - /** Mobile app ID. + /** Project ID for order documents. */ - public java.lang.String getId() { + public java.lang.Long getProjectId() { + return projectId; + } + + /** Project ID for order documents. */ + public Get setProjectId(java.lang.Long projectId) { + this.projectId = projectId; + return this; + } + + /** Inventory item ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** Inventory item ID. + */ + public java.lang.Long getId() { return id; } - /** Mobile app ID. */ - public Get setId(java.lang.String id) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), - "Parameter id must conform to the pattern " + - "^[^/]+$"); - } + /** Inventory item ID. */ + public Get setId(java.lang.Long id) { this.id = id; return this; } @@ -22538,33 +22228,34 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves list of available mobile apps. + * Retrieves a list of inventory items, possibly filtered. This method supports paging. * - * Create a request for the method "mobileApps.list". + * Create a request for the method "inventoryItems.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param projectId Project ID for order documents. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public List list(java.lang.Long profileId, java.lang.Long projectId) throws java.io.IOException { + List result = new List(profileId, projectId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps"; + private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/inventoryItems"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves list of available mobile apps. + * Retrieves a list of inventory items, possibly filtered. This method supports paging. * - * Create a request for the method "mobileApps.list". + * Create a request for the method "inventoryItems.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -22572,11 +22263,13 @@ public class List extends DfareportingRequest * * @param profileId User profile ID associated with this request. + * @param projectId Project ID for order documents. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileAppsListResponse.class); + protected List(java.lang.Long profileId, java.lang.Long projectId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.InventoryItemsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); } @Override @@ -22660,38 +22353,54 @@ public List setProfileId(java.lang.Long profileId) { return this; } - /** Select only apps from these directories. */ + /** Project ID for order documents. */ @com.google.api.client.util.Key - private java.util.List directories; + private java.lang.Long projectId; - /** Select only apps from these directories. + /** Project ID for order documents. */ - public java.util.List getDirectories() { - return directories; + public java.lang.Long getProjectId() { + return projectId; } - /** Select only apps from these directories. */ - public List setDirectories(java.util.List directories) { - this.directories = directories; + /** Project ID for order documents. */ + public List setProjectId(java.lang.Long projectId) { + this.projectId = projectId; return this; } - /** Select only apps with these IDs. */ + /** Select only inventory items with these IDs. */ @com.google.api.client.util.Key - private java.util.List ids; + private java.util.List ids; - /** Select only apps with these IDs. + /** Select only inventory items with these IDs. */ - public java.util.List getIds() { + public java.util.List getIds() { return ids; } - /** Select only apps with these IDs. */ - public List setIds(java.util.List ids) { + /** Select only inventory items with these IDs. */ + public List setIds(java.util.List ids) { this.ids = ids; return this; } + /** Select only inventory items that are in plan. */ + @com.google.api.client.util.Key + private java.lang.Boolean inPlan; + + /** Select only inventory items that are in plan. + */ + public java.lang.Boolean getInPlan() { + return inPlan; + } + + /** Select only inventory items that are in plan. */ + public List setInPlan(java.lang.Boolean inPlan) { + this.inPlan = inPlan; + return this; + } + /** Maximum number of results to return. */ @com.google.api.client.util.Key private java.lang.Integer maxResults; @@ -22708,6 +22417,22 @@ public List setMaxResults(java.lang.Integer maxResults) { return this; } + /** Select only inventory items that belong to specified orders. */ + @com.google.api.client.util.Key + private java.util.List orderId; + + /** Select only inventory items that belong to specified orders. + */ + public java.util.List getOrderId() { + return orderId; + } + + /** Select only inventory items that belong to specified orders. */ + public List setOrderId(java.util.List orderId) { + this.orderId = orderId; + return this; + } + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key private java.lang.String pageToken; @@ -22724,34 +22449,67 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply - * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of - * the search string. For example, a search string of "app" will match objects with name "my - * app", "app 2018", or simply "app". + /** Select only inventory items that are associated with these sites. */ + @com.google.api.client.util.Key + private java.util.List siteId; + + /** Select only inventory items that are associated with these sites. */ + public java.util.List getSiteId() { + return siteId; + } + + /** Select only inventory items that are associated with these sites. */ + public List setSiteId(java.util.List siteId) { + this.siteId = siteId; + return this; + } + + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.lang.String searchString; + private java.lang.String sortField; - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "app*2015" will - return objects with names like "app Jan 2018", "app Jan 2018", or simply "app 2018". Most of the - searches also add wildcards implicitly at the start and the end of the search string. For example, - a search string of "app" will match objects with name "my app", "app 2018", or simply "app". + /** Field by which to sort the list. [default: ID] */ - public java.lang.String getSearchString() { - return searchString; + public java.lang.String getSortField() { + return sortField; } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply - * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of - * the search string. For example, a search string of "app" will match objects with name "my - * app", "app 2018", or simply "app". + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Select only inventory items with this type. */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** Select only inventory items with this type. + */ + public java.lang.String getType() { + return type; + } + + /** Select only inventory items with this type. */ + public List setType(java.lang.String type) { + this.type = type; return this; } @@ -22764,71 +22522,65 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the MobileCarriers collection. + * An accessor for creating requests from the Languages collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.MobileCarriers.List request = dfareporting.mobileCarriers().list(parameters ...)}
+   *   {@code Dfareporting.Languages.List request = dfareporting.languages().list(parameters ...)}
    * 
* * @return the resource collection */ - public MobileCarriers mobileCarriers() { - return new MobileCarriers(); + public Languages languages() { + return new Languages(); } /** - * The "mobileCarriers" collection of methods. + * The "languages" collection of methods. */ - public class MobileCarriers { + public class Languages { /** - * Gets one mobile carrier by ID. + * Retrieves a list of languages. * - * Create a request for the method "mobileCarriers.get". + * Create a request for the method "languages.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Mobile carrier ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/languages"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one mobile carrier by ID. + * Retrieves a list of languages. * - * Create a request for the method "mobileCarriers.get". + * Create a request for the method "languages.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Mobile carrier ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarrier.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.LanguagesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -22842,58 +22594,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -22907,36 +22659,43 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Mobile carrier ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Mobile carrier ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Mobile carrier ID. */ - public Get setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } - /** - * Retrieves a list of mobile carriers. + + } + + /** + * An accessor for creating requests from the Metros collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Metros.List request = dfareporting.metros().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Metros metros() { + return new Metros(); + } + + /** + * The "metros" collection of methods. + */ + public class Metros { + + /** + * Retrieves a list of metros. * - * Create a request for the method "mobileCarriers.list". + * Create a request for the method "metros.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -22950,17 +22709,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers"; + private static final String REST_PATH = "userprofiles/{+profileId}/metros"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of mobile carriers. + * Retrieves a list of metros. * - * Create a request for the method "mobileCarriers.list". + * Create a request for the method "metros.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -22971,7 +22730,7 @@ public class List extends DfareportingRequestThe typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.OperatingSystemVersions.List request = dfareporting.operatingSystemVersions().list(parameters ...)}
+   *   {@code Dfareporting.MobileApps.List request = dfareporting.mobileApps().list(parameters ...)}
    * 
* * @return the resource collection */ - public OperatingSystemVersions operatingSystemVersions() { - return new OperatingSystemVersions(); + public MobileApps mobileApps() { + return new MobileApps(); } /** - * The "operatingSystemVersions" collection of methods. + * The "mobileApps" collection of methods. */ - public class OperatingSystemVersions { + public class MobileApps { /** - * Gets one operating system version by ID. + * Gets one mobile app by ID. * - * Create a request for the method "operatingSystemVersions.get". + * Create a request for the method "mobileApps.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Operating system version ID. + * @param id Mobile app ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + public Get get(java.lang.Long profileId, java.lang.String id) throws java.io.IOException { Get result = new Get(profileId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -23113,9 +22872,9 @@ public class Get extends DfareportingRequest @@ -23123,13 +22882,18 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Operating system version ID. + * @param id Mobile app ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersion.class); + protected Get(java.lang.Long profileId, java.lang.String id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileApp.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), + "Parameter id must conform to the pattern " + + "^[^/]+$"); + } } @Override @@ -23213,18 +22977,23 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Operating system version ID. */ + /** Mobile app ID. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String id; - /** Operating system version ID. + /** Mobile app ID. */ - public java.lang.Long getId() { + public java.lang.String getId() { return id; } - /** Operating system version ID. */ - public Get setId(java.lang.Long id) { + /** Mobile app ID. */ + public Get setId(java.lang.String id) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), + "Parameter id must conform to the pattern " + + "^[^/]+$"); + } this.id = id; return this; } @@ -23235,9 +23004,9 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of operating system versions. + * Retrieves list of available mobile apps. * - * Create a request for the method "operatingSystemVersions.list". + * Create a request for the method "mobileApps.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -23251,17 +23020,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of operating system versions. + * Retrieves list of available mobile apps. * - * Create a request for the method "operatingSystemVersions.list". + * Create a request for the method "mobileApps.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -23272,7 +23041,7 @@ public class List extends DfareportingRequest directories; + + /** Select only apps from these directories. + */ + public java.util.List getDirectories() { + return directories; + } + + /** Select only apps from these directories. */ + public List setDirectories(java.util.List directories) { + this.directories = directories; + return this; + } + + /** Select only apps with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only apps with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only apps with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply + * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of + * the search string. For example, a search string of "app" will match objects with name "my + * app", "app 2018", or simply "app". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "app*2015" will + return objects with names like "app Jan 2018", "app Jan 2018", or simply "app 2018". Most of the + searches also add wildcards implicitly at the start and the end of the search string. For example, + a search string of "app" will match objects with name "my app", "app 2018", or simply "app". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply + * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of + * the search string. For example, a search string of "app" will match objects with name "my + * app", "app 2018", or simply "app". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -23366,57 +23230,57 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the OperatingSystems collection. + * An accessor for creating requests from the MobileCarriers collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.OperatingSystems.List request = dfareporting.operatingSystems().list(parameters ...)}
+   *   {@code Dfareporting.MobileCarriers.List request = dfareporting.mobileCarriers().list(parameters ...)}
    * 
* * @return the resource collection */ - public OperatingSystems operatingSystems() { - return new OperatingSystems(); + public MobileCarriers mobileCarriers() { + return new MobileCarriers(); } /** - * The "operatingSystems" collection of methods. + * The "mobileCarriers" collection of methods. */ - public class OperatingSystems { + public class MobileCarriers { /** - * Gets one operating system by DART ID. + * Gets one mobile carrier by ID. * - * Create a request for the method "operatingSystems.get". + * Create a request for the method "mobileCarriers.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param dartId Operating system DART ID. + * @param id Mobile carrier ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long dartId) throws java.io.IOException { - Get result = new Get(profileId, dartId); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems/{+dartId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern DART_ID_PATTERN = + private final java.util.regex.Pattern ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one operating system by DART ID. + * Gets one mobile carrier by ID. * - * Create a request for the method "operatingSystems.get". + * Create a request for the method "mobileCarriers.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

@@ -23424,13 +23288,13 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param dartId Operating system DART ID. + * @param id Mobile carrier ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long dartId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystem.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarrier.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.dartId = com.google.api.client.util.Preconditions.checkNotNull(dartId, "Required parameter dartId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -23514,20 +23378,20 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Operating system DART ID. */ + /** Mobile carrier ID. */ @com.google.api.client.util.Key - private java.lang.Long dartId; + private java.lang.Long id; - /** Operating system DART ID. + /** Mobile carrier ID. */ - public java.lang.Long getDartId() { - return dartId; + public java.lang.Long getId() { + return id; } - /** Operating system DART ID. */ - public Get setDartId(java.lang.Long dartId) { - this.dartId = dartId; - return this; + /** Mobile carrier ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; } @Override @@ -23536,9 +23400,9 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of operating systems. + * Retrieves a list of mobile carriers. * - * Create a request for the method "operatingSystems.list". + * Create a request for the method "mobileCarriers.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -23552,17 +23416,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of operating systems. + * Retrieves a list of mobile carriers. * - * Create a request for the method "operatingSystems.list". + * Create a request for the method "mobileCarriers.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -23573,7 +23437,7 @@ public class List extends DfareportingRequestThe typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Orders.List request = dfareporting.orders().list(parameters ...)}
+   *   {@code Dfareporting.OperatingSystemVersions.List request = dfareporting.operatingSystemVersions().list(parameters ...)}
    * 
* * @return the resource collection */ - public Orders orders() { - return new Orders(); + public OperatingSystemVersions operatingSystemVersions() { + return new OperatingSystemVersions(); } /** - * The "orders" collection of methods. + * The "operatingSystemVersions" collection of methods. */ - public class Orders { + public class OperatingSystemVersions { /** - * Gets one order by ID. + * Gets one operating system version by ID. * - * Create a request for the method "orders.get". + * Create a request for the method "operatingSystemVersions.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for orders. - * @param id Order ID. + * @param id Operating system version ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, projectId, id); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/orders/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -23716,9 +23579,9 @@ public class Get extends DfareportingRequest @@ -23726,14 +23589,12 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for orders. - * @param id Order ID. + * @param id Operating system version ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Order.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersion.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -23818,33 +23679,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Project ID for orders. */ - @com.google.api.client.util.Key - private java.lang.Long projectId; - - /** Project ID for orders. - */ - public java.lang.Long getProjectId() { - return projectId; - } - - /** Project ID for orders. */ - public Get setProjectId(java.lang.Long projectId) { - this.projectId = projectId; - return this; - } - - /** Order ID. */ + /** Operating system version ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Order ID. + /** Operating system version ID. */ public java.lang.Long getId() { return id; } - /** Order ID. */ + /** Operating system version ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -23856,34 +23701,33 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of orders, possibly filtered. This method supports paging. + * Retrieves a list of operating system versions. * - * Create a request for the method "orders.list". + * Create a request for the method "operatingSystemVersions.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for orders. * @return the request */ - public List list(java.lang.Long profileId, java.lang.Long projectId) throws java.io.IOException { - List result = new List(profileId, projectId); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/orders"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of orders, possibly filtered. This method supports paging. + * Retrieves a list of operating system versions. * - * Create a request for the method "orders.list". + * Create a request for the method "operatingSystemVersions.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -23891,13 +23735,11 @@ public class List extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param projectId Project ID for orders. * @since 1.13 */ - protected List(java.lang.Long profileId, java.lang.Long projectId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OrdersListResponse.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersionsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); } @Override @@ -23981,150 +23823,6 @@ public List setProfileId(java.lang.Long profileId) { return this; } - /** Project ID for orders. */ - @com.google.api.client.util.Key - private java.lang.Long projectId; - - /** Project ID for orders. - */ - public java.lang.Long getProjectId() { - return projectId; - } - - /** Project ID for orders. */ - public List setProjectId(java.lang.Long projectId) { - this.projectId = projectId; - return this; - } - - /** Select only orders with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only orders with these IDs. - */ - public java.util.List getIds() { - return ids; - } - - /** Select only orders with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, - * "order*2015" will return orders with names like "order June 2015", "order April 2015", or - * simply "order 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "order" will match orders - * with name "my order", "order 2015", or simply "order". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, "order*2015" - will return orders with names like "order June 2015", "order April 2015", or simply "order 2015". - Most of the searches also add wildcards implicitly at the start and the end of the search string. - For example, a search string of "order" will match orders with name "my order", "order 2015", or - simply "order". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, - * "order*2015" will return orders with names like "order June 2015", "order April 2015", or - * simply "order 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "order" will match orders - * with name "my order", "order 2015", or simply "order". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Select only orders that are associated with these site IDs. */ - @com.google.api.client.util.Key - private java.util.List siteId; - - /** Select only orders that are associated with these site IDs. - */ - public java.util.List getSiteId() { - return siteId; - } - - /** Select only orders that are associated with these site IDs. */ - public List setSiteId(java.util.List siteId) { - this.siteId = siteId; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; - - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } - - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -24134,57 +23832,57 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the PlacementGroups collection. + * An accessor for creating requests from the OperatingSystems collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlacementGroups.List request = dfareporting.placementGroups().list(parameters ...)}
+   *   {@code Dfareporting.OperatingSystems.List request = dfareporting.operatingSystems().list(parameters ...)}
    * 
* * @return the resource collection */ - public PlacementGroups placementGroups() { - return new PlacementGroups(); + public OperatingSystems operatingSystems() { + return new OperatingSystems(); } /** - * The "placementGroups" collection of methods. + * The "operatingSystems" collection of methods. */ - public class PlacementGroups { + public class OperatingSystems { /** - * Gets one placement group by ID. + * Gets one operating system by DART ID. * - * Create a request for the method "placementGroups.get". + * Create a request for the method "operatingSystems.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement group ID. + * @param dartId Operating system DART ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long profileId, java.lang.Long dartId) throws java.io.IOException { + Get result = new Get(profileId, dartId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems/{+dartId}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern DART_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one placement group by ID. + * Gets one operating system by DART ID. * - * Create a request for the method "placementGroups.get". + * Create a request for the method "operatingSystems.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

@@ -24192,13 +23890,13 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Placement group ID. + * @param dartId Operating system DART ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected Get(java.lang.Long profileId, java.lang.Long dartId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystem.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + this.dartId = com.google.api.client.util.Preconditions.checkNotNull(dartId, "Required parameter dartId must be specified."); } @Override @@ -24282,19 +23980,19 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Placement group ID. */ + /** Operating system DART ID. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long dartId; - /** Placement group ID. + /** Operating system DART ID. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getDartId() { + return dartId; } - /** Placement group ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Operating system DART ID. */ + public Get setDartId(java.lang.Long dartId) { + this.dartId = dartId; return this; } @@ -24304,103 +24002,110 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new placement group. + * Retrieves a list of operating systems. * - * Create a request for the method "placementGroups.insert". + * Create a request for the method "operatingSystems.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new placement group. + * Retrieves a list of operating systems. * - * Create a request for the method "placementGroups.insert". + * Create a request for the method "operatingSystems.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24414,56 +24119,88 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Orders collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Orders.List request = dfareporting.orders().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Orders orders() { + return new Orders(); + } + + /** + * The "orders" collection of methods. + */ + public class Orders { + /** - * Retrieves a list of placement groups, possibly filtered. This method supports paging. + * Gets one order by ID. * - * Create a request for the method "placementGroups.list". + * Create a request for the method "orders.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param projectId Project ID for orders. + * @param id Order ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Get get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, projectId, id); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/orders/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Retrieves a list of placement groups, possibly filtered. This method supports paging. + * Gets one order by ID. * - * Create a request for the method "placementGroups.list". + * Create a request for the method "orders.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param projectId Project ID for orders. + * @param id Order ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroupsListResponse.class); + protected Get(java.lang.Long profileId, java.lang.Long projectId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Order.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -24477,58 +24214,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24542,212 +24279,219 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Select only placements with these active statuses. */ + /** Project ID for orders. */ @com.google.api.client.util.Key - private java.util.List activeStatus; + private java.lang.Long projectId; - /** Select only placements with these active statuses. + /** Project ID for orders. */ - public java.util.List getActiveStatus() { - return activeStatus; + public java.lang.Long getProjectId() { + return projectId; } - /** Select only placements with these active statuses. */ - public List setActiveStatus(java.util.List activeStatus) { - this.activeStatus = activeStatus; - return this; - } + /** Project ID for orders. */ + public Get setProjectId(java.lang.Long projectId) { + this.projectId = projectId; + return this; + } - /** Select only placement groups that belong to these advertisers. */ + /** Order ID. */ @com.google.api.client.util.Key - private java.util.List advertiserIds; + private java.lang.Long id; - /** Select only placement groups that belong to these advertisers. + /** Order ID. */ - public java.util.List getAdvertiserIds() { - return advertiserIds; + public java.lang.Long getId() { + return id; } - /** Select only placement groups that belong to these advertisers. */ - public List setAdvertiserIds(java.util.List advertiserIds) { - this.advertiserIds = advertiserIds; + /** Order ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } - /** Select only placement groups that belong to these campaigns. */ - @com.google.api.client.util.Key - private java.util.List campaignIds; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of orders, possibly filtered. This method supports paging. + * + * Create a request for the method "orders.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param projectId Project ID for orders. + * @return the request + */ + public List list(java.lang.Long profileId, java.lang.Long projectId) throws java.io.IOException { + List result = new List(profileId, projectId); + initialize(result); + return result; + } - /** Select only placement groups that belong to these campaigns. + public class List extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/projects/{projectId}/orders"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Retrieves a list of orders, possibly filtered. This method supports paging. + * + * Create a request for the method "orders.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param projectId Project ID for orders. + * @since 1.13 */ - public java.util.List getCampaignIds() { - return campaignIds; + protected List(java.lang.Long profileId, java.lang.Long projectId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OrdersListResponse.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.projectId = com.google.api.client.util.Preconditions.checkNotNull(projectId, "Required parameter projectId must be specified."); } - /** Select only placement groups that belong to these campaigns. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Select only placement groups that are associated with these content categories. */ - @com.google.api.client.util.Key - private java.util.List contentCategoryIds; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Select only placement groups that are associated with these content categories. - */ - public java.util.List getContentCategoryIds() { - return contentCategoryIds; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } - /** Select only placement groups that are associated with these content categories. */ - public List setContentCategoryIds(java.util.List contentCategoryIds) { - this.contentCategoryIds = contentCategoryIds; - return this; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } - /** Select only placement groups that are associated with these directory sites. */ - @com.google.api.client.util.Key - private java.util.List directorySiteIds; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Select only placement groups that are associated with these directory sites. - */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } - /** Select only placement groups that are associated with these directory sites. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; - return this; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } - /** Select only placement groups with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Select only placement groups with these IDs. - */ - public java.util.List getIds() { - return ids; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } - /** Select only placement groups with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String maxEndDate; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxEndDate() { - return maxEndDate; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxEndDate(java.lang.String maxEndDate) { - this.maxEndDate = maxEndDate; - return this; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Maximum number of results to return. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long profileId; - /** Maximum number of results to return. [default: 800] + /** User profile ID associated with this request. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getProfileId() { + return profileId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ + /** Project ID for orders. */ @com.google.api.client.util.Key - private java.lang.String maxStartDate; + private java.lang.Long projectId; - /** Select only placements or placement groups whose start date is on or before the specified - maxStartDate. The date should be formatted as "yyyy-MM-dd". + /** Project ID for orders. */ - public java.lang.String getMaxStartDate() { - return maxStartDate; + public java.lang.Long getProjectId() { + return projectId; } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxStartDate(java.lang.String maxStartDate) { - this.maxStartDate = maxStartDate; + /** Project ID for orders. */ + public List setProjectId(java.lang.Long projectId) { + this.projectId = projectId; return this; } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ + /** Select only orders with these IDs. */ @com.google.api.client.util.Key - private java.lang.String minEndDate; + private java.util.List ids; - /** Select only placements or placement groups whose end date is on or after the specified minEndDate. - The date should be formatted as "yyyy-MM-dd". + /** Select only orders with these IDs. */ - public java.lang.String getMinEndDate() { - return minEndDate; + public java.util.List getIds() { + return ids; } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinEndDate(java.lang.String minEndDate) { - this.minEndDate = minEndDate; + /** Select only orders with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; return this; } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.lang.String minStartDate; + private java.lang.Integer maxResults; - /** Select only placements or placement groups whose start date is on or after the specified - minStartDate. The date should be formatted as "yyyy-MM-dd". + /** Maximum number of results to return. [default: 1000] */ - public java.lang.String getMinStartDate() { - return minStartDate; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinStartDate(java.lang.String minStartDate) { - this.minStartDate = minStartDate; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } @@ -24768,117 +24512,50 @@ public List setPageToken(java.lang.String pageToken) { } /** - * Select only placement groups belonging with this group type. A package is a simple group of - * placements that acts as a single pricing point for a group of tags. A roadblock is a group - * of placements that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its assigned - * placements to be marked as primary for reporting. - */ - @com.google.api.client.util.Key - private java.lang.String placementGroupType; - - /** Select only placement groups belonging with this group type. A package is a simple group of - placements that acts as a single pricing point for a group of tags. A roadblock is a group of - placements that not only acts as a single pricing point but also assumes that all the tags in it - will be served at the same time. A roadblock requires one of its assigned placements to be marked - as primary for reporting. - */ - public java.lang.String getPlacementGroupType() { - return placementGroupType; - } - - /** - * Select only placement groups belonging with this group type. A package is a simple group of - * placements that acts as a single pricing point for a group of tags. A roadblock is a group - * of placements that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its assigned - * placements to be marked as primary for reporting. - */ - public List setPlacementGroupType(java.lang.String placementGroupType) { - this.placementGroupType = placementGroupType; - return this; - } - - /** Select only placement groups that are associated with these placement strategies. */ - @com.google.api.client.util.Key - private java.util.List placementStrategyIds; - - /** Select only placement groups that are associated with these placement strategies. - */ - public java.util.List getPlacementStrategyIds() { - return placementStrategyIds; - } - - /** Select only placement groups that are associated with these placement strategies. */ - public List setPlacementStrategyIds(java.util.List placementStrategyIds) { - this.placementStrategyIds = placementStrategyIds; - return this; - } - - /** Select only placement groups with these pricing types. */ - @com.google.api.client.util.Key - private java.util.List pricingTypes; - - /** Select only placement groups with these pricing types. - */ - public java.util.List getPricingTypes() { - return pricingTypes; - } - - /** Select only placement groups with these pricing types. */ - public List setPricingTypes(java.util.List pricingTypes) { - this.pricingTypes = pricingTypes; - return this; - } - - /** - * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For - * example, "placement*2015" will return placement groups with names like "placement group - * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementgroup" will match placement groups with name "my - * placementgroup", "placementgroup 2015", or simply "placementgroup". + * Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, + * "order*2015" will return orders with names like "order June 2015", "order April 2015", or + * simply "order 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "order" will match orders + * with name "my order", "order 2015", or simply "order". */ @com.google.api.client.util.Key private java.lang.String searchString; - /** Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, - "placement*2015" will return placement groups with names like "placement group June 2015", - "placement group May 2015", or simply "placements 2015". Most of the searches also add wildcards - implicitly at the start and the end of the search string. For example, a search string of - "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015", - or simply "placementgroup". + /** Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, "order*2015" + will return orders with names like "order June 2015", "order April 2015", or simply "order 2015". + Most of the searches also add wildcards implicitly at the start and the end of the search string. + For example, a search string of "order" will match orders with name "my order", "order 2015", or + simply "order". */ public java.lang.String getSearchString() { return searchString; } /** - * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For - * example, "placement*2015" will return placement groups with names like "placement group - * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementgroup" will match placement groups with name "my - * placementgroup", "placementgroup 2015", or simply "placementgroup". + * Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, + * "order*2015" will return orders with names like "order June 2015", "order April 2015", or + * simply "order 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "order" will match orders + * with name "my order", "order 2015", or simply "order". */ public List setSearchString(java.lang.String searchString) { this.searchString = searchString; return this; } - /** Select only placement groups that are associated with these sites. */ + /** Select only orders that are associated with these site IDs. */ @com.google.api.client.util.Key - private java.util.List siteIds; + private java.util.List siteId; - /** Select only placement groups that are associated with these sites. + /** Select only orders that are associated with these site IDs. */ - public java.util.List getSiteIds() { - return siteIds; + public java.util.List getSiteId() { + return siteId; } - /** Select only placement groups that are associated with these sites. */ - public List setSiteIds(java.util.List siteIds) { - this.siteIds = siteIds; + /** Select only orders that are associated with these site IDs. */ + public List setSiteId(java.util.List siteId) { + this.siteId = siteId; return this; } @@ -24919,107 +24596,140 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PlacementGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.PlacementGroups.List request = dfareporting.placementGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PlacementGroups placementGroups() { + return new PlacementGroups(); + } + + /** + * The "placementGroups" collection of methods. + */ + public class PlacementGroups { + /** - * Updates an existing placement group. This method supports patch semantics. + * Gets one placement group by ID. * - * Create a request for the method "placementGroups.patch". + * Create a request for the method "placementGroups.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} + * @param id Placement group ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing placement group. This method supports patch semantics. + * Gets one placement group by ID. * - * Create a request for the method "placementGroups.patch". + * Create a request for the method "placementGroups.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} + * @param id Placement group ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25033,51 +24743,51 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Placement ID. */ + /** Placement group ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. Placement ID. + /** Placement group ID. */ public java.lang.Long getId() { return id; } - /** Required. Placement ID. */ - public Patch setId(java.lang.Long id) { + /** Placement group ID. */ + public Get setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates an existing placement group. + * Inserts a new placement group. * - * Create a request for the method "placementGroups.update". + * Create a request for the method "placementGroups.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Insert extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; @@ -25085,78 +24795,78 @@ public class Update extends DfareportingRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25170,141 +24880,121 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the PlacementStrategies collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlacementStrategies.List request = dfareporting.placementStrategies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PlacementStrategies placementStrategies() { - return new PlacementStrategies(); - } - - /** - * The "placementStrategies" collection of methods. - */ - public class PlacementStrategies { - /** - * Deletes an existing placement strategy. + * Retrieves a list of placement groups, possibly filtered. This method supports paging. * - * Create a request for the method "placementStrategies.delete". + * Create a request for the method "placementGroups.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Delete extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Deletes an existing placement strategy. + * Retrieves a list of placement groups, possibly filtered. This method supports paging. * - * Create a request for the method "placementStrategies.delete". + * Create a request for the method "placementGroups.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroupsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25318,408 +25008,484 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Placement strategy ID. */ + /** Select only placements with these active statuses. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.util.List activeStatus; - /** Placement strategy ID. + /** Select only placements with these active statuses. */ - public java.lang.Long getId() { - return id; + public java.util.List getActiveStatus() { + return activeStatus; } - /** Placement strategy ID. */ - public Delete setId(java.lang.Long id) { - this.id = id; + /** Select only placements with these active statuses. */ + public List setActiveStatus(java.util.List activeStatus) { + this.activeStatus = activeStatus; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets one placement strategy by ID. - * - * Create a request for the method "placementStrategies.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); - initialize(result); - return result; - } - - public class Get extends DfareportingRequest { + /** Select only placement groups that belong to these advertisers. */ + @com.google.api.client.util.Key + private java.util.List advertiserIds; - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; + /** Select only placement groups that belong to these advertisers. + */ + public java.util.List getAdvertiserIds() { + return advertiserIds; + } - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placement groups that belong to these advertisers. */ + public List setAdvertiserIds(java.util.List advertiserIds) { + this.advertiserIds = advertiserIds; + return this; + } - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placement groups that belong to these campaigns. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; - /** - * Gets one placement strategy by ID. - * - * Create a request for the method "placementStrategies.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. - * @since 1.13 + /** Select only placement groups that belong to these campaigns. */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategy.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + public java.util.List getCampaignIds() { + return campaignIds; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** Select only placement groups that belong to these campaigns. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Select only placement groups that are associated with these content categories. */ + @com.google.api.client.util.Key + private java.util.List contentCategoryIds; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + /** Select only placement groups that are associated with these content categories. + */ + public java.util.List getContentCategoryIds() { + return contentCategoryIds; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** Select only placement groups that are associated with these content categories. */ + public List setContentCategoryIds(java.util.List contentCategoryIds) { + this.contentCategoryIds = contentCategoryIds; + return this; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** Select only placement groups that are associated with these directory sites. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** Select only placement groups that are associated with these directory sites. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** Select only placement groups that are associated with these directory sites. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Select only placement groups with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** Select only placement groups with these IDs. + */ + public java.util.List getIds() { + return ids; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Select only placement groups with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String maxEndDate; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMaxEndDate() { + return maxEndDate; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxEndDate(java.lang.String maxEndDate) { + this.maxEndDate = maxEndDate; + return this; } - /** User profile ID associated with this request. */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Integer maxResults; - /** User profile ID associated with this request. + /** Maximum number of results to return. [default: 800] */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Placement strategy ID. */ + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String maxStartDate; - /** Placement strategy ID. + /** Select only placements or placement groups whose start date is on or before the specified + maxStartDate. The date should be formatted as "yyyy-MM-dd". */ - public java.lang.Long getId() { - return id; + public java.lang.String getMaxStartDate() { + return maxStartDate; } - /** Placement strategy ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxStartDate(java.lang.String maxStartDate) { + this.maxStartDate = maxStartDate; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Inserts a new placement strategy. - * - * Create a request for the method "placementStrategies.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} - * @return the request - */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { - Insert result = new Insert(profileId, content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Inserts a new placement strategy. - * - * Create a request for the method "placementStrategies.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} - * @since 1.13 + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } + @com.google.api.client.util.Key + private java.lang.String minEndDate; - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + /** Select only placements or placement groups whose end date is on or after the specified minEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinEndDate() { + return minEndDate; } - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinEndDate(java.lang.String minEndDate) { + this.minEndDate = minEndDate; + return this; } - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String minStartDate; - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + /** Select only placements or placement groups whose start date is on or after the specified + minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinStartDate() { + return minStartDate; } - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinStartDate(java.lang.String minStartDate) { + this.minStartDate = minStartDate; + return this; } - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + /** + * Select only placement groups belonging with this group type. A package is a simple group of + * placements that acts as a single pricing point for a group of tags. A roadblock is a group + * of placements that not only acts as a single pricing point but also assumes that all the + * tags in it will be served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ + @com.google.api.client.util.Key + private java.lang.String placementGroupType; + + /** Select only placement groups belonging with this group type. A package is a simple group of + placements that acts as a single pricing point for a group of tags. A roadblock is a group of + placements that not only acts as a single pricing point but also assumes that all the tags in it + will be served at the same time. A roadblock requires one of its assigned placements to be marked + as primary for reporting. + */ + public java.lang.String getPlacementGroupType() { + return placementGroupType; } - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + /** + * Select only placement groups belonging with this group type. A package is a simple group of + * placements that acts as a single pricing point for a group of tags. A roadblock is a group + * of placements that not only acts as a single pricing point but also assumes that all the + * tags in it will be served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ + public List setPlacementGroupType(java.lang.String placementGroupType) { + this.placementGroupType = placementGroupType; + return this; } - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + /** Select only placement groups that are associated with these placement strategies. */ + @com.google.api.client.util.Key + private java.util.List placementStrategyIds; + + /** Select only placement groups that are associated with these placement strategies. + */ + public java.util.List getPlacementStrategyIds() { + return placementStrategyIds; } - /** User profile ID associated with this request. */ + /** Select only placement groups that are associated with these placement strategies. */ + public List setPlacementStrategyIds(java.util.List placementStrategyIds) { + this.placementStrategyIds = placementStrategyIds; + return this; + } + + /** Select only placement groups with these pricing types. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.util.List pricingTypes; - /** User profile ID associated with this request. + /** Select only placement groups with these pricing types. */ - public java.lang.Long getProfileId() { - return profileId; + public java.util.List getPricingTypes() { + return pricingTypes; } - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Select only placement groups with these pricing types. */ + public List setPricingTypes(java.util.List pricingTypes) { + this.pricingTypes = pricingTypes; + return this; + } + + /** + * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For + * example, "placement*2015" will return placement groups with names like "placement group + * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementgroup" will match placement groups with name "my + * placementgroup", "placementgroup 2015", or simply "placementgroup". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, + "placement*2015" will return placement groups with names like "placement group June 2015", + "placement group May 2015", or simply "placements 2015". Most of the searches also add wildcards + implicitly at the start and the end of the search string. For example, a search string of + "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015", + or simply "placementgroup". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For + * example, "placement*2015" will return placement groups with names like "placement group + * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementgroup" will match placement groups with name "my + * placementgroup", "placementgroup 2015", or simply "placementgroup". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** Select only placement groups that are associated with these sites. */ + @com.google.api.client.util.Key + private java.util.List siteIds; + + /** Select only placement groups that are associated with these sites. + */ + public java.util.List getSiteIds() { + return siteIds; + } + + /** Select only placement groups that are associated with these sites. */ + public List setSiteIds(java.util.List siteIds) { + this.siteIds = siteIds; + return this; + } + + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves a list of placement strategies, possibly filtered. This method supports paging. + * Updates an existing placement group. This method supports patch semantics. * - * Create a request for the method "placementStrategies.list". + * Create a request for the method "placementGroups.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of placement strategies, possibly filtered. This method supports paging. + * Updates an existing placement group. This method supports patch semantics. * - * Create a request for the method "placementStrategies.list". + * Create a request for the method "placementGroups.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategiesListResponse.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25733,232 +25499,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Select only placement strategies with these IDs. */ + /** Required. Placement ID. */ @com.google.api.client.util.Key - private java.util.List ids; + private java.lang.Long id; - /** Select only placement strategies with these IDs. + /** Required. Placement ID. */ - public java.util.List getIds() { - return ids; + public java.lang.Long getId() { + return id; } - /** Select only placement strategies with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my placementstrategy", - * "placementstrategy 2015", or simply "placementstrategy". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches also add - wildcards implicitly at the start and the end of the search string. For example, a search string of - "placementstrategy" will match objects with name "my placementstrategy", "placementstrategy 2015", - or simply "placementstrategy". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my placementstrategy", - * "placementstrategy 2015", or simply "placementstrategy". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; - - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } - - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Required. Placement ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Updates an existing placement strategy. This method supports patch semantics. + * Updates an existing placement group. * - * Create a request for the method "placementStrategies.patch". + * Create a request for the method "placementGroups.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. PlacementStrategy ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement strategy. This method supports patch semantics. + * Updates an existing placement group. * - * Create a request for the method "placementStrategies.patch". + * Create a request for the method "placementGroups.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. PlacementStrategy ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25972,130 +25636,141 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. PlacementStrategy ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Required. PlacementStrategy ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Required. PlacementStrategy ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PlacementStrategies collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.PlacementStrategies.List request = dfareporting.placementStrategies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PlacementStrategies placementStrategies() { + return new PlacementStrategies(); + } + + /** + * The "placementStrategies" collection of methods. + */ + public class PlacementStrategies { + /** - * Updates an existing placement strategy. + * Deletes an existing placement strategy. * - * Create a request for the method "placementStrategies.update". + * Create a request for the method "placementStrategies.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param id Placement strategy ID. * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing placement strategy. + * Deletes an existing placement strategy. * - * Create a request for the method "placementStrategies.update". + * Create a request for the method "placementStrategies.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param id Placement strategy ID. * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26109,135 +25784,143 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Placement strategy ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the Placements collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Placements.List request = dfareporting.placements().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Placements placements() { - return new Placements(); - } + /** Placement strategy ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "placements" collection of methods. - */ - public class Placements { + /** Placement strategy ID. */ + public Delete setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Generates tags for a placement. + * Gets one placement strategy by ID. * - * Create a request for the method "placements.generatetags". + * Create a request for the method "placementStrategies.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Generatetags#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Placement strategy ID. * @return the request */ - public Generatetags generatetags(java.lang.Long profileId) throws java.io.IOException { - Generatetags result = new Generatetags(profileId); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Generatetags extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements/generatetags"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Generates tags for a placement. + * Gets one placement strategy by ID. * - * Create a request for the method "placements.generatetags". + * Create a request for the method "placementStrategies.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Generatetags#execute()} method to invoke the remote - * operation.

{@link - * Generatetags#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Placement strategy ID. * @since 1.13 */ - protected Generatetags(java.lang.Long profileId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementsGenerateTagsResponse.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Generatetags set$Xgafv(java.lang.String $Xgafv) { - return (Generatetags) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Generatetags setAccessToken(java.lang.String accessToken) { - return (Generatetags) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Generatetags setAlt(java.lang.String alt) { - return (Generatetags) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Generatetags setCallback(java.lang.String callback) { - return (Generatetags) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Generatetags setFields(java.lang.String fields) { - return (Generatetags) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Generatetags setKey(java.lang.String key) { - return (Generatetags) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Generatetags setOauthToken(java.lang.String oauthToken) { - return (Generatetags) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Generatetags setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generatetags) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Generatetags setQuotaUser(java.lang.String quotaUser) { - return (Generatetags) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Generatetags setUploadType(java.lang.String uploadType) { - return (Generatetags) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Generatetags setUploadProtocol(java.lang.String uploadProtocol) { - return (Generatetags) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26251,250 +25934,61 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Generatetags setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Generate placements belonging to this campaign. This is a required field. */ - @com.google.api.client.util.Key - private java.lang.Long campaignId; - - /** Generate placements belonging to this campaign. This is a required field. - */ - public java.lang.Long getCampaignId() { - return campaignId; - } - - /** Generate placements belonging to this campaign. This is a required field. */ - public Generatetags setCampaignId(java.lang.Long campaignId) { - this.campaignId = campaignId; - return this; - } - - /** Generate tags for these placements. */ - @com.google.api.client.util.Key - private java.util.List placementIds; - - /** Generate tags for these placements. - */ - public java.util.List getPlacementIds() { - return placementIds; - } - - /** Generate tags for these placements. */ - public Generatetags setPlacementIds(java.util.List placementIds) { - this.placementIds = placementIds; - return this; - } - - /** - * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be - * generated for 1x1 placements. - */ + /** Placement strategy ID. */ @com.google.api.client.util.Key - private java.util.List tagFormats; + private java.lang.Long id; - /** Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated - for 1x1 placements. + /** Placement strategy ID. */ - public java.util.List getTagFormats() { - return tagFormats; + public java.lang.Long getId() { + return id; } - /** - * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be - * generated for 1x1 placements. - */ - public Generatetags setTagFormats(java.util.List tagFormats) { - this.tagFormats = tagFormats; + /** Placement strategy ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } @Override - public Generatetags set(String parameterName, Object value) { - return (Generatetags) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets one placement by ID. + * Inserts a new placement strategy. * - * Create a request for the method "placements.get". + * Create a request for the method "placementStrategies.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements/{+id}"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - /** - * Gets one placement by ID. - * - * Create a request for the method "placements.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param id Placement ID. - * @since 1.13 - */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Placement.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** Placement ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Placement ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Placement ID. */ - public Get setId(java.lang.Long id) { - this.id = id; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Inserts a new placement. - * - * Create a request for the method "placements.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} - * @return the request - */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { - Insert result = new Insert(profileId, content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new placement. + * Inserts a new placement strategy. * - * Create a request for the method "placements.insert". + * Create a request for the method "placementStrategies.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -26503,11 +25997,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -26588,9 +26082,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of placements, possibly filtered. This method supports paging. + * Retrieves a list of placement strategies, possibly filtered. This method supports paging. * - * Create a request for the method "placements.list". + * Create a request for the method "placementStrategies.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -26604,17 +26098,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of placements, possibly filtered. This method supports paging. + * Retrieves a list of placement strategies, possibly filtered. This method supports paging. * - * Create a request for the method "placements.list". + * Create a request for the method "placementStrategies.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -26625,7 +26119,7 @@ public class List extends DfareportingRequest activeStatus; + private java.util.List ids; - /** Select only placements with these active statuses. + /** Select only placement strategies with these IDs. */ - public java.util.List getActiveStatus() { - return activeStatus; + public java.util.List getIds() { + return ids; } - /** Select only placements with these active statuses. */ - public List setActiveStatus(java.util.List activeStatus) { - this.activeStatus = activeStatus; + /** Select only placement strategies with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; return this; } - /** Select only placements that belong to these advertisers. */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.util.List advertiserIds; + private java.lang.Integer maxResults; - /** Select only placements that belong to these advertisers. + /** Maximum number of results to return. [default: 1000] */ - public java.util.List getAdvertiserIds() { - return advertiserIds; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** Select only placements that belong to these advertisers. */ - public List setAdvertiserIds(java.util.List advertiserIds) { - this.advertiserIds = advertiserIds; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Select only placements that belong to these campaigns. */ + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key - private java.util.List campaignIds; + private java.lang.String pageToken; - /** Select only placements that belong to these campaigns. + /** Value of the nextPageToken from the previous result page. */ - public java.util.List getCampaignIds() { - return campaignIds; + public java.lang.String getPageToken() { + return pageToken; } - /** Select only placements that belong to these campaigns. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Select only placements that are associated with these compatibilities. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular - * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST - * standard. + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my placementstrategy", + * "placementstrategy 2015", or simply "placementstrategy". */ @com.google.api.client.util.Key - private java.util.List compatibilities; + private java.lang.String searchString; - /** Select only placements that are associated with these compatibilities. DISPLAY and - DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or - interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches also add + wildcards implicitly at the start and the end of the search string. For example, a search string of + "placementstrategy" will match objects with name "my placementstrategy", "placementstrategy 2015", + or simply "placementstrategy". */ - public java.util.List getCompatibilities() { - return compatibilities; + public java.lang.String getSearchString() { + return searchString; } /** - * Select only placements that are associated with these compatibilities. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular - * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST - * standard. + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my placementstrategy", + * "placementstrategy 2015", or simply "placementstrategy". */ - public List setCompatibilities(java.util.List compatibilities) { - this.compatibilities = compatibilities; + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; return this; } - /** Select only placements that are associated with these content categories. */ + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.util.List contentCategoryIds; + private java.lang.String sortField; - /** Select only placements that are associated with these content categories. + /** Field by which to sort the list. [default: ID] */ - public java.util.List getContentCategoryIds() { - return contentCategoryIds; + public java.lang.String getSortField() { + return sortField; } - /** Select only placements that are associated with these content categories. */ - public List setContentCategoryIds(java.util.List contentCategoryIds) { - this.contentCategoryIds = contentCategoryIds; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; return this; } - /** Select only placements that are associated with these directory sites. */ + /** Order of sorted results. */ @com.google.api.client.util.Key - private java.util.List directorySiteIds; + private java.lang.String sortOrder; - /** Select only placements that are associated with these directory sites. + /** Order of sorted results. [default: ASCENDING] */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + public java.lang.String getSortOrder() { + return sortOrder; } - /** Select only placements that are associated with these directory sites. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; return this; } - /** Select only placements that belong to these placement groups. */ - @com.google.api.client.util.Key - private java.util.List groupIds; - - /** Select only placements that belong to these placement groups. - */ - public java.util.List getGroupIds() { - return groupIds; - } - - /** Select only placements that belong to these placement groups. */ - public List setGroupIds(java.util.List groupIds) { - this.groupIds = groupIds; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } + } + /** + * Updates an existing placement strategy. This method supports patch semantics. + * + * Create a request for the method "placementStrategies.patch". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Required. PlacementStrategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @return the request + */ + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); + initialize(result); + return result; + } - /** Select only placements with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + public class Patch extends DfareportingRequest { - /** Select only placements with these IDs. - */ - public java.util.List getIds() { - return ids; - } + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; - /** Select only placements with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". + * Updates an existing placement strategy. This method supports patch semantics. + * + * Create a request for the method "placementStrategies.patch". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Required. PlacementStrategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String maxEndDate; + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + } - /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxEndDate() { - return maxEndDate; + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxEndDate(java.lang.String maxEndDate) { - this.maxEndDate = maxEndDate; - return this; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String maxStartDate; + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** Select only placements or placement groups whose start date is on or before the specified - maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxStartDate() { - return maxStartDate; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxStartDate(java.lang.String maxStartDate) { - this.maxStartDate = maxStartDate; - return this; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String minEndDate; + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Select only placements or placement groups whose end date is on or after the specified minEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMinEndDate() { - return minEndDate; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinEndDate(java.lang.String minEndDate) { - this.minEndDate = minEndDate; - return this; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.String minStartDate; + private java.lang.Long profileId; - /** Select only placements or placement groups whose start date is on or after the specified - minStartDate. The date should be formatted as "yyyy-MM-dd". + /** User profile ID associated with this request. */ - public java.lang.String getMinStartDate() { - return minStartDate; + public java.lang.Long getProfileId() { + return profileId; } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinStartDate(java.lang.String minStartDate) { - this.minStartDate = minStartDate; + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** Value of the nextPageToken from the previous result page. */ + /** Required. PlacementStrategy ID. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Long id; - /** Value of the nextPageToken from the previous result page. + /** Required. PlacementStrategy ID. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Long getId() { + return id; } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Select only placements with this payment source. */ - @com.google.api.client.util.Key - private java.lang.String paymentSource; - - /** Select only placements with this payment source. - */ - public java.lang.String getPaymentSource() { - return paymentSource; - } - - /** Select only placements with this payment source. */ - public List setPaymentSource(java.lang.String paymentSource) { - this.paymentSource = paymentSource; - return this; - } - - /** Select only placements that are associated with these placement strategies. */ - @com.google.api.client.util.Key - private java.util.List placementStrategyIds; - - /** Select only placements that are associated with these placement strategies. - */ - public java.util.List getPlacementStrategyIds() { - return placementStrategyIds; - } - - /** Select only placements that are associated with these placement strategies. */ - public List setPlacementStrategyIds(java.util.List placementStrategyIds) { - this.placementStrategyIds = placementStrategyIds; - return this; - } - - /** Select only placements with these pricing types. */ - @com.google.api.client.util.Key - private java.util.List pricingTypes; - - /** Select only placements with these pricing types. - */ - public java.util.List getPricingTypes() { - return pricingTypes; - } - - /** Select only placements with these pricing types. */ - public List setPricingTypes(java.util.List pricingTypes) { - this.pricingTypes = pricingTypes; - return this; - } - - /** - * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - * "placement*2015" will return placements with names like "placement June 2015", "placement - * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string of "placement" - * will match placements with name "my placement", "placement 2015", or simply "placement" . - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - "placement*2015" will return placements with names like "placement June 2015", "placement May - 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly at the start - and the end of the search string. For example, a search string of "placement" will match placements - with name "my placement", "placement 2015", or simply "placement" . - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - * "placement*2015" will return placements with names like "placement June 2015", "placement - * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string of "placement" - * will match placements with name "my placement", "placement 2015", or simply "placement" . - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Select only placements that are associated with these sites. */ - @com.google.api.client.util.Key - private java.util.List siteIds; - - /** Select only placements that are associated with these sites. - */ - public java.util.List getSiteIds() { - return siteIds; - } - - /** Select only placements that are associated with these sites. */ - public List setSiteIds(java.util.List siteIds) { - this.siteIds = siteIds; - return this; - } - - /** Select only placements that are associated with these sizes. */ - @com.google.api.client.util.Key - private java.util.List sizeIds; - - /** Select only placements that are associated with these sizes. - */ - public java.util.List getSizeIds() { - return sizeIds; - } - - /** Select only placements that are associated with these sizes. */ - public List setSizeIds(java.util.List sizeIds) { - this.sizeIds = sizeIds; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; - - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } - - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Required. PlacementStrategy ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Updates an existing placement. This method supports patch semantics. + * Updates an existing placement strategy. * - * Create a request for the method "placements.patch". + * Create a request for the method "placementStrategies.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement. This method supports patch semantics. + * Updates an existing placement strategy. * - * Create a request for the method "placements.patch". + * Create a request for the method "placementStrategies.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -27240,130 +26575,135 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Placement ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Required. Placement ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Required. Placement ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } - /** - * Updates an existing placement. - * - * Create a request for the method "placements.update". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} - * @return the request - */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { - Update result = new Update(profileId, content); + + } + + /** + * An accessor for creating requests from the Placements collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Placements.List request = dfareporting.placements().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Placements placements() { + return new Placements(); + } + + /** + * The "placements" collection of methods. + */ + public class Placements { + + /** + * Generates tags for a placement. + * + * Create a request for the method "placements.generatetags". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Generatetags#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @return the request + */ + public Generatetags generatetags(java.lang.Long profileId) throws java.io.IOException { + Generatetags result = new Generatetags(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Generatetags extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements/generatetags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement. + * Generates tags for a placement. * - * Create a request for the method "placements.update". + * Create a request for the method "placements.generatetags". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Generatetags#execute()} method to invoke the remote + * operation.

{@link + * Generatetags#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Generatetags(java.lang.Long profileId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementsGenerateTagsResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Generatetags set$Xgafv(java.lang.String $Xgafv) { + return (Generatetags) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Generatetags setAccessToken(java.lang.String accessToken) { + return (Generatetags) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Generatetags setAlt(java.lang.String alt) { + return (Generatetags) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Generatetags setCallback(java.lang.String callback) { + return (Generatetags) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Generatetags setFields(java.lang.String fields) { + return (Generatetags) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Generatetags setKey(java.lang.String key) { + return (Generatetags) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Generatetags setOauthToken(java.lang.String oauthToken) { + return (Generatetags) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Generatetags setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generatetags) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Generatetags setQuotaUser(java.lang.String quotaUser) { + return (Generatetags) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Generatetags setUploadType(java.lang.String uploadType) { + return (Generatetags) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Generatetags setUploadProtocol(java.lang.String uploadProtocol) { + return (Generatetags) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -27377,49 +26717,81 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Generatetags setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + /** Generate placements belonging to this campaign. This is a required field. */ + @com.google.api.client.util.Key + private java.lang.Long campaignId; + + /** Generate placements belonging to this campaign. This is a required field. + */ + public java.lang.Long getCampaignId() { + return campaignId; } - } - } + /** Generate placements belonging to this campaign. This is a required field. */ + public Generatetags setCampaignId(java.lang.Long campaignId) { + this.campaignId = campaignId; + return this; + } - /** - * An accessor for creating requests from the PlatformTypes collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlatformTypes.List request = dfareporting.platformTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PlatformTypes platformTypes() { - return new PlatformTypes(); - } + /** Generate tags for these placements. */ + @com.google.api.client.util.Key + private java.util.List placementIds; - /** - * The "platformTypes" collection of methods. - */ - public class PlatformTypes { + /** Generate tags for these placements. + */ + public java.util.List getPlacementIds() { + return placementIds; + } + + /** Generate tags for these placements. */ + public Generatetags setPlacementIds(java.util.List placementIds) { + this.placementIds = placementIds; + return this; + } + + /** + * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be + * generated for 1x1 placements. + */ + @com.google.api.client.util.Key + private java.util.List tagFormats; + + /** Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated + for 1x1 placements. + */ + public java.util.List getTagFormats() { + return tagFormats; + } + + /** + * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be + * generated for 1x1 placements. + */ + public Generatetags setTagFormats(java.util.List tagFormats) { + this.tagFormats = tagFormats; + return this; + } + @Override + public Generatetags set(String parameterName, Object value) { + return (Generatetags) super.set(parameterName, value); + } + } /** - * Gets one platform type by ID. + * Gets one placement by ID. * - * Create a request for the method "platformTypes.get". + * Create a request for the method "placements.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Platform type ID. + * @param id Placement ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -27428,9 +26800,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -27439,9 +26811,9 @@ public class Get extends DfareportingRequest @@ -27449,11 +26821,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Platform type ID. + * @param id Placement ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformType.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -27539,17 +26911,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Platform type ID. */ + /** Placement ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Platform type ID. + /** Placement ID. */ public java.lang.Long getId() { return id; } - /** Platform type ID. */ + /** Placement ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -27561,272 +26933,103 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of platform types. + * Inserts a new placement. * - * Create a request for the method "platformTypes.list". + * Create a request for the method "placements.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of platform types. + * Inserts a new placement. * - * Create a request for the method "platformTypes.list". + * Create a request for the method "placements.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformTypesListResponse.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PostalCodes collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PostalCodes.List request = dfareporting.postalCodes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PostalCodes postalCodes() { - return new PostalCodes(); - } - - /** - * The "postalCodes" collection of methods. - */ - public class PostalCodes { - - /** - * Gets one postal code by ID. - * - * Create a request for the method "postalCodes.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param code Postal code ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.String code) throws java.io.IOException { - Get result = new Get(profileId, code); - initialize(result); - return result; - } - - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes/{+code}"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern CODE_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - /** - * Gets one postal code by ID. - * - * Create a request for the method "postalCodes.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param code Postal code ID. - * @since 1.13 - */ - protected Get(java.lang.Long profileId, java.lang.String code) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCode.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.code = com.google.api.client.util.Preconditions.checkNotNull(code, "Required parameter code must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), - "Parameter code must conform to the pattern " + - "^[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -27840,41 +27043,20 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Postal code ID. */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** Postal code ID. - */ - public java.lang.String getCode() { - return code; - } - - /** Postal code ID. */ - public Get setCode(java.lang.String code) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), - "Parameter code must conform to the pattern " + - "^[^/]+$"); - } - this.code = code; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of postal codes. + * Retrieves a list of placements, possibly filtered. This method supports paging. * - * Create a request for the method "postalCodes.list". + * Create a request for the method "placements.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -27888,17 +27070,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of postal codes. + * Retrieves a list of placements, possibly filtered. This method supports paging. * - * Create a request for the method "postalCodes.list". + * Create a request for the method "placements.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -27909,7 +27091,7 @@ public class List extends DfareportingRequest activeStatus; + + /** Select only placements with these active statuses. + */ + public java.util.List getActiveStatus() { + return activeStatus; } - } - } + /** Select only placements with these active statuses. */ + public List setActiveStatus(java.util.List activeStatus) { + this.activeStatus = activeStatus; + return this; + } - /** - * An accessor for creating requests from the Projects collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Projects.List request = dfareporting.projects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } - - /** - * The "projects" collection of methods. - */ - public class Projects { + /** Select only placements that belong to these advertisers. */ + @com.google.api.client.util.Key + private java.util.List advertiserIds; - /** - * Gets one project by ID. - * - * Create a request for the method "projects.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param id Project ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); - initialize(result); - return result; - } + /** Select only placements that belong to these advertisers. + */ + public java.util.List getAdvertiserIds() { + return advertiserIds; + } - public class Get extends DfareportingRequest { + /** Select only placements that belong to these advertisers. */ + public List setAdvertiserIds(java.util.List advertiserIds) { + this.advertiserIds = advertiserIds; + return this; + } - private static final String REST_PATH = "userprofiles/{+profileId}/projects/{+id}"; + /** Select only placements that belong to these campaigns. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placements that belong to these campaigns. + */ + public java.util.List getCampaignIds() { + return campaignIds; + } - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placements that belong to these campaigns. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; + } /** - * Gets one project by ID. - * - * Create a request for the method "projects.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param id Project ID. - * @since 1.13 + * Select only placements that are associated with these compatibilities. DISPLAY and + * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular + * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST + * standard. */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Project.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - } + @com.google.api.client.util.Key + private java.util.List compatibilities; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** Select only placements that are associated with these compatibilities. DISPLAY and + DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or + interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. + IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. + */ + public java.util.List getCompatibilities() { + return compatibilities; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** + * Select only placements that are associated with these compatibilities. DISPLAY and + * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular + * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST + * standard. + */ + public List setCompatibilities(java.util.List compatibilities) { + this.compatibilities = compatibilities; + return this; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Select only placements that are associated with these content categories. */ + @com.google.api.client.util.Key + private java.util.List contentCategoryIds; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** Select only placements that are associated with these content categories. + */ + public java.util.List getContentCategoryIds() { + return contentCategoryIds; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** Select only placements that are associated with these content categories. */ + public List setContentCategoryIds(java.util.List contentCategoryIds) { + this.contentCategoryIds = contentCategoryIds; + return this; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** Select only placements that are associated with these directory sites. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; + + /** Select only placements that are associated with these directory sites. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** Select only placements that are associated with these directory sites. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** Select only placements that belong to these placement groups. */ + @com.google.api.client.util.Key + private java.util.List groupIds; + + /** Select only placements that belong to these placement groups. + */ + public java.util.List getGroupIds() { + return groupIds; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** Select only placements that belong to these placement groups. */ + public List setGroupIds(java.util.List groupIds) { + this.groupIds = groupIds; + return this; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Select only placements with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only placements with these IDs. + */ + public java.util.List getIds() { + return ids; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** Select only placements with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String maxEndDate; + + /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMaxEndDate() { + return maxEndDate; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxEndDate(java.lang.String maxEndDate) { + this.maxEndDate = maxEndDate; + return this; } - /** User profile ID associated with this request. */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Integer maxResults; - /** User profile ID associated with this request. + /** Maximum number of results to return. [default: 1000] */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Project ID. */ + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String maxStartDate; - /** Project ID. + /** Select only placements or placement groups whose start date is on or before the specified + maxStartDate. The date should be formatted as "yyyy-MM-dd". */ - public java.lang.Long getId() { - return id; + public java.lang.String getMaxStartDate() { + return maxStartDate; } - /** Project ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxStartDate(java.lang.String maxStartDate) { + this.maxStartDate = maxStartDate; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of projects, possibly filtered. This method supports paging . - * - * Create a request for the method "projects.list". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @return the request - */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); - initialize(result); - return result; - } - - public class List extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/projects"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Retrieves a list of projects, possibly filtered. This method supports paging . - * - * Create a request for the method "projects.list". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @since 1.13 + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ProjectsListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @com.google.api.client.util.Key + private java.lang.String minEndDate; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** Select only placements or placement groups whose end date is on or after the specified minEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinEndDate() { + return minEndDate; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinEndDate(java.lang.String minEndDate) { + this.minEndDate = minEndDate; + return this; } - /** User profile ID associated with this request. */ + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String minStartDate; - /** User profile ID associated with this request. + /** Select only placements or placement groups whose start date is on or after the specified + minStartDate. The date should be formatted as "yyyy-MM-dd". */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getMinStartDate() { + return minStartDate; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinStartDate(java.lang.String minStartDate) { + this.minStartDate = minStartDate; return this; } - /** Select only projects with these advertiser IDs. */ + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key - private java.util.List advertiserIds; + private java.lang.String pageToken; - /** Select only projects with these advertiser IDs. + /** Value of the nextPageToken from the previous result page. */ - public java.util.List getAdvertiserIds() { - return advertiserIds; + public java.lang.String getPageToken() { + return pageToken; } - /** Select only projects with these advertiser IDs. */ - public List setAdvertiserIds(java.util.List advertiserIds) { - this.advertiserIds = advertiserIds; + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Select only projects with these IDs. */ + /** Select only placements with this payment source. */ @com.google.api.client.util.Key - private java.util.List ids; + private java.lang.String paymentSource; - /** Select only projects with these IDs. + /** Select only placements with this payment source. */ - public java.util.List getIds() { - return ids; + public java.lang.String getPaymentSource() { + return paymentSource; } - /** Select only projects with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; + /** Select only placements with this payment source. */ + public List setPaymentSource(java.lang.String paymentSource) { + this.paymentSource = paymentSource; return this; } - /** Maximum number of results to return. */ + /** Select only placements that are associated with these placement strategies. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.util.List placementStrategyIds; - /** Maximum number of results to return. [default: 1000] + /** Select only placements that are associated with these placement strategies. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.util.List getPlacementStrategyIds() { + return placementStrategyIds; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** Select only placements that are associated with these placement strategies. */ + public List setPlacementStrategyIds(java.util.List placementStrategyIds) { + this.placementStrategyIds = placementStrategyIds; return this; } - /** Value of the nextPageToken from the previous result page. */ + /** Select only placements with these pricing types. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.util.List pricingTypes; - /** Value of the nextPageToken from the previous result page. + /** Select only placements with these pricing types. */ - public java.lang.String getPageToken() { - return pageToken; + public java.util.List getPricingTypes() { + return pricingTypes; } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Select only placements with these pricing types. */ + public List setPricingTypes(java.util.List pricingTypes) { + this.pricingTypes = pricingTypes; return this; } /** - * Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, - * "project*2015" will return projects with names like "project June 2015", "project April - * 2015", or simply "project 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "project" will - * match projects with name "my project", "project 2015", or simply "project". + * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + * "placement*2015" will return placements with names like "placement June 2015", "placement + * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or simply "placement" . */ @com.google.api.client.util.Key private java.lang.String searchString; - /** Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, "project*2015" - will return projects with names like "project June 2015", "project April 2015", or simply "project - 2015". Most of the searches also add wildcards implicitly at the start and the end of the search - string. For example, a search string of "project" will match projects with name "my project", - "project 2015", or simply "project". + /** Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + "placement*2015" will return placements with names like "placement June 2015", "placement May + 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly at the start + and the end of the search string. For example, a search string of "placement" will match placements + with name "my placement", "placement 2015", or simply "placement" . */ public java.lang.String getSearchString() { return searchString; } /** - * Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, - * "project*2015" will return projects with names like "project June 2015", "project April - * 2015", or simply "project 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "project" will - * match projects with name "my project", "project 2015", or simply "project". + * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + * "placement*2015" will return placements with names like "placement June 2015", "placement + * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or simply "placement" . */ public List setSearchString(java.lang.String searchString) { this.searchString = searchString; return this; } - /** Field by which to sort the list. */ + /** Select only placements that are associated with these sites. */ @com.google.api.client.util.Key - private java.lang.String sortField; + private java.util.List siteIds; - /** Field by which to sort the list. [default: ID] + /** Select only placements that are associated with these sites. */ - public java.lang.String getSortField() { - return sortField; + public java.util.List getSiteIds() { + return siteIds; } - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; + /** Select only placements that are associated with these sites. */ + public List setSiteIds(java.util.List siteIds) { + this.siteIds = siteIds; return this; } - /** Order of sorted results. */ + /** Select only placements that are associated with these sizes. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.util.List sizeIds; + + /** Select only placements that are associated with these sizes. + */ + public java.util.List getSizeIds() { + return sizeIds; + } + + /** Select only placements that are associated with these sizes. */ + public List setSizeIds(java.util.List sizeIds) { + this.sizeIds = sizeIds; + return this; + } + + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; /** Order of sorted results. [default: ASCENDING] */ @@ -28428,134 +27592,107 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Regions collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Regions.List request = dfareporting.regions().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Regions regions() { - return new Regions(); - } - - /** - * The "regions" collection of methods. - */ - public class Regions { - /** - * Retrieves a list of regions. + * Updates an existing placement. This method supports patch semantics. * - * Create a request for the method "regions.list". + * Create a request for the method "placements.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/regions"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of regions. + * Updates an existing placement. This method supports patch semantics. * - * Create a request for the method "regions.list". + * Create a request for the method "placements.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RegionsListResponse.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -28569,150 +27706,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** Required. Placement ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the RemarketingListShares collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.RemarketingListShares.List request = dfareporting.remarketingListShares().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RemarketingListShares remarketingListShares() { - return new RemarketingListShares(); - } + /** Required. Placement ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "remarketingListShares" collection of methods. - */ - public class RemarketingListShares { + /** Required. Placement ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } /** - * Gets one remarketing list share by remarketing list ID. + * Updates an existing placement. * - * Create a request for the method "remarketingListShares.get". + * Create a request for the method "placements.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param remarketingListId Remarketing list ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long remarketingListId) throws java.io.IOException { - Get result = new Get(profileId, remarketingListId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern REMARKETING_LIST_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one remarketing list share by remarketing list ID. + * Updates an existing placement. * - * Create a request for the method "remarketingListShares.get". + * Create a request for the method "placements.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param remarketingListId Remarketing list ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long remarketingListId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListShare.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.remarketingListId = com.google.api.client.util.Preconditions.checkNotNull(remarketingListId, "Required parameter remarketingListId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -28726,133 +27843,150 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Remarketing list ID. */ - @com.google.api.client.util.Key - private java.lang.Long remarketingListId; - - /** Remarketing list ID. - */ - public java.lang.Long getRemarketingListId() { - return remarketingListId; - } - - /** Remarketing list ID. */ - public Get setRemarketingListId(java.lang.Long remarketingListId) { - this.remarketingListId = remarketingListId; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PlatformTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.PlatformTypes.List request = dfareporting.platformTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PlatformTypes platformTypes() { + return new PlatformTypes(); + } + + /** + * The "platformTypes" collection of methods. + */ + public class PlatformTypes { + /** - * Updates an existing remarketing list share. This method supports patch semantics. + * Gets one platform type by ID. * - * Create a request for the method "remarketingListShares.patch". + * Create a request for the method "platformTypes.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param id Platform type ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing remarketing list share. This method supports patch semantics. + * Gets one platform type by ID. * - * Create a request for the method "remarketingListShares.patch". + * Create a request for the method "platformTypes.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param id Platform type ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformType.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -28866,135 +28000,142 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. RemarketingList ID. */ + /** Platform type ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. RemarketingList ID. + /** Platform type ID. */ public java.lang.Long getId() { return id; } - /** Required. RemarketingList ID. */ - public Patch setId(java.lang.Long id) { + /** Platform type ID. */ + public Get setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates an existing remarketing list share. + * Retrieves a list of platform types. * - * Create a request for the method "remarketingListShares.update". + * Create a request for the method "platformTypes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { - Update result = new Update(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list share. + * Retrieves a list of platform types. * - * Create a request for the method "remarketingListShares.update". + * Create a request for the method "platformTypes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformTypesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; /** User profile ID associated with this request. */ @@ -29003,71 +28144,71 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RemarketingLists collection. + * An accessor for creating requests from the PostalCodes collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.RemarketingLists.List request = dfareporting.remarketingLists().list(parameters ...)}
+   *   {@code Dfareporting.PostalCodes.List request = dfareporting.postalCodes().list(parameters ...)}
    * 
* * @return the resource collection */ - public RemarketingLists remarketingLists() { - return new RemarketingLists(); + public PostalCodes postalCodes() { + return new PostalCodes(); } /** - * The "remarketingLists" collection of methods. + * The "postalCodes" collection of methods. */ - public class RemarketingLists { + public class PostalCodes { /** - * Gets one remarketing list by ID. + * Gets one postal code by ID. * - * Create a request for the method "remarketingLists.get". + * Create a request for the method "postalCodes.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Remarketing list ID. + * @param code Postal code ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long profileId, java.lang.String code) throws java.io.IOException { + Get result = new Get(profileId, code); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes/{+code}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern CODE_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one remarketing list by ID. + * Gets one postal code by ID. * - * Create a request for the method "remarketingLists.get". + * Create a request for the method "postalCodes.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

@@ -29075,13 +28216,18 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Remarketing list ID. + * @param code Postal code ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingList.class); + protected Get(java.lang.Long profileId, java.lang.String code) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCode.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + this.code = com.google.api.client.util.Preconditions.checkNotNull(code, "Required parameter code must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), + "Parameter code must conform to the pattern " + + "^[^/]+$"); + } } @Override @@ -29165,19 +28311,24 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Remarketing list ID. */ + /** Postal code ID. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String code; - /** Remarketing list ID. + /** Postal code ID. */ - public java.lang.Long getId() { - return id; + public java.lang.String getCode() { + return code; } - /** Remarketing list ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Postal code ID. */ + public Get setCode(java.lang.String code) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), + "Parameter code must conform to the pattern " + + "^[^/]+$"); + } + this.code = code; return this; } @@ -29187,103 +28338,110 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new remarketing list. + * Retrieves a list of postal codes. * - * Create a request for the method "remarketingLists.insert". + * Create a request for the method "postalCodes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new remarketing list. + * Retrieves a list of postal codes. * - * Create a request for the method "remarketingLists.insert". + * Create a request for the method "postalCodes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCodesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -29297,59 +28455,85 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Projects.List request = dfareporting.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + /** - * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. + * Gets one project by ID. * - * Create a request for the method "remarketingLists.list". + * Create a request for the method "projects.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param advertiserId Required. Select only remarketing lists owned by this advertiser. + * @param id Project ID. * @return the request */ - public List list(java.lang.Long profileId, java.lang.Long advertiserId) throws java.io.IOException { - List result = new List(profileId, advertiserId); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/projects/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. + * Gets one project by ID. * - * Create a request for the method "remarketingLists.list". + * Create a request for the method "projects.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param advertiserId Required. Select only remarketing lists owned by this advertiser. + * @param id Project ID. * @since 1.13 */ - protected List(java.lang.Long profileId, java.lang.Long advertiserId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListsListResponse.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Project.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.advertiserId = com.google.api.client.util.Preconditions.checkNotNull(advertiserId, "Required parameter advertiserId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -29363,58 +28547,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -29428,269 +28612,142 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Select only remarketing lists owned by this advertiser. */ - @com.google.api.client.util.Key - private java.lang.Long advertiserId; - - /** Required. Select only remarketing lists owned by this advertiser. - */ - public java.lang.Long getAdvertiserId() { - return advertiserId; - } - - /** Required. Select only remarketing lists owned by this advertiser. */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; - return this; - } - - /** Select only active or only inactive remarketing lists. */ - @com.google.api.client.util.Key - private java.lang.Boolean active; - - /** Select only active or only inactive remarketing lists. - */ - public java.lang.Boolean getActive() { - return active; - } - - /** Select only active or only inactive remarketing lists. */ - public List setActive(java.lang.Boolean active) { - this.active = active; - return this; - } - - /** Select only remarketing lists that have this floodlight activity ID. */ - @com.google.api.client.util.Key - private java.lang.Long floodlightActivityId; - - /** Select only remarketing lists that have this floodlight activity ID. - */ - public java.lang.Long getFloodlightActivityId() { - return floodlightActivityId; - } - - /** Select only remarketing lists that have this floodlight activity ID. */ - public List setFloodlightActivityId(java.lang.Long floodlightActivityId) { - this.floodlightActivityId = floodlightActivityId; - return this; - } - - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "remarketing list*2015" will return objects with names like "remarketing list June 2015", - * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my remarketing list", - * "remarketing list 2015", or simply "remarketing list". - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "remarketing - list*2015" will return objects with names like "remarketing list June 2015", "remarketing list - April 2015", or simply "remarketing list 2015". Most of the searches also add wildcards implicitly - at the start and the end of the search string. For example, a search string of "remarketing list" - will match objects with name "my remarketing list", "remarketing list 2015", or simply "remarketing - list". - */ - public java.lang.String getName() { - return name; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "remarketing list*2015" will return objects with names like "remarketing list June 2015", - * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my remarketing list", - * "remarketing list 2015", or simply "remarketing list". - */ - public List setName(java.lang.String name) { - this.name = name; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ + /** Project ID. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.Long id; - /** Order of sorted results. [default: ASCENDING] + /** Project ID. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.Long getId() { + return id; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Project ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates an existing remarketing list. This method supports patch semantics. + * Retrieves a list of projects, possibly filtered. This method supports paging . * - * Create a request for the method "remarketingLists.patch". + * Create a request for the method "projects.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/projects"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list. This method supports patch semantics. + * Retrieves a list of projects, possibly filtered. This method supports paging . * - * Create a request for the method "remarketingLists.patch". + * Create a request for the method "projects.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ProjectsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; /** User profile ID associated with this request. */ @@ -29699,130 +28756,272 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. RemarketingList ID. */ + /** Select only projects with these advertiser IDs. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.util.List advertiserIds; - /** Required. RemarketingList ID. + /** Select only projects with these advertiser IDs. */ - public java.lang.Long getId() { - return id; + public java.util.List getAdvertiserIds() { + return advertiserIds; } - /** Required. RemarketingList ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; + /** Select only projects with these advertiser IDs. */ + public List setAdvertiserIds(java.util.List advertiserIds) { + this.advertiserIds = advertiserIds; + return this; + } + + /** Select only projects with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only projects with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only projects with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, + * "project*2015" will return projects with names like "project June 2015", "project April + * 2015", or simply "project 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "project" will + * match projects with name "my project", "project 2015", or simply "project". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, "project*2015" + will return projects with names like "project June 2015", "project April 2015", or simply "project + 2015". Most of the searches also add wildcards implicitly at the start and the end of the search + string. For example, a search string of "project" will match projects with name "my project", + "project 2015", or simply "project". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, + * "project*2015" will return projects with names like "project June 2015", "project April + * 2015", or simply "project 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "project" will + * match projects with name "my project", "project 2015", or simply "project". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Regions collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Regions.List request = dfareporting.regions().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Regions regions() { + return new Regions(); + } + + /** + * The "regions" collection of methods. + */ + public class Regions { + /** - * Updates an existing remarketing list. + * Retrieves a list of regions. * - * Create a request for the method "remarketingLists.update". + * Create a request for the method "regions.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { - Update result = new Update(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/regions"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list. + * Retrieves a list of regions. * - * Create a request for the method "remarketingLists.update". + * Create a request for the method "regions.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RegionsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -29836,214 +29035,85 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } } /** - * An accessor for creating requests from the Reports collection. + * An accessor for creating requests from the RemarketingListShares collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Reports.List request = dfareporting.reports().list(parameters ...)}
+   *   {@code Dfareporting.RemarketingListShares.List request = dfareporting.remarketingListShares().list(parameters ...)}
    * 
* * @return the resource collection */ - public Reports reports() { - return new Reports(); + public RemarketingListShares remarketingListShares() { + return new RemarketingListShares(); } /** - * The "reports" collection of methods. + * The "remarketingListShares" collection of methods. */ - public class Reports { + public class RemarketingListShares { /** - * Deletes a report by its ID. + * Gets one remarketing list share by remarketing list ID. * - * Create a request for the method "reports.delete". + * Create a request for the method "remarketingListShares.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param remarketingListId Remarketing list ID. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Delete result = new Delete(profileId, reportId); + public Get get(java.lang.Long profileId, java.lang.Long remarketingListId) throws java.io.IOException { + Get result = new Get(profileId, remarketingListId); initialize(result); return result; } - public class Delete extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; - - /** - * Deletes a report by its ID. - * - * Create a request for the method "reports.delete". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @since 1.13 - */ - protected Delete(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** The Campaign Manager 360 user profile ID. */ - public Delete setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; - - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } - - /** The ID of the report. */ - public Delete setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } + public class Get extends DfareportingRequest { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves a report by its ID. - * - * Create a request for the method "reports.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Get result = new Get(profileId, reportId); - initialize(result); - return result; - } + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}"; - public class Get extends DfareportingRequest { + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + private final java.util.regex.Pattern REMARKETING_LIST_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a report by its ID. + * Gets one remarketing list share by remarketing list ID. * - * Create a request for the method "reports.get". + * Create a request for the method "remarketingListShares.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param remarketingListId Remarketing list ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Report.class); + protected Get(java.lang.Long profileId, java.lang.Long remarketingListId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListShare.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.remarketingListId = com.google.api.client.util.Preconditions.checkNotNull(remarketingListId, "Required parameter remarketingListId must be specified."); } @Override @@ -30111,35 +29181,35 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ + /** Remarketing list ID. */ @com.google.api.client.util.Key - private java.lang.Long reportId; + private java.lang.Long remarketingListId; - /** The ID of the report. + /** Remarketing list ID. */ - public java.lang.Long getReportId() { - return reportId; + public java.lang.Long getRemarketingListId() { + return remarketingListId; } - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; + /** Remarketing list ID. */ + public Get setRemarketingListId(java.lang.Long remarketingListId) { + this.remarketingListId = remarketingListId; return this; } @@ -30149,1170 +29219,2566 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a report. + * Updates an existing remarketing list share. This method supports patch semantics. * - * Create a request for the method "reports.insert". + * Create a request for the method "remarketingListShares.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Creates a report. + * Updates an existing remarketing list share. This method supports patch semantics. * - * Create a request for the method "reports.insert". + * Create a request for the method "remarketingListShares.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public Insert setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } + /** Required. RemarketingList ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** Required. RemarketingList ID. + */ + public java.lang.Long getId() { + return id; + } + + /** Required. RemarketingList ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves list of reports. + * Updates an existing remarketing list share. * - * Create a request for the method "reports.list". + * Create a request for the method "remarketingListShares.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves list of reports. + * Updates an existing remarketing list share. * - * Create a request for the method "reports.list". + * Create a request for the method "remarketingListShares.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ReportList.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public List setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 10] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } + } - /** The value of the nextToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + } - /** The value of the nextToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * An accessor for creating requests from the RemarketingLists collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.RemarketingLists.List request = dfareporting.remarketingLists().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RemarketingLists remarketingLists() { + return new RemarketingLists(); + } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * The "remarketingLists" collection of methods. + */ + public class RemarketingLists { - /** The scope that defines which results are returned. */ - @com.google.api.client.util.Key - private java.lang.String scope; + /** + * Gets one remarketing list by ID. + * + * Create a request for the method "remarketingLists.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Remarketing list ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } - /** The scope that defines which results are returned. [default: MINE] - */ - public java.lang.String getScope() { - return scope; - } + public class Get extends DfareportingRequest { - /** The scope that defines which results are returned. */ - public List setScope(java.lang.String scope) { - this.scope = scope; - return this; - } + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists/{+id}"; - /** The field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** The field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; - - /** Order of sorted results. [default: DESCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } - - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing report. This method supports patch semantics. - * - * Create a request for the method "reports.patch". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} - * @return the request - */ - public Patch patch(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Patch result = new Patch(profileId, reportId, content); - initialize(result); - return result; - } - - public class Patch extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing report. This method supports patch semantics. + * Gets one remarketing list by ID. * - * Create a request for the method "reports.patch". + * Create a request for the method "remarketingLists.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param id Remarketing list ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** The Campaign Manager 360 user profile ID. */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public Patch setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ + /** Remarketing list ID. */ @com.google.api.client.util.Key - private java.lang.Long reportId; + private java.lang.Long id; - /** The ID of the report. + /** Remarketing list ID. */ - public java.lang.Long getReportId() { - return reportId; + public java.lang.Long getId() { + return id; } - /** The ID of the report. */ - public Patch setReportId(java.lang.Long reportId) { - this.reportId = reportId; + /** Remarketing list ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Runs a report. + * Inserts a new remarketing list. * - * Create a request for the method "reports.run". + * Create a request for the method "remarketingLists.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Run run(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Run result = new Run(profileId, reportId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Run extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/run"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Runs a report. + * Inserts a new remarketing list. * - * Create a request for the method "reports.run". + * Create a request for the method "remarketingLists.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Run#execute()} method to invoke the remote operation.

- * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Run(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); } @Override - public Run set$Xgafv(java.lang.String $Xgafv) { - return (Run) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Run setAccessToken(java.lang.String accessToken) { - return (Run) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Run setAlt(java.lang.String alt) { - return (Run) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Run setCallback(java.lang.String callback) { - return (Run) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Run setFields(java.lang.String fields) { - return (Run) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Run setKey(java.lang.String key) { - return (Run) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Run setOauthToken(java.lang.String oauthToken) { - return (Run) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Run setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Run) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Run setQuotaUser(java.lang.String quotaUser) { - return (Run) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Run setUploadType(java.lang.String uploadType) { - return (Run) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Run setUploadProtocol(java.lang.String uploadProtocol) { - return (Run) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public Run setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; - - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } - - /** The ID of the report. */ - public Run setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } - - /** If set and true, tries to run the report synchronously. */ - @com.google.api.client.util.Key - private java.lang.Boolean synchronous; - - /** If set and true, tries to run the report synchronously. [default: false] - */ - public java.lang.Boolean getSynchronous() { - return synchronous; - } - - /** If set and true, tries to run the report synchronously. */ - public Run setSynchronous(java.lang.Boolean synchronous) { - this.synchronous = synchronous; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * If set and true, tries to run the report synchronously. - *

- */ - public boolean isSynchronous() { - if (synchronous == null || synchronous == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return synchronous; - } - @Override - public Run set(String parameterName, Object value) { - return (Run) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates a report. + * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. * - * Create a request for the method "reports.update". + * Create a request for the method "remarketingLists.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @return the request */ - public Update update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Update result = new Update(profileId, reportId, content); + public List list(java.lang.Long profileId, java.lang.Long advertiserId) throws java.io.IOException { + List result = new List(profileId, advertiserId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates a report. + * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. * - * Create a request for the method "reports.update". + * Create a request for the method "remarketingLists.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @since 1.13 */ - protected Update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + protected List(java.lang.Long profileId, java.lang.Long advertiserId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.advertiserId = com.google.api.client.util.Preconditions.checkNotNull(advertiserId, "Required parameter advertiserId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The Campaign Manager 360 user profile ID. */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public Update setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ + /** Required. Select only remarketing lists owned by this advertiser. */ @com.google.api.client.util.Key - private java.lang.Long reportId; + private java.lang.Long advertiserId; - /** The ID of the report. + /** Required. Select only remarketing lists owned by this advertiser. */ - public java.lang.Long getReportId() { - return reportId; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** The ID of the report. */ - public Update setReportId(java.lang.Long reportId) { - this.reportId = reportId; + /** Required. Select only remarketing lists owned by this advertiser. */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + /** Select only active or only inactive remarketing lists. */ + @com.google.api.client.util.Key + private java.lang.Boolean active; + + /** Select only active or only inactive remarketing lists. + */ + public java.lang.Boolean getActive() { + return active; } - } - /** - * An accessor for creating requests from the CompatibleFields collection. - * - *

The typical use is:

- *
-     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-     *   {@code Dfareporting.CompatibleFields.List request = dfareporting.compatibleFields().list(parameters ...)}
-     * 
- * - * @return the resource collection - */ - public CompatibleFields compatibleFields() { - return new CompatibleFields(); - } + /** Select only active or only inactive remarketing lists. */ + public List setActive(java.lang.Boolean active) { + this.active = active; + return this; + } - /** - * The "compatibleFields" collection of methods. - */ - public class CompatibleFields { + /** Select only remarketing lists that have this floodlight activity ID. */ + @com.google.api.client.util.Key + private java.lang.Long floodlightActivityId; - /** - * Returns the fields that are compatible to be selected in the respective sections of a report - * criteria, given the fields already selected in the input report and user permissions. - * - * Create a request for the method "compatibleFields.query". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Query#execute()} method to invoke the remote operation. - * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} - * @return the request + /** Select only remarketing lists that have this floodlight activity ID. */ - public Query query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Query result = new Query(profileId, content); - initialize(result); - return result; + public java.lang.Long getFloodlightActivityId() { + return floodlightActivityId; } - public class Query extends DfareportingRequest { + /** Select only remarketing lists that have this floodlight activity ID. */ + public List setFloodlightActivityId(java.lang.Long floodlightActivityId) { + this.floodlightActivityId = floodlightActivityId; + return this; + } - private static final String REST_PATH = "userprofiles/{profileId}/reports/compatiblefields/query"; + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; - /** - * Returns the fields that are compatible to be selected in the respective sections of a report - * criteria, given the fields already selected in the input report and user permissions. - * - * Create a request for the method "compatibleFields.query". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. - *

{@link - * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} - * @since 1.13 - */ - protected Query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.CompatibleFields.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public Query set$Xgafv(java.lang.String $Xgafv) { - return (Query) super.set$Xgafv($Xgafv); - } - - @Override - public Query setAccessToken(java.lang.String accessToken) { - return (Query) super.setAccessToken(accessToken); - } + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } - @Override - public Query setAlt(java.lang.String alt) { - return (Query) super.setAlt(alt); - } + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } - @Override - public Query setCallback(java.lang.String callback) { - return (Query) super.setCallback(callback); - } + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "remarketing list*2015" will return objects with names like "remarketing list June 2015", + * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my remarketing list", + * "remarketing list 2015", or simply "remarketing list". + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Query setFields(java.lang.String fields) { - return (Query) super.setFields(fields); - } + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "remarketing + list*2015" will return objects with names like "remarketing list June 2015", "remarketing list + April 2015", or simply "remarketing list 2015". Most of the searches also add wildcards implicitly + at the start and the end of the search string. For example, a search string of "remarketing list" + will match objects with name "my remarketing list", "remarketing list 2015", or simply "remarketing + list". + */ + public java.lang.String getName() { + return name; + } - @Override - public Query setKey(java.lang.String key) { - return (Query) super.setKey(key); - } + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "remarketing list*2015" will return objects with names like "remarketing list June 2015", + * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my remarketing list", + * "remarketing list 2015", or simply "remarketing list". + */ + public List setName(java.lang.String name) { + this.name = name; + return this; + } - @Override - public Query setOauthToken(java.lang.String oauthToken) { - return (Query) super.setOauthToken(oauthToken); - } + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Query setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Query) super.setPrettyPrint(prettyPrint); - } + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Query setQuotaUser(java.lang.String quotaUser) { - return (Query) super.setQuotaUser(quotaUser); - } + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Query setUploadType(java.lang.String uploadType) { - return (Query) super.setUploadType(uploadType); - } + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; - @Override - public Query setUploadProtocol(java.lang.String uploadProtocol) { - return (Query) super.setUploadProtocol(uploadProtocol); - } + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; + } - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; - /** The Campaign Manager 360 user profile ID. */ - public Query setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } - @Override - public Query set(String parameterName, Object value) { - return (Query) super.set(parameterName, value); - } + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Files collection. + * Updates an existing remarketing list. This method supports patch semantics. * - *

The typical use is:

- *
-     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-     *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
-     * 
+ * Create a request for the method "remarketingLists.patch". * - * @return the resource collection + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @return the request */ - public Files files() { - return new Files(); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); + initialize(result); + return result; } - /** - * The "files" collection of methods. - */ - public class Files { + public class Patch extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Updates an existing remarketing list. This method supports patch semantics. * - * Create a request for the method "files.get". + * Create a request for the method "remarketingLists.patch". * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param fileId The ID of the report file. - * @return the request + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @since 1.13 */ - public Get get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { - Get result = new Get(profileId, reportId, fileId); - initialize(result); - return result; + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files/{fileId}"; + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** - * Retrieves a report file by its report ID and file ID. This method supports media download. - * - * Create a request for the method "files.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param fileId The ID of the report file. - * @since 1.13 - */ - protected Get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); - initializeMediaDownload(); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); - } - - @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } - /** The Campaign Manager 360 user profile ID. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + /** Required. RemarketingList ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; + /** Required. RemarketingList ID. + */ + public java.lang.Long getId() { + return id; + } - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } + /** Required. RemarketingList ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Updates an existing remarketing list. + * + * Create a request for the method "remarketingLists.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @return the request + */ + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + Update result = new Update(profileId, content); + initialize(result); + return result; + } - /** The ID of the report file. */ - @com.google.api.client.util.Key - private java.lang.Long fileId; + public class Update extends DfareportingRequest { - /** The ID of the report file. - */ - public java.lang.Long getFileId() { - return fileId; - } + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; - /** The ID of the report file. */ - public Get setFileId(java.lang.Long fileId) { - this.fileId = fileId; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists files for a report. + * Updates an existing remarketing list. * - * Create a request for the method "files.list". + * Create a request for the method "remarketingLists.update". * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the parent report. - * @return the request + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @since 1.13 */ - public List list(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - List result = new List(profileId, reportId); - initialize(result); - return result; + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } - public class List extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files"; + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - /** - * Lists files for a report. - * - * Create a request for the method "files.list". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the parent report. - * @since 1.13 - */ - protected List(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Update setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Reports collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Reports.List request = dfareporting.reports().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Reports reports() { + return new Reports(); + } + + /** + * The "reports" collection of methods. + */ + public class Reports { + + /** + * Deletes a report by its ID. + * + * Create a request for the method "reports.delete". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @return the request + */ + public Delete delete(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Delete result = new Delete(profileId, reportId); + initialize(result); + return result; + } + + public class Delete extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + + /** + * Deletes a report by its ID. + * + * Create a request for the method "reports.delete". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @since 1.13 + */ + protected Delete(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Delete setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Delete setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves a report by its ID. + * + * Create a request for the method "reports.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Get result = new Get(profileId, reportId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + + /** + * Retrieves a report by its ID. + * + * Create a request for the method "reports.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a report. + * + * Create a request for the method "reports.insert". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; + } + + public class Insert extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports"; + + /** + * Creates a report. + * + * Create a request for the method "reports.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves list of reports. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @return the request + */ + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); + initialize(result); + return result; + } + + public class List extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports"; + + /** + * Retrieves list of reports. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @since 1.13 + */ + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ReportList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 10] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** The value of the nextToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value of the nextToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The scope that defines which results are returned. */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** The scope that defines which results are returned. [default: MINE] + */ + public java.lang.String getScope() { + return scope; + } + + /** The scope that defines which results are returned. */ + public List setScope(java.lang.String scope) { + this.scope = scope; + return this; + } + + /** The field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** The field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: DESCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing report. This method supports patch semantics. + * + * Create a request for the method "reports.patch". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Patch patch(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Patch result = new Patch(profileId, reportId, content); + initialize(result); + return result; + } + + public class Patch extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + + /** + * Updates an existing report. This method supports patch semantics. + * + * Create a request for the method "reports.patch". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Patch(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Patch setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Patch setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Runs a report. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @return the request + */ + public Run run(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Run result = new Run(profileId, reportId); + initialize(result); + return result; + } + + public class Run extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/run"; + + /** + * Runs a report. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Run#execute()} method to invoke the remote operation.

+ * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @since 1.13 + */ + protected Run(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); + } + + @Override + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); + } + + @Override + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); + } + + @Override + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); + } + + @Override + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); + } + + @Override + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); + } + + @Override + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); + } + + @Override + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); + } + + @Override + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); + } + + @Override + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); + } + + @Override + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Run setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Run setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** If set and true, tries to run the report synchronously. */ + @com.google.api.client.util.Key + private java.lang.Boolean synchronous; + + /** If set and true, tries to run the report synchronously. [default: false] + */ + public java.lang.Boolean getSynchronous() { + return synchronous; + } + + /** If set and true, tries to run the report synchronously. */ + public Run setSynchronous(java.lang.Boolean synchronous) { + this.synchronous = synchronous; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * If set and true, tries to run the report synchronously. + *

+ */ + public boolean isSynchronous() { + if (synchronous == null || synchronous == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return synchronous; + } + + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); + } + } + /** + * Updates a report. + * + * Create a request for the method "reports.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Update update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Update result = new Update(profileId, reportId, content); + initialize(result); + return result; + } + + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + + /** + * Updates a report. + * + * Create a request for the method "reports.update". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Update setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Update setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the CompatibleFields collection. + * + *

The typical use is:

+ *
+     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+     *   {@code Dfareporting.CompatibleFields.List request = dfareporting.compatibleFields().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public CompatibleFields compatibleFields() { + return new CompatibleFields(); + } + + /** + * The "compatibleFields" collection of methods. + */ + public class CompatibleFields { + + /** + * Returns the fields that are compatible to be selected in the respective sections of a report + * criteria, given the fields already selected in the input report and user permissions. + * + * Create a request for the method "compatibleFields.query". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Query query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Query result = new Query(profileId, content); + initialize(result); + return result; + } + + public class Query extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/compatiblefields/query"; + + /** + * Returns the fields that are compatible to be selected in the respective sections of a report + * criteria, given the fields already selected in the input report and user permissions. + * + * Create a request for the method "compatibleFields.query". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

{@link + * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.CompatibleFields.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } + + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } + + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } + + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } + + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } + + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } + + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } + + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } + + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } + + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } + + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Query setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Files collection. + * + *

The typical use is:

+ *
+     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+     *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Files files() { + return new Files(); + } + + /** + * The "files" collection of methods. + */ + public class Files { + + /** + * Retrieves a report file by its report ID and file ID. This method supports media download. + * + * Create a request for the method "files.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { + Get result = new Get(profileId, reportId, fileId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files/{fileId}"; + + /** + * Retrieves a report file by its report ID and file ID. This method supports media download. + * + * Create a request for the method "files.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** The ID of the report file. */ + @com.google.api.client.util.Key + private java.lang.Long fileId; + + /** The ID of the report file. + */ + public java.lang.Long getFileId() { + return fileId; + } + + /** The ID of the report file. */ + public Get setFileId(java.lang.Long fileId) { + this.fileId = fileId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists files for a report. + * + * Create a request for the method "files.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the parent report. + * @return the request + */ + public List list(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + List result = new List(profileId, reportId); + initialize(result); + return result; + } + + public class List extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files"; + + /** + * Lists files for a report. + * + * Create a request for the method "files.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the parent report. + * @since 1.13 + */ + protected List(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @@ -31331,340 +31797,854 @@ public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the parent report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the parent report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the parent report. */ + public List setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 10] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** The value of the nextToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value of the nextToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** The field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: DESCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Sites collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Sites.List request = dfareporting.sites().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Sites sites() { + return new Sites(); + } + + /** + * The "sites" collection of methods. + */ + public class Sites { + + /** + * Gets one site by ID. + * + * Create a request for the method "sites.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Site ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/sites/{+id}"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Gets one site by ID. + * + * Create a request for the method "sites.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Site ID. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Site.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Site ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + /** Site ID. + */ + public java.lang.Long getId() { + return id; + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + /** Site ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; + } - /** The Campaign Manager 360 user profile ID. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Inserts a new site. + * + * Create a request for the method "sites.insert". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @return the request + */ + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; + } - /** The ID of the parent report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; + public class Insert extends DfareportingRequest { - /** The ID of the parent report. - */ - public java.lang.Long getReportId() { - return reportId; - } + private static final String REST_PATH = "userprofiles/{+profileId}/sites"; - /** The ID of the parent report. */ - public List setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + /** + * Inserts a new site. + * + * Create a request for the method "sites.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @since 1.13 + */ + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } - /** Maximum number of results to return. [default: 10] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - /** The value of the nextToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - /** The value of the nextToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - /** The field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] - */ - public java.lang.String getSortField() { - return sortField; - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - /** The field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** Order of sorted results. [default: DESCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; - } + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; } + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } } - } - - /** - * An accessor for creating requests from the Sites collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Sites.List request = dfareporting.sites().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Sites sites() { - return new Sites(); - } - - /** - * The "sites" collection of methods. - */ - public class Sites { - /** - * Gets one site by ID. + * Retrieves a list of sites, possibly filtered. This method supports paging. * - * Create a request for the method "sites.get". + * Create a request for the method "sites.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Site ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sites/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/sites"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one site by ID. + * Retrieves a list of sites, possibly filtered. This method supports paging. * - * Create a request for the method "sites.get". + * Create a request for the method "sites.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Site ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Site.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SitesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsInStreamVideoPlacements; + + /** This search filter is no longer supported and will have no effect on the results returned. + */ + public java.lang.Boolean getAcceptsInStreamVideoPlacements() { + return acceptsInStreamVideoPlacements; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + public List setAcceptsInStreamVideoPlacements(java.lang.Boolean acceptsInStreamVideoPlacements) { + this.acceptsInStreamVideoPlacements = acceptsInStreamVideoPlacements; + return this; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsInterstitialPlacements; + + /** This search filter is no longer supported and will have no effect on the results returned. + */ + public java.lang.Boolean getAcceptsInterstitialPlacements() { + return acceptsInterstitialPlacements; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + public List setAcceptsInterstitialPlacements(java.lang.Boolean acceptsInterstitialPlacements) { + this.acceptsInterstitialPlacements = acceptsInterstitialPlacements; + return this; + } + + /** Select only sites that accept publisher paid placements. */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsPublisherPaidPlacements; + + /** Select only sites that accept publisher paid placements. + */ + public java.lang.Boolean getAcceptsPublisherPaidPlacements() { + return acceptsPublisherPaidPlacements; + } + + /** Select only sites that accept publisher paid placements. */ + public List setAcceptsPublisherPaidPlacements(java.lang.Boolean acceptsPublisherPaidPlacements) { + this.acceptsPublisherPaidPlacements = acceptsPublisherPaidPlacements; + return this; + } + + /** Select only AdWords sites. */ + @com.google.api.client.util.Key + private java.lang.Boolean adWordsSite; + + /** Select only AdWords sites. + */ + public java.lang.Boolean getAdWordsSite() { + return adWordsSite; + } + + /** Select only AdWords sites. */ + public List setAdWordsSite(java.lang.Boolean adWordsSite) { + this.adWordsSite = adWordsSite; + return this; + } + + /** Select only approved sites. */ + @com.google.api.client.util.Key + private java.lang.Boolean approved; + + /** Select only approved sites. + */ + public java.lang.Boolean getApproved() { + return approved; + } + + /** Select only approved sites. */ + public List setApproved(java.lang.Boolean approved) { + this.approved = approved; + return this; + } + + /** Select only sites with these campaign IDs. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; + + /** Select only sites with these campaign IDs. + */ + public java.util.List getCampaignIds() { + return campaignIds; + } + + /** Select only sites with these campaign IDs. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; + } + + /** Select only sites with these directory site IDs. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; + + /** Select only sites with these directory site IDs. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; + } + + /** Select only sites with these directory site IDs. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** Select only sites with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only sites with these IDs. + */ + public java.util.List getIds() { + return ids; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + /** Select only sites with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For + * example, "site*2015" will return objects with names like "site June 2015", "site April + * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "site" will match + * objects with name "my site", "site 2015", or simply "site". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, + "site*2015" will return objects with names like "site June 2015", "site April 2015", or simply + "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the + search string. For example, a search string of "site" will match objects with name "my site", "site + 2015", or simply "site". + */ + public java.lang.String getSearchString() { + return searchString; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For + * example, "site*2015" will return objects with names like "site June 2015", "site April + * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "site" will match + * objects with name "my site", "site 2015", or simply "site". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; } - /** User profile ID associated with this request. */ + /** Select only sites with this subaccount ID. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long subaccountId; - /** User profile ID associated with this request. + /** Select only sites with this subaccount ID. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getSubaccountId() { + return subaccountId; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Select only sites with this subaccount ID. */ + public List setSubaccountId(java.lang.Long subaccountId) { + this.subaccountId = subaccountId; return this; } - /** Site ID. */ + /** Select only sites that have not been mapped to a directory site. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Boolean unmappedSite; - /** Site ID. + /** Select only sites that have not been mapped to a directory site. */ - public java.lang.Long getId() { - return id; + public java.lang.Boolean getUnmappedSite() { + return unmappedSite; } - /** Site ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Select only sites that have not been mapped to a directory site. */ + public List setUnmappedSite(java.lang.Boolean unmappedSite) { + this.unmappedSite = unmappedSite; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Inserts a new site. + * Updates an existing site. This method supports patch semantics. * - * Create a request for the method "sites.insert". + * Create a request for the method "sites.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. Site ID. * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Patch extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{+profileId}/sites"; @@ -31672,78 +32652,80 @@ public class Insert extends DfareportingRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. Site ID. * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -31757,34 +32739,51 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } + /** Required. Site ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** Required. Site ID. + */ + public java.lang.Long getId() { + return id; + } + + /** Required. Site ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves a list of sites, possibly filtered. This method supports paging. + * Updates an existing site. * - * Create a request for the method "sites.list". + * Create a request for the method "sites.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{+profileId}/sites"; @@ -31792,86 +32791,78 @@ public class List extends DfareportingRequest - * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SitesListResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -31885,381 +32876,419 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsInStreamVideoPlacements; - - /** This search filter is no longer supported and will have no effect on the results returned. - */ - public java.lang.Boolean getAcceptsInStreamVideoPlacements() { - return acceptsInStreamVideoPlacements; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } + } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - public List setAcceptsInStreamVideoPlacements(java.lang.Boolean acceptsInStreamVideoPlacements) { - this.acceptsInStreamVideoPlacements = acceptsInStreamVideoPlacements; - return this; - } + } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsInterstitialPlacements; + /** + * An accessor for creating requests from the Sizes collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Sizes.List request = dfareporting.sizes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Sizes sizes() { + return new Sizes(); + } - /** This search filter is no longer supported and will have no effect on the results returned. - */ - public java.lang.Boolean getAcceptsInterstitialPlacements() { - return acceptsInterstitialPlacements; - } + /** + * The "sizes" collection of methods. + */ + public class Sizes { - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - public List setAcceptsInterstitialPlacements(java.lang.Boolean acceptsInterstitialPlacements) { - this.acceptsInterstitialPlacements = acceptsInterstitialPlacements; - return this; - } + /** + * Gets one size by ID. + * + * Create a request for the method "sizes.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Size ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } - /** Select only sites that accept publisher paid placements. */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsPublisherPaidPlacements; + public class Get extends DfareportingRequest { - /** Select only sites that accept publisher paid placements. - */ - public java.lang.Boolean getAcceptsPublisherPaidPlacements() { - return acceptsPublisherPaidPlacements; - } + private static final String REST_PATH = "userprofiles/{+profileId}/sizes/{+id}"; - /** Select only sites that accept publisher paid placements. */ - public List setAcceptsPublisherPaidPlacements(java.lang.Boolean acceptsPublisherPaidPlacements) { - this.acceptsPublisherPaidPlacements = acceptsPublisherPaidPlacements; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Select only AdWords sites. */ - @com.google.api.client.util.Key - private java.lang.Boolean adWordsSite; + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Select only AdWords sites. + /** + * Gets one size by ID. + * + * Create a request for the method "sizes.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Size ID. + * @since 1.13 */ - public java.lang.Boolean getAdWordsSite() { - return adWordsSite; + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Size.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - /** Select only AdWords sites. */ - public List setAdWordsSite(java.lang.Boolean adWordsSite) { - this.adWordsSite = adWordsSite; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Select only approved sites. */ - @com.google.api.client.util.Key - private java.lang.Boolean approved; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Select only approved sites. - */ - public java.lang.Boolean getApproved() { - return approved; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** Select only approved sites. */ - public List setApproved(java.lang.Boolean approved) { - this.approved = approved; - return this; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } - /** Select only sites with these campaign IDs. */ - @com.google.api.client.util.Key - private java.util.List campaignIds; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Select only sites with these campaign IDs. - */ - public java.util.List getCampaignIds() { - return campaignIds; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** Select only sites with these campaign IDs. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; - return this; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** Select only sites with these directory site IDs. */ - @com.google.api.client.util.Key - private java.util.List directorySiteIds; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Select only sites with these directory site IDs. - */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** Select only sites with these directory site IDs. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; - return this; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** Select only sites with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Select only sites with these IDs. - */ - public java.util.List getIds() { - return ids; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Select only sites with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Maximum number of results to return. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long profileId; - /** Maximum number of results to return. [default: 1000] + /** User profile ID associated with this request. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getProfileId() { + return profileId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** Value of the nextPageToken from the previous result page. */ + /** Size ID. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Long id; - /** Value of the nextPageToken from the previous result page. + /** Size ID. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Long getId() { + return id; } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Size ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Inserts a new size. + * + * Create a request for the method "sizes.insert". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @return the request + */ + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; + } + + public class Insert extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For - * example, "site*2015" will return objects with names like "site June 2015", "site April - * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". + * Inserts a new size. + * + * Create a request for the method "sizes.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String searchString; + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Size.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } - /** Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, - "site*2015" will return objects with names like "site June 2015", "site April 2015", or simply - "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the - search string. For example, a search string of "site" will match objects with name "my site", "site - 2015", or simply "site". - */ - public java.lang.String getSearchString() { - return searchString; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } - /** - * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For - * example, "site*2015" will return objects with names like "site June 2015", "site April - * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } - /** Select only sites with this subaccount ID. */ - @com.google.api.client.util.Key - private java.lang.Long subaccountId; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** Select only sites with this subaccount ID. - */ - public java.lang.Long getSubaccountId() { - return subaccountId; + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } - /** Select only sites with this subaccount ID. */ - public List setSubaccountId(java.lang.Long subaccountId) { - this.subaccountId = subaccountId; - return this; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - /** Select only sites that have not been mapped to a directory site. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Boolean unmappedSite; + private java.lang.Long profileId; - /** Select only sites that have not been mapped to a directory site. + /** User profile ID associated with this request. */ - public java.lang.Boolean getUnmappedSite() { - return unmappedSite; + public java.lang.Long getProfileId() { + return profileId; } - /** Select only sites that have not been mapped to a directory site. */ - public List setUnmappedSite(java.lang.Boolean unmappedSite) { - this.unmappedSite = unmappedSite; + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates an existing site. This method supports patch semantics. + * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include + * values not currently in use by your account. Due to this, the list of sizes returned by this + * method may differ from the list seen in the Trafficking UI. * - * Create a request for the method "sites.patch". + * Create a request for the method "sizes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Site ID. - * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sites"; + private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing site. This method supports patch semantics. + * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may + * include values not currently in use by your account. Due to this, the list of sizes returned by + * this method may differ from the list seen in the Trafficking UI. * - * Create a request for the method "sites.patch". + * Create a request for the method "sizes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Site ID. - * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SizesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -32273,222 +33302,315 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Site ID. */ + /** Select only sizes with this height. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Integer height; - /** Required. Site ID. + /** Select only sizes with this height. */ - public java.lang.Long getId() { - return id; + public java.lang.Integer getHeight() { + return height; } - /** Required. Site ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; + /** Select only sizes with this height. */ + public List setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** Select only IAB standard sizes. */ + @com.google.api.client.util.Key + private java.lang.Boolean iabStandard; + + /** Select only IAB standard sizes. + */ + public java.lang.Boolean getIabStandard() { + return iabStandard; + } + + /** Select only IAB standard sizes. */ + public List setIabStandard(java.lang.Boolean iabStandard) { + this.iabStandard = iabStandard; + return this; + } + + /** Select only sizes with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only sizes with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only sizes with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** Select only sizes with this width. */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** Select only sizes with this width. + */ + public java.lang.Integer getWidth() { + return width; + } + + /** Select only sizes with this width. */ + public List setWidth(java.lang.Integer width) { + this.width = width; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the StudioCreativeAssets collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.StudioCreativeAssets.List request = dfareporting.studioCreativeAssets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public StudioCreativeAssets studioCreativeAssets() { + return new StudioCreativeAssets(); + } + + /** + * The "studioCreativeAssets" collection of methods. + */ + public class StudioCreativeAssets { + /** - * Updates an existing site. + * Inserts a new studio creative asset. * - * Create a request for the method "sites.update". + * Create a request for the method "studioCreativeAssets.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Update extends DfareportingRequest { + /** + * Inserts a new studio creative asset. + * + * Create a request for the method "studioCreativeAssets.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + *

+ * This method should be used for uploading media content. + *

+ * + * + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Insert insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Insert result = new Insert(content, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "userprofiles/{+profileId}/sites"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creativeAssets"; /** - * Updates an existing site. + * Inserts a new studio creative asset. * - * Create a request for the method "sites.update". + * Create a request for the method "studioCreativeAssets.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + protected Insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreativeAssetsResponse.class); } - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + /** + * Inserts a new studio creative asset. + * + * Create a request for the method "studioCreativeAssets.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + *

+ * This constructor should be used for uploading media content. + *

+ * + * + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(Dfareporting.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreativeAssetsResponse.class); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } - /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Sizes collection. + * An accessor for creating requests from the StudioCreatives collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Sizes.List request = dfareporting.sizes().list(parameters ...)}
+   *   {@code Dfareporting.StudioCreatives.List request = dfareporting.studioCreatives().list(parameters ...)}
    * 
* * @return the resource collection */ - public Sizes sizes() { - return new Sizes(); + public StudioCreatives studioCreatives() { + return new StudioCreatives(); } /** - * The "sizes" collection of methods. + * The "studioCreatives" collection of methods. */ - public class Sizes { + public class StudioCreatives { /** - * Gets one size by ID. + * Gets a studio creative by ID. * - * Create a request for the method "sizes.get". + * Create a request for the method "studioCreatives.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param id Size ID. + * @param studioCreativeId Required. Studio creative ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long studioCreativeId) throws java.io.IOException { + Get result = new Get(studioCreativeId); initialize(result); return result; } - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/sizes/{+id}"; + public class Get extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creatives/{+studioCreativeId}"; - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern STUDIO_CREATIVE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one size by ID. + * Gets a studio creative by ID. * - * Create a request for the method "sizes.get". + * Create a request for the method "studioCreatives.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param id Size ID. + * @param studioCreativeId Required. Studio creative ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Size.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + protected Get(java.lang.Long studioCreativeId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.StudioCreative.class); + this.studioCreativeId = com.google.api.client.util.Preconditions.checkNotNull(studioCreativeId, "Required parameter studioCreativeId must be specified."); } @Override @@ -32556,35 +33678,19 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** Size ID. */ + /** Required. Studio creative ID. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long studioCreativeId; - /** Size ID. + /** Required. Studio creative ID. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; } - /** Size ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Required. Studio creative ID. */ + public Get setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; return this; } @@ -32594,34 +33700,30 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new size. + * Inserts a new studio creative. * - * Create a request for the method "sizes.insert". + * Create a request for the method "studioCreatives.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @param content the {@link com.google.api.services.dfareporting.model.StudioCreative} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.StudioCreative content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creatives"; /** - * Inserts a new size. + * Inserts a new studio creative. * - * Create a request for the method "sizes.insert". + * Create a request for the method "studioCreatives.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -32629,13 +33731,11 @@ public class Insert extends DfareportingRequest * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @param content the {@link com.google.api.services.dfareporting.model.StudioCreative} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Size.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + protected Insert(com.google.api.services.dfareporting.model.StudioCreative content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreative.class); } @Override @@ -32693,221 +33793,128 @@ public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include - * values not currently in use by your account. Due to this, the list of sizes returned by this - * method may differ from the list seen in the Trafficking UI. + * Publish for a studio creative. * - * Create a request for the method "sizes.list". + * Create a request for the method "studioCreatives.publish". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Publish#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param studioCreativeId Required. Studio creative ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Publish publish(java.lang.Long studioCreativeId) throws java.io.IOException { + Publish result = new Publish(studioCreativeId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Publish extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + private static final String REST_PATH = "studio/creatives/{+studioCreativeId}/publish"; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = + private final java.util.regex.Pattern STUDIO_CREATIVE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may - * include values not currently in use by your account. Due to this, the list of sizes returned by - * this method may differ from the list seen in the Trafficking UI. + * Publish for a studio creative. * - * Create a request for the method "sizes.list". + * Create a request for the method "studioCreatives.publish". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Publish#execute()} method to invoke the remote operation. + *

{@link + * Publish#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param studioCreativeId Required. Studio creative ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SizesListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Publish(java.lang.Long studioCreativeId) { + super(Dfareporting.this, "POST", REST_PATH, null, Void.class); + this.studioCreativeId = com.google.api.client.util.Preconditions.checkNotNull(studioCreativeId, "Required parameter studioCreativeId must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Publish set$Xgafv(java.lang.String $Xgafv) { + return (Publish) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Publish setAccessToken(java.lang.String accessToken) { + return (Publish) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Publish setAlt(java.lang.String alt) { + return (Publish) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Publish setCallback(java.lang.String callback) { + return (Publish) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Publish setFields(java.lang.String fields) { + return (Publish) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Publish setKey(java.lang.String key) { + return (Publish) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Publish setOauthToken(java.lang.String oauthToken) { + return (Publish) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Publish setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Publish) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Publish setQuotaUser(java.lang.String quotaUser) { + return (Publish) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Publish setUploadType(java.lang.String uploadType) { + return (Publish) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** Select only sizes with this height. */ - @com.google.api.client.util.Key - private java.lang.Integer height; - - /** Select only sizes with this height. - */ - public java.lang.Integer getHeight() { - return height; - } - - /** Select only sizes with this height. */ - public List setHeight(java.lang.Integer height) { - this.height = height; - return this; - } - - /** Select only IAB standard sizes. */ - @com.google.api.client.util.Key - private java.lang.Boolean iabStandard; - - /** Select only IAB standard sizes. - */ - public java.lang.Boolean getIabStandard() { - return iabStandard; - } - - /** Select only IAB standard sizes. */ - public List setIabStandard(java.lang.Boolean iabStandard) { - this.iabStandard = iabStandard; - return this; - } - - /** Select only sizes with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only sizes with these IDs. - */ - public java.util.List getIds() { - return ids; - } - - /** Select only sizes with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + public Publish setUploadProtocol(java.lang.String uploadProtocol) { + return (Publish) super.setUploadProtocol(uploadProtocol); } - /** Select only sizes with this width. */ + /** Required. Studio creative ID. */ @com.google.api.client.util.Key - private java.lang.Integer width; + private java.lang.Long studioCreativeId; - /** Select only sizes with this width. + /** Required. Studio creative ID. */ - public java.lang.Integer getWidth() { - return width; + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; } - /** Select only sizes with this width. */ - public List setWidth(java.lang.Integer width) { - this.width = width; + /** Required. Studio creative ID. */ + public Publish setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Publish set(String parameterName, Object value) { + return (Publish) super.set(parameterName, value); } } diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java new file mode 100644 index 00000000000..fc01273f985 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java @@ -0,0 +1,121 @@ +/* + * 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.dfareporting.model; + +/** + * Request message for DfareportingStudioCreativeAssets.Insert. + * + *

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 Campaign Manager 360 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 DfareportingStudioCreativeAssetsInsertRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCreativeId; + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; + } + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * @param studioCreativeId studioCreativeId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; + return this; + } + + @Override + public DfareportingStudioCreativeAssetsInsertRequest set(String fieldName, Object value) { + return (DfareportingStudioCreativeAssetsInsertRequest) super.set(fieldName, value); + } + + @Override + public DfareportingStudioCreativeAssetsInsertRequest clone() { + return (DfareportingStudioCreativeAssetsInsertRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java index fb3b2127af2..2ae06f35992 100644 --- a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java @@ -19,7 +19,7 @@ /** * Dynamic profile ID is required for dynamic feed insert as the current GPA API only can create a * dynamic feed under profile context,even though the dynnamic feed itself don't need the dynamic - * profile id. See go/cm3-dco-display-api-interface + * profile id. See * *

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 Campaign Manager 360 API. For a detailed explanation diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java new file mode 100644 index 00000000000..e62cb7343f9 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java @@ -0,0 +1,67 @@ +/* + * 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.dfareporting.model; + +/** + * Response message for DfareportingDynamicProfiles.GenerateCode. + * + *

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 Campaign Manager 360 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 DynamicProfileGenerateCodeResponse extends com.google.api.client.json.GenericJson { + + /** + * Generated code for the dynamic profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Generated code for the dynamic profile. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * Generated code for the dynamic profile. + * @param code code or {@code null} for none + */ + public DynamicProfileGenerateCodeResponse setCode(java.lang.String code) { + this.code = code; + return this; + } + + @Override + public DynamicProfileGenerateCodeResponse set(String fieldName, Object value) { + return (DynamicProfileGenerateCodeResponse) super.set(fieldName, value); + } + + @Override + public DynamicProfileGenerateCodeResponse clone() { + return (DynamicProfileGenerateCodeResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java new file mode 100644 index 00000000000..48e5c6b5d02 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java @@ -0,0 +1,361 @@ +/* + * 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.dfareporting.model; + +/** + * Contains studio creative information. + * + *

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 Campaign Manager 360 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 StudioCreative extends com.google.api.client.json.GenericJson { + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List assetIds; + + /** + * Backup image asset ID of this studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long backupImageAssetId; + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo createdInfo; + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StudioCreativeDimension dimension; + + /** + * Dynamic profile ID of this studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long dynamicProfileId; + + /** + * Format of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String format; + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long id; + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo lastModifiedInfo; + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Status of this studio creative. It is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCampaignId; + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * @return value or {@code null} for none + */ + public java.util.List getAssetIds() { + return assetIds; + } + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * @param assetIds assetIds or {@code null} for none + */ + public StudioCreative setAssetIds(java.util.List assetIds) { + this.assetIds = assetIds; + return this; + } + + /** + * Backup image asset ID of this studio creative. + * @return value or {@code null} for none + */ + public java.lang.Long getBackupImageAssetId() { + return backupImageAssetId; + } + + /** + * Backup image asset ID of this studio creative. + * @param backupImageAssetId backupImageAssetId or {@code null} for none + */ + public StudioCreative setBackupImageAssetId(java.lang.Long backupImageAssetId) { + this.backupImageAssetId = backupImageAssetId; + return this; + } + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getCreatedInfo() { + return createdInfo; + } + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * @param createdInfo createdInfo or {@code null} for none + */ + public StudioCreative setCreatedInfo(LastModifiedInfo createdInfo) { + this.createdInfo = createdInfo; + return this; + } + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * @return value or {@code null} for none + */ + public StudioCreativeDimension getDimension() { + return dimension; + } + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * @param dimension dimension or {@code null} for none + */ + public StudioCreative setDimension(StudioCreativeDimension dimension) { + this.dimension = dimension; + return this; + } + + /** + * Dynamic profile ID of this studio creative. + * @return value or {@code null} for none + */ + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; + } + + /** + * Dynamic profile ID of this studio creative. + * @param dynamicProfileId dynamicProfileId or {@code null} for none + */ + public StudioCreative setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; + return this; + } + + /** + * Format of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.String getFormat() { + return format; + } + + /** + * Format of this studio creative. This is a required field on insertion. + * @param format format or {@code null} for none + */ + public StudioCreative setFormat(java.lang.String format) { + this.format = format; + return this; + } + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * @param id id or {@code null} for none + */ + public StudioCreative setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getLastModifiedInfo() { + return lastModifiedInfo; + } + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * @param lastModifiedInfo lastModifiedInfo or {@code null} for none + */ + public StudioCreative setLastModifiedInfo(LastModifiedInfo lastModifiedInfo) { + this.lastModifiedInfo = lastModifiedInfo; + return this; + } + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * @param name name or {@code null} for none + */ + public StudioCreative setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Status of this studio creative. It is a read-only field. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. Status of this studio creative. It is a read-only field. + * @param status status or {@code null} for none + */ + public StudioCreative setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public StudioCreative setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public StudioCreative setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCampaignId() { + return studioCampaignId; + } + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * @param studioCampaignId studioCampaignId or {@code null} for none + */ + public StudioCreative setStudioCampaignId(java.lang.Long studioCampaignId) { + this.studioCampaignId = studioCampaignId; + return this; + } + + @Override + public StudioCreative set(String fieldName, Object value) { + return (StudioCreative) super.set(fieldName, value); + } + + @Override + public StudioCreative clone() { + return (StudioCreative) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java new file mode 100644 index 00000000000..5b9adfacd0f --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java @@ -0,0 +1,295 @@ +/* + * 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.dfareporting.model; + +/** + * Contains studio creative asset information. + * + *

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 Campaign Manager 360 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 StudioCreativeAsset extends com.google.api.client.json.GenericJson { + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo createInfo; + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filename; + + /** + * The filesize of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long filesize; + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long id; + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo lastModifiedInfo; + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCreativeId; + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The processing data of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoProcessingData videoProcessingData; + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getCreateInfo() { + return createInfo; + } + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * @param createInfo createInfo or {@code null} for none + */ + public StudioCreativeAsset setCreateInfo(LastModifiedInfo createInfo) { + this.createInfo = createInfo; + return this; + } + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * @return value or {@code null} for none + */ + public java.lang.String getFilename() { + return filename; + } + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * @param filename filename or {@code null} for none + */ + public StudioCreativeAsset setFilename(java.lang.String filename) { + this.filename = filename; + return this; + } + + /** + * The filesize of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public java.lang.Long getFilesize() { + return filesize; + } + + /** + * The filesize of the studio creative asset. This is a read-only field. + * @param filesize filesize or {@code null} for none + */ + public StudioCreativeAsset setFilesize(java.lang.Long filesize) { + this.filesize = filesize; + return this; + } + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * @param id id or {@code null} for none + */ + public StudioCreativeAsset setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getLastModifiedInfo() { + return lastModifiedInfo; + } + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * @param lastModifiedInfo lastModifiedInfo or {@code null} for none + */ + public StudioCreativeAsset setLastModifiedInfo(LastModifiedInfo lastModifiedInfo) { + this.lastModifiedInfo = lastModifiedInfo; + return this; + } + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public StudioCreativeAsset setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public StudioCreativeAsset setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; + } + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * @param studioCreativeId studioCreativeId or {@code null} for none + */ + public StudioCreativeAsset setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; + return this; + } + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * @param type type or {@code null} for none + */ + public StudioCreativeAsset setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The processing data of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public VideoProcessingData getVideoProcessingData() { + return videoProcessingData; + } + + /** + * The processing data of the studio creative asset. This is a read-only field. + * @param videoProcessingData videoProcessingData or {@code null} for none + */ + public StudioCreativeAsset setVideoProcessingData(VideoProcessingData videoProcessingData) { + this.videoProcessingData = videoProcessingData; + return this; + } + + @Override + public StudioCreativeAsset set(String fieldName, Object value) { + return (StudioCreativeAsset) super.set(fieldName, value); + } + + @Override + public StudioCreativeAsset clone() { + return (StudioCreativeAsset) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java new file mode 100644 index 00000000000..34c87a790a1 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java @@ -0,0 +1,73 @@ +/* + * 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.dfareporting.model; + +/** + * Response message for DfareportingStudioCreativeAssets.Insert. + * + *

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 Campaign Manager 360 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 StudioCreativeAssetsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of studio creative assets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List assets; + + static { + // hack to force ProGuard to consider StudioCreativeAsset used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(StudioCreativeAsset.class); + } + + /** + * The list of studio creative assets. + * @return value or {@code null} for none + */ + public java.util.List getAssets() { + return assets; + } + + /** + * The list of studio creative assets. + * @param assets assets or {@code null} for none + */ + public StudioCreativeAssetsResponse setAssets(java.util.List assets) { + this.assets = assets; + return this; + } + + @Override + public StudioCreativeAssetsResponse set(String fieldName, Object value) { + return (StudioCreativeAssetsResponse) super.set(fieldName, value); + } + + @Override + public StudioCreativeAssetsResponse clone() { + return (StudioCreativeAssetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java new file mode 100644 index 00000000000..25cfde54454 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java @@ -0,0 +1,91 @@ +/* + * 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.dfareporting.model; + +/** + * Dimension information for a studio creative. + * + *

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 Campaign Manager 360 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 StudioCreativeDimension extends com.google.api.client.json.GenericJson { + + /** + * Height of the studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer height; + + /** + * Width of the studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** + * Height of the studio creative. + * @return value or {@code null} for none + */ + public java.lang.Integer getHeight() { + return height; + } + + /** + * Height of the studio creative. + * @param height height or {@code null} for none + */ + public StudioCreativeDimension setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** + * Width of the studio creative. + * @return value or {@code null} for none + */ + public java.lang.Integer getWidth() { + return width; + } + + /** + * Width of the studio creative. + * @param width width or {@code null} for none + */ + public StudioCreativeDimension setWidth(java.lang.Integer width) { + this.width = width; + return this; + } + + @Override + public StudioCreativeDimension set(String fieldName, Object value) { + return (StudioCreativeDimension) super.set(fieldName, value); + } + + @Override + public StudioCreativeDimension clone() { + return (StudioCreativeDimension) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java new file mode 100644 index 00000000000..86e7b01fab5 --- /dev/null +++ b/clients/google-api-services-dfareporting/v4/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java @@ -0,0 +1,91 @@ +/* + * 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.dfareporting.model; + +/** + * Contains processing data for a video asset. + * + *

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 Campaign Manager 360 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 VideoProcessingData extends com.google.api.client.json.GenericJson { + + /** + * For a FAILED processing state, the error reason discovered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorReason; + + /** + * Output only. The processing state of the studio creative asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String processingState; + + /** + * For a FAILED processing state, the error reason discovered. + * @return value or {@code null} for none + */ + public java.lang.String getErrorReason() { + return errorReason; + } + + /** + * For a FAILED processing state, the error reason discovered. + * @param errorReason errorReason or {@code null} for none + */ + public VideoProcessingData setErrorReason(java.lang.String errorReason) { + this.errorReason = errorReason; + return this; + } + + /** + * Output only. The processing state of the studio creative asset. + * @return value or {@code null} for none + */ + public java.lang.String getProcessingState() { + return processingState; + } + + /** + * Output only. The processing state of the studio creative asset. + * @param processingState processingState or {@code null} for none + */ + public VideoProcessingData setProcessingState(java.lang.String processingState) { + this.processingState = processingState; + return this; + } + + @Override + public VideoProcessingData set(String fieldName, Object value) { + return (VideoProcessingData) super.set(fieldName, value); + } + + @Override + public VideoProcessingData clone() { + return (VideoProcessingData) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v4/2.0.0/pom.xml b/clients/google-api-services-dfareporting/v4/2.0.0/pom.xml index 7de958aac25..9b4ae1c9093 100644 --- a/clients/google-api-services-dfareporting/v4/2.0.0/pom.xml +++ b/clients/google-api-services-dfareporting/v4/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-dfareporting - v4-rev20250902-2.0.0 - Campaign Manager 360 API v4-rev20250902-2.0.0 + v4-rev20251009-2.0.0 + Campaign Manager 360 API v4-rev20251009-2.0.0 jar 2011 diff --git a/clients/google-api-services-dfareporting/v4/README.md b/clients/google-api-services-dfareporting/v4/README.md index 62039c8229b..e04c8da8fa4 100644 --- a/clients/google-api-services-dfareporting/v4/README.md +++ b/clients/google-api-services-dfareporting/v4/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dfareporting - v4-rev20250902-2.0.0 + v4-rev20251009-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dfareporting:v4-rev20250902-2.0.0' + implementation 'com.google.apis:google-api-services-dfareporting:v4-rev20251009-2.0.0' } ``` diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/README.md b/clients/google-api-services-dfareporting/v5/2.0.0/README.md index 29398c620d2..c16a3f1120c 100644 --- a/clients/google-api-services-dfareporting/v5/2.0.0/README.md +++ b/clients/google-api-services-dfareporting/v5/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dfareporting - v5-rev20250902-2.0.0 + v5-rev20251009-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dfareporting:v5-rev20250902-2.0.0' + implementation 'com.google.apis:google-api-services-dfareporting:v5-rev20251009-2.0.0' } ``` diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/Dfareporting.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/Dfareporting.java index 966ce64c9db..304a82c5023 100644 --- a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/Dfareporting.java +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/Dfareporting.java @@ -16590,281 +16590,150 @@ public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the DynamicProfiles collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.DynamicProfiles.List request = dfareporting.dynamicProfiles().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public DynamicProfiles dynamicProfiles() { - return new DynamicProfiles(); - } - - /** - * The "dynamicProfiles" collection of methods. - */ - public class DynamicProfiles { - /** - * Gets a dynamic profile by ID. + * Retransforms a dynamic feed. * - * Create a request for the method "dynamicProfiles.get". + * Create a request for the method "dynamicFeeds.retransform". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Retransform#execute()} method to invoke the remote operation. * - * @param dynamicProfileId Required. Dynamic profile ID. + * @param dynamicFeedId Required. Dynamic feed ID. * @return the request */ - public Get get(java.lang.Long dynamicProfileId) throws java.io.IOException { - Get result = new Get(dynamicProfileId); + public Retransform retransform(java.lang.Long dynamicFeedId) throws java.io.IOException { + Retransform result = new Retransform(dynamicFeedId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Retransform extends DfareportingRequest { - private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}"; + private static final String REST_PATH = "studio/dynamicFeeds/{+dynamicFeedId}/retransform"; - private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_FEED_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets a dynamic profile by ID. + * Retransforms a dynamic feed. * - * Create a request for the method "dynamicProfiles.get". + * Create a request for the method "dynamicFeeds.retransform". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Retransform#execute()} method to invoke the remote + * operation.

{@link + * Retransform#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param dynamicProfileId Required. Dynamic profile ID. + * @param dynamicFeedId Required. Dynamic feed ID. * @since 1.13 */ - protected Get(java.lang.Long dynamicProfileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfile.class); - this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Retransform(java.lang.Long dynamicFeedId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicFeed.class); + this.dynamicFeedId = com.google.api.client.util.Preconditions.checkNotNull(dynamicFeedId, "Required parameter dynamicFeedId must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Retransform set$Xgafv(java.lang.String $Xgafv) { + return (Retransform) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Retransform setAccessToken(java.lang.String accessToken) { + return (Retransform) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Retransform setAlt(java.lang.String alt) { + return (Retransform) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Retransform setCallback(java.lang.String callback) { + return (Retransform) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Retransform setFields(java.lang.String fields) { + return (Retransform) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Retransform setKey(java.lang.String key) { + return (Retransform) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Retransform setOauthToken(java.lang.String oauthToken) { + return (Retransform) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Retransform setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retransform) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Retransform setQuotaUser(java.lang.String quotaUser) { + return (Retransform) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Retransform setUploadType(java.lang.String uploadType) { + return (Retransform) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Retransform setUploadProtocol(java.lang.String uploadProtocol) { + return (Retransform) super.setUploadProtocol(uploadProtocol); } - /** Required. Dynamic profile ID. */ + /** Required. Dynamic feed ID. */ @com.google.api.client.util.Key - private java.lang.Long dynamicProfileId; + private java.lang.Long dynamicFeedId; - /** Required. Dynamic profile ID. + /** Required. Dynamic feed ID. */ - public java.lang.Long getDynamicProfileId() { - return dynamicProfileId; + public java.lang.Long getDynamicFeedId() { + return dynamicFeedId; } - /** Required. Dynamic profile ID. */ - public Get setDynamicProfileId(java.lang.Long dynamicProfileId) { - this.dynamicProfileId = dynamicProfileId; + /** Required. Dynamic feed ID. */ + public Retransform setDynamicFeedId(java.lang.Long dynamicFeedId) { + this.dynamicFeedId = dynamicFeedId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Inserts a new dynamic profile. - * - * Create a request for the method "dynamicProfiles.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} - * @return the request - */ - public Insert insert(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { - Insert result = new Insert(content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "studio/dynamicProfiles"; - - /** - * Inserts a new dynamic profile. - * - * Create a request for the method "dynamicProfiles.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#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.dfareporting.model.DynamicProfile} - * @since 1.13 - */ - protected Insert(com.google.api.services.dfareporting.model.DynamicProfile content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Retransform set(String parameterName, Object value) { + return (Retransform) super.set(parameterName, value); } } /** - * Updates an existing dynamic profile. + * Updates a new dynamic feed. * - * Create a request for the method "dynamicProfiles.update". + * Create a request for the method "dynamicFeeds.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicFeed} * @return the request */ - public Update update(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + public Update update(com.google.api.services.dfareporting.model.DynamicFeed content) throws java.io.IOException { Update result = new Update(content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "studio/dynamicProfiles"; + private static final String REST_PATH = "studio/dynamicFeeds"; /** - * Updates an existing dynamic profile. + * Updates a new dynamic feed. * - * Create a request for the method "dynamicProfiles.update". + * Create a request for the method "dynamicFeeds.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -16872,11 +16741,11 @@ public class Update extends DfareportingRequest * - * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicFeed} * @since 1.13 */ - protected Update(com.google.api.services.dfareporting.model.DynamicProfile content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); + protected Update(com.google.api.services.dfareporting.model.DynamicFeed content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicFeed.class); } @Override @@ -16943,246 +16812,307 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the DynamicTargetingKeys collection. + * An accessor for creating requests from the DynamicProfiles collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.DynamicTargetingKeys.List request = dfareporting.dynamicTargetingKeys().list(parameters ...)}
+   *   {@code Dfareporting.DynamicProfiles.List request = dfareporting.dynamicProfiles().list(parameters ...)}
    * 
* * @return the resource collection */ - public DynamicTargetingKeys dynamicTargetingKeys() { - return new DynamicTargetingKeys(); + public DynamicProfiles dynamicProfiles() { + return new DynamicProfiles(); } /** - * The "dynamicTargetingKeys" collection of methods. + * The "dynamicProfiles" collection of methods. */ - public class DynamicTargetingKeys { + public class DynamicProfiles { /** - * Deletes an existing dynamic targeting key. + * Generates code for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.delete". + * Create a request for the method "dynamicProfiles.generateCode". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GenerateCode#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param objectId ID of the object of this dynamic targeting key. This is a required field. - * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - * characters long and cannot contain commas. All characters are converted to lowercase. - * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. + * @param dynamicProfileId Required. Dynamic profile ID. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) throws java.io.IOException { - Delete result = new Delete(profileId, objectId, name, objectType); + public GenerateCode generateCode(java.lang.Long dynamicProfileId) throws java.io.IOException { + GenerateCode result = new GenerateCode(dynamicProfileId); initialize(result); return result; } - public class Delete extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys/{+objectId}"; + public class GenerateCode extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}/generateCode"; - private final java.util.regex.Pattern OBJECT_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Deletes an existing dynamic targeting key. + * Generates code for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.delete". + * Create a request for the method "dynamicProfiles.generateCode". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link GenerateCode#execute()} method to invoke the remote + * operation.

{@link + * GenerateCode#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param objectId ID of the object of this dynamic targeting key. This is a required field. - * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - * characters long and cannot contain commas. All characters are converted to lowercase. - * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. + * @param dynamicProfileId Required. Dynamic profile ID. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.objectId = com.google.api.client.util.Preconditions.checkNotNull(objectId, "Required parameter objectId must be specified."); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - this.objectType = com.google.api.client.util.Preconditions.checkNotNull(objectType, "Required parameter objectType must be specified."); + protected GenerateCode(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfileGenerateCodeResponse.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GenerateCode set$Xgafv(java.lang.String $Xgafv) { + return (GenerateCode) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GenerateCode setAccessToken(java.lang.String accessToken) { + return (GenerateCode) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GenerateCode setAlt(java.lang.String alt) { + return (GenerateCode) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GenerateCode setCallback(java.lang.String callback) { + return (GenerateCode) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GenerateCode setFields(java.lang.String fields) { + return (GenerateCode) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GenerateCode setKey(java.lang.String key) { + return (GenerateCode) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GenerateCode setOauthToken(java.lang.String oauthToken) { + return (GenerateCode) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GenerateCode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateCode) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GenerateCode setQuotaUser(java.lang.String quotaUser) { + return (GenerateCode) super.setQuotaUser(quotaUser); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; + @Override + public GenerateCode setUploadType(java.lang.String uploadType) { + return (GenerateCode) super.setUploadType(uploadType); } - /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; + @Override + public GenerateCode setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateCode) super.setUploadProtocol(uploadProtocol); } - /** ID of the object of this dynamic targeting key. This is a required field. */ + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.Long objectId; + private java.lang.Long dynamicProfileId; - /** ID of the object of this dynamic targeting key. This is a required field. + /** Required. Dynamic profile ID. */ - public java.lang.Long getObjectId() { - return objectId; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** ID of the object of this dynamic targeting key. This is a required field. */ - public Delete setObjectId(java.lang.Long objectId) { - this.objectId = objectId; + /** Required. Dynamic profile ID. */ + public GenerateCode setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } + @Override + public GenerateCode set(String parameterName, Object value) { + return (GenerateCode) super.set(parameterName, value); + } + } + /** + * Gets a dynamic profile by ID. + * + * Create a request for the method "dynamicProfiles.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param dynamicProfileId Required. Dynamic profile ID. + * @return the request + */ + public Get get(java.lang.Long dynamicProfileId) throws java.io.IOException { + Get result = new Get(dynamicProfileId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}"; + + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Required. Name of this dynamic targeting key. This is a required field. Must be less than - * 256 characters long and cannot contain commas. All characters are converted to lowercase. + * Gets a dynamic profile by ID. + * + * Create a request for the method "dynamicProfiles.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param dynamicProfileId Required. Dynamic profile ID. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String name; + protected Get(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicProfile.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); + } - /** Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 - characters long and cannot contain commas. All characters are converted to lowercase. - */ - public java.lang.String getName() { - return name; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** - * Required. Name of this dynamic targeting key. This is a required field. Must be less than - * 256 characters long and cannot contain commas. All characters are converted to lowercase. - */ - public Delete setName(java.lang.String name) { - this.name = name; - return this; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** Required. Type of the object of this dynamic targeting key. This is a required field. */ + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.String objectType; + private java.lang.Long dynamicProfileId; - /** Required. Type of the object of this dynamic targeting key. This is a required field. + /** Required. Dynamic profile ID. */ - public java.lang.String getObjectType() { - return objectType; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** Required. Type of the object of this dynamic targeting key. This is a required field. */ - public Delete setObjectType(java.lang.String objectType) { - this.objectType = objectType; + /** Required. Dynamic profile ID. */ + public Get setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being - * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per - * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. + * Inserts a new dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.insert". + * Create a request for the method "dynamicProfiles.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/dynamicProfiles"; /** - * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being - * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per - * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. + * Inserts a new dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.insert". + * Create a request for the method "dynamicProfiles.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -17190,13 +17120,11 @@ public class Insert extends DfareportingRequest * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicTargetingKey.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + protected Insert(com.google.api.services.dfareporting.model.DynamicProfile content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); } @Override @@ -17254,274 +17182,287 @@ public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of dynamic targeting keys. + * Publish for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.list". + * Create a request for the method "dynamicProfiles.publish". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Publish#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param dynamicProfileId Required. Dynamic profile ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Publish publish(java.lang.Long dynamicProfileId) throws java.io.IOException { + Publish result = new Publish(dynamicProfileId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Publish extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; + private static final String REST_PATH = "studio/dynamicProfiles/{+dynamicProfileId}/publish"; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = + private final java.util.regex.Pattern DYNAMIC_PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of dynamic targeting keys. + * Publish for a dynamic profile. * - * Create a request for the method "dynamicTargetingKeys.list". + * Create a request for the method "dynamicProfiles.publish". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Publish#execute()} method to invoke the remote operation. + *

{@link + * Publish#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param dynamicProfileId Required. Dynamic profile ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.DynamicTargetingKeysListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Publish(java.lang.Long dynamicProfileId) { + super(Dfareporting.this, "POST", REST_PATH, null, Void.class); + this.dynamicProfileId = com.google.api.client.util.Preconditions.checkNotNull(dynamicProfileId, "Required parameter dynamicProfileId must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Publish set$Xgafv(java.lang.String $Xgafv) { + return (Publish) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Publish setAccessToken(java.lang.String accessToken) { + return (Publish) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Publish setAlt(java.lang.String alt) { + return (Publish) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Publish setCallback(java.lang.String callback) { + return (Publish) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Publish setFields(java.lang.String fields) { + return (Publish) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Publish setKey(java.lang.String key) { + return (Publish) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Publish setOauthToken(java.lang.String oauthToken) { + return (Publish) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Publish setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Publish) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Publish setQuotaUser(java.lang.String quotaUser) { + return (Publish) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Publish setUploadType(java.lang.String uploadType) { + return (Publish) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Publish setUploadProtocol(java.lang.String uploadProtocol) { + return (Publish) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** Required. Dynamic profile ID. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long dynamicProfileId; - /** User profile ID associated with this request. + /** Required. Dynamic profile ID. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Required. Dynamic profile ID. */ + public Publish setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; return this; } - /** Select only dynamic targeting keys whose object has this advertiser ID. */ - @com.google.api.client.util.Key - private java.lang.Long advertiserId; + @Override + public Publish set(String parameterName, Object value) { + return (Publish) super.set(parameterName, value); + } + } + /** + * Updates an existing dynamic profile. + * + * Create a request for the method "dynamicProfiles.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.dfareporting.model.DynamicProfile} + * @return the request + */ + public Update update(com.google.api.services.dfareporting.model.DynamicProfile content) throws java.io.IOException { + Update result = new Update(content); + initialize(result); + return result; + } - /** Select only dynamic targeting keys whose object has this advertiser ID. + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "studio/dynamicProfiles"; + + /** + * Updates an existing dynamic profile. + * + * Create a request for the method "dynamicProfiles.update". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#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.dfareporting.model.DynamicProfile} + * @since 1.13 */ - public java.lang.Long getAdvertiserId() { - return advertiserId; + protected Update(com.google.api.services.dfareporting.model.DynamicProfile content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicProfile.class); } - /** Select only dynamic targeting keys whose object has this advertiser ID. */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; - return this; + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } - /** Select only dynamic targeting keys exactly matching these names. */ - @com.google.api.client.util.Key - private java.util.List names; + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - /** Select only dynamic targeting keys exactly matching these names. - */ - public java.util.List getNames() { - return names; + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } - /** Select only dynamic targeting keys exactly matching these names. */ - public List setNames(java.util.List names) { - this.names = names; - return this; + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } - /** Select only dynamic targeting keys with this object ID. */ - @com.google.api.client.util.Key - private java.lang.Long objectId; + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - /** Select only dynamic targeting keys with this object ID. - */ - public java.lang.Long getObjectId() { - return objectId; + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } - /** Select only dynamic targeting keys with this object ID. */ - public List setObjectId(java.lang.Long objectId) { - this.objectId = objectId; - return this; + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } - /** Select only dynamic targeting keys with this object type. */ - @com.google.api.client.util.Key - private java.lang.String objectType; + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - /** Select only dynamic targeting keys with this object type. - */ - public java.lang.String getObjectType() { - return objectType; + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } - /** Select only dynamic targeting keys with this object type. */ - public List setObjectType(java.lang.String objectType) { - this.objectType = objectType; - return this; + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the EventTags collection. + * An accessor for creating requests from the DynamicTargetingKeys collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.EventTags.List request = dfareporting.eventTags().list(parameters ...)}
+   *   {@code Dfareporting.DynamicTargetingKeys.List request = dfareporting.dynamicTargetingKeys().list(parameters ...)}
    * 
* * @return the resource collection */ - public EventTags eventTags() { - return new EventTags(); + public DynamicTargetingKeys dynamicTargetingKeys() { + return new DynamicTargetingKeys(); } /** - * The "eventTags" collection of methods. + * The "dynamicTargetingKeys" collection of methods. */ - public class EventTags { + public class DynamicTargetingKeys { /** - * Deletes an existing event tag. + * Deletes an existing dynamic targeting key. * - * Create a request for the method "eventTags.delete". + * Create a request for the method "dynamicTargetingKeys.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Event tag ID. + * @param objectId ID of the object of this dynamic targeting key. This is a required field. + * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + * characters long and cannot contain commas. All characters are converted to lowercase. + * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public Delete delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) throws java.io.IOException { + Delete result = new Delete(profileId, objectId, name, objectType); initialize(result); return result; } public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys/{+objectId}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern OBJECT_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Deletes an existing event tag. + * Deletes an existing dynamic targeting key. * - * Create a request for the method "eventTags.delete". + * Create a request for the method "dynamicTargetingKeys.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -17530,13 +17471,18 @@ public class Delete extends DfareportingRequest { * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Event tag ID. + * @param objectId ID of the object of this dynamic targeting key. This is a required field. + * @param name Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + * characters long and cannot contain commas. All characters are converted to lowercase. + * @param objectType Required. Type of the object of this dynamic targeting key. This is a required field. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { + protected Delete(java.lang.Long profileId, java.lang.Long objectId, java.lang.String name, java.lang.String objectType) { super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + this.objectId = com.google.api.client.util.Preconditions.checkNotNull(objectId, "Required parameter objectId must be specified."); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + this.objectType = com.google.api.client.util.Preconditions.checkNotNull(objectType, "Required parameter objectType must be specified."); } @Override @@ -17610,206 +17556,99 @@ public Delete setProfileId(java.lang.Long profileId) { return this; } - /** Event tag ID. */ + /** ID of the object of this dynamic targeting key. This is a required field. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long objectId; - /** Event tag ID. + /** ID of the object of this dynamic targeting key. This is a required field. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getObjectId() { + return objectId; } - /** Event tag ID. */ - public Delete setId(java.lang.Long id) { - this.id = id; + /** ID of the object of this dynamic targeting key. This is a required field. */ + public Delete setObjectId(java.lang.Long objectId) { + this.objectId = objectId; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets one event tag by ID. - * - * Create a request for the method "eventTags.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param id Event tag ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); - initialize(result); - return result; - } - - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one event tag by ID. - * - * Create a request for the method "eventTags.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param id Event tag ID. - * @since 1.13 + * Required. Name of this dynamic targeting key. This is a required field. Must be less than + * 256 characters long and cannot contain commas. All characters are converted to lowercase. */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTag.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String name; - /** User profile ID associated with this request. + /** Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 + characters long and cannot contain commas. All characters are converted to lowercase. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getName() { + return name; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** + * Required. Name of this dynamic targeting key. This is a required field. Must be less than + * 256 characters long and cannot contain commas. All characters are converted to lowercase. + */ + public Delete setName(java.lang.String name) { + this.name = name; return this; } - /** Event tag ID. */ + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.String objectType; - /** Event tag ID. + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ - public java.lang.Long getId() { - return id; + public java.lang.String getObjectType() { + return objectType; } - /** Event tag ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Required. Type of the object of this dynamic targeting key. This is a required field. */ + public Delete setObjectType(java.lang.String objectType) { + this.objectType = objectType; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a new event tag. + * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being + * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per + * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. * - * Create a request for the method "eventTags.insert". + * Create a request for the method "dynamicTargetingKeys.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new event tag. + * Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being + * assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per + * advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement. * - * Create a request for the method "eventTags.insert". + * Create a request for the method "dynamicTargetingKeys.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -17818,11 +17657,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param content the {@link com.google.api.services.dfareporting.model.DynamicTargetingKey} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.DynamicTargetingKey content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.DynamicTargetingKey.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -17903,9 +17742,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of event tags, possibly filtered. + * Retrieves a list of dynamic targeting keys. * - * Create a request for the method "eventTags.list". + * Create a request for the method "dynamicTargetingKeys.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -17919,17 +17758,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/dynamicTargetingKeys"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of event tags, possibly filtered. + * Retrieves a list of dynamic targeting keys. * - * Create a request for the method "eventTags.list". + * Create a request for the method "dynamicTargetingKeys.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -17940,7 +17779,7 @@ public class List extends DfareportingRequest names; - /** Select only event tags that belong to this campaign. + /** Select only dynamic targeting keys exactly matching these names. */ - public java.lang.Long getCampaignId() { - return campaignId; + public java.util.List getNames() { + return names; } - /** Select only event tags that belong to this campaign. */ - public List setCampaignId(java.lang.Long campaignId) { - this.campaignId = campaignId; + /** Select only dynamic targeting keys exactly matching these names. */ + public List setNames(java.util.List names) { + this.names = names; return this; } - /** - * Examine only the specified campaign or advertiser's event tags for matching selector - * criteria. When set to false, the parent advertiser and parent campaign of the specified ad - * or campaign is examined as well. In addition, when set to false, the status field is - * examined as well, along with the enabledByDefault field. This parameter can not be set to - * true when adId is specified as ads do not define their own even tags. - */ + /** Select only dynamic targeting keys with this object ID. */ @com.google.api.client.util.Key - private java.lang.Boolean definitionsOnly; + private java.lang.Long objectId; - /** Examine only the specified campaign or advertiser's event tags for matching selector criteria. When - set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined - as well. In addition, when set to false, the status field is examined as well, along with the - enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not - define their own even tags. + /** Select only dynamic targeting keys with this object ID. */ - public java.lang.Boolean getDefinitionsOnly() { - return definitionsOnly; + public java.lang.Long getObjectId() { + return objectId; } - /** - * Examine only the specified campaign or advertiser's event tags for matching selector - * criteria. When set to false, the parent advertiser and parent campaign of the specified ad - * or campaign is examined as well. In addition, when set to false, the status field is - * examined as well, along with the enabledByDefault field. This parameter can not be set to - * true when adId is specified as ads do not define their own even tags. - */ - public List setDefinitionsOnly(java.lang.Boolean definitionsOnly) { - this.definitionsOnly = definitionsOnly; + /** Select only dynamic targeting keys with this object ID. */ + public List setObjectId(java.lang.Long objectId) { + this.objectId = objectId; return this; } - /** - * Select only enabled event tags. What is considered enabled or disabled depends on the - * definitionsOnly parameter. When definitionsOnly is set to true, only the specified - * advertiser or campaign's event tags' enabledByDefault field is examined. When - * definitionsOnly is set to false, the specified ad or specified campaign's parent - * advertiser's or parent campaign's event tags' enabledByDefault and status fields are - * examined as well. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** Select only enabled event tags. What is considered enabled or disabled depends on the - definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or - campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, - the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' - enabledByDefault and status fields are examined as well. - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * Select only enabled event tags. What is considered enabled or disabled depends on the - * definitionsOnly parameter. When definitionsOnly is set to true, only the specified - * advertiser or campaign's event tags' enabledByDefault field is examined. When - * definitionsOnly is set to false, the specified ad or specified campaign's parent - * advertiser's or parent campaign's event tags' enabledByDefault and status fields are - * examined as well. - */ - public List setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Select only event tags with the specified event tag types. Event tag types can be used to - * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party - * click-through URL for either impression or click tracking. - */ - @com.google.api.client.util.Key - private java.util.List eventTagTypes; - - /** Select only event tags with the specified event tag types. Event tag types can be used to specify - whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through - URL for either impression or click tracking. - */ - public java.util.List getEventTagTypes() { - return eventTagTypes; - } - - /** - * Select only event tags with the specified event tag types. Event tag types can be used to - * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party - * click-through URL for either impression or click tracking. - */ - public List setEventTagTypes(java.util.List eventTagTypes) { - this.eventTagTypes = eventTagTypes; - return this; - } - - /** Select only event tags with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only event tags with these IDs. - */ - public java.util.List getIds() { - return ids; - } - - /** Select only event tags with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April - * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "eventtag" will - * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" - will return objects with names like "eventtag June 2015", "eventtag April 2015", or simply - "eventtag 2015". Most of the searches also add wildcards implicitly at the start and the end of the - search string. For example, a search string of "eventtag" will match objects with name "my - eventtag", "eventtag 2015", or simply "eventtag". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April - * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "eventtag" will - * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ + /** Select only dynamic targeting keys with this object type. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.String objectType; - /** Order of sorted results. [default: ASCENDING] + /** Select only dynamic targeting keys with this object type. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.String getObjectType() { + return objectType; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Select only dynamic targeting keys with this object type. */ + public List setObjectType(java.lang.String objectType) { + this.objectType = objectType; return this; } @@ -18250,107 +17933,131 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the EventTags collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.EventTags.List request = dfareporting.eventTags().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public EventTags eventTags() { + return new EventTags(); + } + + /** + * The "eventTags" collection of methods. + */ + public class EventTags { + /** - * Updates an existing event tag. This method supports patch semantics. + * Deletes an existing event tag. * - * Create a request for the method "eventTags.patch". + * Create a request for the method "eventTags.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing event tag. This method supports patch semantics. + * Deletes an existing event tag. * - * Create a request for the method "eventTags.patch". + * Create a request for the method "eventTags.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -18364,130 +18071,143 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** Event tag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. EventTag ID. + /** Event tag ID. */ public java.lang.Long getId() { return id; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { + /** Event tag ID. */ + public Delete setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an existing event tag. + * Gets one event tag by ID. * - * Create a request for the method "eventTags.update". + * Create a request for the method "eventTags.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing event tag. + * Gets one event tag by ID. * - * Create a request for the method "eventTags.update". + * Create a request for the method "eventTags.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.EventTag} + * @param id Event tag ID. * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -18501,208 +18221,162 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Event tag ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the Files collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Files files() { - return new Files(); - } + /** Event tag ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "files" collection of methods. - */ - public class Files { + /** Event tag ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Inserts a new event tag. * - * Create a request for the method "files.get". + * Create a request for the method "eventTags.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param reportId The ID of the report. - * @param fileId The ID of the report file. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Get get(java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { - Get result = new Get(reportId, fileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "reports/{reportId}/files/{fileId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Inserts a new event tag. * - * Create a request for the method "files.get". + * Create a request for the method "eventTags.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param reportId The ID of the report. - * @param fileId The ID of the report file. + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Get(java.lang.Long reportId, java.lang.Long fileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); - initializeMediaDownload(); - } - - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; - - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } - - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } - - /** The ID of the report file. */ - @com.google.api.client.util.Key - private java.lang.Long fileId; - - /** The ID of the report file. - */ - public java.lang.Long getFileId() { - return fileId; - } - - /** The ID of the report file. */ - public Get setFileId(java.lang.Long fileId) { - this.fileId = fileId; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Lists files for a user profile. + * Retrieves a list of event tags, possibly filtered. * - * Create a request for the method "files.list". + * Create a request for the method "eventTags.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. * @return the request */ public List list(java.lang.Long profileId) throws java.io.IOException { @@ -18711,25 +18385,28 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/files"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Lists files for a user profile. + * Retrieves a list of event tags, possibly filtered. * - * Create a request for the method "files.list". + * Create a request for the method "eventTags.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. * @since 1.13 */ protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.EventTagsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -18798,81 +18475,221 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Maximum number of results to return. */ + /** Select only event tags that belong to this ad. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long adId; - /** Maximum number of results to return. [default: 10] + /** Select only event tags that belong to this ad. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getAdId() { + return adId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** Select only event tags that belong to this ad. */ + public List setAdId(java.lang.Long adId) { + this.adId = adId; return this; } - /** The value of the nextToken from the previous result page. */ + /** Select only event tags that belong to this advertiser. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Long advertiserId; - /** The value of the nextToken from the previous result page. + /** Select only event tags that belong to this advertiser. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Select only event tags that belong to this advertiser. */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - /** The scope that defines which results are returned. */ + /** Select only event tags that belong to this campaign. */ @com.google.api.client.util.Key - private java.lang.String scope; + private java.lang.Long campaignId; - /** The scope that defines which results are returned. [default: MINE] + /** Select only event tags that belong to this campaign. */ - public java.lang.String getScope() { - return scope; + public java.lang.Long getCampaignId() { + return campaignId; } - /** The scope that defines which results are returned. */ - public List setScope(java.lang.String scope) { - this.scope = scope; + /** Select only event tags that belong to this campaign. */ + public List setCampaignId(java.lang.Long campaignId) { + this.campaignId = campaignId; return this; } - /** The field by which to sort the list. */ + /** + * Examine only the specified campaign or advertiser's event tags for matching selector + * criteria. When set to false, the parent advertiser and parent campaign of the specified ad + * or campaign is examined as well. In addition, when set to false, the status field is + * examined as well, along with the enabledByDefault field. This parameter can not be set to + * true when adId is specified as ads do not define their own even tags. + */ + @com.google.api.client.util.Key + private java.lang.Boolean definitionsOnly; + + /** Examine only the specified campaign or advertiser's event tags for matching selector criteria. When + set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined + as well. In addition, when set to false, the status field is examined as well, along with the + enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not + define their own even tags. + */ + public java.lang.Boolean getDefinitionsOnly() { + return definitionsOnly; + } + + /** + * Examine only the specified campaign or advertiser's event tags for matching selector + * criteria. When set to false, the parent advertiser and parent campaign of the specified ad + * or campaign is examined as well. In addition, when set to false, the status field is + * examined as well, along with the enabledByDefault field. This parameter can not be set to + * true when adId is specified as ads do not define their own even tags. + */ + public List setDefinitionsOnly(java.lang.Boolean definitionsOnly) { + this.definitionsOnly = definitionsOnly; + return this; + } + + /** + * Select only enabled event tags. What is considered enabled or disabled depends on the + * definitionsOnly parameter. When definitionsOnly is set to true, only the specified + * advertiser or campaign's event tags' enabledByDefault field is examined. When + * definitionsOnly is set to false, the specified ad or specified campaign's parent + * advertiser's or parent campaign's event tags' enabledByDefault and status fields are + * examined as well. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** Select only enabled event tags. What is considered enabled or disabled depends on the + definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or + campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, + the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' + enabledByDefault and status fields are examined as well. + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Select only enabled event tags. What is considered enabled or disabled depends on the + * definitionsOnly parameter. When definitionsOnly is set to true, only the specified + * advertiser or campaign's event tags' enabledByDefault field is examined. When + * definitionsOnly is set to false, the specified ad or specified campaign's parent + * advertiser's or parent campaign's event tags' enabledByDefault and status fields are + * examined as well. + */ + public List setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Select only event tags with the specified event tag types. Event tag types can be used to + * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party + * click-through URL for either impression or click tracking. + */ + @com.google.api.client.util.Key + private java.util.List eventTagTypes; + + /** Select only event tags with the specified event tag types. Event tag types can be used to specify + whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through + URL for either impression or click tracking. + */ + public java.util.List getEventTagTypes() { + return eventTagTypes; + } + + /** + * Select only event tags with the specified event tag types. Event tag types can be used to + * specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party + * click-through URL for either impression or click tracking. + */ + public List setEventTagTypes(java.util.List eventTagTypes) { + this.eventTagTypes = eventTagTypes; + return this; + } + + /** Select only event tags with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only event tags with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only event tags with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April + * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" + will return objects with names like "eventtag June 2015", "eventtag April 2015", or simply + "eventtag 2015". Most of the searches also add wildcards implicitly at the start and the end of the + search string. For example, a search string of "eventtag" will match objects with name "my + eventtag", "eventtag 2015", or simply "eventtag". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April + * 2015", or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply "eventtag". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** Field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + /** Field by which to sort the list. [default: ID] */ public java.lang.String getSortField() { return sortField; } - /** The field by which to sort the list. */ + /** Field by which to sort the list. */ public List setSortField(java.lang.String sortField) { this.sortField = sortField; return this; @@ -18882,7 +18699,7 @@ public List setSortField(java.lang.String sortField) { @com.google.api.client.util.Key private java.lang.String sortOrder; - /** Order of sorted results. [default: DESCENDING] + /** Order of sorted results. [default: ASCENDING] */ public java.lang.String getSortOrder() { return sortOrder; @@ -18899,131 +18716,107 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the FloodlightActivities collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightActivities.List request = dfareporting.floodlightActivities().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FloodlightActivities floodlightActivities() { - return new FloodlightActivities(); - } - - /** - * The "floodlightActivities" collection of methods. - */ - public class FloodlightActivities { - /** - * Deletes an existing floodlight activity. + * Updates an existing event tag. This method supports patch semantics. * - * Create a request for the method "floodlightActivities.delete". + * Create a request for the method "eventTags.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Delete extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Deletes an existing floodlight activity. + * Updates an existing event tag. This method supports patch semantics. * - * Create a request for the method "floodlightActivities.delete". + * Create a request for the method "eventTags.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19037,128 +18830,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Floodlight activity ID. */ + /** Required. EventTag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight activity ID. + /** Required. EventTag ID. */ public java.lang.Long getId() { return id; } - /** Floodlight activity ID. */ - public Delete setId(java.lang.Long id) { + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { this.id = id; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Generates a tag for a floodlight activity. + * Updates an existing event tag. * - * Create a request for the method "floodlightActivities.generatetag". + * Create a request for the method "eventTags.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Generatetag#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @return the request */ - public Generatetag generatetag(java.lang.Long profileId) throws java.io.IOException { - Generatetag result = new Generatetag(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Generatetag extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/generatetag"; + private static final String REST_PATH = "userprofiles/{+profileId}/eventTags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Generates a tag for a floodlight activity. + * Updates an existing event tag. * - * Create a request for the method "floodlightActivities.generatetag". + * Create a request for the method "eventTags.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Generatetag#execute()} method to invoke the remote - * operation.

{@link - * Generatetag#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.EventTag} * @since 1.13 */ - protected Generatetag(java.lang.Long profileId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesGenerateTagResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.EventTag content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.EventTag.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Generatetag set$Xgafv(java.lang.String $Xgafv) { - return (Generatetag) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Generatetag setAccessToken(java.lang.String accessToken) { - return (Generatetag) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Generatetag setAlt(java.lang.String alt) { - return (Generatetag) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Generatetag setCallback(java.lang.String callback) { - return (Generatetag) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Generatetag setFields(java.lang.String fields) { - return (Generatetag) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Generatetag setKey(java.lang.String key) { - return (Generatetag) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Generatetag setOauthToken(java.lang.String oauthToken) { - return (Generatetag) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Generatetag setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generatetag) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Generatetag setQuotaUser(java.lang.String quotaUser) { - return (Generatetag) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Generatetag setUploadType(java.lang.String uploadType) { - return (Generatetag) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Generatetag setUploadProtocol(java.lang.String uploadProtocol) { - return (Generatetag) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19172,78 +18967,95 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Generatetag setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Floodlight activity ID for which we want to generate a tag. */ - @com.google.api.client.util.Key - private java.lang.Long floodlightActivityId; - - /** Floodlight activity ID for which we want to generate a tag. - */ - public java.lang.Long getFloodlightActivityId() { - return floodlightActivityId; - } - - /** Floodlight activity ID for which we want to generate a tag. */ - public Generatetag setFloodlightActivityId(java.lang.Long floodlightActivityId) { - this.floodlightActivityId = floodlightActivityId; - return this; - } - @Override - public Generatetag set(String parameterName, Object value) { - return (Generatetag) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Files collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Files files() { + return new Files(); + } + + /** + * The "files" collection of methods. + */ + public class Files { + /** - * Gets one floodlight activity by ID. + * Retrieves a report file by its report ID and file ID. This method supports media download. * - * Create a request for the method "floodlightActivities.get". + * Create a request for the method "files.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { + Get result = new Get(reportId, fileId); initialize(result); return result; } - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; + public class Get extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "reports/{reportId}/files/{fileId}"; /** - * Gets one floodlight activity by ID. + * Retrieves a report file by its report ID and file ID. This method supports media download. * - * Create a request for the method "floodlightActivities.get". + * Create a request for the method "files.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param id Floodlight activity ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivity.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + protected Get(java.lang.Long reportId, java.lang.Long fileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override @@ -19311,35 +19123,35 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** The ID of the report. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long reportId; - /** User profile ID associated with this request. + /** The ID of the report. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getReportId() { + return reportId; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; return this; } - /** Floodlight activity ID. */ + /** The ID of the report file. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long fileId; - /** Floodlight activity ID. + /** The ID of the report file. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getFileId() { + return fileId; } - /** Floodlight activity ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** The ID of the report file. */ + public Get setFileId(java.lang.Long fileId) { + this.fileId = fileId; return this; } @@ -19349,135 +19161,14 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new floodlight activity. - * - * Create a request for the method "floodlightActivities.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} - * @return the request - */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Insert result = new Insert(profileId, content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - /** - * Inserts a new floodlight activity. - * - * Create a request for the method "floodlightActivities.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} - * @since 1.13 - */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. + * Lists files for a user profile. * - * Create a request for the method "floodlightActivities.list". + * Create a request for the method "files.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param profileId The Campaign Manager 360 user profile ID. * @return the request */ public List list(java.lang.Long profileId) throws java.io.IOException { @@ -19486,28 +19177,25 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + public class List extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "userprofiles/{profileId}/files"; /** - * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. + * Lists files for a user profile. * - * Create a request for the method "floodlightActivities.list". + * Create a request for the method "files.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param profileId The Campaign Manager 360 user profile ID. * @since 1.13 */ protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesListResponse.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FileList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -19576,237 +19264,81 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ + /** The Campaign Manager 360 user profile ID. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** User profile ID associated with this request. + /** The Campaign Manager 360 user profile ID. */ public java.lang.Long getProfileId() { return profileId; } - /** User profile ID associated with this request. */ + /** The Campaign Manager 360 user profile ID. */ public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * Select only floodlight activities for the specified advertiser ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.lang.Long advertiserId; + private java.lang.Integer maxResults; - /** Select only floodlight activities for the specified advertiser ID. Must specify either ids, - advertiserId, or floodlightConfigurationId for a non-empty result. + /** Maximum number of results to return. [default: 10] */ - public java.lang.Long getAdvertiserId() { - return advertiserId; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** - * Select only floodlight activities for the specified advertiser ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Select only floodlight activities with the specified floodlight activity group IDs. */ + /** The value of the nextToken from the previous result page. */ @com.google.api.client.util.Key - private java.util.List floodlightActivityGroupIds; + private java.lang.String pageToken; - /** Select only floodlight activities with the specified floodlight activity group IDs. + /** The value of the nextToken from the previous result page. */ - public java.util.List getFloodlightActivityGroupIds() { - return floodlightActivityGroupIds; + public java.lang.String getPageToken() { + return pageToken; } - /** Select only floodlight activities with the specified floodlight activity group IDs. */ - public List setFloodlightActivityGroupIds(java.util.List floodlightActivityGroupIds) { - this.floodlightActivityGroupIds = floodlightActivityGroupIds; + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Select only floodlight activities with the specified floodlight activity group name. */ + /** The scope that defines which results are returned. */ @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupName; - - /** Select only floodlight activities with the specified floodlight activity group name. - */ - public java.lang.String getFloodlightActivityGroupName() { - return floodlightActivityGroupName; - } - - /** Select only floodlight activities with the specified floodlight activity group name. */ - public List setFloodlightActivityGroupName(java.lang.String floodlightActivityGroupName) { - this.floodlightActivityGroupName = floodlightActivityGroupName; - return this; - } - - /** - * Select only floodlight activities with the specified floodlight activity group tag string. - */ - @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupTagString; - - /** Select only floodlight activities with the specified floodlight activity group tag string. - */ - public java.lang.String getFloodlightActivityGroupTagString() { - return floodlightActivityGroupTagString; - } - - /** - * Select only floodlight activities with the specified floodlight activity group tag string. - */ - public List setFloodlightActivityGroupTagString(java.lang.String floodlightActivityGroupTagString) { - this.floodlightActivityGroupTagString = floodlightActivityGroupTagString; - return this; - } - - /** Select only floodlight activities with the specified floodlight activity group type. */ - @com.google.api.client.util.Key - private java.lang.String floodlightActivityGroupType; - - /** Select only floodlight activities with the specified floodlight activity group type. - */ - public java.lang.String getFloodlightActivityGroupType() { - return floodlightActivityGroupType; - } - - /** Select only floodlight activities with the specified floodlight activity group type. */ - public List setFloodlightActivityGroupType(java.lang.String floodlightActivityGroupType) { - this.floodlightActivityGroupType = floodlightActivityGroupType; - return this; - } - - /** - * Select only floodlight activities for the specified floodlight configuration ID. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - @com.google.api.client.util.Key - private java.lang.Long floodlightConfigurationId; - - /** Select only floodlight activities for the specified floodlight configuration ID. Must specify - either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public java.lang.Long getFloodlightConfigurationId() { - return floodlightConfigurationId; - } - - /** - * Select only floodlight activities for the specified floodlight configuration ID. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { - this.floodlightConfigurationId = floodlightConfigurationId; - return this; - } - - /** - * Select only floodlight activities with the specified IDs. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or - floodlightConfigurationId for a non-empty result. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Select only floodlight activities with the specified IDs. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivity*2015" will return objects with names like "floodlightactivity June - * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name "my - * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; + private java.lang.String scope; - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "floodlightactivity*2015" will return objects with names like "floodlightactivity June 2015", - "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the searches also add - wildcards implicitly at the start and the end of the search string. For example, a search string of - "floodlightactivity" will match objects with name "my floodlightactivity activity", - "floodlightactivity 2015", or simply "floodlightactivity". + /** The scope that defines which results are returned. [default: MINE] */ - public java.lang.String getSearchString() { - return searchString; + public java.lang.String getScope() { + return scope; } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivity*2015" will return objects with names like "floodlightactivity June - * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with name "my - * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; + /** The scope that defines which results are returned. */ + public List setScope(java.lang.String scope) { + this.scope = scope; return this; } - /** Field by which to sort the list. */ + /** The field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; - /** Field by which to sort the list. [default: ID] + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] */ public java.lang.String getSortField() { return sortField; } - /** Field by which to sort the list. */ + /** The field by which to sort the list. */ public List setSortField(java.lang.String sortField) { this.sortField = sortField; return this; @@ -19816,7 +19348,7 @@ public List setSortField(java.lang.String sortField) { @com.google.api.client.util.Key private java.lang.String sortOrder; - /** Order of sorted results. [default: ASCENDING] + /** Order of sorted results. [default: DESCENDING] */ public java.lang.String getSortOrder() { return sortOrder; @@ -19828,128 +19360,136 @@ public List setSortOrder(java.lang.String sortOrder) { return this; } - /** Select only floodlight activities with the specified tag string. */ - @com.google.api.client.util.Key - private java.lang.String tagString; - - /** Select only floodlight activities with the specified tag string. - */ - public java.lang.String getTagString() { - return tagString; - } - - /** Select only floodlight activities with the specified tag string. */ - public List setTagString(java.lang.String tagString) { - this.tagString = tagString; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the FloodlightActivities collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.FloodlightActivities.List request = dfareporting.floodlightActivities().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FloodlightActivities floodlightActivities() { + return new FloodlightActivities(); + } + + /** + * The "floodlightActivities" collection of methods. + */ + public class FloodlightActivities { + /** - * Updates an existing floodlight activity. This method supports patch semantics. + * Deletes an existing floodlight activity. * - * Create a request for the method "floodlightActivities.patch". + * Create a request for the method "floodlightActivities.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} + * @param id Floodlight activity ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing floodlight activity. This method supports patch semantics. + * Deletes an existing floodlight activity. * - * Create a request for the method "floodlightActivities.patch". + * Create a request for the method "floodlightActivities.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} + * @param id Floodlight activity ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -19963,130 +19503,128 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** Floodlight activity ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. EventTag ID. + /** Floodlight activity ID. */ public java.lang.Long getId() { return id; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { + /** Floodlight activity ID. */ + public Delete setId(java.lang.Long id) { this.id = id; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an existing floodlight activity. + * Generates a tag for a floodlight activity. * - * Create a request for the method "floodlightActivities.update". + * Create a request for the method "floodlightActivities.generatetag". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Generatetag#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Generatetag generatetag(java.lang.Long profileId) throws java.io.IOException { + Generatetag result = new Generatetag(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Generatetag extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/generatetag"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity. + * Generates a tag for a floodlight activity. * - * Create a request for the method "floodlightActivities.update". + * Create a request for the method "floodlightActivities.generatetag". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Generatetag#execute()} method to invoke the remote + * operation.

{@link + * Generatetag#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); + protected Generatetag(java.lang.Long profileId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivitiesGenerateTagResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Generatetag set$Xgafv(java.lang.String $Xgafv) { + return (Generatetag) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Generatetag setAccessToken(java.lang.String accessToken) { + return (Generatetag) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Generatetag setAlt(java.lang.String alt) { + return (Generatetag) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Generatetag setCallback(java.lang.String callback) { + return (Generatetag) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Generatetag setFields(java.lang.String fields) { + return (Generatetag) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Generatetag setKey(java.lang.String key) { + return (Generatetag) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Generatetag setOauthToken(java.lang.String oauthToken) { + return (Generatetag) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Generatetag setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generatetag) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Generatetag setQuotaUser(java.lang.String quotaUser) { + return (Generatetag) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Generatetag setUploadType(java.lang.String uploadType) { + return (Generatetag) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Generatetag setUploadProtocol(java.lang.String uploadProtocol) { + return (Generatetag) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -20100,49 +19638,42 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Generatetag setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Floodlight activity ID for which we want to generate a tag. */ + @com.google.api.client.util.Key + private java.lang.Long floodlightActivityId; - /** - * An accessor for creating requests from the FloodlightActivityGroups collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightActivityGroups.List request = dfareporting.floodlightActivityGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FloodlightActivityGroups floodlightActivityGroups() { - return new FloodlightActivityGroups(); - } + /** Floodlight activity ID for which we want to generate a tag. + */ + public java.lang.Long getFloodlightActivityId() { + return floodlightActivityId; + } - /** - * The "floodlightActivityGroups" collection of methods. - */ - public class FloodlightActivityGroups { + /** Floodlight activity ID for which we want to generate a tag. */ + public Generatetag setFloodlightActivityId(java.lang.Long floodlightActivityId) { + this.floodlightActivityId = floodlightActivityId; + return this; + } + @Override + public Generatetag set(String parameterName, Object value) { + return (Generatetag) super.set(parameterName, value); + } + } /** - * Gets one floodlight activity group by ID. + * Gets one floodlight activity by ID. * - * Create a request for the method "floodlightActivityGroups.get". + * Create a request for the method "floodlightActivities.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity Group ID. + * @param id Floodlight activity ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -20151,9 +19682,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -20162,9 +19693,9 @@ public class Get extends DfareportingRequest @@ -20172,11 +19703,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Floodlight activity Group ID. + * @param id Floodlight activity ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -20262,17 +19793,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Floodlight activity Group ID. */ + /** Floodlight activity ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight activity Group ID. + /** Floodlight activity ID. */ public java.lang.Long getId() { return id; } - /** Floodlight activity Group ID. */ + /** Floodlight activity ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -20284,34 +19815,34 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new floodlight activity group. + * Inserts a new floodlight activity. * - * Create a request for the method "floodlightActivityGroups.insert". + * Create a request for the method "floodlightActivities.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new floodlight activity group. + * Inserts a new floodlight activity. * - * Create a request for the method "floodlightActivityGroups.insert". + * Create a request for the method "floodlightActivities.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -20320,11 +19851,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -20405,9 +19936,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. + * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightActivityGroups.list". + * Create a request for the method "floodlightActivities.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -20421,17 +19952,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. + * Retrieves a list of floodlight activities, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightActivityGroups.list". + * Create a request for the method "floodlightActivities.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -20442,7 +19973,7 @@ public class List extends DfareportingRequest floodlightActivityGroupIds; - /** Select only floodlight activity groups with the specified floodlight configuration ID. Must specify - either advertiserId, or floodlightConfigurationId for a non-empty result. + /** Select only floodlight activities with the specified floodlight activity group IDs. */ - public java.lang.Long getFloodlightConfigurationId() { - return floodlightConfigurationId; + public java.util.List getFloodlightActivityGroupIds() { + return floodlightActivityGroupIds; } - /** - * Select only floodlight activity groups with the specified floodlight configuration ID. Must - * specify either advertiserId, or floodlightConfigurationId for a non-empty result. + /** Select only floodlight activities with the specified floodlight activity group IDs. */ + public List setFloodlightActivityGroupIds(java.util.List floodlightActivityGroupIds) { + this.floodlightActivityGroupIds = floodlightActivityGroupIds; + return this; + } + + /** Select only floodlight activities with the specified floodlight activity group name. */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupName; + + /** Select only floodlight activities with the specified floodlight activity group name. + */ + public java.lang.String getFloodlightActivityGroupName() { + return floodlightActivityGroupName; + } + + /** Select only floodlight activities with the specified floodlight activity group name. */ + public List setFloodlightActivityGroupName(java.lang.String floodlightActivityGroupName) { + this.floodlightActivityGroupName = floodlightActivityGroupName; + return this; + } + + /** + * Select only floodlight activities with the specified floodlight activity group tag string. + */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupTagString; + + /** Select only floodlight activities with the specified floodlight activity group tag string. + */ + public java.lang.String getFloodlightActivityGroupTagString() { + return floodlightActivityGroupTagString; + } + + /** + * Select only floodlight activities with the specified floodlight activity group tag string. + */ + public List setFloodlightActivityGroupTagString(java.lang.String floodlightActivityGroupTagString) { + this.floodlightActivityGroupTagString = floodlightActivityGroupTagString; + return this; + } + + /** Select only floodlight activities with the specified floodlight activity group type. */ + @com.google.api.client.util.Key + private java.lang.String floodlightActivityGroupType; + + /** Select only floodlight activities with the specified floodlight activity group type. + */ + public java.lang.String getFloodlightActivityGroupType() { + return floodlightActivityGroupType; + } + + /** Select only floodlight activities with the specified floodlight activity group type. */ + public List setFloodlightActivityGroupType(java.lang.String floodlightActivityGroupType) { + this.floodlightActivityGroupType = floodlightActivityGroupType; + return this; + } + + /** + * Select only floodlight activities for the specified floodlight configuration ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. + */ + @com.google.api.client.util.Key + private java.lang.Long floodlightConfigurationId; + + /** Select only floodlight activities for the specified floodlight configuration ID. Must specify + either ids, advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public java.lang.Long getFloodlightConfigurationId() { + return floodlightConfigurationId; + } + + /** + * Select only floodlight activities for the specified floodlight configuration ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. */ public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { this.floodlightConfigurationId = floodlightConfigurationId; @@ -20574,13 +20173,13 @@ public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationI } /** - * Select only floodlight activity groups with the specified IDs. Must specify either - * advertiserId or floodlightConfigurationId for a non-empty result. + * Select only floodlight activities with the specified IDs. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. */ @com.google.api.client.util.Key private java.util.List ids; - /** Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or + /** Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result. */ public java.util.List getIds() { @@ -20588,8 +20187,8 @@ public java.util.List getIds() { } /** - * Select only floodlight activity groups with the specified IDs. Must specify either - * advertiserId or floodlightConfigurationId for a non-empty result. + * Select only floodlight activities with the specified IDs. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. */ public List setIds(java.util.List ids) { this.ids = ids; @@ -20630,23 +20229,21 @@ public List setPageToken(java.lang.String pageToken) { /** * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup - * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". - * Most of the searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "floodlightactivitygroup" will match objects with - * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". + * "floodlightactivity*2015" will return objects with names like "floodlightactivity June + * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". */ @com.google.api.client.util.Key private java.lang.String searchString; /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup June - 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". Most of the - searches also add wildcards implicitly at the start and the end of the search string. For example, - a search string of "floodlightactivitygroup" will match objects with name "my - floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - "floodlightactivitygroup". + "floodlightactivity*2015" will return objects with names like "floodlightactivity June 2015", + "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the searches also add + wildcards implicitly at the start and the end of the search string. For example, a search string of + "floodlightactivity" will match objects with name "my floodlightactivity activity", + "floodlightactivity 2015", or simply "floodlightactivity". */ public java.lang.String getSearchString() { return searchString; @@ -20654,12 +20251,11 @@ public java.lang.String getSearchString() { /** * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup - * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". - * Most of the searches also add wildcards implicitly at the start and the end of the search - * string. For example, a search string of "floodlightactivitygroup" will match objects with - * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply - * "floodlightactivitygroup". + * "floodlightactivity*2015" will return objects with names like "floodlightactivity June + * 2015", "floodlightactivity April 2015", or simply "floodlightactivity 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply "floodlightactivity". */ public List setSearchString(java.lang.String searchString) { this.searchString = searchString; @@ -20698,23 +20294,19 @@ public List setSortOrder(java.lang.String sortOrder) { return this; } - /** - * Select only floodlight activity groups with the specified floodlight activity group type. - */ + /** Select only floodlight activities with the specified tag string. */ @com.google.api.client.util.Key - private java.lang.String type; + private java.lang.String tagString; - /** Select only floodlight activity groups with the specified floodlight activity group type. + /** Select only floodlight activities with the specified tag string. */ - public java.lang.String getType() { - return type; + public java.lang.String getTagString() { + return tagString; } - /** - * Select only floodlight activity groups with the specified floodlight activity group type. - */ - public List setType(java.lang.String type) { - this.type = type; + /** Select only floodlight activities with the specified tag string. */ + public List setTagString(java.lang.String tagString) { + this.tagString = tagString; return this; } @@ -20724,35 +20316,35 @@ public List set(String parameterName, Object value) { } } /** - * Updates an existing floodlight activity group. This method supports patch semantics. + * Updates an existing floodlight activity. This method supports patch semantics. * - * Create a request for the method "floodlightActivityGroups.patch". + * Create a request for the method "floodlightActivities.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivity content) throws java.io.IOException { Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity group. This method supports patch semantics. + * Updates an existing floodlight activity. This method supports patch semantics. * - * Create a request for the method "floodlightActivityGroups.patch". + * Create a request for the method "floodlightActivities.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -20762,11 +20354,11 @@ public class Patch extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivities"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight activity group. + * Updates an existing floodlight activity. * - * Create a request for the method "floodlightActivityGroups.update". + * Create a request for the method "floodlightActivities.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -20900,11 +20492,11 @@ public class Update extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivity} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivity content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivity.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -20988,35 +20580,35 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the FloodlightConfigurations collection. + * An accessor for creating requests from the FloodlightActivityGroups collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.FloodlightConfigurations.List request = dfareporting.floodlightConfigurations().list(parameters ...)}
+   *   {@code Dfareporting.FloodlightActivityGroups.List request = dfareporting.floodlightActivityGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public FloodlightConfigurations floodlightConfigurations() { - return new FloodlightConfigurations(); + public FloodlightActivityGroups floodlightActivityGroups() { + return new FloodlightActivityGroups(); } /** - * The "floodlightConfigurations" collection of methods. + * The "floodlightActivityGroups" collection of methods. */ - public class FloodlightConfigurations { + public class FloodlightActivityGroups { /** - * Gets one floodlight configuration by ID. + * Gets one floodlight activity group by ID. * - * Create a request for the method "floodlightConfigurations.get". + * Create a request for the method "floodlightActivityGroups.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Floodlight configuration ID. + * @param id Floodlight activity Group ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -21025,9 +20617,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -21036,9 +20628,9 @@ public class Get extends DfareportingRequest @@ -21046,11 +20638,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Floodlight configuration ID. + * @param id Floodlight activity Group ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -21136,17 +20728,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Floodlight configuration ID. */ + /** Floodlight activity Group ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Floodlight configuration ID. + /** Floodlight activity Group ID. */ public java.lang.Long getId() { return id; } - /** Floodlight configuration ID. */ + /** Floodlight activity Group ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -21158,110 +20750,103 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of floodlight configurations, possibly filtered. + * Inserts a new floodlight activity group. * - * Create a request for the method "floodlightConfigurations.list". + * Create a request for the method "floodlightActivityGroups.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of floodlight configurations, possibly filtered. + * Inserts a new floodlight activity group. * - * Create a request for the method "floodlightConfigurations.list". + * Create a request for the method "floodlightActivityGroups.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfigurationsListResponse.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21275,140 +20860,121 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty - * list will be returned. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will - be returned. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty - * list will be returned. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates an existing floodlight configuration. This method supports patch semantics. + * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightConfigurations.patch". + * Create a request for the method "floodlightActivityGroups.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing floodlight configuration. This method supports patch semantics. + * Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging. * - * Create a request for the method "floodlightConfigurations.patch". + * Create a request for the method "floodlightActivityGroups.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. EventTag ID. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightActivityGroupsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21422,281 +20988,308 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. EventTag ID. */ + /** + * Select only floodlight activity groups with the specified advertiser ID. Must specify + * either advertiserId or floodlightConfigurationId for a non-empty result. + */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long advertiserId; - /** Required. EventTag ID. + /** Select only floodlight activity groups with the specified advertiser ID. Must specify either + advertiserId or floodlightConfigurationId for a non-empty result. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** Required. EventTag ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; + /** + * Select only floodlight activity groups with the specified advertiser ID. Must specify + * either advertiserId or floodlightConfigurationId for a non-empty result. + */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Updates an existing floodlight configuration. - * - * Create a request for the method "floodlightConfigurations.update". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} - * @return the request - */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { - Update result = new Update(profileId, content); - initialize(result); - return result; - } - - public class Update extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Updates an existing floodlight configuration. - * - * Create a request for the method "floodlightConfigurations.update". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} - * @since 1.13 + * Select only floodlight activity groups with the specified floodlight configuration ID. Must + * specify either advertiserId, or floodlightConfigurationId for a non-empty result. */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + @com.google.api.client.util.Key + private java.lang.Long floodlightConfigurationId; + + /** Select only floodlight activity groups with the specified floodlight configuration ID. Must specify + either advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public java.lang.Long getFloodlightConfigurationId() { + return floodlightConfigurationId; } - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + /** + * Select only floodlight activity groups with the specified floodlight configuration ID. Must + * specify either advertiserId, or floodlightConfigurationId for a non-empty result. + */ + public List setFloodlightConfigurationId(java.lang.Long floodlightConfigurationId) { + this.floodlightConfigurationId = floodlightConfigurationId; + return this; } - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } + /** + * Select only floodlight activity groups with the specified IDs. Must specify either + * advertiserId or floodlightConfigurationId for a non-empty result. + */ + @com.google.api.client.util.Key + private java.util.List ids; - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + /** Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or + floodlightConfigurationId for a non-empty result. + */ + public java.util.List getIds() { + return ids; } - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + /** + * Select only floodlight activity groups with the specified IDs. Must specify either + * advertiserId or floodlightConfigurationId for a non-empty result. + */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup + * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". + * Most of the searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "floodlightactivitygroup" will match objects with + * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup June + 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". Most of the + searches also add wildcards implicitly at the start and the end of the search string. For example, + a search string of "floodlightactivitygroup" will match objects with name "my + floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + "floodlightactivitygroup". + */ + public java.lang.String getSearchString() { + return searchString; } - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup + * June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". + * Most of the searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "floodlightactivitygroup" will match objects with + * name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; } - /** User profile ID associated with this request. */ + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String sortField; - /** User profile ID associated with this request. + /** Field by which to sort the list. [default: ID] */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getSortField() { + return sortField; } - /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; } - } - } + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } - /** - * An accessor for creating requests from the Languages collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Languages.List request = dfareporting.languages().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Languages languages() { - return new Languages(); - } + /** + * Select only floodlight activity groups with the specified floodlight activity group type. + */ + @com.google.api.client.util.Key + private java.lang.String type; - /** - * The "languages" collection of methods. - */ - public class Languages { + /** Select only floodlight activity groups with the specified floodlight activity group type. + */ + public java.lang.String getType() { + return type; + } + + /** + * Select only floodlight activity groups with the specified floodlight activity group type. + */ + public List setType(java.lang.String type) { + this.type = type; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Retrieves a list of languages. + * Updates an existing floodlight activity group. This method supports patch semantics. * - * Create a request for the method "languages.list". + * Create a request for the method "floodlightActivityGroups.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/languages"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of languages. + * Updates an existing floodlight activity group. This method supports patch semantics. * - * Create a request for the method "languages.list". + * Create a request for the method "floodlightActivityGroups.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.LanguagesListResponse.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21710,144 +21303,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** Required. EventTag ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the Metros collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Metros.List request = dfareporting.metros().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Metros metros() { - return new Metros(); - } + /** Required. EventTag ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "metros" collection of methods. - */ - public class Metros { + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } /** - * Retrieves a list of metros. + * Updates an existing floodlight activity group. * - * Create a request for the method "metros.list". + * Create a request for the method "floodlightActivityGroups.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/metros"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightActivityGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of metros. + * Updates an existing floodlight activity group. * - * Create a request for the method "metros.list". + * Create a request for the method "floodlightActivityGroups.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightActivityGroup} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MetrosListResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightActivityGroup content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightActivityGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -21861,60 +21440,60 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MobileApps collection. + * An accessor for creating requests from the FloodlightConfigurations collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.MobileApps.List request = dfareporting.mobileApps().list(parameters ...)}
+   *   {@code Dfareporting.FloodlightConfigurations.List request = dfareporting.floodlightConfigurations().list(parameters ...)}
    * 
* * @return the resource collection */ - public MobileApps mobileApps() { - return new MobileApps(); + public FloodlightConfigurations floodlightConfigurations() { + return new FloodlightConfigurations(); } /** - * The "mobileApps" collection of methods. + * The "floodlightConfigurations" collection of methods. */ - public class MobileApps { + public class FloodlightConfigurations { /** - * Gets one mobile app by ID. + * Gets one floodlight configuration by ID. * - * Create a request for the method "mobileApps.get". + * Create a request for the method "floodlightConfigurations.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Mobile app ID. + * @param id Floodlight configuration ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.String id) throws java.io.IOException { + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { Get result = new Get(profileId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -21923,9 +21502,9 @@ public class Get extends DfareportingRequest @@ -21933,18 +21512,13 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Mobile app ID. + * @param id Floodlight configuration ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.String id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileApp.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), - "Parameter id must conform to the pattern " + - "^[^/]+$"); - } } @Override @@ -22028,23 +21602,18 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Mobile app ID. */ + /** Floodlight configuration ID. */ @com.google.api.client.util.Key - private java.lang.String id; + private java.lang.Long id; - /** Mobile app ID. + /** Floodlight configuration ID. */ - public java.lang.String getId() { + public java.lang.Long getId() { return id; } - /** Mobile app ID. */ - public Get setId(java.lang.String id) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), - "Parameter id must conform to the pattern " + - "^[^/]+$"); - } + /** Floodlight configuration ID. */ + public Get setId(java.lang.Long id) { this.id = id; return this; } @@ -22055,9 +21624,9 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves list of available mobile apps. + * Retrieves a list of floodlight configurations, possibly filtered. * - * Create a request for the method "mobileApps.list". + * Create a request for the method "floodlightConfigurations.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -22071,17 +21640,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves list of available mobile apps. + * Retrieves a list of floodlight configurations, possibly filtered. * - * Create a request for the method "mobileApps.list". + * Create a request for the method "floodlightConfigurations.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -22092,7 +21661,7 @@ public class List extends DfareportingRequest directories; - - /** Select only apps from these directories. + /** + * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty + * list will be returned. */ - public java.util.List getDirectories() { - return directories; - } - - /** Select only apps from these directories. */ - public List setDirectories(java.util.List directories) { - this.directories = directories; - return this; - } - - /** Select only apps with these IDs. */ @com.google.api.client.util.Key - private java.util.List ids; + private java.util.List ids; - /** Select only apps with these IDs. + /** Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will + be returned. */ - public java.util.List getIds() { + public java.util.List getIds() { return ids; } - /** Select only apps with these IDs. */ - public List setIds(java.util.List ids) { + /** + * Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty + * list will be returned. + */ + public List setIds(java.util.List ids) { this.ids = ids; return this; } - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; - - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } - - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply - * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of - * the search string. For example, a search string of "app" will match objects with name "my - * app", "app 2018", or simply "app". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "app*2015" will - return objects with names like "app Jan 2018", "app Jan 2018", or simply "app 2018". Most of the - searches also add wildcards implicitly at the start and the end of the search string. For example, - a search string of "app" will match objects with name "my app", "app 2018", or simply "app". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply - * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of - * the search string. For example, a search string of "app" will match objects with name "my - * app", "app 2018", or simply "app". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the MobileCarriers collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.MobileCarriers.List request = dfareporting.mobileCarriers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public MobileCarriers mobileCarriers() { - return new MobileCarriers(); - } - - /** - * The "mobileCarriers" collection of methods. - */ - public class MobileCarriers { - /** - * Gets one mobile carrier by ID. + * Updates an existing floodlight configuration. This method supports patch semantics. * - * Create a request for the method "mobileCarriers.get". + * Create a request for the method "floodlightConfigurations.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Mobile carrier ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one mobile carrier by ID. + * Updates an existing floodlight configuration. This method supports patch semantics. * - * Create a request for the method "mobileCarriers.get". + * Create a request for the method "floodlightConfigurations.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Mobile carrier ID. + * @param id Required. EventTag ID. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarrier.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -22424,137 +21888,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Mobile carrier ID. */ + /** Required. EventTag ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Mobile carrier ID. + /** Required. EventTag ID. */ public java.lang.Long getId() { return id; } - /** Mobile carrier ID. */ - public Get setId(java.lang.Long id) { + /** Required. EventTag ID. */ + public Patch setId(java.lang.Long id) { this.id = id; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves a list of mobile carriers. + * Updates an existing floodlight configuration. * - * Create a request for the method "mobileCarriers.list". + * Create a request for the method "floodlightConfigurations.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers"; + private static final String REST_PATH = "userprofiles/{+profileId}/floodlightConfigurations"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of mobile carriers. + * Updates an existing floodlight configuration. * - * Create a request for the method "mobileCarriers.list". + * Create a request for the method "floodlightConfigurations.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.FloodlightConfiguration} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarriersListResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.FloodlightConfiguration content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.FloodlightConfiguration.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -22568,85 +22025,79 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the OperatingSystemVersions collection. + * An accessor for creating requests from the Languages collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.OperatingSystemVersions.List request = dfareporting.operatingSystemVersions().list(parameters ...)}
+   *   {@code Dfareporting.Languages.List request = dfareporting.languages().list(parameters ...)}
    * 
* * @return the resource collection */ - public OperatingSystemVersions operatingSystemVersions() { - return new OperatingSystemVersions(); + public Languages languages() { + return new Languages(); } /** - * The "operatingSystemVersions" collection of methods. + * The "languages" collection of methods. */ - public class OperatingSystemVersions { + public class Languages { /** - * Gets one operating system version by ID. + * Retrieves a list of languages. * - * Create a request for the method "operatingSystemVersions.get". + * Create a request for the method "languages.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Operating system version ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/languages"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one operating system version by ID. + * Retrieves a list of languages. * - * Create a request for the method "operatingSystemVersions.get". + * Create a request for the method "languages.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Operating system version ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersion.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.LanguagesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -22660,58 +22111,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -22725,36 +22176,43 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Operating system version ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Operating system version ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Operating system version ID. */ - public Get setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Metros collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Metros.List request = dfareporting.metros().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Metros metros() { + return new Metros(); + } + + /** + * The "metros" collection of methods. + */ + public class Metros { + /** - * Retrieves a list of operating system versions. + * Retrieves a list of metros. * - * Create a request for the method "operatingSystemVersions.list". + * Create a request for the method "metros.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -22768,17 +22226,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions"; + private static final String REST_PATH = "userprofiles/{+profileId}/metros"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of operating system versions. + * Retrieves a list of metros. * - * Create a request for the method "operatingSystemVersions.list". + * Create a request for the method "metros.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -22789,7 +22247,7 @@ public class List extends DfareportingRequestThe typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.OperatingSystems.List request = dfareporting.operatingSystems().list(parameters ...)}
+   *   {@code Dfareporting.MobileApps.List request = dfareporting.mobileApps().list(parameters ...)}
    * 
* * @return the resource collection */ - public OperatingSystems operatingSystems() { - return new OperatingSystems(); + public MobileApps mobileApps() { + return new MobileApps(); } /** - * The "operatingSystems" collection of methods. + * The "mobileApps" collection of methods. */ - public class OperatingSystems { + public class MobileApps { /** - * Gets one operating system by DART ID. + * Gets one mobile app by ID. * - * Create a request for the method "operatingSystems.get". + * Create a request for the method "mobileApps.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param dartId Operating system DART ID. + * @param id Mobile app ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long dartId) throws java.io.IOException { - Get result = new Get(profileId, dartId); + public Get get(java.lang.Long profileId, java.lang.String id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems/{+dartId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern DART_ID_PATTERN = + private final java.util.regex.Pattern ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one operating system by DART ID. + * Gets one mobile app by ID. * - * Create a request for the method "operatingSystems.get". + * Create a request for the method "mobileApps.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

@@ -22941,13 +22399,18 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param dartId Operating system DART ID. + * @param id Mobile app ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long dartId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystem.class); + protected Get(java.lang.Long profileId, java.lang.String id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileApp.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.dartId = com.google.api.client.util.Preconditions.checkNotNull(dartId, "Required parameter dartId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), + "Parameter id must conform to the pattern " + + "^[^/]+$"); + } } @Override @@ -23031,19 +22494,24 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Operating system DART ID. */ + /** Mobile app ID. */ @com.google.api.client.util.Key - private java.lang.Long dartId; + private java.lang.String id; - /** Operating system DART ID. + /** Mobile app ID. */ - public java.lang.Long getDartId() { - return dartId; + public java.lang.String getId() { + return id; } - /** Operating system DART ID. */ - public Get setDartId(java.lang.Long dartId) { - this.dartId = dartId; + /** Mobile app ID. */ + public Get setId(java.lang.String id) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ID_PATTERN.matcher(id).matches(), + "Parameter id must conform to the pattern " + + "^[^/]+$"); + } + this.id = id; return this; } @@ -23053,9 +22521,9 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of operating systems. + * Retrieves list of available mobile apps. * - * Create a request for the method "operatingSystems.list". + * Create a request for the method "mobileApps.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -23069,17 +22537,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileApps"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of operating systems. + * Retrieves list of available mobile apps. * - * Create a request for the method "operatingSystems.list". + * Create a request for the method "mobileApps.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -23090,7 +22558,7 @@ public class List extends DfareportingRequest directories; + + /** Select only apps from these directories. + */ + public java.util.List getDirectories() { + return directories; + } + + /** Select only apps from these directories. */ + public List setDirectories(java.util.List directories) { + this.directories = directories; + return this; + } + + /** Select only apps with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only apps with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only apps with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply + * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of + * the search string. For example, a search string of "app" will match objects with name "my + * app", "app 2018", or simply "app". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "app*2015" will + return objects with names like "app Jan 2018", "app Jan 2018", or simply "app 2018". Most of the + searches also add wildcards implicitly at the start and the end of the search string. For example, + a search string of "app" will match objects with name "my app", "app 2018", or simply "app". + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "app*2015" will return objects with names like "app Jan 2018", "app Jan 2018", or simply + * "app 2018". Most of the searches also add wildcards implicitly at the start and the end of + * the search string. For example, a search string of "app" will match objects with name "my + * app", "app 2018", or simply "app". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + } /** - * An accessor for creating requests from the PlacementGroups collection. + * An accessor for creating requests from the MobileCarriers collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlacementGroups.List request = dfareporting.placementGroups().list(parameters ...)}
+   *   {@code Dfareporting.MobileCarriers.List request = dfareporting.mobileCarriers().list(parameters ...)}
    * 
* * @return the resource collection */ - public PlacementGroups placementGroups() { - return new PlacementGroups(); + public MobileCarriers mobileCarriers() { + return new MobileCarriers(); } /** - * The "placementGroups" collection of methods. + * The "mobileCarriers" collection of methods. */ - public class PlacementGroups { + public class MobileCarriers { /** - * Gets one placement group by ID. + * Gets one mobile carrier by ID. * - * Create a request for the method "placementGroups.get". + * Create a request for the method "mobileCarriers.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement group ID. + * @param id Mobile carrier ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -23221,9 +22784,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -23232,9 +22795,9 @@ public class Get extends DfareportingRequest @@ -23242,11 +22805,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Placement group ID. + * @param id Mobile carrier ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroup.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarrier.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -23332,17 +22895,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Placement group ID. */ + /** Mobile carrier ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Placement group ID. + /** Mobile carrier ID. */ public java.lang.Long getId() { return id; } - /** Placement group ID. */ + /** Mobile carrier ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -23354,103 +22917,110 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new placement group. + * Retrieves a list of mobile carriers. * - * Create a request for the method "placementGroups.insert". + * Create a request for the method "mobileCarriers.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/mobileCarriers"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new placement group. + * Retrieves a list of mobile carriers. * - * Create a request for the method "placementGroups.insert". + * Create a request for the method "mobileCarriers.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.MobileCarriersListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -23464,56 +23034,85 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the OperatingSystemVersions collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.OperatingSystemVersions.List request = dfareporting.operatingSystemVersions().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OperatingSystemVersions operatingSystemVersions() { + return new OperatingSystemVersions(); + } + + /** + * The "operatingSystemVersions" collection of methods. + */ + public class OperatingSystemVersions { + /** - * Retrieves a list of placement groups, possibly filtered. This method supports paging. + * Gets one operating system version by ID. * - * Create a request for the method "placementGroups.list". + * Create a request for the method "operatingSystemVersions.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Operating system version ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Retrieves a list of placement groups, possibly filtered. This method supports paging. + * Gets one operating system version by ID. * - * Create a request for the method "placementGroups.list". + * Create a request for the method "operatingSystemVersions.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Operating system version ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroupsListResponse.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersion.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -23527,58 +23126,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -23592,484 +23191,438 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Select only placements with these active statuses. */ + /** Operating system version ID. */ @com.google.api.client.util.Key - private java.util.List activeStatus; + private java.lang.Long id; - /** Select only placements with these active statuses. + /** Operating system version ID. */ - public java.util.List getActiveStatus() { - return activeStatus; + public java.lang.Long getId() { + return id; } - /** Select only placements with these active statuses. */ - public List setActiveStatus(java.util.List activeStatus) { - this.activeStatus = activeStatus; + /** Operating system version ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } - /** Select only placement groups that belong to these advertisers. */ - @com.google.api.client.util.Key - private java.util.List advertiserIds; - - /** Select only placement groups that belong to these advertisers. - */ - public java.util.List getAdvertiserIds() { - return advertiserIds; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Retrieves a list of operating system versions. + * + * Create a request for the method "operatingSystemVersions.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @return the request + */ + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); + initialize(result); + return result; + } - /** Select only placement groups that belong to these advertisers. */ - public List setAdvertiserIds(java.util.List advertiserIds) { - this.advertiserIds = advertiserIds; - return this; - } + public class List extends DfareportingRequest { - /** Select only placement groups that belong to these campaigns. */ - @com.google.api.client.util.Key - private java.util.List campaignIds; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystemVersions"; - /** Select only placement groups that belong to these campaigns. + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Retrieves a list of operating system versions. + * + * Create a request for the method "operatingSystemVersions.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @since 1.13 */ - public java.util.List getCampaignIds() { - return campaignIds; + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemVersionsListResponse.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } - /** Select only placement groups that belong to these campaigns. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Select only placement groups that are associated with these content categories. */ - @com.google.api.client.util.Key - private java.util.List contentCategoryIds; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Select only placement groups that are associated with these content categories. - */ - public java.util.List getContentCategoryIds() { - return contentCategoryIds; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } - /** Select only placement groups that are associated with these content categories. */ - public List setContentCategoryIds(java.util.List contentCategoryIds) { - this.contentCategoryIds = contentCategoryIds; - return this; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } - /** Select only placement groups that are associated with these directory sites. */ - @com.google.api.client.util.Key - private java.util.List directorySiteIds; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Select only placement groups that are associated with these directory sites. - */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } - /** Select only placement groups that are associated with these directory sites. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; - return this; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } - /** Select only placement groups with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Select only placement groups with these IDs. - */ - public java.util.List getIds() { - return ids; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } - /** Select only placement groups with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String maxEndDate; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxEndDate() { - return maxEndDate; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxEndDate(java.lang.String maxEndDate) { - this.maxEndDate = maxEndDate; - return this; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Maximum number of results to return. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long profileId; - /** Maximum number of results to return. [default: 800] + /** User profile ID associated with this request. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getProfileId() { + return profileId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String maxStartDate; - - /** Select only placements or placement groups whose start date is on or before the specified - maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxStartDate() { - return maxStartDate; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } + } + + } + + /** + * An accessor for creating requests from the OperatingSystems collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.OperatingSystems.List request = dfareporting.operatingSystems().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OperatingSystems operatingSystems() { + return new OperatingSystems(); + } + + /** + * The "operatingSystems" collection of methods. + */ + public class OperatingSystems { + + /** + * Gets one operating system by DART ID. + * + * Create a request for the method "operatingSystems.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param dartId Operating system DART ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long dartId) throws java.io.IOException { + Get result = new Get(profileId, dartId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems/{+dartId}"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + private final java.util.regex.Pattern DART_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". + * Gets one operating system by DART ID. + * + * Create a request for the method "operatingSystems.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param dartId Operating system DART ID. + * @since 1.13 */ - public List setMaxStartDate(java.lang.String maxStartDate) { - this.maxStartDate = maxStartDate; - return this; + protected Get(java.lang.Long profileId, java.lang.Long dartId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystem.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.dartId = com.google.api.client.util.Preconditions.checkNotNull(dartId, "Required parameter dartId must be specified."); } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String minEndDate; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Select only placements or placement groups whose end date is on or after the specified minEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMinEndDate() { - return minEndDate; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinEndDate(java.lang.String minEndDate) { - this.minEndDate = minEndDate; - return this; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String minStartDate; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** Select only placements or placement groups whose start date is on or after the specified - minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMinStartDate() { - return minStartDate; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinStartDate(java.lang.String minStartDate) { - this.minStartDate = minStartDate; - return this; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** - * Select only placement groups belonging with this group type. A package is a simple group of - * placements that acts as a single pricing point for a group of tags. A roadblock is a group - * of placements that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its assigned - * placements to be marked as primary for reporting. - */ - @com.google.api.client.util.Key - private java.lang.String placementGroupType; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Select only placement groups belonging with this group type. A package is a simple group of - placements that acts as a single pricing point for a group of tags. A roadblock is a group of - placements that not only acts as a single pricing point but also assumes that all the tags in it - will be served at the same time. A roadblock requires one of its assigned placements to be marked - as primary for reporting. - */ - public java.lang.String getPlacementGroupType() { - return placementGroupType; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Select only placement groups belonging with this group type. A package is a simple group of - * placements that acts as a single pricing point for a group of tags. A roadblock is a group - * of placements that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its assigned - * placements to be marked as primary for reporting. - */ - public List setPlacementGroupType(java.lang.String placementGroupType) { - this.placementGroupType = placementGroupType; - return this; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Select only placement groups that are associated with these placement strategies. */ + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.util.List placementStrategyIds; + private java.lang.Long profileId; - /** Select only placement groups that are associated with these placement strategies. + /** User profile ID associated with this request. */ - public java.util.List getPlacementStrategyIds() { - return placementStrategyIds; + public java.lang.Long getProfileId() { + return profileId; } - /** Select only placement groups that are associated with these placement strategies. */ - public List setPlacementStrategyIds(java.util.List placementStrategyIds) { - this.placementStrategyIds = placementStrategyIds; + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** Select only placement groups with these pricing types. */ + /** Operating system DART ID. */ @com.google.api.client.util.Key - private java.util.List pricingTypes; + private java.lang.Long dartId; - /** Select only placement groups with these pricing types. + /** Operating system DART ID. */ - public java.util.List getPricingTypes() { - return pricingTypes; + public java.lang.Long getDartId() { + return dartId; } - /** Select only placement groups with these pricing types. */ - public List setPricingTypes(java.util.List pricingTypes) { - this.pricingTypes = pricingTypes; - return this; - } - - /** - * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For - * example, "placement*2015" will return placement groups with names like "placement group - * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementgroup" will match placement groups with name "my - * placementgroup", "placementgroup 2015", or simply "placementgroup". - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, - "placement*2015" will return placement groups with names like "placement group June 2015", - "placement group May 2015", or simply "placements 2015". Most of the searches also add wildcards - implicitly at the start and the end of the search string. For example, a search string of - "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015", - or simply "placementgroup". - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For - * example, "placement*2015" will return placement groups with names like "placement group - * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches - * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementgroup" will match placement groups with name "my - * placementgroup", "placementgroup 2015", or simply "placementgroup". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Select only placement groups that are associated with these sites. */ - @com.google.api.client.util.Key - private java.util.List siteIds; - - /** Select only placement groups that are associated with these sites. - */ - public java.util.List getSiteIds() { - return siteIds; - } - - /** Select only placement groups that are associated with these sites. */ - public List setSiteIds(java.util.List siteIds) { - this.siteIds = siteIds; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; - - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } - - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Operating system DART ID. */ + public Get setDartId(java.lang.Long dartId) { + this.dartId = dartId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates an existing placement group. This method supports patch semantics. + * Retrieves a list of operating systems. * - * Create a request for the method "placementGroups.patch". + * Create a request for the method "operatingSystems.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/operatingSystems"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement group. This method supports patch semantics. + * Retrieves a list of operating systems. * - * Create a request for the method "placementGroups.patch". + * Create a request for the method "operatingSystems.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.OperatingSystemsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24083,130 +23636,150 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Placement ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Required. Placement ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Required. Placement ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PlacementGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.PlacementGroups.List request = dfareporting.placementGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PlacementGroups placementGroups() { + return new PlacementGroups(); + } + + /** + * The "placementGroups" collection of methods. + */ + public class PlacementGroups { + /** - * Updates an existing placement group. + * Gets one placement group by ID. * - * Create a request for the method "placementGroups.update". + * Create a request for the method "placementGroups.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} + * @param id Placement group ID. * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing placement group. + * Gets one placement group by ID. * - * Create a request for the method "placementGroups.update". + * Create a request for the method "placementGroups.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} + * @param id Placement group ID. * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24220,141 +23793,130 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Placement group ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** - * An accessor for creating requests from the PlacementStrategies collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlacementStrategies.List request = dfareporting.placementStrategies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PlacementStrategies placementStrategies() { - return new PlacementStrategies(); - } + /** Placement group ID. + */ + public java.lang.Long getId() { + return id; + } - /** - * The "placementStrategies" collection of methods. - */ - public class PlacementStrategies { + /** Placement group ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Deletes an existing placement strategy. + * Inserts a new placement group. * - * Create a request for the method "placementStrategies.delete". + * Create a request for the method "placementGroups.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Delete result = new Delete(profileId, id); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Delete extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Deletes an existing placement strategy. + * Inserts a new placement group. * - * Create a request for the method "placementStrategies.delete". + * Create a request for the method "placementGroups.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24368,78 +23930,56 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Delete setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Placement strategy ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Placement strategy ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Placement strategy ID. */ - public Delete setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Gets one placement strategy by ID. + * Retrieves a list of placement groups, possibly filtered. This method supports paging. * - * Create a request for the method "placementStrategies.get". + * Create a request for the method "placementGroups.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one placement strategy by ID. + * Retrieves a list of placement groups, possibly filtered. This method supports paging. * - * Create a request for the method "placementStrategies.get". + * Create a request for the method "placementGroups.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Placement strategy ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategy.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementGroupsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override @@ -24453,58 +23993,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -24518,359 +24058,346 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Placement strategy ID. */ + /** Select only placements with these active statuses. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.util.List activeStatus; - /** Placement strategy ID. + /** Select only placements with these active statuses. */ - public java.lang.Long getId() { - return id; + public java.util.List getActiveStatus() { + return activeStatus; } - /** Placement strategy ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Select only placements with these active statuses. */ + public List setActiveStatus(java.util.List activeStatus) { + this.activeStatus = activeStatus; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Inserts a new placement strategy. - * - * Create a request for the method "placementStrategies.insert". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} - * @return the request - */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { - Insert result = new Insert(profileId, content); - initialize(result); - return result; - } - - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placement groups that belong to these advertisers. */ + @com.google.api.client.util.Key + private java.util.List advertiserIds; - /** - * Inserts a new placement strategy. - * - * Create a request for the method "placementStrategies.insert". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} - * @since 1.13 + /** Select only placement groups that belong to these advertisers. */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + public java.util.List getAdvertiserIds() { + return advertiserIds; } - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + /** Select only placement groups that belong to these advertisers. */ + public List setAdvertiserIds(java.util.List advertiserIds) { + this.advertiserIds = advertiserIds; + return this; } - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } + /** Select only placement groups that belong to these campaigns. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + /** Select only placement groups that belong to these campaigns. + */ + public java.util.List getCampaignIds() { + return campaignIds; } - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + /** Select only placement groups that belong to these campaigns. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; } - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } + /** Select only placement groups that are associated with these content categories. */ + @com.google.api.client.util.Key + private java.util.List contentCategoryIds; - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + /** Select only placement groups that are associated with these content categories. + */ + public java.util.List getContentCategoryIds() { + return contentCategoryIds; } - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + /** Select only placement groups that are associated with these content categories. */ + public List setContentCategoryIds(java.util.List contentCategoryIds) { + this.contentCategoryIds = contentCategoryIds; + return this; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + /** Select only placement groups that are associated with these directory sites. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; + + /** Select only placement groups that are associated with these directory sites. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; } - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + /** Select only placement groups that are associated with these directory sites. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + /** Select only placement groups with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only placement groups with these IDs. + */ + public java.util.List getIds() { + return ids; } - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + /** Select only placement groups with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - /** User profile ID associated with this request. */ + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String maxEndDate; - /** User profile ID associated with this request. + /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. + The date should be formatted as "yyyy-MM-dd". */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getMaxEndDate() { + return maxEndDate; } - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxEndDate(java.lang.String maxEndDate) { + this.maxEndDate = maxEndDate; return this; } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 800] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - } - /** - * Retrieves a list of placement strategies, possibly filtered. This method supports paging. - * - * Create a request for the method "placementStrategies.list". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @return the request - */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); - initialize(result); - return result; - } - public class List extends DfareportingRequest { + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String maxStartDate; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placements or placement groups whose start date is on or before the specified + maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMaxStartDate() { + return maxStartDate; + } /** - * Retrieves a list of placement strategies, possibly filtered. This method supports paging. - * - * Create a request for the method "placementStrategies.list". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @since 1.13 + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategiesListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + public List setMaxStartDate(java.lang.String maxStartDate) { + this.maxStartDate = maxStartDate; + return this; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String minEndDate; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + /** Select only placements or placement groups whose end date is on or after the specified minEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinEndDate() { + return minEndDate; } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinEndDate(java.lang.String minEndDate) { + this.minEndDate = minEndDate; + return this; } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String minStartDate; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** Select only placements or placement groups whose start date is on or after the specified + minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinStartDate() { + return minStartDate; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinStartDate(java.lang.String minStartDate) { + this.minStartDate = minStartDate; + return this; } - /** User profile ID associated with this request. */ + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String pageToken; - /** User profile ID associated with this request. + /** Value of the nextPageToken from the previous result page. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getPageToken() { + return pageToken; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Select only placement strategies with these IDs. */ + /** + * Select only placement groups belonging with this group type. A package is a simple group of + * placements that acts as a single pricing point for a group of tags. A roadblock is a group + * of placements that not only acts as a single pricing point but also assumes that all the + * tags in it will be served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ @com.google.api.client.util.Key - private java.util.List ids; + private java.lang.String placementGroupType; - /** Select only placement strategies with these IDs. + /** Select only placement groups belonging with this group type. A package is a simple group of + placements that acts as a single pricing point for a group of tags. A roadblock is a group of + placements that not only acts as a single pricing point but also assumes that all the tags in it + will be served at the same time. A roadblock requires one of its assigned placements to be marked + as primary for reporting. */ - public java.util.List getIds() { - return ids; + public java.lang.String getPlacementGroupType() { + return placementGroupType; } - /** Select only placement strategies with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; + /** + * Select only placement groups belonging with this group type. A package is a simple group of + * placements that acts as a single pricing point for a group of tags. A roadblock is a group + * of placements that not only acts as a single pricing point but also assumes that all the + * tags in it will be served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ + public List setPlacementGroupType(java.lang.String placementGroupType) { + this.placementGroupType = placementGroupType; return this; } - /** Maximum number of results to return. */ + /** Select only placement groups that are associated with these placement strategies. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.util.List placementStrategyIds; - /** Maximum number of results to return. [default: 1000] + /** Select only placement groups that are associated with these placement strategies. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.util.List getPlacementStrategyIds() { + return placementStrategyIds; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** Select only placement groups that are associated with these placement strategies. */ + public List setPlacementStrategyIds(java.util.List placementStrategyIds) { + this.placementStrategyIds = placementStrategyIds; return this; } - /** Value of the nextPageToken from the previous result page. */ + /** Select only placement groups with these pricing types. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.util.List pricingTypes; - /** Value of the nextPageToken from the previous result page. + /** Select only placement groups with these pricing types. */ - public java.lang.String getPageToken() { - return pageToken; + public java.util.List getPricingTypes() { + return pricingTypes; } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Select only placement groups with these pricing types. */ + public List setPricingTypes(java.util.List pricingTypes) { + this.pricingTypes = pricingTypes; return this; } /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For + * example, "placement*2015" will return placement groups with names like "placement group + * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my placementstrategy", - * "placementstrategy 2015", or simply "placementstrategy". + * search string of "placementgroup" will match placement groups with name "my + * placementgroup", "placementgroup 2015", or simply "placementgroup". */ @com.google.api.client.util.Key private java.lang.String searchString; - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches also add - wildcards implicitly at the start and the end of the search string. For example, a search string of - "placementstrategy" will match objects with name "my placementstrategy", "placementstrategy 2015", - or simply "placementstrategy". + /** Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, + "placement*2015" will return placement groups with names like "placement group June 2015", + "placement group May 2015", or simply "placements 2015". Most of the searches also add wildcards + implicitly at the start and the end of the search string. For example, a search string of + "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015", + or simply "placementgroup". */ public java.lang.String getSearchString() { return searchString; } /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", - * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For + * example, "placement*2015" will return placement groups with names like "placement group + * June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches * also add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my placementstrategy", - * "placementstrategy 2015", or simply "placementstrategy". + * search string of "placementgroup" will match placement groups with name "my + * placementgroup", "placementgroup 2015", or simply "placementgroup". */ public List setSearchString(java.lang.String searchString) { this.searchString = searchString; return this; } + /** Select only placement groups that are associated with these sites. */ + @com.google.api.client.util.Key + private java.util.List siteIds; + + /** Select only placement groups that are associated with these sites. + */ + public java.util.List getSiteIds() { + return siteIds; + } + + /** Select only placement groups that are associated with these sites. */ + public List setSiteIds(java.util.List siteIds) { + this.siteIds = siteIds; + return this; + } + /** Field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; @@ -24909,35 +24436,35 @@ public List set(String parameterName, Object value) { } } /** - * Updates an existing placement strategy. This method supports patch semantics. + * Updates an existing placement group. This method supports patch semantics. * - * Create a request for the method "placementStrategies.patch". + * Create a request for the method "placementGroups.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. PlacementStrategy ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement strategy. This method supports patch semantics. + * Updates an existing placement group. This method supports patch semantics. * - * Create a request for the method "placementStrategies.patch". + * Create a request for the method "placementGroups.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -24946,12 +24473,12 @@ public class Patch extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Required. PlacementStrategy ID. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -25027,17 +24554,17 @@ public Patch setProfileId(java.lang.Long profileId) { return this; } - /** Required. PlacementStrategy ID. */ + /** Required. Placement ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. PlacementStrategy ID. + /** Required. Placement ID. */ public java.lang.Long getId() { return id; } - /** Required. PlacementStrategy ID. */ + /** Required. Placement ID. */ public Patch setId(java.lang.Long id) { this.id = id; return this; @@ -25049,34 +24576,34 @@ public Patch set(String parameterName, Object value) { } } /** - * Updates an existing placement strategy. + * Updates an existing placement group. * - * Create a request for the method "placementStrategies.update". + * Create a request for the method "placementGroups.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) throws java.io.IOException { Update result = new Update(profileId, content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementGroups"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement strategy. + * Updates an existing placement group. * - * Create a request for the method "placementStrategies.update". + * Create a request for the method "placementGroups.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -25085,11 +24612,11 @@ public class Update extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementGroup} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementGroup content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementGroup.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -25173,121 +24700,127 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Placements collection. + * An accessor for creating requests from the PlacementStrategies collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Placements.List request = dfareporting.placements().list(parameters ...)}
+   *   {@code Dfareporting.PlacementStrategies.List request = dfareporting.placementStrategies().list(parameters ...)}
    * 
* * @return the resource collection */ - public Placements placements() { - return new Placements(); + public PlacementStrategies placementStrategies() { + return new PlacementStrategies(); } /** - * The "placements" collection of methods. + * The "placementStrategies" collection of methods. */ - public class Placements { + public class PlacementStrategies { /** - * Generates tags for a placement. + * Deletes an existing placement strategy. * - * Create a request for the method "placements.generatetags". + * Create a request for the method "placementStrategies.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Generatetags#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Placement strategy ID. * @return the request */ - public Generatetags generatetags(java.lang.Long profileId) throws java.io.IOException { - Generatetags result = new Generatetags(profileId); + public Delete delete(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Delete result = new Delete(profileId, id); initialize(result); return result; } - public class Generatetags extends DfareportingRequest { + public class Delete extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements/generatetags"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Generates tags for a placement. + * Deletes an existing placement strategy. * - * Create a request for the method "placements.generatetags". + * Create a request for the method "placementStrategies.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Generatetags#execute()} method to invoke the remote - * operation.

{@link - * Generatetags#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Placement strategy ID. * @since 1.13 */ - protected Generatetags(java.lang.Long profileId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementsGenerateTagsResponse.class); + protected Delete(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Generatetags set$Xgafv(java.lang.String $Xgafv) { - return (Generatetags) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Generatetags setAccessToken(java.lang.String accessToken) { - return (Generatetags) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Generatetags setAlt(java.lang.String alt) { - return (Generatetags) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Generatetags setCallback(java.lang.String callback) { - return (Generatetags) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Generatetags setFields(java.lang.String fields) { - return (Generatetags) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Generatetags setKey(java.lang.String key) { - return (Generatetags) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Generatetags setOauthToken(java.lang.String oauthToken) { - return (Generatetags) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Generatetags setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generatetags) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Generatetags setQuotaUser(java.lang.String quotaUser) { - return (Generatetags) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Generatetags setUploadType(java.lang.String uploadType) { - return (Generatetags) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Generatetags setUploadProtocol(java.lang.String uploadProtocol) { - return (Generatetags) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -25301,81 +24834,42 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Generatetags setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Generate placements belonging to this campaign. This is a required field. */ - @com.google.api.client.util.Key - private java.lang.Long campaignId; - - /** Generate placements belonging to this campaign. This is a required field. - */ - public java.lang.Long getCampaignId() { - return campaignId; - } - - /** Generate placements belonging to this campaign. This is a required field. */ - public Generatetags setCampaignId(java.lang.Long campaignId) { - this.campaignId = campaignId; - return this; - } - - /** Generate tags for these placements. */ - @com.google.api.client.util.Key - private java.util.List placementIds; - - /** Generate tags for these placements. - */ - public java.util.List getPlacementIds() { - return placementIds; - } - - /** Generate tags for these placements. */ - public Generatetags setPlacementIds(java.util.List placementIds) { - this.placementIds = placementIds; - return this; - } - - /** - * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be - * generated for 1x1 placements. - */ + /** Placement strategy ID. */ @com.google.api.client.util.Key - private java.util.List tagFormats; + private java.lang.Long id; - /** Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated - for 1x1 placements. + /** Placement strategy ID. */ - public java.util.List getTagFormats() { - return tagFormats; + public java.lang.Long getId() { + return id; } - /** - * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be - * generated for 1x1 placements. - */ - public Generatetags setTagFormats(java.util.List tagFormats) { - this.tagFormats = tagFormats; + /** Placement strategy ID. */ + public Delete setId(java.lang.Long id) { + this.id = id; return this; } @Override - public Generatetags set(String parameterName, Object value) { - return (Generatetags) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets one placement by ID. + * Gets one placement strategy by ID. * - * Create a request for the method "placements.get". + * Create a request for the method "placementStrategies.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Placement ID. + * @param id Placement strategy ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -25384,9 +24878,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -25395,9 +24889,9 @@ public class Get extends DfareportingRequest @@ -25405,11 +24899,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Placement ID. + * @param id Placement strategy ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Placement.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -25495,17 +24989,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Placement ID. */ + /** Placement strategy ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Placement ID. + /** Placement strategy ID. */ public java.lang.Long getId() { return id; } - /** Placement ID. */ + /** Placement strategy ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -25517,34 +25011,34 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new placement. + * Inserts a new placement strategy. * - * Create a request for the method "placements.insert". + * Create a request for the method "placementStrategies.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new placement. + * Inserts a new placement strategy. * - * Create a request for the method "placements.insert". + * Create a request for the method "placementStrategies.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -25553,11 +25047,11 @@ public class Insert extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -25638,9 +25132,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of placements, possibly filtered. This method supports paging. + * Retrieves a list of placement strategies, possibly filtered. This method supports paging. * - * Create a request for the method "placements.list". + * Create a request for the method "placementStrategies.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -25654,17 +25148,17 @@ public List list(java.lang.Long profileId) throws java.io.IOException { return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of placements, possibly filtered. This method supports paging. + * Retrieves a list of placement strategies, possibly filtered. This method supports paging. * - * Create a request for the method "placements.list". + * Create a request for the method "placementStrategies.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -25675,7 +25169,7 @@ public class List extends DfareportingRequest activeStatus; + private java.util.List ids; - /** Select only placements with these active statuses. + /** Select only placement strategies with these IDs. */ - public java.util.List getActiveStatus() { - return activeStatus; + public java.util.List getIds() { + return ids; } - /** Select only placements with these active statuses. */ - public List setActiveStatus(java.util.List activeStatus) { - this.activeStatus = activeStatus; + /** Select only placement strategies with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; return this; } - /** Select only placements that belong to these advertisers. */ + /** Maximum number of results to return. */ @com.google.api.client.util.Key - private java.util.List advertiserIds; + private java.lang.Integer maxResults; - /** Select only placements that belong to these advertisers. + /** Maximum number of results to return. [default: 1000] */ - public java.util.List getAdvertiserIds() { - return advertiserIds; + public java.lang.Integer getMaxResults() { + return maxResults; } - /** Select only placements that belong to these advertisers. */ - public List setAdvertiserIds(java.util.List advertiserIds) { - this.advertiserIds = advertiserIds; + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - /** Select only placements that belong to these campaigns. */ + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key - private java.util.List campaignIds; + private java.lang.String pageToken; - /** Select only placements that belong to these campaigns. + /** Value of the nextPageToken from the previous result page. */ - public java.util.List getCampaignIds() { - return campaignIds; + public java.lang.String getPageToken() { + return pageToken; } - /** Select only placements that belong to these campaigns. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Select only placements that are associated with these compatibilities. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular - * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST - * standard. + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my placementstrategy", + * "placementstrategy 2015", or simply "placementstrategy". */ @com.google.api.client.util.Key - private java.util.List compatibilities; + private java.lang.String searchString; - /** Select only placements that are associated with these compatibilities. DISPLAY and - DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or - interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches also add + wildcards implicitly at the start and the end of the search string. For example, a search string of + "placementstrategy" will match objects with name "my placementstrategy", "placementstrategy 2015", + or simply "placementstrategy". */ - public java.util.List getCompatibilities() { - return compatibilities; + public java.lang.String getSearchString() { + return searchString; } /** - * Select only placements that are associated with these compatibilities. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular - * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile - * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST - * standard. + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", + * "placementstrategy April 2015", or simply "placementstrategy 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my placementstrategy", + * "placementstrategy 2015", or simply "placementstrategy". */ - public List setCompatibilities(java.util.List compatibilities) { - this.compatibilities = compatibilities; + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; return this; } - /** Select only placements that are associated with these content categories. */ + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.util.List contentCategoryIds; + private java.lang.String sortField; - /** Select only placements that are associated with these content categories. + /** Field by which to sort the list. [default: ID] */ - public java.util.List getContentCategoryIds() { - return contentCategoryIds; + public java.lang.String getSortField() { + return sortField; } - /** Select only placements that are associated with these content categories. */ - public List setContentCategoryIds(java.util.List contentCategoryIds) { - this.contentCategoryIds = contentCategoryIds; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; return this; } - /** Select only placements that are associated with these directory sites. */ + /** Order of sorted results. */ @com.google.api.client.util.Key - private java.util.List directorySiteIds; + private java.lang.String sortOrder; - /** Select only placements that are associated with these directory sites. + /** Order of sorted results. [default: ASCENDING] */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + public java.lang.String getSortOrder() { + return sortOrder; } - /** Select only placements that are associated with these directory sites. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; return this; } - /** Select only placements that belong to these placement groups. */ - @com.google.api.client.util.Key - private java.util.List groupIds; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing placement strategy. This method supports patch semantics. + * + * Create a request for the method "placementStrategies.patch". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Required. PlacementStrategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @return the request + */ + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); + initialize(result); + return result; + } - /** Select only placements that belong to these placement groups. + public class Patch extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Updates an existing placement strategy. This method supports patch semantics. + * + * Create a request for the method "placementStrategies.patch". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Required. PlacementStrategy ID. + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} + * @since 1.13 */ - public java.util.List getGroupIds() { - return groupIds; + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - /** Select only placements that belong to these placement groups. */ - public List setGroupIds(java.util.List groupIds) { - this.groupIds = groupIds; - return this; + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } - /** Select only placements with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - /** Select only placements with these IDs. - */ - public java.util.List getIds() { - return ids; + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } - /** Select only placements with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String maxEndDate; + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMaxEndDate() { - return maxEndDate; + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } - /** - * Select only placements or placement groups whose end date is on or before the specified - * maxEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxEndDate(java.lang.String maxEndDate) { - this.maxEndDate = maxEndDate; - return this; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.String maxStartDate; + private java.lang.Long profileId; - /** Select only placements or placement groups whose start date is on or before the specified - maxStartDate. The date should be formatted as "yyyy-MM-dd". + /** User profile ID associated with this request. */ - public java.lang.String getMaxStartDate() { - return maxStartDate; + public java.lang.Long getProfileId() { + return profileId; } - /** - * Select only placements or placement groups whose start date is on or before the specified - * maxStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMaxStartDate(java.lang.String maxStartDate) { - this.maxStartDate = maxStartDate; + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String minEndDate; - - /** Select only placements or placement groups whose end date is on or after the specified minEndDate. - The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMinEndDate() { - return minEndDate; - } - - /** - * Select only placements or placement groups whose end date is on or after the specified - * minEndDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinEndDate(java.lang.String minEndDate) { - this.minEndDate = minEndDate; - return this; - } - - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - @com.google.api.client.util.Key - private java.lang.String minStartDate; - - /** Select only placements or placement groups whose start date is on or after the specified - minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public java.lang.String getMinStartDate() { - return minStartDate; - } - - /** - * Select only placements or placement groups whose start date is on or after the specified - * minStartDate. The date should be formatted as "yyyy-MM-dd". - */ - public List setMinStartDate(java.lang.String minStartDate) { - this.minStartDate = minStartDate; - return this; - } - - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Select only placements with this payment source. */ - @com.google.api.client.util.Key - private java.lang.String paymentSource; - - /** Select only placements with this payment source. - */ - public java.lang.String getPaymentSource() { - return paymentSource; - } - - /** Select only placements with this payment source. */ - public List setPaymentSource(java.lang.String paymentSource) { - this.paymentSource = paymentSource; - return this; - } - - /** Select only placements that are associated with these placement strategies. */ - @com.google.api.client.util.Key - private java.util.List placementStrategyIds; - - /** Select only placements that are associated with these placement strategies. - */ - public java.util.List getPlacementStrategyIds() { - return placementStrategyIds; - } - - /** Select only placements that are associated with these placement strategies. */ - public List setPlacementStrategyIds(java.util.List placementStrategyIds) { - this.placementStrategyIds = placementStrategyIds; - return this; - } - - /** Select only placements with these pricing types. */ - @com.google.api.client.util.Key - private java.util.List pricingTypes; - - /** Select only placements with these pricing types. - */ - public java.util.List getPricingTypes() { - return pricingTypes; - } - - /** Select only placements with these pricing types. */ - public List setPricingTypes(java.util.List pricingTypes) { - this.pricingTypes = pricingTypes; - return this; - } - - /** - * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - * "placement*2015" will return placements with names like "placement June 2015", "placement - * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string of "placement" - * will match placements with name "my placement", "placement 2015", or simply "placement" . - */ - @com.google.api.client.util.Key - private java.lang.String searchString; - - /** Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - "placement*2015" will return placements with names like "placement June 2015", "placement May - 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly at the start - and the end of the search string. For example, a search string of "placement" will match placements - with name "my placement", "placement 2015", or simply "placement" . - */ - public java.lang.String getSearchString() { - return searchString; - } - - /** - * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, - * "placement*2015" will return placements with names like "placement June 2015", "placement - * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string of "placement" - * will match placements with name "my placement", "placement 2015", or simply "placement" . - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; - } - - /** Select only placements that are associated with these sites. */ - @com.google.api.client.util.Key - private java.util.List siteIds; - - /** Select only placements that are associated with these sites. - */ - public java.util.List getSiteIds() { - return siteIds; - } - - /** Select only placements that are associated with these sites. */ - public List setSiteIds(java.util.List siteIds) { - this.siteIds = siteIds; - return this; - } - - /** Select only placements that are associated with these sizes. */ - @com.google.api.client.util.Key - private java.util.List sizeIds; - - /** Select only placements that are associated with these sizes. - */ - public java.util.List getSizeIds() { - return sizeIds; - } - - /** Select only placements that are associated with these sizes. */ - public List setSizeIds(java.util.List sizeIds) { - this.sizeIds = sizeIds; - return this; - } - - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; - - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; - } - - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } - - /** Order of sorted results. */ + /** Required. PlacementStrategy ID. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.Long id; - /** Order of sorted results. [default: ASCENDING] + /** Required. PlacementStrategy ID. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.Long getId() { + return id; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** Required. PlacementStrategy ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Updates an existing placement. This method supports patch semantics. + * Updates an existing placement strategy. * - * Create a request for the method "placements.patch". + * Create a request for the method "placementStrategies.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placementStrategies"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement. This method supports patch semantics. + * Updates an existing placement strategy. * - * Create a request for the method "placements.patch". + * Create a request for the method "placementStrategies.update". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Placement ID. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} + * @param content the {@link com.google.api.services.dfareporting.model.PlacementStrategy} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.PlacementStrategy content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.PlacementStrategy.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26290,130 +25625,135 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Placement ID. */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** Required. Placement ID. - */ - public java.lang.Long getId() { - return id; - } - - /** Required. Placement ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Placements collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Placements.List request = dfareporting.placements().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Placements placements() { + return new Placements(); + } + + /** + * The "placements" collection of methods. + */ + public class Placements { + /** - * Updates an existing placement. + * Generates tags for a placement. * - * Create a request for the method "placements.update". + * Create a request for the method "placements.generatetags". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Generatetags#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Generatetags generatetags(java.lang.Long profileId) throws java.io.IOException { + Generatetags result = new Generatetags(profileId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Generatetags extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/placements"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements/generatetags"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing placement. + * Generates tags for a placement. * - * Create a request for the method "placements.update". + * Create a request for the method "placements.generatetags". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Generatetags#execute()} method to invoke the remote + * operation.

{@link + * Generatetags#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); + protected Generatetags(java.lang.Long profileId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementsGenerateTagsResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Generatetags set$Xgafv(java.lang.String $Xgafv) { + return (Generatetags) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Generatetags setAccessToken(java.lang.String accessToken) { + return (Generatetags) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Generatetags setAlt(java.lang.String alt) { + return (Generatetags) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Generatetags setCallback(java.lang.String callback) { + return (Generatetags) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Generatetags setFields(java.lang.String fields) { + return (Generatetags) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Generatetags setKey(java.lang.String key) { + return (Generatetags) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Generatetags setOauthToken(java.lang.String oauthToken) { + return (Generatetags) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Generatetags setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generatetags) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Generatetags setQuotaUser(java.lang.String quotaUser) { + return (Generatetags) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Generatetags setUploadType(java.lang.String uploadType) { + return (Generatetags) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Generatetags setUploadProtocol(java.lang.String uploadProtocol) { + return (Generatetags) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26427,49 +25767,81 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { + public Generatetags setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + /** Generate placements belonging to this campaign. This is a required field. */ + @com.google.api.client.util.Key + private java.lang.Long campaignId; + + /** Generate placements belonging to this campaign. This is a required field. + */ + public java.lang.Long getCampaignId() { + return campaignId; } - } - } + /** Generate placements belonging to this campaign. This is a required field. */ + public Generatetags setCampaignId(java.lang.Long campaignId) { + this.campaignId = campaignId; + return this; + } - /** - * An accessor for creating requests from the PlatformTypes collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PlatformTypes.List request = dfareporting.platformTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PlatformTypes platformTypes() { - return new PlatformTypes(); - } + /** Generate tags for these placements. */ + @com.google.api.client.util.Key + private java.util.List placementIds; - /** - * The "platformTypes" collection of methods. - */ - public class PlatformTypes { + /** Generate tags for these placements. + */ + public java.util.List getPlacementIds() { + return placementIds; + } + + /** Generate tags for these placements. */ + public Generatetags setPlacementIds(java.util.List placementIds) { + this.placementIds = placementIds; + return this; + } + + /** + * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be + * generated for 1x1 placements. + */ + @com.google.api.client.util.Key + private java.util.List tagFormats; + + /** Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated + for 1x1 placements. + */ + public java.util.List getTagFormats() { + return tagFormats; + } + + /** + * Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be + * generated for 1x1 placements. + */ + public Generatetags setTagFormats(java.util.List tagFormats) { + this.tagFormats = tagFormats; + return this; + } + @Override + public Generatetags set(String parameterName, Object value) { + return (Generatetags) super.set(parameterName, value); + } + } /** - * Gets one platform type by ID. + * Gets one placement by ID. * - * Create a request for the method "platformTypes.get". + * Create a request for the method "placements.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Platform type ID. + * @param id Placement ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -26478,9 +25850,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -26489,9 +25861,9 @@ public class Get extends DfareportingRequest @@ -26499,11 +25871,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Platform type ID. + * @param id Placement ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformType.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -26589,17 +25961,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Platform type ID. */ + /** Placement ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Platform type ID. + /** Placement ID. */ public java.lang.Long getId() { return id; } - /** Platform type ID. */ + /** Placement ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -26611,110 +25983,103 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of platform types. + * Inserts a new placement. * - * Create a request for the method "platformTypes.list". + * Create a request for the method "placements.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { + Insert result = new Insert(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of platform types. + * Inserts a new placement. * - * Create a request for the method "platformTypes.list". + * Create a request for the method "placements.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformTypesListResponse.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26728,90 +26093,56 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the PostalCodes collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.PostalCodes.List request = dfareporting.postalCodes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PostalCodes postalCodes() { - return new PostalCodes(); - } - - /** - * The "postalCodes" collection of methods. - */ - public class PostalCodes { - /** - * Gets one postal code by ID. + * Retrieves a list of placements, possibly filtered. This method supports paging. * - * Create a request for the method "postalCodes.get". + * Create a request for the method "placements.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param code Postal code ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.String code) throws java.io.IOException { - Get result = new Get(profileId, code); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes/{+code}"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern CODE_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one postal code by ID. + * Retrieves a list of placements, possibly filtered. This method supports paging. * - * Create a request for the method "postalCodes.get". + * Create a request for the method "placements.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param code Postal code ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.String code) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCode.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlacementsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.code = com.google.api.client.util.Preconditions.checkNotNull(code, "Required parameter code must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), - "Parameter code must conform to the pattern " + - "^[^/]+$"); - } } @Override @@ -26825,58 +26156,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -26890,519 +26221,457 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Postal code ID. */ + /** Select only placements with these active statuses. */ @com.google.api.client.util.Key - private java.lang.String code; + private java.util.List activeStatus; - /** Postal code ID. + /** Select only placements with these active statuses. */ - public java.lang.String getCode() { - return code; + public java.util.List getActiveStatus() { + return activeStatus; } - /** Postal code ID. */ - public Get setCode(java.lang.String code) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), - "Parameter code must conform to the pattern " + - "^[^/]+$"); - } - this.code = code; + /** Select only placements with these active statuses. */ + public List setActiveStatus(java.util.List activeStatus) { + this.activeStatus = activeStatus; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** Select only placements that belong to these advertisers. */ + @com.google.api.client.util.Key + private java.util.List advertiserIds; + + /** Select only placements that belong to these advertisers. + */ + public java.util.List getAdvertiserIds() { + return advertiserIds; } - } - /** - * Retrieves a list of postal codes. - * - * Create a request for the method "postalCodes.list". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @return the request - */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); - initialize(result); - return result; - } - public class List extends DfareportingRequest { + /** Select only placements that belong to these advertisers. */ + public List setAdvertiserIds(java.util.List advertiserIds) { + this.advertiserIds = advertiserIds; + return this; + } - private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes"; + /** Select only placements that belong to these campaigns. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - - /** - * Retrieves a list of postal codes. - * - * Create a request for the method "postalCodes.list". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @since 1.13 + /** Select only placements that belong to these campaigns. */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCodesListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + public java.util.List getCampaignIds() { + return campaignIds; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** Select only placements that belong to these campaigns. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * Select only placements that are associated with these compatibilities. DISPLAY and + * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular + * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST + * standard. + */ + @com.google.api.client.util.Key + private java.util.List compatibilities; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + /** Select only placements that are associated with these compatibilities. DISPLAY and + DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or + interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. + IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. + */ + public java.util.List getCompatibilities() { + return compatibilities; } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + /** + * Select only placements that are associated with these compatibilities. DISPLAY and + * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular + * or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST + * standard. + */ + public List setCompatibilities(java.util.List compatibilities) { + this.compatibilities = compatibilities; + return this; } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** Select only placements that are associated with these content categories. */ + @com.google.api.client.util.Key + private java.util.List contentCategoryIds; - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + /** Select only placements that are associated with these content categories. + */ + public java.util.List getContentCategoryIds() { + return contentCategoryIds; } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + /** Select only placements that are associated with these content categories. */ + public List setContentCategoryIds(java.util.List contentCategoryIds) { + this.contentCategoryIds = contentCategoryIds; + return this; } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** Select only placements that are associated with these directory sites. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + /** Select only placements that are associated with these directory sites. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** Select only placements that are associated with these directory sites. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Select only placements that belong to these placement groups. */ + @com.google.api.client.util.Key + private java.util.List groupIds; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** Select only placements that belong to these placement groups. + */ + public java.util.List getGroupIds() { + return groupIds; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** Select only placements that belong to these placement groups. */ + public List setGroupIds(java.util.List groupIds) { + this.groupIds = groupIds; + return this; } - /** User profile ID associated with this request. */ + /** Select only placements with these IDs. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.util.List ids; - /** User profile ID associated with this request. + /** Select only placements with these IDs. */ - public java.lang.Long getProfileId() { - return profileId; + public java.util.List getIds() { + return ids; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Select only placements with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Regions collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Regions.List request = dfareporting.regions().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Regions regions() { - return new Regions(); - } - - /** - * The "regions" collection of methods. - */ - public class Regions { - - /** - * Retrieves a list of regions. - * - * Create a request for the method "regions.list". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @return the request - */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); - initialize(result); - return result; - } - - public class List extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/regions"; - - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Retrieves a list of regions. - * - * Create a request for the method "regions.list". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @since 1.13 + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RegionsListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } + @com.google.api.client.util.Key + private java.lang.String maxEndDate; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** Select only placements or placement groups whose end date is on or before the specified maxEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMaxEndDate() { + return maxEndDate; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** + * Select only placements or placement groups whose end date is on or before the specified + * maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxEndDate(java.lang.String maxEndDate) { + this.maxEndDate = maxEndDate; + return this; } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String maxStartDate; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + /** Select only placements or placement groups whose start date is on or before the specified + maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMaxStartDate() { + return maxStartDate; } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + /** + * Select only placements or placement groups whose start date is on or before the specified + * maxStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMaxStartDate(java.lang.String maxStartDate) { + this.maxStartDate = maxStartDate; + return this; } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String minEndDate; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** Select only placements or placement groups whose end date is on or after the specified minEndDate. + The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinEndDate() { + return minEndDate; } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** + * Select only placements or placement groups whose end date is on or after the specified + * minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinEndDate(java.lang.String minEndDate) { + this.minEndDate = minEndDate; + return this; } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + @com.google.api.client.util.Key + private java.lang.String minStartDate; + + /** Select only placements or placement groups whose start date is on or after the specified + minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public java.lang.String getMinStartDate() { + return minStartDate; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Select only placements or placement groups whose start date is on or after the specified + * minStartDate. The date should be formatted as "yyyy-MM-dd". + */ + public List setMinStartDate(java.lang.String minStartDate) { + this.minStartDate = minStartDate; + return this; } - /** User profile ID associated with this request. */ + /** Value of the nextPageToken from the previous result page. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String pageToken; - /** User profile ID associated with this request. + /** Value of the nextPageToken from the previous result page. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getPageToken() { + return pageToken; } - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** Select only placements with this payment source. */ + @com.google.api.client.util.Key + private java.lang.String paymentSource; - } + /** Select only placements with this payment source. + */ + public java.lang.String getPaymentSource() { + return paymentSource; + } - /** - * An accessor for creating requests from the RemarketingListShares collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.RemarketingListShares.List request = dfareporting.remarketingListShares().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RemarketingListShares remarketingListShares() { - return new RemarketingListShares(); - } + /** Select only placements with this payment source. */ + public List setPaymentSource(java.lang.String paymentSource) { + this.paymentSource = paymentSource; + return this; + } - /** - * The "remarketingListShares" collection of methods. - */ - public class RemarketingListShares { + /** Select only placements that are associated with these placement strategies. */ + @com.google.api.client.util.Key + private java.util.List placementStrategyIds; - /** - * Gets one remarketing list share by remarketing list ID. - * - * Create a request for the method "remarketingListShares.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId User profile ID associated with this request. - * @param remarketingListId Remarketing list ID. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long remarketingListId) throws java.io.IOException { - Get result = new Get(profileId, remarketingListId); - initialize(result); - return result; - } + /** Select only placements that are associated with these placement strategies. + */ + public java.util.List getPlacementStrategyIds() { + return placementStrategyIds; + } - public class Get extends DfareportingRequest { + /** Select only placements that are associated with these placement strategies. */ + public List setPlacementStrategyIds(java.util.List placementStrategyIds) { + this.placementStrategyIds = placementStrategyIds; + return this; + } - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}"; + /** Select only placements with these pricing types. */ + @com.google.api.client.util.Key + private java.util.List pricingTypes; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placements with these pricing types. + */ + public java.util.List getPricingTypes() { + return pricingTypes; + } - private final java.util.regex.Pattern REMARKETING_LIST_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + /** Select only placements with these pricing types. */ + public List setPricingTypes(java.util.List pricingTypes) { + this.pricingTypes = pricingTypes; + return this; + } /** - * Gets one remarketing list share by remarketing list ID. - * - * Create a request for the method "remarketingListShares.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId User profile ID associated with this request. - * @param remarketingListId Remarketing list ID. - * @since 1.13 + * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + * "placement*2015" will return placements with names like "placement June 2015", "placement + * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or simply "placement" . */ - protected Get(java.lang.Long profileId, java.lang.Long remarketingListId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListShare.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.remarketingListId = com.google.api.client.util.Preconditions.checkNotNull(remarketingListId, "Required parameter remarketingListId must be specified."); - } + @com.google.api.client.util.Key + private java.lang.String searchString; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + "placement*2015" will return placements with names like "placement June 2015", "placement May + 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly at the start + and the end of the search string. For example, a search string of "placement" will match placements + with name "my placement", "placement 2015", or simply "placement" . + */ + public java.lang.String getSearchString() { + return searchString; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** + * Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, + * "placement*2015" will return placements with names like "placement June 2015", "placement + * May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or simply "placement" . + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Select only placements that are associated with these sites. */ + @com.google.api.client.util.Key + private java.util.List siteIds; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** Select only placements that are associated with these sites. + */ + public java.util.List getSiteIds() { + return siteIds; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** Select only placements that are associated with these sites. */ + public List setSiteIds(java.util.List siteIds) { + this.siteIds = siteIds; + return this; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** Select only placements that are associated with these sizes. */ + @com.google.api.client.util.Key + private java.util.List sizeIds; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Select only placements that are associated with these sizes. + */ + public java.util.List getSizeIds() { + return sizeIds; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Select only placements that are associated with these sizes. */ + public List setSizeIds(java.util.List sizeIds) { + this.sizeIds = sizeIds; + return this; } - /** User profile ID associated with this request. */ + /** Field by which to sort the list. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.String sortField; - /** User profile ID associated with this request. + /** Field by which to sort the list. [default: ID] */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.String getSortField() { + return sortField; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; return this; } - /** Remarketing list ID. */ + /** Order of sorted results. */ @com.google.api.client.util.Key - private java.lang.Long remarketingListId; + private java.lang.String sortOrder; - /** Remarketing list ID. + /** Order of sorted results. [default: ASCENDING] */ - public java.lang.Long getRemarketingListId() { - return remarketingListId; + public java.lang.String getSortOrder() { + return sortOrder; } - /** Remarketing list ID. */ - public Get setRemarketingListId(java.lang.Long remarketingListId) { - this.remarketingListId = remarketingListId; + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Updates an existing remarketing list share. This method supports patch semantics. + * Updates an existing placement. This method supports patch semantics. * - * Create a request for the method "remarketingListShares.patch". + * Create a request for the method "placements.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list share. This method supports patch semantics. + * Updates an existing placement. This method supports patch semantics. * - * Create a request for the method "remarketingListShares.patch". + * Create a request for the method "placements.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -27411,12 +26680,12 @@ public class Patch extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param id Required. Placement ID. + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -27492,17 +26761,17 @@ public Patch setProfileId(java.lang.Long profileId) { return this; } - /** Required. RemarketingList ID. */ + /** Required. Placement ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Required. RemarketingList ID. + /** Required. Placement ID. */ public java.lang.Long getId() { return id; } - /** Required. RemarketingList ID. */ + /** Required. Placement ID. */ public Patch setId(java.lang.Long id) { this.id = id; return this; @@ -27514,34 +26783,34 @@ public Patch set(String parameterName, Object value) { } } /** - * Updates an existing remarketing list share. + * Updates an existing placement. * - * Create a request for the method "remarketingListShares.update". + * Create a request for the method "placements.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) throws java.io.IOException { Update result = new Update(profileId, content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + private static final String REST_PATH = "userprofiles/{+profileId}/placements"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list share. + * Updates an existing placement. * - * Create a request for the method "remarketingListShares.update". + * Create a request for the method "placements.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -27550,11 +26819,11 @@ public class Update extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @param content the {@link com.google.api.services.dfareporting.model.Placement} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Placement content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Placement.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -27638,35 +26907,35 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the RemarketingLists collection. + * An accessor for creating requests from the PlatformTypes collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.RemarketingLists.List request = dfareporting.remarketingLists().list(parameters ...)}
+   *   {@code Dfareporting.PlatformTypes.List request = dfareporting.platformTypes().list(parameters ...)}
    * 
* * @return the resource collection */ - public RemarketingLists remarketingLists() { - return new RemarketingLists(); + public PlatformTypes platformTypes() { + return new PlatformTypes(); } /** - * The "remarketingLists" collection of methods. + * The "platformTypes" collection of methods. */ - public class RemarketingLists { + public class PlatformTypes { /** - * Gets one remarketing list by ID. + * Gets one platform type by ID. * - * Create a request for the method "remarketingLists.get". + * Create a request for the method "platformTypes.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Remarketing list ID. + * @param id Platform type ID. * @return the request */ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { @@ -27675,9 +26944,9 @@ public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOExc return result; } - public class Get extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes/{+id}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); @@ -27686,9 +26955,9 @@ public class Get extends DfareportingRequest @@ -27696,11 +26965,11 @@ public class Get extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param id Remarketing list ID. + * @param id Platform type ID. * @since 1.13 */ protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingList.class); + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformType.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @@ -27786,17 +27055,17 @@ public Get setProfileId(java.lang.Long profileId) { return this; } - /** Remarketing list ID. */ + /** Platform type ID. */ @com.google.api.client.util.Key private java.lang.Long id; - /** Remarketing list ID. + /** Platform type ID. */ public java.lang.Long getId() { return id; } - /** Remarketing list ID. */ + /** Platform type ID. */ public Get setId(java.lang.Long id) { this.id = id; return this; @@ -27808,103 +27077,110 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new remarketing list. + * Retrieves a list of platform types. * - * Create a request for the method "remarketingLists.insert". + * Create a request for the method "platformTypes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/platformTypes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Inserts a new remarketing list. + * Retrieves a list of platform types. * - * Create a request for the method "remarketingLists.insert". + * Create a request for the method "platformTypes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PlatformTypesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -27918,45 +27194,227 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PostalCodes collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.PostalCodes.List request = dfareporting.postalCodes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PostalCodes postalCodes() { + return new PostalCodes(); + } + + /** + * The "postalCodes" collection of methods. + */ + public class PostalCodes { + /** - * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. + * Gets one postal code by ID. * - * Create a request for the method "remarketingLists.list". + * Create a request for the method "postalCodes.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param code Postal code ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.String code) throws java.io.IOException { + Get result = new Get(profileId, code); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes/{+code}"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + private final java.util.regex.Pattern CODE_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Gets one postal code by ID. + * + * Create a request for the method "postalCodes.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param code Postal code ID. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.String code) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCode.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.code = com.google.api.client.util.Preconditions.checkNotNull(code, "Required parameter code must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), + "Parameter code must conform to the pattern " + + "^[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** Postal code ID. */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** Postal code ID. + */ + public java.lang.String getCode() { + return code; + } + + /** Postal code ID. */ + public Get setCode(java.lang.String code) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CODE_PATTERN.matcher(code).matches(), + "Parameter code must conform to the pattern " + + "^[^/]+$"); + } + this.code = code; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of postal codes. + * + * Create a request for the method "postalCodes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @return the request */ - public List list(java.lang.Long profileId, java.lang.Long advertiserId) throws java.io.IOException { - List result = new List(profileId, advertiserId); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/postalCodes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. + * Retrieves a list of postal codes. * - * Create a request for the method "remarketingLists.list". + * Create a request for the method "postalCodes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

@@ -27964,13 +27422,11 @@ public class List extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @since 1.13 */ - protected List(java.lang.Long profileId, java.lang.Long advertiserId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListsListResponse.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.PostalCodesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.advertiserId = com.google.api.client.util.Preconditions.checkNotNull(advertiserId, "Required parameter advertiserId must be specified."); } @Override @@ -28054,150 +27510,154 @@ public List setProfileId(java.lang.Long profileId) { return this; } - /** Required. Select only remarketing lists owned by this advertiser. */ - @com.google.api.client.util.Key - private java.lang.Long advertiserId; - - /** Required. Select only remarketing lists owned by this advertiser. - */ - public java.lang.Long getAdvertiserId() { - return advertiserId; - } - - /** Required. Select only remarketing lists owned by this advertiser. */ - public List setAdvertiserId(java.lang.Long advertiserId) { - this.advertiserId = advertiserId; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } + } - /** Select only active or only inactive remarketing lists. */ - @com.google.api.client.util.Key - private java.lang.Boolean active; + } - /** Select only active or only inactive remarketing lists. - */ - public java.lang.Boolean getActive() { - return active; - } + /** + * An accessor for creating requests from the Regions collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Regions.List request = dfareporting.regions().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Regions regions() { + return new Regions(); + } - /** Select only active or only inactive remarketing lists. */ - public List setActive(java.lang.Boolean active) { - this.active = active; - return this; - } + /** + * The "regions" collection of methods. + */ + public class Regions { - /** Select only remarketing lists that have this floodlight activity ID. */ - @com.google.api.client.util.Key - private java.lang.Long floodlightActivityId; + /** + * Retrieves a list of regions. + * + * Create a request for the method "regions.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @return the request + */ + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); + initialize(result); + return result; + } - /** Select only remarketing lists that have this floodlight activity ID. + public class List extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/regions"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Retrieves a list of regions. + * + * Create a request for the method "regions.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @since 1.13 */ - public java.lang.Long getFloodlightActivityId() { - return floodlightActivityId; + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RegionsListResponse.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } - /** Select only remarketing lists that have this floodlight activity ID. */ - public List setFloodlightActivityId(java.lang.Long floodlightActivityId) { - this.floodlightActivityId = floodlightActivityId; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Maximum number of results to return. [default: 1000] - */ - public java.lang.Integer getMaxResults() { - return maxResults; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "remarketing list*2015" will return objects with names like "remarketing list June 2015", - * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my remarketing list", - * "remarketing list 2015", or simply "remarketing list". - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "remarketing - list*2015" will return objects with names like "remarketing list June 2015", "remarketing list - April 2015", or simply "remarketing list 2015". Most of the searches also add wildcards implicitly - at the start and the end of the search string. For example, a search string of "remarketing list" - will match objects with name "my remarketing list", "remarketing list 2015", or simply "remarketing - list". - */ - public java.lang.String getName() { - return name; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } - /** - * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, - * "remarketing list*2015" will return objects with names like "remarketing list June 2015", - * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my remarketing list", - * "remarketing list 2015", or simply "remarketing list". - */ - public List setName(java.lang.String name) { - this.name = name; - return this; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } - /** Value of the nextPageToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Value of the nextPageToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Order of sorted results. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.String sortOrder; + private java.lang.Long profileId; - /** Order of sorted results. [default: ASCENDING] + /** User profile ID associated with this request. */ - public java.lang.String getSortOrder() { - return sortOrder; + public java.lang.Long getProfileId() { + return profileId; } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } @@ -28206,83 +27666,256 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RemarketingListShares collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.RemarketingListShares.List request = dfareporting.remarketingListShares().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RemarketingListShares remarketingListShares() { + return new RemarketingListShares(); + } + + /** + * The "remarketingListShares" collection of methods. + */ + public class RemarketingListShares { + /** - * Updates an existing remarketing list. This method supports patch semantics. + * Gets one remarketing list share by remarketing list ID. * - * Create a request for the method "remarketingLists.patch". + * Create a request for the method "remarketingListShares.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @param remarketingListId Remarketing list ID. * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public Get get(java.lang.Long profileId, java.lang.Long remarketingListId) throws java.io.IOException { + Get result = new Get(profileId, remarketingListId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); + private final java.util.regex.Pattern REMARKETING_LIST_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Updates an existing remarketing list. This method supports patch semantics. + * Gets one remarketing list share by remarketing list ID. * - * Create a request for the method "remarketingLists.patch". + * Create a request for the method "remarketingListShares.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. RemarketingList ID. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @param remarketingListId Remarketing list ID. * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected Get(java.lang.Long profileId, java.lang.Long remarketingListId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListShare.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + this.remarketingListId = com.google.api.client.util.Preconditions.checkNotNull(remarketingListId, "Required parameter remarketingListId must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** Remarketing list ID. */ + @com.google.api.client.util.Key + private java.lang.Long remarketingListId; + + /** Remarketing list ID. + */ + public java.lang.Long getRemarketingListId() { + return remarketingListId; + } + + /** Remarketing list ID. */ + public Get setRemarketingListId(java.lang.Long remarketingListId) { + this.remarketingListId = remarketingListId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Updates an existing remarketing list share. This method supports patch semantics. + * + * Create a request for the method "remarketingListShares.patch". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @return the request + */ + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); + initialize(result); + return result; + } + + public class Patch extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Updates an existing remarketing list share. This method supports patch semantics. + * + * Create a request for the method "remarketingListShares.patch". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} + * @since 1.13 + */ + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingListShare content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } @Override public Patch setOauthToken(java.lang.String oauthToken) { @@ -28347,34 +27980,34 @@ public Patch set(String parameterName, Object value) { } } /** - * Updates an existing remarketing list. + * Updates an existing remarketing list share. * - * Create a request for the method "remarketingLists.update". + * Create a request for the method "remarketingListShares.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) throws java.io.IOException { Update result = new Update(profileId, content); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Update extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingListShares"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing remarketing list. + * Updates an existing remarketing list share. * - * Create a request for the method "remarketingLists.update". + * Create a request for the method "remarketingListShares.update". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -28383,11 +28016,11 @@ public class Update extends DfareportingRequest * * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingListShare} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingListShare content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingListShare.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -28471,230 +28104,101 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Reports collection. + * An accessor for creating requests from the RemarketingLists collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Reports.List request = dfareporting.reports().list(parameters ...)}
+   *   {@code Dfareporting.RemarketingLists.List request = dfareporting.remarketingLists().list(parameters ...)}
    * 
* * @return the resource collection */ - public Reports reports() { - return new Reports(); + public RemarketingLists remarketingLists() { + return new RemarketingLists(); } /** - * The "reports" collection of methods. + * The "remarketingLists" collection of methods. */ - public class Reports { + public class RemarketingLists { /** - * Deletes a report by its ID. + * Gets one remarketing list by ID. * - * Create a request for the method "reports.delete". + * Create a request for the method "remarketingLists.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param id Remarketing list ID. * @return the request */ - public Delete delete(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Delete result = new Delete(profileId, reportId); + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); initialize(result); return result; } - public class Delete extends DfareportingRequest { + public class Get extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists/{+id}"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Deletes a report by its ID. + * Gets one remarketing list by ID. * - * Create a request for the method "reports.delete". + * Create a request for the method "remarketingLists.get". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param id Remarketing list ID. * @since 1.13 */ - protected Delete(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** The Campaign Manager 360 user profile ID. */ - public Delete setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; - - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } - - /** The ID of the report. */ - public Delete setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves a report by its ID. - * - * Create a request for the method "reports.get". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @return the request - */ - public Get get(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Get result = new Get(profileId, reportId); - initialize(result); - return result; - } - - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; - - /** - * Retrieves a report by its ID. - * - * Create a request for the method "reports.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @since 1.13 - */ - protected Get(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Report.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override @@ -28732,35 +28236,35 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public Get setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ + /** Remarketing list ID. */ @com.google.api.client.util.Key - private java.lang.Long reportId; + private java.lang.Long id; - /** The ID of the report. + /** Remarketing list ID. */ - public java.lang.Long getReportId() { - return reportId; + public java.lang.Long getId() { + return id; } - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; + /** Remarketing list ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } @@ -28770,31 +28274,34 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a report. + * Inserts a new remarketing list. * - * Create a request for the method "reports.insert". + * Create a request for the method "remarketingLists.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { Insert result = new Insert(profileId, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Insert extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Creates a report. + * Inserts a new remarketing list. * - * Create a request for the method "reports.insert". + * Create a request for the method "remarketingLists.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -28802,12 +28309,12 @@ public class Insert extends DfareportingRequest * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @@ -28866,17 +28373,17 @@ public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public Insert setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; @@ -28888,42 +28395,48 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves list of reports. + * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. * - * Create a request for the method "reports.list". + * Create a request for the method "remarketingLists.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. + * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public List list(java.lang.Long profileId, java.lang.Long advertiserId) throws java.io.IOException { + List result = new List(profileId, advertiserId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves list of reports. + * Retrieves a list of remarketing lists, possibly filtered. This method supports paging. * - * Create a request for the method "reports.list". + * Create a request for the method "remarketingLists.list". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. + * @param profileId User profile ID associated with this request. + * @param advertiserId Required. Select only remarketing lists owned by this advertiser. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ReportList.class); + protected List(java.lang.Long profileId, java.lang.Long advertiserId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.RemarketingListsListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.advertiserId = com.google.api.client.util.Preconditions.checkNotNull(advertiserId, "Required parameter advertiserId must be specified."); } @Override @@ -28991,81 +28504,148 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Maximum number of results to return. */ + /** Required. Select only remarketing lists owned by this advertiser. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long advertiserId; - /** Maximum number of results to return. [default: 10] + /** Required. Select only remarketing lists owned by this advertiser. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getAdvertiserId() { + return advertiserId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** Required. Select only remarketing lists owned by this advertiser. */ + public List setAdvertiserId(java.lang.Long advertiserId) { + this.advertiserId = advertiserId; return this; } - /** The value of the nextToken from the previous result page. */ + /** Select only active or only inactive remarketing lists. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Boolean active; - /** The value of the nextToken from the previous result page. + /** Select only active or only inactive remarketing lists. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Boolean getActive() { + return active; } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Select only active or only inactive remarketing lists. */ + public List setActive(java.lang.Boolean active) { + this.active = active; return this; } - /** The scope that defines which results are returned. */ + /** Select only remarketing lists that have this floodlight activity ID. */ @com.google.api.client.util.Key - private java.lang.String scope; + private java.lang.Long floodlightActivityId; - /** The scope that defines which results are returned. [default: MINE] + /** Select only remarketing lists that have this floodlight activity ID. */ - public java.lang.String getScope() { - return scope; + public java.lang.Long getFloodlightActivityId() { + return floodlightActivityId; } - /** The scope that defines which results are returned. */ - public List setScope(java.lang.String scope) { - this.scope = scope; + /** Select only remarketing lists that have this floodlight activity ID. */ + public List setFloodlightActivityId(java.lang.Long floodlightActivityId) { + this.floodlightActivityId = floodlightActivityId; return this; } - /** The field by which to sort the list. */ + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "remarketing list*2015" will return objects with names like "remarketing list June 2015", + * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my remarketing list", + * "remarketing list 2015", or simply "remarketing list". + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "remarketing + list*2015" will return objects with names like "remarketing list June 2015", "remarketing list + April 2015", or simply "remarketing list 2015". Most of the searches also add wildcards implicitly + at the start and the end of the search string. For example, a search string of "remarketing list" + will match objects with name "my remarketing list", "remarketing list 2015", or simply "remarketing + list". + */ + public java.lang.String getName() { + return name; + } + + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, + * "remarketing list*2015" will return objects with names like "remarketing list June 2015", + * "remarketing list April 2015", or simply "remarketing list 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my remarketing list", + * "remarketing list 2015", or simply "remarketing list". + */ + public List setName(java.lang.String name) { + this.name = name; + return this; + } + + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Field by which to sort the list. */ @com.google.api.client.util.Key private java.lang.String sortField; - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + /** Field by which to sort the list. [default: ID] */ public java.lang.String getSortField() { return sortField; } - /** The field by which to sort the list. */ + /** Field by which to sort the list. */ public List setSortField(java.lang.String sortField) { this.sortField = sortField; return this; @@ -29075,7 +28655,7 @@ public List setSortField(java.lang.String sortField) { @com.google.api.client.util.Key private java.lang.String sortOrder; - /** Order of sorted results. [default: DESCENDING] + /** Order of sorted results. [default: ASCENDING] */ public java.lang.String getSortOrder() { return sortOrder; @@ -29093,280 +28673,385 @@ public List set(String parameterName, Object value) { } } /** - * Runs a report. + * Updates an existing remarketing list. This method supports patch semantics. * - * Create a request for the method "reports.run". + * Create a request for the method "remarketingLists.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @return the request */ - public Run run(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - Run result = new Run(profileId, reportId); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Run extends DfareportingRequest { + public class Patch extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/run"; + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Runs a report. + * Updates an existing remarketing list. This method supports patch semantics. * - * Create a request for the method "reports.run". + * Create a request for the method "remarketingLists.patch". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Run#execute()} method to invoke the remote operation.

- * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. + * @param profileId User profile ID associated with this request. + * @param id Required. RemarketingList ID. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} * @since 1.13 */ - protected Run(java.lang.Long profileId, java.lang.Long reportId) { - super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Run set$Xgafv(java.lang.String $Xgafv) { - return (Run) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Run setAccessToken(java.lang.String accessToken) { - return (Run) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Run setAlt(java.lang.String alt) { - return (Run) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Run setCallback(java.lang.String callback) { - return (Run) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Run setFields(java.lang.String fields) { - return (Run) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Run setKey(java.lang.String key) { - return (Run) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Run setOauthToken(java.lang.String oauthToken) { - return (Run) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Run setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Run) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Run setQuotaUser(java.lang.String quotaUser) { - return (Run) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Run setUploadType(java.lang.String uploadType) { - return (Run) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Run setUploadProtocol(java.lang.String uploadProtocol) { - return (Run) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The Campaign Manager 360 user profile ID. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. + /** User profile ID associated with this request. */ public java.lang.Long getProfileId() { return profileId; } - /** The Campaign Manager 360 user profile ID. */ - public Run setProfileId(java.lang.Long profileId) { + /** User profile ID associated with this request. */ + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** The ID of the report. */ + /** Required. RemarketingList ID. */ @com.google.api.client.util.Key - private java.lang.Long reportId; + private java.lang.Long id; - /** The ID of the report. + /** Required. RemarketingList ID. */ - public java.lang.Long getReportId() { - return reportId; + public java.lang.Long getId() { + return id; } - /** The ID of the report. */ - public Run setReportId(java.lang.Long reportId) { - this.reportId = reportId; + /** Required. RemarketingList ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; return this; } - /** If set and true, tries to run the report synchronously. */ - @com.google.api.client.util.Key - private java.lang.Boolean synchronous; - - /** If set and true, tries to run the report synchronously. [default: false] - */ - public java.lang.Boolean getSynchronous() { - return synchronous; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Updates an existing remarketing list. + * + * Create a request for the method "remarketingLists.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @return the request + */ + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) throws java.io.IOException { + Update result = new Update(profileId, content); + initialize(result); + return result; + } - /** If set and true, tries to run the report synchronously. */ - public Run setSynchronous(java.lang.Boolean synchronous) { - this.synchronous = synchronous; - return this; - } + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/remarketingLists"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * Updates an existing remarketing list. * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

+ * Create a request for the method "remarketingLists.update". * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

+ * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - *

- * If set and true, tries to run the report synchronously. - *

+ * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.RemarketingList} + * @since 1.13 */ - public boolean isSynchronous() { - if (synchronous == null || synchronous == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return synchronous; + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.RemarketingList content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.RemarketingList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public Run set(String parameterName, Object value) { - return (Run) super.set(parameterName, value); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Update setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Reports collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Reports.List request = dfareporting.reports().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Reports reports() { + return new Reports(); + } + + /** + * The "reports" collection of methods. + */ + public class Reports { + /** - * Updates a report. + * Deletes a report by its ID. * - * Create a request for the method "reports.update". + * Create a request for the method "reports.delete". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param profileId The Campaign Manager 360 user profile ID. * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} * @return the request */ - public Update update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Update result = new Update(profileId, reportId, content); + public Delete delete(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Delete result = new Delete(profileId, reportId); initialize(result); return result; } - public class Update extends DfareportingRequest { + public class Delete extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; /** - * Updates a report. + * Deletes a report by its ID. * - * Create a request for the method "reports.update". + * Create a request for the method "reports.delete". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId The Campaign Manager 360 user profile ID. * @param reportId The ID of the report. - * @param content the {@link com.google.api.services.dfareporting.model.Report} * @since 1.13 */ - protected Update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + protected Delete(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "DELETE", REST_PATH, null, Void.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** The Campaign Manager 360 user profile ID. */ @@ -29380,7 +29065,7 @@ public java.lang.Long getProfileId() { } /** The Campaign Manager 360 user profile ID. */ - public Update setProfileId(java.lang.Long profileId) { + public Delete setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } @@ -29396,381 +29081,1162 @@ public java.lang.Long getReportId() { } /** The ID of the report. */ - public Update setReportId(java.lang.Long reportId) { + public Delete setReportId(java.lang.Long reportId) { this.reportId = reportId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the CompatibleFields collection. + * Retrieves a report by its ID. * - *

The typical use is:

- *
-     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-     *   {@code Dfareporting.CompatibleFields.List request = dfareporting.compatibleFields().list(parameters ...)}
-     * 
+ * Create a request for the method "reports.get". * - * @return the resource collection + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @return the request */ - public CompatibleFields compatibleFields() { - return new CompatibleFields(); + public Get get(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Get result = new Get(profileId, reportId); + initialize(result); + return result; } - /** - * The "compatibleFields" collection of methods. - */ - public class CompatibleFields { + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; /** - * Returns the fields that are compatible to be selected in the respective sections of a report - * criteria, given the fields already selected in the input report and user permissions. + * Retrieves a report by its ID. * - * Create a request for the method "compatibleFields.query". + * Create a request for the method "reports.get". * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} - * @return the request + * @param reportId The ID of the report. + * @since 1.13 */ - public Query query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { - Query result = new Query(profileId, content); - initialize(result); - return result; + protected Get(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); } - public class Query extends DfareportingRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "userprofiles/{profileId}/reports/compatiblefields/query"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Returns the fields that are compatible to be selected in the respective sections of a report - * criteria, given the fields already selected in the input report and user permissions. - * - * Create a request for the method "compatibleFields.query". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. - *

{@link - * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param content the {@link com.google.api.services.dfareporting.model.Report} - * @since 1.13 - */ - protected Query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.CompatibleFields.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Query set$Xgafv(java.lang.String $Xgafv) { - return (Query) super.set$Xgafv($Xgafv); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Query setAccessToken(java.lang.String accessToken) { - return (Query) super.setAccessToken(accessToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Query setAlt(java.lang.String alt) { - return (Query) super.setAlt(alt); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Query setCallback(java.lang.String callback) { - return (Query) super.setCallback(callback); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Query setFields(java.lang.String fields) { - return (Query) super.setFields(fields); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Query setKey(java.lang.String key) { - return (Query) super.setKey(key); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Query setOauthToken(java.lang.String oauthToken) { - return (Query) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Query setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Query) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Query setQuotaUser(java.lang.String quotaUser) { - return (Query) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Query setUploadType(java.lang.String uploadType) { - return (Query) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Query setUploadProtocol(java.lang.String uploadProtocol) { - return (Query) super.setUploadProtocol(uploadProtocol); - } + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + /** The Campaign Manager 360 user profile ID. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } - /** The Campaign Manager 360 user profile ID. */ - public Query setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; - @Override - public Query set(String parameterName, Object value) { - return (Query) super.set(parameterName, value); - } + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Files collection. + * Creates a report. * - *

The typical use is:

- *
-     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-     *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
-     * 
+ * Create a request for the method "reports.insert". * - * @return the resource collection + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request */ - public Files files() { - return new Files(); + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; } - /** - * The "files" collection of methods. - */ - public class Files { + public class Insert extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports"; /** - * Retrieves a report file by its report ID and file ID. This method supports media download. + * Creates a report. * - * Create a request for the method "files.get". + * Create a request for the method "reports.insert". * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param fileId The ID of the report file. - * @return the request + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 */ - public Get get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { - Get result = new Get(profileId, reportId, fileId); - initialize(result); - return result; + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } - public class Get extends DfareportingRequest { + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files/{fileId}"; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - /** - * Retrieves a report file by its report ID and file ID. This method supports media download. - * - * Create a request for the method "files.get". - * - * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the report. - * @param fileId The ID of the report file. - * @since 1.13 - */ - protected Get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); - this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); - initializeMediaDownload(); - } + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); - } + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); - } + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); - } + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** The Campaign Manager 360 user profile ID. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves list of reports. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @return the request + */ + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); + initialize(result); + return result; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + public class List extends DfareportingRequest { - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "userprofiles/{profileId}/reports"; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * Retrieves list of reports. + * + * Create a request for the method "reports.list". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @since 1.13 + */ + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.ReportList.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The Campaign Manager 360 user profile ID. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** The ID of the report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The ID of the report. - */ - public java.lang.Long getReportId() { - return reportId; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The ID of the report. */ - public Get setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The ID of the report file. */ - @com.google.api.client.util.Key - private java.lang.Long fileId; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The ID of the report file. - */ - public java.lang.Long getFileId() { - return fileId; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** The ID of the report file. */ - public Get setFileId(java.lang.Long fileId) { - this.fileId = fileId; - return this; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * Lists files for a report. - * - * Create a request for the method "files.list". - * - * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param profileId The Campaign Manager 360 user profile ID. - * @param reportId The ID of the parent report. - * @return the request - */ - public List list(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { - List result = new List(profileId, reportId); - initialize(result); - return result; + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - public class List extends DfareportingRequest { + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files"; + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - /** + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 10] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** The value of the nextToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value of the nextToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The scope that defines which results are returned. */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** The scope that defines which results are returned. [default: MINE] + */ + public java.lang.String getScope() { + return scope; + } + + /** The scope that defines which results are returned. */ + public List setScope(java.lang.String scope) { + this.scope = scope; + return this; + } + + /** The field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** The field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: DESCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Runs a report. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @return the request + */ + public Run run(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + Run result = new Run(profileId, reportId); + initialize(result); + return result; + } + + public class Run extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/run"; + + /** + * Runs a report. + * + * Create a request for the method "reports.run". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Run#execute()} method to invoke the remote operation.

+ * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @since 1.13 + */ + protected Run(java.lang.Long profileId, java.lang.Long reportId) { + super(Dfareporting.this, "POST", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); + } + + @Override + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); + } + + @Override + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); + } + + @Override + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); + } + + @Override + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); + } + + @Override + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); + } + + @Override + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); + } + + @Override + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); + } + + @Override + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); + } + + @Override + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); + } + + @Override + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Run setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Run setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** If set and true, tries to run the report synchronously. */ + @com.google.api.client.util.Key + private java.lang.Boolean synchronous; + + /** If set and true, tries to run the report synchronously. [default: false] + */ + public java.lang.Boolean getSynchronous() { + return synchronous; + } + + /** If set and true, tries to run the report synchronously. */ + public Run setSynchronous(java.lang.Boolean synchronous) { + this.synchronous = synchronous; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * If set and true, tries to run the report synchronously. + *

+ */ + public boolean isSynchronous() { + if (synchronous == null || synchronous == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return synchronous; + } + + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); + } + } + /** + * Updates a report. + * + * Create a request for the method "reports.update". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Update update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Update result = new Update(profileId, reportId, content); + initialize(result); + return result; + } + + public class Update extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}"; + + /** + * Updates a report. + * + * Create a request for the method "reports.update". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Update(java.lang.Long profileId, java.lang.Long reportId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Report.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Update setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Update setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the CompatibleFields collection. + * + *

The typical use is:

+ *
+     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+     *   {@code Dfareporting.CompatibleFields.List request = dfareporting.compatibleFields().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public CompatibleFields compatibleFields() { + return new CompatibleFields(); + } + + /** + * The "compatibleFields" collection of methods. + */ + public class CompatibleFields { + + /** + * Returns the fields that are compatible to be selected in the respective sections of a report + * criteria, given the fields already selected in the input report and user permissions. + * + * Create a request for the method "compatibleFields.query". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @return the request + */ + public Query query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) throws java.io.IOException { + Query result = new Query(profileId, content); + initialize(result); + return result; + } + + public class Query extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/compatiblefields/query"; + + /** + * Returns the fields that are compatible to be selected in the respective sections of a report + * criteria, given the fields already selected in the input report and user permissions. + * + * Create a request for the method "compatibleFields.query". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

{@link + * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param content the {@link com.google.api.services.dfareporting.model.Report} + * @since 1.13 + */ + protected Query(java.lang.Long profileId, com.google.api.services.dfareporting.model.Report content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.CompatibleFields.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } + + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } + + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } + + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } + + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } + + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } + + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } + + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } + + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } + + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } + + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Query setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Files collection. + * + *

The typical use is:

+ *
+     *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+     *   {@code Dfareporting.Files.List request = dfareporting.files().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Files files() { + return new Files(); + } + + /** + * The "files" collection of methods. + */ + public class Files { + + /** + * Retrieves a report file by its report ID and file ID. This method supports media download. + * + * Create a request for the method "files.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) throws java.io.IOException { + Get result = new Get(profileId, reportId, fileId); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files/{fileId}"; + + /** + * Retrieves a report file by its report ID and file ID. This method supports media download. + * + * Create a request for the method "files.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the report. + * @param fileId The ID of the report file. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.Long reportId, java.lang.Long fileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.File.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.reportId = com.google.api.client.util.Preconditions.checkNotNull(reportId, "Required parameter reportId must be specified."); + this.fileId = com.google.api.client.util.Preconditions.checkNotNull(fileId, "Required parameter fileId must be specified."); + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the report. */ + public Get setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** The ID of the report file. */ + @com.google.api.client.util.Key + private java.lang.Long fileId; + + /** The ID of the report file. + */ + public java.lang.Long getFileId() { + return fileId; + } + + /** The ID of the report file. */ + public Get setFileId(java.lang.Long fileId) { + this.fileId = fileId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists files for a report. + * + * Create a request for the method "files.list". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param profileId The Campaign Manager 360 user profile ID. + * @param reportId The ID of the parent report. + * @return the request + */ + public List list(java.lang.Long profileId, java.lang.Long reportId) throws java.io.IOException { + List result = new List(profileId, reportId); + initialize(result); + return result; + } + + public class List extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{profileId}/reports/{reportId}/files"; + + /** * Lists files for a report. * * Create a request for the method "files.list". @@ -29815,340 +30281,854 @@ public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The Campaign Manager 360 user profile ID. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** The Campaign Manager 360 user profile ID. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** The Campaign Manager 360 user profile ID. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** The ID of the parent report. */ + @com.google.api.client.util.Key + private java.lang.Long reportId; + + /** The ID of the parent report. + */ + public java.lang.Long getReportId() { + return reportId; + } + + /** The ID of the parent report. */ + public List setReportId(java.lang.Long reportId) { + this.reportId = reportId; + return this; + } + + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 10] + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** The value of the nextToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value of the nextToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The value of the nextToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] + */ + public java.lang.String getSortField() { + return sortField; + } + + /** The field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; + } + + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: DESCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; + } + + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Sites collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Sites.List request = dfareporting.sites().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Sites sites() { + return new Sites(); + } + + /** + * The "sites" collection of methods. + */ + public class Sites { + + /** + * Gets one site by ID. + * + * Create a request for the method "sites.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Site ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } + + public class Get extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/sites/{+id}"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + + /** + * Gets one site by ID. + * + * Create a request for the method "sites.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Site ID. + * @since 1.13 + */ + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Site.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Site ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; - /** The Campaign Manager 360 user profile ID. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + /** Site ID. + */ + public java.lang.Long getId() { + return id; + } - /** The Campaign Manager 360 user profile ID. - */ - public java.lang.Long getProfileId() { - return profileId; - } + /** Site ID. */ + public Get setId(java.lang.Long id) { + this.id = id; + return this; + } - /** The Campaign Manager 360 user profile ID. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Inserts a new site. + * + * Create a request for the method "sites.insert". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @return the request + */ + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; + } - /** The ID of the parent report. */ - @com.google.api.client.util.Key - private java.lang.Long reportId; + public class Insert extends DfareportingRequest { - /** The ID of the parent report. - */ - public java.lang.Long getReportId() { - return reportId; - } + private static final String REST_PATH = "userprofiles/{+profileId}/sites"; - /** The ID of the parent report. */ - public List setReportId(java.lang.Long reportId) { - this.reportId = reportId; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Maximum number of results to return. */ - @com.google.api.client.util.Key - private java.lang.Integer maxResults; + /** + * Inserts a new site. + * + * Create a request for the method "sites.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @since 1.13 + */ + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } - /** Maximum number of results to return. [default: 10] - */ - public java.lang.Integer getMaxResults() { - return maxResults; - } + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; - return this; - } + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - /** The value of the nextToken from the previous result page. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - /** The value of the nextToken from the previous result page. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - /** The value of the nextToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - /** The field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - /** The field by which to sort the list. [default: LAST_MODIFIED_TIME] - */ - public java.lang.String getSortField() { - return sortField; - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - /** The field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; - } + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** Order of sorted results. [default: DESCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; - } + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; } + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } } - } - - /** - * An accessor for creating requests from the Sites collection. - * - *

The typical use is:

- *
-   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Sites.List request = dfareporting.sites().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Sites sites() { - return new Sites(); - } - - /** - * The "sites" collection of methods. - */ - public class Sites { - /** - * Gets one site by ID. + * Retrieves a list of sites, possibly filtered. This method supports paging. * - * Create a request for the method "sites.get". + * Create a request for the method "sites.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Site ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Get extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sites/{+id}"; + private static final String REST_PATH = "userprofiles/{+profileId}/sites"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); - private final java.util.regex.Pattern ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); - /** - * Gets one site by ID. + * Retrieves a list of sites, possibly filtered. This method supports paging. * - * Create a request for the method "sites.get". + * Create a request for the method "sites.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Site ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Site.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SitesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** User profile ID associated with this request. */ + @com.google.api.client.util.Key + private java.lang.Long profileId; + + /** User profile ID associated with this request. + */ + public java.lang.Long getProfileId() { + return profileId; + } + + /** User profile ID associated with this request. */ + public List setProfileId(java.lang.Long profileId) { + this.profileId = profileId; + return this; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsInStreamVideoPlacements; + + /** This search filter is no longer supported and will have no effect on the results returned. + */ + public java.lang.Boolean getAcceptsInStreamVideoPlacements() { + return acceptsInStreamVideoPlacements; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + public List setAcceptsInStreamVideoPlacements(java.lang.Boolean acceptsInStreamVideoPlacements) { + this.acceptsInStreamVideoPlacements = acceptsInStreamVideoPlacements; + return this; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsInterstitialPlacements; + + /** This search filter is no longer supported and will have no effect on the results returned. + */ + public java.lang.Boolean getAcceptsInterstitialPlacements() { + return acceptsInterstitialPlacements; + } + + /** + * This search filter is no longer supported and will have no effect on the results returned. + */ + public List setAcceptsInterstitialPlacements(java.lang.Boolean acceptsInterstitialPlacements) { + this.acceptsInterstitialPlacements = acceptsInterstitialPlacements; + return this; + } + + /** Select only sites that accept publisher paid placements. */ + @com.google.api.client.util.Key + private java.lang.Boolean acceptsPublisherPaidPlacements; + + /** Select only sites that accept publisher paid placements. + */ + public java.lang.Boolean getAcceptsPublisherPaidPlacements() { + return acceptsPublisherPaidPlacements; + } + + /** Select only sites that accept publisher paid placements. */ + public List setAcceptsPublisherPaidPlacements(java.lang.Boolean acceptsPublisherPaidPlacements) { + this.acceptsPublisherPaidPlacements = acceptsPublisherPaidPlacements; + return this; + } + + /** Select only AdWords sites. */ + @com.google.api.client.util.Key + private java.lang.Boolean adWordsSite; + + /** Select only AdWords sites. + */ + public java.lang.Boolean getAdWordsSite() { + return adWordsSite; + } + + /** Select only AdWords sites. */ + public List setAdWordsSite(java.lang.Boolean adWordsSite) { + this.adWordsSite = adWordsSite; + return this; + } + + /** Select only approved sites. */ + @com.google.api.client.util.Key + private java.lang.Boolean approved; + + /** Select only approved sites. + */ + public java.lang.Boolean getApproved() { + return approved; + } + + /** Select only approved sites. */ + public List setApproved(java.lang.Boolean approved) { + this.approved = approved; + return this; + } + + /** Select only sites with these campaign IDs. */ + @com.google.api.client.util.Key + private java.util.List campaignIds; + + /** Select only sites with these campaign IDs. + */ + public java.util.List getCampaignIds() { + return campaignIds; + } + + /** Select only sites with these campaign IDs. */ + public List setCampaignIds(java.util.List campaignIds) { + this.campaignIds = campaignIds; + return this; + } + + /** Select only sites with these directory site IDs. */ + @com.google.api.client.util.Key + private java.util.List directorySiteIds; + + /** Select only sites with these directory site IDs. + */ + public java.util.List getDirectorySiteIds() { + return directorySiteIds; + } + + /** Select only sites with these directory site IDs. */ + public List setDirectorySiteIds(java.util.List directorySiteIds) { + this.directorySiteIds = directorySiteIds; + return this; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** Select only sites with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only sites with these IDs. + */ + public java.util.List getIds() { + return ids; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + /** Select only sites with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** Maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Maximum number of results to return. [default: 1000] + */ + public java.lang.Integer getMaxResults() { + return maxResults; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** Maximum number of results to return. */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** Value of the nextPageToken from the previous result page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Value of the nextPageToken from the previous result page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** Value of the nextPageToken from the previous result page. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For + * example, "site*2015" will return objects with names like "site June 2015", "site April + * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "site" will match + * objects with name "my site", "site 2015", or simply "site". + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, + "site*2015" will return objects with names like "site June 2015", "site April 2015", or simply + "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the + search string. For example, a search string of "site" will match objects with name "my site", "site + 2015", or simply "site". + */ + public java.lang.String getSearchString() { + return searchString; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For + * example, "site*2015" will return objects with names like "site June 2015", "site April + * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of "site" will match + * objects with name "my site", "site 2015", or simply "site". + */ + public List setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Field by which to sort the list. */ + @com.google.api.client.util.Key + private java.lang.String sortField; + + /** Field by which to sort the list. [default: ID] + */ + public java.lang.String getSortField() { + return sortField; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** Field by which to sort the list. */ + public List setSortField(java.lang.String sortField) { + this.sortField = sortField; + return this; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Order of sorted results. */ + @com.google.api.client.util.Key + private java.lang.String sortOrder; + + /** Order of sorted results. [default: ASCENDING] + */ + public java.lang.String getSortOrder() { + return sortOrder; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Order of sorted results. */ + public List setSortOrder(java.lang.String sortOrder) { + this.sortOrder = sortOrder; + return this; } - /** User profile ID associated with this request. */ + /** Select only sites with this subaccount ID. */ @com.google.api.client.util.Key - private java.lang.Long profileId; + private java.lang.Long subaccountId; - /** User profile ID associated with this request. + /** Select only sites with this subaccount ID. */ - public java.lang.Long getProfileId() { - return profileId; + public java.lang.Long getSubaccountId() { + return subaccountId; } - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; + /** Select only sites with this subaccount ID. */ + public List setSubaccountId(java.lang.Long subaccountId) { + this.subaccountId = subaccountId; return this; } - /** Site ID. */ + /** Select only sites that have not been mapped to a directory site. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Boolean unmappedSite; - /** Site ID. + /** Select only sites that have not been mapped to a directory site. */ - public java.lang.Long getId() { - return id; + public java.lang.Boolean getUnmappedSite() { + return unmappedSite; } - /** Site ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Select only sites that have not been mapped to a directory site. */ + public List setUnmappedSite(java.lang.Boolean unmappedSite) { + this.unmappedSite = unmappedSite; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Inserts a new site. + * Updates an existing site. This method supports patch semantics. * - * Create a request for the method "sites.insert". + * Create a request for the method "sites.patch". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param id Required. Site ID. * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Patch result = new Patch(profileId, id, content); initialize(result); return result; } - public class Insert extends DfareportingRequest { + public class Patch extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{+profileId}/sites"; @@ -30156,78 +31136,80 @@ public class Insert extends DfareportingRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param id Required. Site ID. * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -30241,34 +31223,51 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { + public Patch setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } + /** Required. Site ID. */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** Required. Site ID. + */ + public java.lang.Long getId() { + return id; + } + + /** Required. Site ID. */ + public Patch setId(java.lang.Long id) { + this.id = id; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves a list of sites, possibly filtered. This method supports paging. + * Updates an existing site. * - * Create a request for the method "sites.list". + * Create a request for the method "sites.update". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { + Update result = new Update(profileId, content); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Update extends DfareportingRequest { private static final String REST_PATH = "userprofiles/{+profileId}/sites"; @@ -30276,86 +31275,78 @@ public class List extends DfareportingRequest - * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SitesListResponse.class); + protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { + super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -30369,381 +31360,419 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { + public Update setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsInStreamVideoPlacements; - - /** This search filter is no longer supported and will have no effect on the results returned. - */ - public java.lang.Boolean getAcceptsInStreamVideoPlacements() { - return acceptsInStreamVideoPlacements; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } + } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - public List setAcceptsInStreamVideoPlacements(java.lang.Boolean acceptsInStreamVideoPlacements) { - this.acceptsInStreamVideoPlacements = acceptsInStreamVideoPlacements; - return this; - } + } - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsInterstitialPlacements; + /** + * An accessor for creating requests from the Sizes collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.Sizes.List request = dfareporting.sizes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Sizes sizes() { + return new Sizes(); + } - /** This search filter is no longer supported and will have no effect on the results returned. - */ - public java.lang.Boolean getAcceptsInterstitialPlacements() { - return acceptsInterstitialPlacements; - } + /** + * The "sizes" collection of methods. + */ + public class Sizes { - /** - * This search filter is no longer supported and will have no effect on the results returned. - */ - public List setAcceptsInterstitialPlacements(java.lang.Boolean acceptsInterstitialPlacements) { - this.acceptsInterstitialPlacements = acceptsInterstitialPlacements; - return this; - } + /** + * Gets one size by ID. + * + * Create a request for the method "sizes.get". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param id Size ID. + * @return the request + */ + public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { + Get result = new Get(profileId, id); + initialize(result); + return result; + } - /** Select only sites that accept publisher paid placements. */ - @com.google.api.client.util.Key - private java.lang.Boolean acceptsPublisherPaidPlacements; + public class Get extends DfareportingRequest { - /** Select only sites that accept publisher paid placements. - */ - public java.lang.Boolean getAcceptsPublisherPaidPlacements() { - return acceptsPublisherPaidPlacements; - } + private static final String REST_PATH = "userprofiles/{+profileId}/sizes/{+id}"; - /** Select only sites that accept publisher paid placements. */ - public List setAcceptsPublisherPaidPlacements(java.lang.Boolean acceptsPublisherPaidPlacements) { - this.acceptsPublisherPaidPlacements = acceptsPublisherPaidPlacements; - return this; - } + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Select only AdWords sites. */ - @com.google.api.client.util.Key - private java.lang.Boolean adWordsSite; + private final java.util.regex.Pattern ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); - /** Select only AdWords sites. + /** + * Gets one size by ID. + * + * Create a request for the method "sizes.get". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param id Size ID. + * @since 1.13 */ - public java.lang.Boolean getAdWordsSite() { - return adWordsSite; + protected Get(java.lang.Long profileId, java.lang.Long id) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Size.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } - /** Select only AdWords sites. */ - public List setAdWordsSite(java.lang.Boolean adWordsSite) { - this.adWordsSite = adWordsSite; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** Select only approved sites. */ - @com.google.api.client.util.Key - private java.lang.Boolean approved; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Select only approved sites. - */ - public java.lang.Boolean getApproved() { - return approved; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** Select only approved sites. */ - public List setApproved(java.lang.Boolean approved) { - this.approved = approved; - return this; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } - /** Select only sites with these campaign IDs. */ - @com.google.api.client.util.Key - private java.util.List campaignIds; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Select only sites with these campaign IDs. - */ - public java.util.List getCampaignIds() { - return campaignIds; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** Select only sites with these campaign IDs. */ - public List setCampaignIds(java.util.List campaignIds) { - this.campaignIds = campaignIds; - return this; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** Select only sites with these directory site IDs. */ - @com.google.api.client.util.Key - private java.util.List directorySiteIds; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Select only sites with these directory site IDs. - */ - public java.util.List getDirectorySiteIds() { - return directorySiteIds; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** Select only sites with these directory site IDs. */ - public List setDirectorySiteIds(java.util.List directorySiteIds) { - this.directorySiteIds = directorySiteIds; - return this; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** Select only sites with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Select only sites with these IDs. - */ - public java.util.List getIds() { - return ids; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Select only sites with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Maximum number of results to return. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.Long profileId; - /** Maximum number of results to return. [default: 1000] + /** User profile ID associated with this request. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.Long getProfileId() { + return profileId; } - /** Maximum number of results to return. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + /** User profile ID associated with this request. */ + public Get setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } - /** Value of the nextPageToken from the previous result page. */ + /** Size ID. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Long id; - /** Value of the nextPageToken from the previous result page. + /** Size ID. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Long getId() { + return id; } - /** Value of the nextPageToken from the previous result page. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Size ID. */ + public Get setId(java.lang.Long id) { + this.id = id; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Inserts a new size. + * + * Create a request for the method "sizes.insert". + * + * This request holds the parameters needed by the dfareporting server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @return the request + */ + public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) throws java.io.IOException { + Insert result = new Insert(profileId, content); + initialize(result); + return result; + } + + public class Insert extends DfareportingRequest { + + private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + + private final java.util.regex.Pattern PROFILE_ID_PATTERN = + java.util.regex.Pattern.compile("^[^/]+$"); + /** - * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For - * example, "site*2015" will return objects with names like "site June 2015", "site April - * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". + * Inserts a new size. + * + * Create a request for the method "sizes.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param profileId User profile ID associated with this request. + * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String searchString; + protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Size.class); + this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + } - /** Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, - "site*2015" will return objects with names like "site June 2015", "site April 2015", or simply - "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the - search string. For example, a search string of "site" will match objects with name "my site", "site - 2015", or simply "site". - */ - public java.lang.String getSearchString() { - return searchString; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } - /** - * Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For - * example, "site*2015" will return objects with names like "site June 2015", "site April - * 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the - * start and the end of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". - */ - public List setSearchString(java.lang.String searchString) { - this.searchString = searchString; - return this; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } - /** Field by which to sort the list. */ - @com.google.api.client.util.Key - private java.lang.String sortField; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - /** Field by which to sort the list. [default: ID] - */ - public java.lang.String getSortField() { - return sortField; + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } - /** Field by which to sort the list. */ - public List setSortField(java.lang.String sortField) { - this.sortField = sortField; - return this; + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } - /** Order of sorted results. */ - @com.google.api.client.util.Key - private java.lang.String sortOrder; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - /** Order of sorted results. [default: ASCENDING] - */ - public java.lang.String getSortOrder() { - return sortOrder; + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } - /** Order of sorted results. */ - public List setSortOrder(java.lang.String sortOrder) { - this.sortOrder = sortOrder; - return this; + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } - /** Select only sites with this subaccount ID. */ - @com.google.api.client.util.Key - private java.lang.Long subaccountId; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** Select only sites with this subaccount ID. - */ - public java.lang.Long getSubaccountId() { - return subaccountId; + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } - /** Select only sites with this subaccount ID. */ - public List setSubaccountId(java.lang.Long subaccountId) { - this.subaccountId = subaccountId; - return this; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - /** Select only sites that have not been mapped to a directory site. */ + /** User profile ID associated with this request. */ @com.google.api.client.util.Key - private java.lang.Boolean unmappedSite; + private java.lang.Long profileId; - /** Select only sites that have not been mapped to a directory site. + /** User profile ID associated with this request. */ - public java.lang.Boolean getUnmappedSite() { - return unmappedSite; + public java.lang.Long getProfileId() { + return profileId; } - /** Select only sites that have not been mapped to a directory site. */ - public List setUnmappedSite(java.lang.Boolean unmappedSite) { - this.unmappedSite = unmappedSite; + /** User profile ID associated with this request. */ + public Insert setProfileId(java.lang.Long profileId) { + this.profileId = profileId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates an existing site. This method supports patch semantics. + * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include + * values not currently in use by your account. Due to this, the list of sizes returned by this + * method may differ from the list seen in the Trafficking UI. * - * Create a request for the method "sites.patch". + * Create a request for the method "sizes.list". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param profileId User profile ID associated with this request. - * @param id Required. Site ID. - * @param content the {@link com.google.api.services.dfareporting.model.Site} * @return the request */ - public Patch patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Patch result = new Patch(profileId, id, content); + public List list(java.lang.Long profileId) throws java.io.IOException { + List result = new List(profileId); initialize(result); return result; } - public class Patch extends DfareportingRequest { + public class List extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sites"; + private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; private final java.util.regex.Pattern PROFILE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Updates an existing site. This method supports patch semantics. + * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may + * include values not currently in use by your account. Due to this, the list of sizes returned by + * this method may differ from the list seen in the Trafficking UI. * - * Create a request for the method "sites.patch". + * Create a request for the method "sizes.list". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param profileId User profile ID associated with this request. - * @param id Required. Site ID. - * @param content the {@link com.google.api.services.dfareporting.model.Site} * @since 1.13 */ - protected Patch(java.lang.Long profileId, java.lang.Long id, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "PATCH", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); + protected List(java.lang.Long profileId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SizesListResponse.class); this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** User profile ID associated with this request. */ @@ -30757,222 +31786,315 @@ public java.lang.Long getProfileId() { } /** User profile ID associated with this request. */ - public Patch setProfileId(java.lang.Long profileId) { + public List setProfileId(java.lang.Long profileId) { this.profileId = profileId; return this; } - /** Required. Site ID. */ + /** Select only sizes with this height. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Integer height; - /** Required. Site ID. + /** Select only sizes with this height. */ - public java.lang.Long getId() { - return id; + public java.lang.Integer getHeight() { + return height; } - /** Required. Site ID. */ - public Patch setId(java.lang.Long id) { - this.id = id; + /** Select only sizes with this height. */ + public List setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** Select only IAB standard sizes. */ + @com.google.api.client.util.Key + private java.lang.Boolean iabStandard; + + /** Select only IAB standard sizes. + */ + public java.lang.Boolean getIabStandard() { + return iabStandard; + } + + /** Select only IAB standard sizes. */ + public List setIabStandard(java.lang.Boolean iabStandard) { + this.iabStandard = iabStandard; + return this; + } + + /** Select only sizes with these IDs. */ + @com.google.api.client.util.Key + private java.util.List ids; + + /** Select only sizes with these IDs. + */ + public java.util.List getIds() { + return ids; + } + + /** Select only sizes with these IDs. */ + public List setIds(java.util.List ids) { + this.ids = ids; + return this; + } + + /** Select only sizes with this width. */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** Select only sizes with this width. + */ + public java.lang.Integer getWidth() { + return width; + } + + /** Select only sizes with this width. */ + public List setWidth(java.lang.Integer width) { + this.width = width; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the StudioCreativeAssets collection. + * + *

The typical use is:

+ *
+   *   {@code Dfareporting dfareporting = new Dfareporting(...);}
+   *   {@code Dfareporting.StudioCreativeAssets.List request = dfareporting.studioCreativeAssets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public StudioCreativeAssets studioCreativeAssets() { + return new StudioCreativeAssets(); + } + + /** + * The "studioCreativeAssets" collection of methods. + */ + public class StudioCreativeAssets { + /** - * Updates an existing site. + * Inserts a new studio creative asset. * - * Create a request for the method "sites.update". + * Create a request for the method "studioCreativeAssets.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} * @return the request */ - public Update update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) throws java.io.IOException { - Update result = new Update(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Update extends DfareportingRequest { + /** + * Inserts a new studio creative asset. + * + * Create a request for the method "studioCreativeAssets.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + *

+ * This method should be used for uploading media content. + *

+ * + * + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Insert insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Insert result = new Insert(content, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "userprofiles/{+profileId}/sites"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creativeAssets"; /** - * Updates an existing site. + * Inserts a new studio creative asset. * - * Create a request for the method "sites.update". + * Create a request for the method "studioCreativeAssets.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Site} + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} * @since 1.13 */ - protected Update(java.lang.Long profileId, com.google.api.services.dfareporting.model.Site content) { - super(Dfareporting.this, "PUT", REST_PATH, content, com.google.api.services.dfareporting.model.Site.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + protected Insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreativeAssetsResponse.class); } - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + /** + * Inserts a new studio creative asset. + * + * Create a request for the method "studioCreativeAssets.insert". + * + * This request holds the parameters needed by the the dfareporting server. After setting any + * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + *

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + *

+ * This constructor should be used for uploading media content. + *

+ * + * + * @param content the {@link com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Insert(com.google.api.services.dfareporting.model.DfareportingStudioCreativeAssetsInsertRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(Dfareporting.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreativeAssetsResponse.class); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } - /** User profile ID associated with this request. */ - public Update setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Sizes collection. + * An accessor for creating requests from the StudioCreatives collection. * *

The typical use is:

*
    *   {@code Dfareporting dfareporting = new Dfareporting(...);}
-   *   {@code Dfareporting.Sizes.List request = dfareporting.sizes().list(parameters ...)}
+   *   {@code Dfareporting.StudioCreatives.List request = dfareporting.studioCreatives().list(parameters ...)}
    * 
* * @return the resource collection */ - public Sizes sizes() { - return new Sizes(); + public StudioCreatives studioCreatives() { + return new StudioCreatives(); } /** - * The "sizes" collection of methods. + * The "studioCreatives" collection of methods. */ - public class Sizes { + public class StudioCreatives { /** - * Gets one size by ID. + * Gets a studio creative by ID. * - * Create a request for the method "sizes.get". + * Create a request for the method "studioCreatives.get". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param id Size ID. + * @param studioCreativeId Required. Studio creative ID. * @return the request */ - public Get get(java.lang.Long profileId, java.lang.Long id) throws java.io.IOException { - Get result = new Get(profileId, id); + public Get get(java.lang.Long studioCreativeId) throws java.io.IOException { + Get result = new Get(studioCreativeId); initialize(result); return result; } - public class Get extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/sizes/{+id}"; + public class Get extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creatives/{+studioCreativeId}"; - private final java.util.regex.Pattern ID_PATTERN = + private final java.util.regex.Pattern STUDIO_CREATIVE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Gets one size by ID. + * Gets a studio creative by ID. * - * Create a request for the method "sizes.get". + * Create a request for the method "studioCreatives.get". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. - * @param id Size ID. + * @param studioCreativeId Required. Studio creative ID. * @since 1.13 */ - protected Get(java.lang.Long profileId, java.lang.Long id) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.Size.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); + protected Get(java.lang.Long studioCreativeId) { + super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.StudioCreative.class); + this.studioCreativeId = com.google.api.client.util.Preconditions.checkNotNull(studioCreativeId, "Required parameter studioCreativeId must be specified."); } @Override @@ -31040,35 +32162,19 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Get setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** Size ID. */ + /** Required. Studio creative ID. */ @com.google.api.client.util.Key - private java.lang.Long id; + private java.lang.Long studioCreativeId; - /** Size ID. + /** Required. Studio creative ID. */ - public java.lang.Long getId() { - return id; + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; } - /** Size ID. */ - public Get setId(java.lang.Long id) { - this.id = id; + /** Required. Studio creative ID. */ + public Get setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; return this; } @@ -31078,34 +32184,30 @@ public Get set(String parameterName, Object value) { } } /** - * Inserts a new size. + * Inserts a new studio creative. * - * Create a request for the method "sizes.insert". + * Create a request for the method "studioCreatives.insert". * * This request holds the parameters needed by the dfareporting server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @param content the {@link com.google.api.services.dfareporting.model.StudioCreative} * @return the request */ - public Insert insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) throws java.io.IOException { - Insert result = new Insert(profileId, content); + public Insert insert(com.google.api.services.dfareporting.model.StudioCreative content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class Insert extends DfareportingRequest { - - private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + public class Insert extends DfareportingRequest { - private final java.util.regex.Pattern PROFILE_ID_PATTERN = - java.util.regex.Pattern.compile("^[^/]+$"); + private static final String REST_PATH = "studio/creatives"; /** - * Inserts a new size. + * Inserts a new studio creative. * - * Create a request for the method "sizes.insert". + * Create a request for the method "studioCreatives.insert". * * This request holds the parameters needed by the the dfareporting server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. @@ -31113,13 +32215,11 @@ public class Insert extends DfareportingRequest * - * @param profileId User profile ID associated with this request. - * @param content the {@link com.google.api.services.dfareporting.model.Size} + * @param content the {@link com.google.api.services.dfareporting.model.StudioCreative} * @since 1.13 */ - protected Insert(java.lang.Long profileId, com.google.api.services.dfareporting.model.Size content) { - super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.Size.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); + protected Insert(com.google.api.services.dfareporting.model.StudioCreative content) { + super(Dfareporting.this, "POST", REST_PATH, content, com.google.api.services.dfareporting.model.StudioCreative.class); } @Override @@ -31177,221 +32277,128 @@ public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public Insert setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include - * values not currently in use by your account. Due to this, the list of sizes returned by this - * method may differ from the list seen in the Trafficking UI. + * Publish for a studio creative. * - * Create a request for the method "sizes.list". + * Create a request for the method "studioCreatives.publish". * * This request holds the parameters needed by the dfareporting server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Publish#execute()} method to invoke the remote operation. * - * @param profileId User profile ID associated with this request. + * @param studioCreativeId Required. Studio creative ID. * @return the request */ - public List list(java.lang.Long profileId) throws java.io.IOException { - List result = new List(profileId); + public Publish publish(java.lang.Long studioCreativeId) throws java.io.IOException { + Publish result = new Publish(studioCreativeId); initialize(result); return result; } - public class List extends DfareportingRequest { + public class Publish extends DfareportingRequest { - private static final String REST_PATH = "userprofiles/{+profileId}/sizes"; + private static final String REST_PATH = "studio/creatives/{+studioCreativeId}/publish"; - private final java.util.regex.Pattern PROFILE_ID_PATTERN = + private final java.util.regex.Pattern STUDIO_CREATIVE_ID_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** - * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may - * include values not currently in use by your account. Due to this, the list of sizes returned by - * this method may differ from the list seen in the Trafficking UI. + * Publish for a studio creative. * - * Create a request for the method "sizes.list". + * Create a request for the method "studioCreatives.publish". * * This request holds the parameters needed by the the dfareporting server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Publish#execute()} method to invoke the remote operation. + *

{@link + * Publish#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param profileId User profile ID associated with this request. + * @param studioCreativeId Required. Studio creative ID. * @since 1.13 */ - protected List(java.lang.Long profileId) { - super(Dfareporting.this, "GET", REST_PATH, null, com.google.api.services.dfareporting.model.SizesListResponse.class); - this.profileId = com.google.api.client.util.Preconditions.checkNotNull(profileId, "Required parameter profileId must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Publish(java.lang.Long studioCreativeId) { + super(Dfareporting.this, "POST", REST_PATH, null, Void.class); + this.studioCreativeId = com.google.api.client.util.Preconditions.checkNotNull(studioCreativeId, "Required parameter studioCreativeId must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Publish set$Xgafv(java.lang.String $Xgafv) { + return (Publish) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Publish setAccessToken(java.lang.String accessToken) { + return (Publish) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Publish setAlt(java.lang.String alt) { + return (Publish) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Publish setCallback(java.lang.String callback) { + return (Publish) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Publish setFields(java.lang.String fields) { + return (Publish) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Publish setKey(java.lang.String key) { + return (Publish) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Publish setOauthToken(java.lang.String oauthToken) { + return (Publish) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Publish setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Publish) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Publish setQuotaUser(java.lang.String quotaUser) { + return (Publish) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Publish setUploadType(java.lang.String uploadType) { + return (Publish) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** User profile ID associated with this request. */ - @com.google.api.client.util.Key - private java.lang.Long profileId; - - /** User profile ID associated with this request. - */ - public java.lang.Long getProfileId() { - return profileId; - } - - /** User profile ID associated with this request. */ - public List setProfileId(java.lang.Long profileId) { - this.profileId = profileId; - return this; - } - - /** Select only sizes with this height. */ - @com.google.api.client.util.Key - private java.lang.Integer height; - - /** Select only sizes with this height. - */ - public java.lang.Integer getHeight() { - return height; - } - - /** Select only sizes with this height. */ - public List setHeight(java.lang.Integer height) { - this.height = height; - return this; - } - - /** Select only IAB standard sizes. */ - @com.google.api.client.util.Key - private java.lang.Boolean iabStandard; - - /** Select only IAB standard sizes. - */ - public java.lang.Boolean getIabStandard() { - return iabStandard; - } - - /** Select only IAB standard sizes. */ - public List setIabStandard(java.lang.Boolean iabStandard) { - this.iabStandard = iabStandard; - return this; - } - - /** Select only sizes with these IDs. */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Select only sizes with these IDs. - */ - public java.util.List getIds() { - return ids; - } - - /** Select only sizes with these IDs. */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; + public Publish setUploadProtocol(java.lang.String uploadProtocol) { + return (Publish) super.setUploadProtocol(uploadProtocol); } - /** Select only sizes with this width. */ + /** Required. Studio creative ID. */ @com.google.api.client.util.Key - private java.lang.Integer width; + private java.lang.Long studioCreativeId; - /** Select only sizes with this width. + /** Required. Studio creative ID. */ - public java.lang.Integer getWidth() { - return width; + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; } - /** Select only sizes with this width. */ - public List setWidth(java.lang.Integer width) { - this.width = width; + /** Required. Studio creative ID. */ + public Publish setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Publish set(String parameterName, Object value) { + return (Publish) super.set(parameterName, value); } } diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java new file mode 100644 index 00000000000..fc01273f985 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DfareportingStudioCreativeAssetsInsertRequest.java @@ -0,0 +1,121 @@ +/* + * 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.dfareporting.model; + +/** + * Request message for DfareportingStudioCreativeAssets.Insert. + * + *

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 Campaign Manager 360 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 DfareportingStudioCreativeAssetsInsertRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCreativeId; + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Optional. Studio account ID of the studio creative asset. It is a optional. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Required. Studio advertiser ID of the studio creative asset. It is a required field on + * insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; + } + + /** + * Optional. Studio creative ID of the studio creative asset. It is a optional field. If it is + * set, the asset will be associated to the creative. + * @param studioCreativeId studioCreativeId or {@code null} for none + */ + public DfareportingStudioCreativeAssetsInsertRequest setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; + return this; + } + + @Override + public DfareportingStudioCreativeAssetsInsertRequest set(String fieldName, Object value) { + return (DfareportingStudioCreativeAssetsInsertRequest) super.set(fieldName, value); + } + + @Override + public DfareportingStudioCreativeAssetsInsertRequest clone() { + return (DfareportingStudioCreativeAssetsInsertRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java index fb3b2127af2..2ae06f35992 100644 --- a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicFeedsInsertRequest.java @@ -19,7 +19,7 @@ /** * Dynamic profile ID is required for dynamic feed insert as the current GPA API only can create a * dynamic feed under profile context,even though the dynnamic feed itself don't need the dynamic - * profile id. See go/cm3-dco-display-api-interface + * profile id. See * *

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 Campaign Manager 360 API. For a detailed explanation diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java new file mode 100644 index 00000000000..e62cb7343f9 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/DynamicProfileGenerateCodeResponse.java @@ -0,0 +1,67 @@ +/* + * 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.dfareporting.model; + +/** + * Response message for DfareportingDynamicProfiles.GenerateCode. + * + *

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 Campaign Manager 360 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 DynamicProfileGenerateCodeResponse extends com.google.api.client.json.GenericJson { + + /** + * Generated code for the dynamic profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Generated code for the dynamic profile. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * Generated code for the dynamic profile. + * @param code code or {@code null} for none + */ + public DynamicProfileGenerateCodeResponse setCode(java.lang.String code) { + this.code = code; + return this; + } + + @Override + public DynamicProfileGenerateCodeResponse set(String fieldName, Object value) { + return (DynamicProfileGenerateCodeResponse) super.set(fieldName, value); + } + + @Override + public DynamicProfileGenerateCodeResponse clone() { + return (DynamicProfileGenerateCodeResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java new file mode 100644 index 00000000000..48e5c6b5d02 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreative.java @@ -0,0 +1,361 @@ +/* + * 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.dfareporting.model; + +/** + * Contains studio creative information. + * + *

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 Campaign Manager 360 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 StudioCreative extends com.google.api.client.json.GenericJson { + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List assetIds; + + /** + * Backup image asset ID of this studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long backupImageAssetId; + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo createdInfo; + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StudioCreativeDimension dimension; + + /** + * Dynamic profile ID of this studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long dynamicProfileId; + + /** + * Format of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String format; + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long id; + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo lastModifiedInfo; + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Status of this studio creative. It is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCampaignId; + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * @return value or {@code null} for none + */ + public java.util.List getAssetIds() { + return assetIds; + } + + /** + * List of assets associated with this studio creative. It is a required field on insertion. + * @param assetIds assetIds or {@code null} for none + */ + public StudioCreative setAssetIds(java.util.List assetIds) { + this.assetIds = assetIds; + return this; + } + + /** + * Backup image asset ID of this studio creative. + * @return value or {@code null} for none + */ + public java.lang.Long getBackupImageAssetId() { + return backupImageAssetId; + } + + /** + * Backup image asset ID of this studio creative. + * @param backupImageAssetId backupImageAssetId or {@code null} for none + */ + public StudioCreative setBackupImageAssetId(java.lang.Long backupImageAssetId) { + this.backupImageAssetId = backupImageAssetId; + return this; + } + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getCreatedInfo() { + return createdInfo; + } + + /** + * The timestamp when the studio creative was created. This is a read-only, auto-generated field. + * @param createdInfo createdInfo or {@code null} for none + */ + public StudioCreative setCreatedInfo(LastModifiedInfo createdInfo) { + this.createdInfo = createdInfo; + return this; + } + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * @return value or {@code null} for none + */ + public StudioCreativeDimension getDimension() { + return dimension; + } + + /** + * Dimension of this studio creative. This is a required field on insertion if format is BANNER or + * EXPANDING. + * @param dimension dimension or {@code null} for none + */ + public StudioCreative setDimension(StudioCreativeDimension dimension) { + this.dimension = dimension; + return this; + } + + /** + * Dynamic profile ID of this studio creative. + * @return value or {@code null} for none + */ + public java.lang.Long getDynamicProfileId() { + return dynamicProfileId; + } + + /** + * Dynamic profile ID of this studio creative. + * @param dynamicProfileId dynamicProfileId or {@code null} for none + */ + public StudioCreative setDynamicProfileId(java.lang.Long dynamicProfileId) { + this.dynamicProfileId = dynamicProfileId; + return this; + } + + /** + * Format of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.String getFormat() { + return format; + } + + /** + * Format of this studio creative. This is a required field on insertion. + * @param format format or {@code null} for none + */ + public StudioCreative setFormat(java.lang.String format) { + this.format = format; + return this; + } + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * Output only. Unique ID of this studio creative. This is a read-only, auto-generated field. + * @param id id or {@code null} for none + */ + public StudioCreative setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getLastModifiedInfo() { + return lastModifiedInfo; + } + + /** + * The timestamp when the studio creative was last modified. This is a read-only, auto-generated + * field. + * @param lastModifiedInfo lastModifiedInfo or {@code null} for none + */ + public StudioCreative setLastModifiedInfo(LastModifiedInfo lastModifiedInfo) { + this.lastModifiedInfo = lastModifiedInfo; + return this; + } + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of this studio creative. This is a required field on insertion. + * @param name name or {@code null} for none + */ + public StudioCreative setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Status of this studio creative. It is a read-only field. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. Status of this studio creative. It is a read-only field. + * @param status status or {@code null} for none + */ + public StudioCreative setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Studio account ID of this creative. This field, if left unset, will be auto-populated. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public StudioCreative setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Studio advertiser ID of this studio creative. This is a required field on insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public StudioCreative setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCampaignId() { + return studioCampaignId; + } + + /** + * Studio campaign ID of this studio creative. This is a required field on insertion. + * @param studioCampaignId studioCampaignId or {@code null} for none + */ + public StudioCreative setStudioCampaignId(java.lang.Long studioCampaignId) { + this.studioCampaignId = studioCampaignId; + return this; + } + + @Override + public StudioCreative set(String fieldName, Object value) { + return (StudioCreative) super.set(fieldName, value); + } + + @Override + public StudioCreative clone() { + return (StudioCreative) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java new file mode 100644 index 00000000000..5b9adfacd0f --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAsset.java @@ -0,0 +1,295 @@ +/* + * 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.dfareporting.model; + +/** + * Contains studio creative asset information. + * + *

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 Campaign Manager 360 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 StudioCreativeAsset extends com.google.api.client.json.GenericJson { + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo createInfo; + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filename; + + /** + * The filesize of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long filesize; + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long id; + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LastModifiedInfo lastModifiedInfo; + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAccountId; + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioAdvertiserId; + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long studioCreativeId; + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The processing data of the studio creative asset. This is a read-only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoProcessingData videoProcessingData; + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getCreateInfo() { + return createInfo; + } + + /** + * Output only. The creation timestamp of the studio creative asset. This is a read-only field. + * @param createInfo createInfo or {@code null} for none + */ + public StudioCreativeAsset setCreateInfo(LastModifiedInfo createInfo) { + this.createInfo = createInfo; + return this; + } + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * @return value or {@code null} for none + */ + public java.lang.String getFilename() { + return filename; + } + + /** + * The filename of the studio creative asset. It is default to the original filename of the asset. + * @param filename filename or {@code null} for none + */ + public StudioCreativeAsset setFilename(java.lang.String filename) { + this.filename = filename; + return this; + } + + /** + * The filesize of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public java.lang.Long getFilesize() { + return filesize; + } + + /** + * The filesize of the studio creative asset. This is a read-only field. + * @param filesize filesize or {@code null} for none + */ + public StudioCreativeAsset setFilesize(java.lang.Long filesize) { + this.filesize = filesize; + return this; + } + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * Output only. Unique ID of this studio creative asset. This is a read-only, auto-generated + * field. + * @param id id or {@code null} for none + */ + public StudioCreativeAsset setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * @return value or {@code null} for none + */ + public LastModifiedInfo getLastModifiedInfo() { + return lastModifiedInfo; + } + + /** + * Output only. The last modified timestamp of the studio creative asset. This is a read-only + * field. + * @param lastModifiedInfo lastModifiedInfo or {@code null} for none + */ + public StudioCreativeAsset setLastModifiedInfo(LastModifiedInfo lastModifiedInfo) { + this.lastModifiedInfo = lastModifiedInfo; + return this; + } + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAccountId() { + return studioAccountId; + } + + /** + * Studio account ID of this studio creative asset. This field, if left unset, will be auto- + * populated.. + * @param studioAccountId studioAccountId or {@code null} for none + */ + public StudioCreativeAsset setStudioAccountId(java.lang.Long studioAccountId) { + this.studioAccountId = studioAccountId; + return this; + } + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioAdvertiserId() { + return studioAdvertiserId; + } + + /** + * Studio advertiser ID of this studio creative asset. This is a required field on insertion. + * @param studioAdvertiserId studioAdvertiserId or {@code null} for none + */ + public StudioCreativeAsset setStudioAdvertiserId(java.lang.Long studioAdvertiserId) { + this.studioAdvertiserId = studioAdvertiserId; + return this; + } + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * @return value or {@code null} for none + */ + public java.lang.Long getStudioCreativeId() { + return studioCreativeId; + } + + /** + * Studio creative ID of this studio creative asset. The asset will be associated to the creative + * if creative id is set. + * @param studioCreativeId studioCreativeId or {@code null} for none + */ + public StudioCreativeAsset setStudioCreativeId(java.lang.Long studioCreativeId) { + this.studioCreativeId = studioCreativeId; + return this; + } + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of the studio creative asset. It is a auto-generated, read-only field. + * @param type type or {@code null} for none + */ + public StudioCreativeAsset setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The processing data of the studio creative asset. This is a read-only field. + * @return value or {@code null} for none + */ + public VideoProcessingData getVideoProcessingData() { + return videoProcessingData; + } + + /** + * The processing data of the studio creative asset. This is a read-only field. + * @param videoProcessingData videoProcessingData or {@code null} for none + */ + public StudioCreativeAsset setVideoProcessingData(VideoProcessingData videoProcessingData) { + this.videoProcessingData = videoProcessingData; + return this; + } + + @Override + public StudioCreativeAsset set(String fieldName, Object value) { + return (StudioCreativeAsset) super.set(fieldName, value); + } + + @Override + public StudioCreativeAsset clone() { + return (StudioCreativeAsset) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java new file mode 100644 index 00000000000..34c87a790a1 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeAssetsResponse.java @@ -0,0 +1,73 @@ +/* + * 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.dfareporting.model; + +/** + * Response message for DfareportingStudioCreativeAssets.Insert. + * + *

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 Campaign Manager 360 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 StudioCreativeAssetsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of studio creative assets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List assets; + + static { + // hack to force ProGuard to consider StudioCreativeAsset used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(StudioCreativeAsset.class); + } + + /** + * The list of studio creative assets. + * @return value or {@code null} for none + */ + public java.util.List getAssets() { + return assets; + } + + /** + * The list of studio creative assets. + * @param assets assets or {@code null} for none + */ + public StudioCreativeAssetsResponse setAssets(java.util.List assets) { + this.assets = assets; + return this; + } + + @Override + public StudioCreativeAssetsResponse set(String fieldName, Object value) { + return (StudioCreativeAssetsResponse) super.set(fieldName, value); + } + + @Override + public StudioCreativeAssetsResponse clone() { + return (StudioCreativeAssetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java new file mode 100644 index 00000000000..25cfde54454 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/StudioCreativeDimension.java @@ -0,0 +1,91 @@ +/* + * 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.dfareporting.model; + +/** + * Dimension information for a studio creative. + * + *

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 Campaign Manager 360 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 StudioCreativeDimension extends com.google.api.client.json.GenericJson { + + /** + * Height of the studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer height; + + /** + * Width of the studio creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** + * Height of the studio creative. + * @return value or {@code null} for none + */ + public java.lang.Integer getHeight() { + return height; + } + + /** + * Height of the studio creative. + * @param height height or {@code null} for none + */ + public StudioCreativeDimension setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** + * Width of the studio creative. + * @return value or {@code null} for none + */ + public java.lang.Integer getWidth() { + return width; + } + + /** + * Width of the studio creative. + * @param width width or {@code null} for none + */ + public StudioCreativeDimension setWidth(java.lang.Integer width) { + this.width = width; + return this; + } + + @Override + public StudioCreativeDimension set(String fieldName, Object value) { + return (StudioCreativeDimension) super.set(fieldName, value); + } + + @Override + public StudioCreativeDimension clone() { + return (StudioCreativeDimension) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java new file mode 100644 index 00000000000..86e7b01fab5 --- /dev/null +++ b/clients/google-api-services-dfareporting/v5/2.0.0/com/google/api/services/dfareporting/model/VideoProcessingData.java @@ -0,0 +1,91 @@ +/* + * 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.dfareporting.model; + +/** + * Contains processing data for a video asset. + * + *

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 Campaign Manager 360 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 VideoProcessingData extends com.google.api.client.json.GenericJson { + + /** + * For a FAILED processing state, the error reason discovered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorReason; + + /** + * Output only. The processing state of the studio creative asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String processingState; + + /** + * For a FAILED processing state, the error reason discovered. + * @return value or {@code null} for none + */ + public java.lang.String getErrorReason() { + return errorReason; + } + + /** + * For a FAILED processing state, the error reason discovered. + * @param errorReason errorReason or {@code null} for none + */ + public VideoProcessingData setErrorReason(java.lang.String errorReason) { + this.errorReason = errorReason; + return this; + } + + /** + * Output only. The processing state of the studio creative asset. + * @return value or {@code null} for none + */ + public java.lang.String getProcessingState() { + return processingState; + } + + /** + * Output only. The processing state of the studio creative asset. + * @param processingState processingState or {@code null} for none + */ + public VideoProcessingData setProcessingState(java.lang.String processingState) { + this.processingState = processingState; + return this; + } + + @Override + public VideoProcessingData set(String fieldName, Object value) { + return (VideoProcessingData) super.set(fieldName, value); + } + + @Override + public VideoProcessingData clone() { + return (VideoProcessingData) super.clone(); + } + +} diff --git a/clients/google-api-services-dfareporting/v5/2.0.0/pom.xml b/clients/google-api-services-dfareporting/v5/2.0.0/pom.xml index 57d2496216f..f74e484657c 100644 --- a/clients/google-api-services-dfareporting/v5/2.0.0/pom.xml +++ b/clients/google-api-services-dfareporting/v5/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-dfareporting - v5-rev20250902-2.0.0 - Campaign Manager 360 API v5-rev20250902-2.0.0 + v5-rev20251009-2.0.0 + Campaign Manager 360 API v5-rev20251009-2.0.0 jar 2011 diff --git a/clients/google-api-services-dfareporting/v5/README.md b/clients/google-api-services-dfareporting/v5/README.md index 29398c620d2..c16a3f1120c 100644 --- a/clients/google-api-services-dfareporting/v5/README.md +++ b/clients/google-api-services-dfareporting/v5/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dfareporting - v5-rev20250902-2.0.0 + v5-rev20251009-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dfareporting:v5-rev20250902-2.0.0' + implementation 'com.google.apis:google-api-services-dfareporting:v5-rev20251009-2.0.0' } ```