getRemarketingTag method
This has been sunset as of October 2023, and will return an error response if called.
For more information, see the release notes: https://developers.google.com/authorized-buyers/apis/relnotes#real-time-bidding-api Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript code that can be placed on a web page. When a user visits a page containing a remarketing tag, Google adds the user to a user list.
Request parameters:
name
- Required. To fetch the remarketing tag for an account, the name
must follow the pattern buyers/{accountId}
, where {accountId}
represents the ID of the buyer that owns the remarketing tag. For a bidder
accessing the remarketing tag on behalf of a child seat buyer,
{accountId}
should represent the ID of the child seat buyer. To fetch
the remarketing tag for a specific user list, the name must follow the
pattern buyers/{accountId}/userLists/{userListId}
. See UserList.name.
Value must have pattern ^buyers/\[^/\]+/userLists/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GetRemarketingTagResponse
.
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<GetRemarketingTagResponse> getRemarketingTag(
core.String name, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':getRemarketingTag';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GetRemarketingTagResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}