Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [analyticsadmin] add GetSearchAds360Link, ListSearchAds360Links, CreateSearchAds360Link, DeleteSearchAds360Link, UpdateSearchAds360Link methods to the Admin API v1alpha #9093

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java-analytics-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.analytics</groupId>
<artifactId>google-analytics-admin</artifactId>
<version>0.18.0</version>
<version>0.20.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.analytics:google-analytics-admin:0.18.0'
implementation 'com.google.analytics:google-analytics-admin:0.20.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.18.0"
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.20.0"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
Expand All @@ -30,6 +31,7 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse;

Expand Down Expand Up @@ -595,6 +597,38 @@ public UnaryCallSettings<ArchiveAudienceRequest, Empty> archiveAudienceSettings(
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveAudienceSettings();
}

/** Returns the object with the settings used for calls to getSearchAds360Link. */
public UnaryCallSettings<GetSearchAds360LinkRequest, SearchAds360Link>
getSearchAds360LinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getSearchAds360LinkSettings();
}

/** Returns the object with the settings used for calls to listSearchAds360Links. */
public PagedCallSettings<
ListSearchAds360LinksRequest,
ListSearchAds360LinksResponse,
ListSearchAds360LinksPagedResponse>
listSearchAds360LinksSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listSearchAds360LinksSettings();
}

/** Returns the object with the settings used for calls to createSearchAds360Link. */
public UnaryCallSettings<CreateSearchAds360LinkRequest, SearchAds360Link>
createSearchAds360LinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSearchAds360LinkSettings();
}

/** Returns the object with the settings used for calls to deleteSearchAds360Link. */
public UnaryCallSettings<DeleteSearchAds360LinkRequest, Empty> deleteSearchAds360LinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteSearchAds360LinkSettings();
}

/** Returns the object with the settings used for calls to updateSearchAds360Link. */
public UnaryCallSettings<UpdateSearchAds360LinkRequest, SearchAds360Link>
updateSearchAds360LinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateSearchAds360LinkSettings();
}

/** Returns the object with the settings used for calls to getAttributionSettings. */
public UnaryCallSettings<GetAttributionSettingsRequest, AttributionSettings>
getAttributionSettingsSettings() {
Expand All @@ -614,6 +648,36 @@ public UnaryCallSettings<ArchiveAudienceRequest, Empty> archiveAudienceSettings(
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings();
}

/** Returns the object with the settings used for calls to setAutomatedGa4ConfigurationOptOut. */
public UnaryCallSettings<
SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse>
setAutomatedGa4ConfigurationOptOutSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
.setAutomatedGa4ConfigurationOptOutSettings();
}

/**
* Returns the object with the settings used for calls to fetchAutomatedGa4ConfigurationOptOut.
*/
public UnaryCallSettings<
FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse>
fetchAutomatedGa4ConfigurationOptOutSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
.fetchAutomatedGa4ConfigurationOptOutSettings();
}

/** Returns the object with the settings used for calls to getBigQueryLink. */
public UnaryCallSettings<GetBigQueryLinkRequest, BigQueryLink> getBigQueryLinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getBigQueryLinkSettings();
}

/** Returns the object with the settings used for calls to listBigQueryLinks. */
public PagedCallSettings<
ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse>
listBigQueryLinksSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listBigQueryLinksSettings();
}

public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
throws IOException {
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -1238,6 +1302,39 @@ public UnaryCallSettings.Builder<ArchiveAudienceRequest, Empty> archiveAudienceS
return getStubSettingsBuilder().archiveAudienceSettings();
}

/** Returns the builder for the settings used for calls to getSearchAds360Link. */
public UnaryCallSettings.Builder<GetSearchAds360LinkRequest, SearchAds360Link>
getSearchAds360LinkSettings() {
return getStubSettingsBuilder().getSearchAds360LinkSettings();
}

/** Returns the builder for the settings used for calls to listSearchAds360Links. */
public PagedCallSettings.Builder<
ListSearchAds360LinksRequest,
ListSearchAds360LinksResponse,
ListSearchAds360LinksPagedResponse>
listSearchAds360LinksSettings() {
return getStubSettingsBuilder().listSearchAds360LinksSettings();
}

/** Returns the builder for the settings used for calls to createSearchAds360Link. */
public UnaryCallSettings.Builder<CreateSearchAds360LinkRequest, SearchAds360Link>
createSearchAds360LinkSettings() {
return getStubSettingsBuilder().createSearchAds360LinkSettings();
}

/** Returns the builder for the settings used for calls to deleteSearchAds360Link. */
public UnaryCallSettings.Builder<DeleteSearchAds360LinkRequest, Empty>
deleteSearchAds360LinkSettings() {
return getStubSettingsBuilder().deleteSearchAds360LinkSettings();
}

/** Returns the builder for the settings used for calls to updateSearchAds360Link. */
public UnaryCallSettings.Builder<UpdateSearchAds360LinkRequest, SearchAds360Link>
updateSearchAds360LinkSettings() {
return getStubSettingsBuilder().updateSearchAds360LinkSettings();
}

/** Returns the builder for the settings used for calls to getAttributionSettings. */
public UnaryCallSettings.Builder<GetAttributionSettingsRequest, AttributionSettings>
getAttributionSettingsSettings() {
Expand All @@ -1256,6 +1353,38 @@ public UnaryCallSettings.Builder<ArchiveAudienceRequest, Empty> archiveAudienceS
return getStubSettingsBuilder().runAccessReportSettings();
}

/**
* Returns the builder for the settings used for calls to setAutomatedGa4ConfigurationOptOut.
*/
public UnaryCallSettings.Builder<
SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse>
setAutomatedGa4ConfigurationOptOutSettings() {
return getStubSettingsBuilder().setAutomatedGa4ConfigurationOptOutSettings();
}

/**
* Returns the builder for the settings used for calls to fetchAutomatedGa4ConfigurationOptOut.
*/
public UnaryCallSettings.Builder<
FetchAutomatedGa4ConfigurationOptOutRequest,
FetchAutomatedGa4ConfigurationOptOutResponse>
fetchAutomatedGa4ConfigurationOptOutSettings() {
return getStubSettingsBuilder().fetchAutomatedGa4ConfigurationOptOutSettings();
}

/** Returns the builder for the settings used for calls to getBigQueryLink. */
public UnaryCallSettings.Builder<GetBigQueryLinkRequest, BigQueryLink>
getBigQueryLinkSettings() {
return getStubSettingsBuilder().getBigQueryLinkSettings();
}

/** Returns the builder for the settings used for calls to listBigQueryLinks. */
public PagedCallSettings.Builder<
ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse>
listBigQueryLinksSettings() {
return getStubSettingsBuilder().listBigQueryLinksSettings();
}

@Override
public AnalyticsAdminServiceSettings build() throws IOException {
return new AnalyticsAdminServiceSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
"CreateProperty": {
"methods": ["createProperty", "createProperty", "createPropertyCallable"]
},
"CreateSearchAds360Link": {
"methods": ["createSearchAds360Link", "createSearchAds360Link", "createSearchAds360Link", "createSearchAds360LinkCallable"]
},
"CreateUserLink": {
"methods": ["createUserLink", "createUserLink", "createUserLink", "createUserLink", "createUserLinkCallable"]
},
Expand Down Expand Up @@ -106,9 +109,15 @@
"DeleteProperty": {
"methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"]
},
"DeleteSearchAds360Link": {
"methods": ["deleteSearchAds360Link", "deleteSearchAds360Link", "deleteSearchAds360Link", "deleteSearchAds360LinkCallable"]
},
"DeleteUserLink": {
"methods": ["deleteUserLink", "deleteUserLink", "deleteUserLink", "deleteUserLinkCallable"]
},
"FetchAutomatedGa4ConfigurationOptOut": {
"methods": ["fetchAutomatedGa4ConfigurationOptOut", "fetchAutomatedGa4ConfigurationOptOutCallable"]
},
"GetAccount": {
"methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"]
},
Expand All @@ -118,6 +127,9 @@
"GetAudience": {
"methods": ["getAudience", "getAudience", "getAudience", "getAudienceCallable"]
},
"GetBigQueryLink": {
"methods": ["getBigQueryLink", "getBigQueryLink", "getBigQueryLink", "getBigQueryLinkCallable"]
},
"GetConversionEvent": {
"methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"]
},
Expand Down Expand Up @@ -154,6 +166,9 @@
"GetProperty": {
"methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"]
},
"GetSearchAds360Link": {
"methods": ["getSearchAds360Link", "getSearchAds360Link", "getSearchAds360Link", "getSearchAds360LinkCallable"]
},
"GetUserLink": {
"methods": ["getUserLink", "getUserLink", "getUserLink", "getUserLinkCallable"]
},
Expand All @@ -166,6 +181,9 @@
"ListAudiences": {
"methods": ["listAudiences", "listAudiences", "listAudiences", "listAudiencesPagedCallable", "listAudiencesCallable"]
},
"ListBigQueryLinks": {
"methods": ["listBigQueryLinks", "listBigQueryLinks", "listBigQueryLinks", "listBigQueryLinksPagedCallable", "listBigQueryLinksCallable"]
},
"ListConversionEvents": {
"methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"]
},
Expand Down Expand Up @@ -196,6 +214,9 @@
"ListProperties": {
"methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"]
},
"ListSearchAds360Links": {
"methods": ["listSearchAds360Links", "listSearchAds360Links", "listSearchAds360Links", "listSearchAds360LinksPagedCallable", "listSearchAds360LinksCallable"]
},
"ListUserLinks": {
"methods": ["listUserLinks", "listUserLinks", "listUserLinks", "listUserLinks", "listUserLinksPagedCallable", "listUserLinksCallable"]
},
Expand All @@ -208,6 +229,9 @@
"SearchChangeHistoryEvents": {
"methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"]
},
"SetAutomatedGa4ConfigurationOptOut": {
"methods": ["setAutomatedGa4ConfigurationOptOut", "setAutomatedGa4ConfigurationOptOutCallable"]
},
"UpdateAccount": {
"methods": ["updateAccount", "updateAccount", "updateAccountCallable"]
},
Expand Down Expand Up @@ -244,6 +268,9 @@
"UpdateProperty": {
"methods": ["updateProperty", "updateProperty", "updatePropertyCallable"]
},
"UpdateSearchAds360Link": {
"methods": ["updateSearchAds360Link", "updateSearchAds360Link", "updateSearchAds360LinkCallable"]
},
"UpdateUserLink": {
"methods": ["updateUserLink", "updateUserLink", "updateUserLinkCallable"]
}
Expand Down
Loading