source: vendor/google/apiclient-services/src/DisplayVideo/Resource/AdvertisersLocationListsAssignedLocations.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DisplayVideo\Resource;
19
20use Google\Service\DisplayVideo\AssignedLocation;
21use Google\Service\DisplayVideo\BulkEditAssignedLocationsRequest;
22use Google\Service\DisplayVideo\BulkEditAssignedLocationsResponse;
23use Google\Service\DisplayVideo\DisplayvideoEmpty;
24use Google\Service\DisplayVideo\ListAssignedLocationsResponse;
25
26/**
27 * The "assignedLocations" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $displayvideoService = new Google\Service\DisplayVideo(...);
31 * $assignedLocations = $displayvideoService->advertisers_locationLists_assignedLocations;
32 * </code>
33 */
34class AdvertisersLocationListsAssignedLocations extends \Google\Service\Resource
35{
36 /**
37 * Bulk edits multiple assignments between locations and a single location list.
38 * The operation will delete the assigned locations provided in
39 * deletedAssignedLocations and then create the assigned locations provided in
40 * createdAssignedLocations. (assignedLocations.bulkEdit)
41 *
42 * @param string $advertiserId Required. The ID of the DV360 advertiser to which
43 * the location list belongs.
44 * @param string $locationListId Required. The ID of the location list to which
45 * these assignments are assigned.
46 * @param BulkEditAssignedLocationsRequest $postBody
47 * @param array $optParams Optional parameters.
48 * @return BulkEditAssignedLocationsResponse
49 * @throws \Google\Service\Exception
50 */
51 public function bulkEdit($advertiserId, $locationListId, BulkEditAssignedLocationsRequest $postBody, $optParams = [])
52 {
53 $params = ['advertiserId' => $advertiserId, 'locationListId' => $locationListId, 'postBody' => $postBody];
54 $params = array_merge($params, $optParams);
55 return $this->call('bulkEdit', [$params], BulkEditAssignedLocationsResponse::class);
56 }
57 /**
58 * Creates an assignment between a location and a location list.
59 * (assignedLocations.create)
60 *
61 * @param string $advertiserId Required. The ID of the DV360 advertiser to which
62 * the location list belongs.
63 * @param string $locationListId Required. The ID of the location list for which
64 * the assignment will be created.
65 * @param AssignedLocation $postBody
66 * @param array $optParams Optional parameters.
67 * @return AssignedLocation
68 * @throws \Google\Service\Exception
69 */
70 public function create($advertiserId, $locationListId, AssignedLocation $postBody, $optParams = [])
71 {
72 $params = ['advertiserId' => $advertiserId, 'locationListId' => $locationListId, 'postBody' => $postBody];
73 $params = array_merge($params, $optParams);
74 return $this->call('create', [$params], AssignedLocation::class);
75 }
76 /**
77 * Deletes the assignment between a location and a location list.
78 * (assignedLocations.delete)
79 *
80 * @param string $advertiserId Required. The ID of the DV360 advertiser to which
81 * the location list belongs.
82 * @param string $locationListId Required. The ID of the location list to which
83 * this assignment is assigned.
84 * @param string $assignedLocationId Required. The ID of the assigned location
85 * to delete.
86 * @param array $optParams Optional parameters.
87 * @return DisplayvideoEmpty
88 * @throws \Google\Service\Exception
89 */
90 public function delete($advertiserId, $locationListId, $assignedLocationId, $optParams = [])
91 {
92 $params = ['advertiserId' => $advertiserId, 'locationListId' => $locationListId, 'assignedLocationId' => $assignedLocationId];
93 $params = array_merge($params, $optParams);
94 return $this->call('delete', [$params], DisplayvideoEmpty::class);
95 }
96 /**
97 * Lists locations assigned to a location list.
98 * (assignedLocations.listAdvertisersLocationListsAssignedLocations)
99 *
100 * @param string $advertiserId Required. The ID of the DV360 advertiser to which
101 * the location list belongs.
102 * @param string $locationListId Required. The ID of the location list to which
103 * these assignments are assigned.
104 * @param array $optParams Optional parameters.
105 *
106 * @opt_param string filter Allows filtering by location list assignment fields.
107 * Supported syntax: * Filter expressions are made up of one or more
108 * restrictions. * Restrictions can be combined by the `OR` logical operator. *
109 * A restriction has the form of `{field} {operator} {value}`. * All fields must
110 * use the `EQUALS (=)` operator. Supported fields: * `assignedLocationId` The
111 * length of this field should be no more than 500 characters. Reference our
112 * [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for
113 * more information.
114 * @opt_param string orderBy Field by which to sort the list. Acceptable values
115 * are: * `assignedLocationId` (default) The default sorting order is ascending.
116 * To specify descending order for a field, a suffix " desc" should be added to
117 * the field name. Example: `assignedLocationId desc`.
118 * @opt_param int pageSize Requested page size. Must be between `1` and `200`.
119 * If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT`
120 * if an invalid value is specified.
121 * @opt_param string pageToken A token identifying a page of results the server
122 * should return. Typically, this is the value of next_page_token returned from
123 * the previous call to `ListAssignedLocations` method. If not specified, the
124 * first page of results will be returned.
125 * @return ListAssignedLocationsResponse
126 * @throws \Google\Service\Exception
127 */
128 public function listAdvertisersLocationListsAssignedLocations($advertiserId, $locationListId, $optParams = [])
129 {
130 $params = ['advertiserId' => $advertiserId, 'locationListId' => $locationListId];
131 $params = array_merge($params, $optParams);
132 return $this->call('list', [$params], ListAssignedLocationsResponse::class);
133 }
134}
135
136// Adding a class alias for backwards compatibility with the previous class name.
137class_alias(AdvertisersLocationListsAssignedLocations::class, 'Google_Service_DisplayVideo_Resource_AdvertisersLocationListsAssignedLocations');
Note: See TracBrowser for help on using the repository browser.