source: vendor/google/apiclient-services/src/Dfareporting/Resource/FloodlightActivityGroups.php

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

Upload project files

  • Property mode set to 100644
File size: 6.1 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\Dfareporting\Resource;
19
20use Google\Service\Dfareporting\FloodlightActivityGroup;
21use Google\Service\Dfareporting\FloodlightActivityGroupsListResponse;
22
23/**
24 * The "floodlightActivityGroups" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $dfareportingService = new Google\Service\Dfareporting(...);
28 * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups;
29 * </code>
30 */
31class FloodlightActivityGroups extends \Google\Service\Resource
32{
33 /**
34 * Gets one floodlight activity group by ID. (floodlightActivityGroups.get)
35 *
36 * @param string $profileId User profile ID associated with this request.
37 * @param string $id Floodlight activity Group ID.
38 * @param array $optParams Optional parameters.
39 * @return FloodlightActivityGroup
40 * @throws \Google\Service\Exception
41 */
42 public function get($profileId, $id, $optParams = [])
43 {
44 $params = ['profileId' => $profileId, 'id' => $id];
45 $params = array_merge($params, $optParams);
46 return $this->call('get', [$params], FloodlightActivityGroup::class);
47 }
48 /**
49 * Inserts a new floodlight activity group. (floodlightActivityGroups.insert)
50 *
51 * @param string $profileId User profile ID associated with this request.
52 * @param FloodlightActivityGroup $postBody
53 * @param array $optParams Optional parameters.
54 * @return FloodlightActivityGroup
55 * @throws \Google\Service\Exception
56 */
57 public function insert($profileId, FloodlightActivityGroup $postBody, $optParams = [])
58 {
59 $params = ['profileId' => $profileId, 'postBody' => $postBody];
60 $params = array_merge($params, $optParams);
61 return $this->call('insert', [$params], FloodlightActivityGroup::class);
62 }
63 /**
64 * Retrieves a list of floodlight activity groups, possibly filtered. This
65 * method supports paging.
66 * (floodlightActivityGroups.listFloodlightActivityGroups)
67 *
68 * @param string $profileId User profile ID associated with this request.
69 * @param array $optParams Optional parameters.
70 *
71 * @opt_param string advertiserId Select only floodlight activity groups with
72 * the specified advertiser ID. Must specify either advertiserId or
73 * floodlightConfigurationId for a non-empty result.
74 * @opt_param string floodlightConfigurationId Select only floodlight activity
75 * groups with the specified floodlight configuration ID. Must specify either
76 * advertiserId, or floodlightConfigurationId for a non-empty result.
77 * @opt_param string ids Select only floodlight activity groups with the
78 * specified IDs. Must specify either advertiserId or floodlightConfigurationId
79 * for a non-empty result.
80 * @opt_param int maxResults Maximum number of results to return.
81 * @opt_param string pageToken Value of the nextPageToken from the previous
82 * result page.
83 * @opt_param string searchString Allows searching for objects by name or ID.
84 * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will
85 * return objects with names like "floodlightactivitygroup June 2015",
86 * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup
87 * 2015". Most of the searches also add wildcards implicitly at the start and
88 * the end of the search string. For example, a search string of
89 * "floodlightactivitygroup" will match objects with name "my
90 * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply
91 * "floodlightactivitygroup".
92 * @opt_param string sortField Field by which to sort the list.
93 * @opt_param string sortOrder Order of sorted results.
94 * @opt_param string type Select only floodlight activity groups with the
95 * specified floodlight activity group type.
96 * @return FloodlightActivityGroupsListResponse
97 * @throws \Google\Service\Exception
98 */
99 public function listFloodlightActivityGroups($profileId, $optParams = [])
100 {
101 $params = ['profileId' => $profileId];
102 $params = array_merge($params, $optParams);
103 return $this->call('list', [$params], FloodlightActivityGroupsListResponse::class);
104 }
105 /**
106 * Updates an existing floodlight activity group. This method supports patch
107 * semantics. (floodlightActivityGroups.patch)
108 *
109 * @param string $profileId User profile ID associated with this request.
110 * @param string $id Required. EventTag ID.
111 * @param FloodlightActivityGroup $postBody
112 * @param array $optParams Optional parameters.
113 * @return FloodlightActivityGroup
114 * @throws \Google\Service\Exception
115 */
116 public function patch($profileId, $id, FloodlightActivityGroup $postBody, $optParams = [])
117 {
118 $params = ['profileId' => $profileId, 'id' => $id, 'postBody' => $postBody];
119 $params = array_merge($params, $optParams);
120 return $this->call('patch', [$params], FloodlightActivityGroup::class);
121 }
122 /**
123 * Updates an existing floodlight activity group.
124 * (floodlightActivityGroups.update)
125 *
126 * @param string $profileId User profile ID associated with this request.
127 * @param FloodlightActivityGroup $postBody
128 * @param array $optParams Optional parameters.
129 * @return FloodlightActivityGroup
130 * @throws \Google\Service\Exception
131 */
132 public function update($profileId, FloodlightActivityGroup $postBody, $optParams = [])
133 {
134 $params = ['profileId' => $profileId, 'postBody' => $postBody];
135 $params = array_merge($params, $optParams);
136 return $this->call('update', [$params], FloodlightActivityGroup::class);
137 }
138}
139
140// Adding a class alias for backwards compatibility with the previous class name.
141class_alias(FloodlightActivityGroups::class, 'Google_Service_Dfareporting_Resource_FloodlightActivityGroups');
Note: See TracBrowser for help on using the repository browser.