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 |
|
---|
18 | namespace Google\Service\Dfareporting\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Dfareporting\FloodlightActivitiesGenerateTagResponse;
|
---|
21 | use Google\Service\Dfareporting\FloodlightActivitiesListResponse;
|
---|
22 | use Google\Service\Dfareporting\FloodlightActivity;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "floodlightActivities" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $dfareportingService = new Google\Service\Dfareporting(...);
|
---|
29 | * $floodlightActivities = $dfareportingService->floodlightActivities;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class FloodlightActivities extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Deletes an existing floodlight activity. (floodlightActivities.delete)
|
---|
36 | *
|
---|
37 | * @param string $profileId User profile ID associated with this request.
|
---|
38 | * @param string $id Floodlight activity ID.
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @throws \Google\Service\Exception
|
---|
41 | */
|
---|
42 | public function delete($profileId, $id, $optParams = [])
|
---|
43 | {
|
---|
44 | $params = ['profileId' => $profileId, 'id' => $id];
|
---|
45 | $params = array_merge($params, $optParams);
|
---|
46 | return $this->call('delete', [$params]);
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * Generates a tag for a floodlight activity. (floodlightActivities.generatetag)
|
---|
50 | *
|
---|
51 | * @param string $profileId User profile ID associated with this request.
|
---|
52 | * @param array $optParams Optional parameters.
|
---|
53 | *
|
---|
54 | * @opt_param string floodlightActivityId Floodlight activity ID for which we
|
---|
55 | * want to generate a tag.
|
---|
56 | * @return FloodlightActivitiesGenerateTagResponse
|
---|
57 | * @throws \Google\Service\Exception
|
---|
58 | */
|
---|
59 | public function generatetag($profileId, $optParams = [])
|
---|
60 | {
|
---|
61 | $params = ['profileId' => $profileId];
|
---|
62 | $params = array_merge($params, $optParams);
|
---|
63 | return $this->call('generatetag', [$params], FloodlightActivitiesGenerateTagResponse::class);
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * Gets one floodlight activity by ID. (floodlightActivities.get)
|
---|
67 | *
|
---|
68 | * @param string $profileId User profile ID associated with this request.
|
---|
69 | * @param string $id Floodlight activity ID.
|
---|
70 | * @param array $optParams Optional parameters.
|
---|
71 | * @return FloodlightActivity
|
---|
72 | * @throws \Google\Service\Exception
|
---|
73 | */
|
---|
74 | public function get($profileId, $id, $optParams = [])
|
---|
75 | {
|
---|
76 | $params = ['profileId' => $profileId, 'id' => $id];
|
---|
77 | $params = array_merge($params, $optParams);
|
---|
78 | return $this->call('get', [$params], FloodlightActivity::class);
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * Inserts a new floodlight activity. (floodlightActivities.insert)
|
---|
82 | *
|
---|
83 | * @param string $profileId User profile ID associated with this request.
|
---|
84 | * @param FloodlightActivity $postBody
|
---|
85 | * @param array $optParams Optional parameters.
|
---|
86 | * @return FloodlightActivity
|
---|
87 | * @throws \Google\Service\Exception
|
---|
88 | */
|
---|
89 | public function insert($profileId, FloodlightActivity $postBody, $optParams = [])
|
---|
90 | {
|
---|
91 | $params = ['profileId' => $profileId, 'postBody' => $postBody];
|
---|
92 | $params = array_merge($params, $optParams);
|
---|
93 | return $this->call('insert', [$params], FloodlightActivity::class);
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * Retrieves a list of floodlight activities, possibly filtered. This method
|
---|
97 | * supports paging. (floodlightActivities.listFloodlightActivities)
|
---|
98 | *
|
---|
99 | * @param string $profileId User profile ID associated with this request.
|
---|
100 | * @param array $optParams Optional parameters.
|
---|
101 | *
|
---|
102 | * @opt_param string advertiserId Select only floodlight activities for the
|
---|
103 | * specified advertiser ID. Must specify either ids, advertiserId, or
|
---|
104 | * floodlightConfigurationId for a non-empty result.
|
---|
105 | * @opt_param string floodlightActivityGroupIds Select only floodlight
|
---|
106 | * activities with the specified floodlight activity group IDs.
|
---|
107 | * @opt_param string floodlightActivityGroupName Select only floodlight
|
---|
108 | * activities with the specified floodlight activity group name.
|
---|
109 | * @opt_param string floodlightActivityGroupTagString Select only floodlight
|
---|
110 | * activities with the specified floodlight activity group tag string.
|
---|
111 | * @opt_param string floodlightActivityGroupType Select only floodlight
|
---|
112 | * activities with the specified floodlight activity group type.
|
---|
113 | * @opt_param string floodlightConfigurationId Select only floodlight activities
|
---|
114 | * for the specified floodlight configuration ID. Must specify either ids,
|
---|
115 | * advertiserId, or floodlightConfigurationId for a non-empty result.
|
---|
116 | * @opt_param string ids Select only floodlight activities with the specified
|
---|
117 | * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for
|
---|
118 | * a non-empty result.
|
---|
119 | * @opt_param int maxResults Maximum number of results to return.
|
---|
120 | * @opt_param string pageToken Value of the nextPageToken from the previous
|
---|
121 | * result page.
|
---|
122 | * @opt_param string searchString Allows searching for objects by name or ID.
|
---|
123 | * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return
|
---|
124 | * objects with names like "floodlightactivity June 2015", "floodlightactivity
|
---|
125 | * April 2015", or simply "floodlightactivity 2015". Most of the searches also
|
---|
126 | * add wildcards implicitly at the start and the end of the search string. For
|
---|
127 | * example, a search string of "floodlightactivity" will match objects with name
|
---|
128 | * "my floodlightactivity activity", "floodlightactivity 2015", or simply
|
---|
129 | * "floodlightactivity".
|
---|
130 | * @opt_param string sortField Field by which to sort the list.
|
---|
131 | * @opt_param string sortOrder Order of sorted results.
|
---|
132 | * @opt_param string tagString Select only floodlight activities with the
|
---|
133 | * specified tag string.
|
---|
134 | * @return FloodlightActivitiesListResponse
|
---|
135 | * @throws \Google\Service\Exception
|
---|
136 | */
|
---|
137 | public function listFloodlightActivities($profileId, $optParams = [])
|
---|
138 | {
|
---|
139 | $params = ['profileId' => $profileId];
|
---|
140 | $params = array_merge($params, $optParams);
|
---|
141 | return $this->call('list', [$params], FloodlightActivitiesListResponse::class);
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * Updates an existing floodlight activity. This method supports patch
|
---|
145 | * semantics. (floodlightActivities.patch)
|
---|
146 | *
|
---|
147 | * @param string $profileId User profile ID associated with this request.
|
---|
148 | * @param string $id Required. EventTag ID.
|
---|
149 | * @param FloodlightActivity $postBody
|
---|
150 | * @param array $optParams Optional parameters.
|
---|
151 | * @return FloodlightActivity
|
---|
152 | * @throws \Google\Service\Exception
|
---|
153 | */
|
---|
154 | public function patch($profileId, $id, FloodlightActivity $postBody, $optParams = [])
|
---|
155 | {
|
---|
156 | $params = ['profileId' => $profileId, 'id' => $id, 'postBody' => $postBody];
|
---|
157 | $params = array_merge($params, $optParams);
|
---|
158 | return $this->call('patch', [$params], FloodlightActivity::class);
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * Updates an existing floodlight activity. (floodlightActivities.update)
|
---|
162 | *
|
---|
163 | * @param string $profileId User profile ID associated with this request.
|
---|
164 | * @param FloodlightActivity $postBody
|
---|
165 | * @param array $optParams Optional parameters.
|
---|
166 | * @return FloodlightActivity
|
---|
167 | * @throws \Google\Service\Exception
|
---|
168 | */
|
---|
169 | public function update($profileId, FloodlightActivity $postBody, $optParams = [])
|
---|
170 | {
|
---|
171 | $params = ['profileId' => $profileId, 'postBody' => $postBody];
|
---|
172 | $params = array_merge($params, $optParams);
|
---|
173 | return $this->call('update', [$params], FloodlightActivity::class);
|
---|
174 | }
|
---|
175 | }
|
---|
176 |
|
---|
177 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
178 | class_alias(FloodlightActivities::class, 'Google_Service_Dfareporting_Resource_FloodlightActivities');
|
---|