create method
- GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink request,
- String parent, {
- String? $fields,
Creates a DisplayVideo360AdvertiserLink.
This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.
request
- The metadata request object.
Request parameters:
parent
- Required. Example format: properties/1234
Value must have pattern ^properties/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink> create(
GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink request,
core.String parent, {
core.String? $fields,
}) async {
final _body = convert.json.encode(request.toJson());
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1alpha/' +
core.Uri.encodeFull('$parent') +
'/displayVideo360AdvertiserLinks';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.fromJson(
_response as core.Map<core.String, core.dynamic>);
}