Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $accounts = $adexchangebuyer2Service->accounts;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_Accounts extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "clients" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $clients = $adexchangebuyer2Service->clients;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_AccountsClients extends Google_Service_Resource
{
/**
* Creates a new client buyer. (clients.create)
*
* @param string $accountId Unique numerical account ID for the buyer of which
* the client buyer is a customer; the sponsor buyer to create a client for.
* (required)
* @param Google_Service_AdExchangeBuyerII_Client $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Client
*/
public function create($accountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Client");
}
/**
* Gets a client buyer with a given client account ID. (clients.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer to
* retrieve. (required)
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Client
*/
public function get($accountId, $clientAccountId, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Client");
}
/**
* Lists all the clients for the current sponsor buyer.
* (clients.listAccountsClients)
*
* @param string $accountId Unique numerical account ID of the sponsor buyer to
* list the clients for.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientsResponse.nextPageToken returned from the previous call to the
* accounts.clients.list method.
* @opt_param int pageSize Requested page size. The server may return fewer
* clients than requested. If unspecified, the server will pick an appropriate
* default.
* @return Google_Service_AdExchangeBuyerII_ListClientsResponse
*/
public function listAccountsClients($accountId, $optParams = array())
{
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientsResponse");
}
/**
* Updates an existing client buyer. (clients.update)
*
* @param string $accountId Unique numerical account ID for the buyer of which
* the client buyer is a customer; the sponsor buyer to update a client for.
* (required)
* @param string $clientAccountId Unique numerical account ID of the client to
* update. (required)
* @param Google_Service_AdExchangeBuyerII_Client $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Client
*/
public function update($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Client");
}
}

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "invitations" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $invitations = $adexchangebuyer2Service->invitations;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_AccountsClientsInvitations extends Google_Service_Resource
{
/**
* Creates and sends out an email invitation to access an Ad Exchange client
* buyer account. (invitations.create)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user should be associated with. (required)
* @param Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_ClientUserInvitation
*/
public function create($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation");
}
/**
* Retrieves an existing client user invitation. (invitations.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user invitation to be retrieved is associated with. (required)
* @param string $invitationId Numerical identifier of the user invitation to
* retrieve. (required)
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_ClientUserInvitation
*/
public function get($accountId, $clientAccountId, $invitationId, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'invitationId' => $invitationId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation");
}
/**
* Lists all the client users invitations for a client with a given account ID.
* (invitations.listAccountsClientsInvitations)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer to
* list invitations for. (required) You must either specify a string
* representation of a numerical account identifier or the `-` character to list
* all the invitations for all the clients of a given sponsor buyer.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientUserInvitationsResponse.nextPageToken returned from the previous
* call to the clients.invitations.list method.
* @opt_param int pageSize Requested page size. Server may return fewer clients
* than requested. If unspecified, server will pick an appropriate default.
* @return Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse
*/
public function listAccountsClientsInvitations($accountId, $clientAccountId, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse");
}
}

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $users = $adexchangebuyer2Service->users;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_AccountsClientsUsers extends Google_Service_Resource
{
/**
* Retrieves an existing client user. (users.get)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user to be retrieved is associated with. (required)
* @param string $userId Numerical identifier of the user to retrieve.
* (required)
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_ClientUser
*/
public function get($accountId, $clientAccountId, $userId, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUser");
}
/**
* Lists all the known client users for a specified sponsor buyer account ID.
* (users.listAccountsClientsUsers)
*
* @param string $accountId Numerical account ID of the sponsor buyer of the
* client to list users for. (required)
* @param string $clientAccountId The account ID of the client buyer to list
* users for. (required) You must specify either a string representation of a
* numerical account identifier or the `-` character to list all the client
* users for all the clients of a given sponsor buyer.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListClientUsersResponse.nextPageToken returned from the previous call to the
* accounts.clients.users.list method.
* @opt_param int pageSize Requested page size. The server may return fewer
* clients than requested. If unspecified, the server will pick an appropriate
* default.
* @return Google_Service_AdExchangeBuyerII_ListClientUsersResponse
*/
public function listAccountsClientsUsers($accountId, $clientAccountId, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUsersResponse");
}
/**
* Updates an existing client user. Only the user status can be changed on
* update. (users.update)
*
* @param string $accountId Numerical account ID of the client's sponsor buyer.
* (required)
* @param string $clientAccountId Numerical account ID of the client buyer that
* the user to be retrieved is associated with. (required)
* @param string $userId Numerical identifier of the user to retrieve.
* (required)
* @param Google_Service_AdExchangeBuyerII_ClientUser $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_ClientUser
*/
public function update($accountId, $clientAccountId, $userId, Google_Service_AdExchangeBuyerII_ClientUser $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_ClientUser");
}
}

View File

@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "creatives" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $creatives = $adexchangebuyer2Service->creatives;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_AccountsCreatives extends Google_Service_Resource
{
/**
* Creates a creative. (creatives.create)
*
* @param string $accountId The account that this creative belongs to. Can be
* used to filter the response of the creatives.list method.
* @param Google_Service_AdExchangeBuyerII_Creative $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string duplicateIdMode Indicates if multiple creatives can share
* an ID or not. Default is NO_DUPLICATES (one ID per creative).
* @return Google_Service_AdExchangeBuyerII_Creative
*/
public function create($accountId, Google_Service_AdExchangeBuyerII_Creative $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Creative");
}
/**
* Gets a creative. (creatives.get)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Creative
*/
public function get($accountId, $creativeId, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Creative");
}
/**
* Lists creatives. (creatives.listAccountsCreatives)
*
* @param string $accountId The account to list the creatives from. Specify "-"
* to list all creatives the current user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListCreativesResponse.next_page_token returned from the previous call to
* 'ListCreatives' method.
* @opt_param int pageSize Requested page size. The server may return fewer
* creatives than requested (due to timeout constraint) even if more are
* available via another call. If unspecified, server will pick an appropriate
* default. Acceptable values are 1 to 1000, inclusive.
* @opt_param string query An optional query string to filter creatives. If no
* filter is specified, all active creatives will be returned. Supported queries
* are:
*
* accountId=account_id_string creativeId=creative_id_string dealsStatus:
* {approved, conditionally_approved, disapproved,
* not_checked} openAuctionStatus: {approved, conditionally_approved,
* disapproved, not_checked} attribute: {a numeric
* attribute from the list of attributes} disapprovalReason: {a reason from
* DisapprovalReason
*
* Example: 'accountId=12345 AND (dealsStatus:disapproved AND
* disapprovalReason:unacceptable_content) OR attribute:47'
* @return Google_Service_AdExchangeBuyerII_ListCreativesResponse
*/
public function listAccountsCreatives($accountId, $optParams = array())
{
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListCreativesResponse");
}
/**
* Stops watching a creative. Will stop push notifications being sent to the
* topics when the creative changes status. (creatives.stopWatching)
*
* @param string $accountId The account of the creative to stop notifications
* for.
* @param string $creativeId The creative ID of the creative to stop
* notifications for. Specify "-" to specify stopping account level
* notifications.
* @param Google_Service_AdExchangeBuyerII_StopWatchingCreativeRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
*/
public function stopWatching($accountId, $creativeId, Google_Service_AdExchangeBuyerII_StopWatchingCreativeRequest $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('stopWatching', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
}
/**
* Updates a creative. (creatives.update)
*
* @param string $accountId The account that this creative belongs to. Can be
* used to filter the response of the creatives.list method.
* @param string $creativeId The buyer-defined creative ID of this creative. Can
* be used to filter the response of the creatives.list method.
* @param Google_Service_AdExchangeBuyerII_Creative $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Creative
*/
public function update($accountId, $creativeId, Google_Service_AdExchangeBuyerII_Creative $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Creative");
}
/**
* Watches a creative. Will result in push notifications being sent to the topic
* when the creative changes status. (creatives.watch)
*
* @param string $accountId The account of the creative to watch.
* @param string $creativeId The creative ID to watch for status changes.
* Specify "-" to watch all creatives under the above account. If both creative-
* level and account-level notifications are sent, only a single notification
* will be sent to the creative-level notification topic.
* @param Google_Service_AdExchangeBuyerII_WatchCreativeRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
*/
public function watch($accountId, $creativeId, Google_Service_AdExchangeBuyerII_WatchCreativeRequest $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('watch', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
}
}

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "dealAssociations" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
* $dealAssociations = $adexchangebuyer2Service->dealAssociations;
* </code>
*/
class Google_Service_AdExchangeBuyerII_Resource_AccountsCreativesDealAssociations extends Google_Service_Resource
{
/**
* Associate an existing deal with a creative. (dealAssociations.add)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative associated with the deal.
* @param Google_Service_AdExchangeBuyerII_AddDealAssociationRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
*/
public function add($accountId, $creativeId, Google_Service_AdExchangeBuyerII_AddDealAssociationRequest $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('add', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
}
/**
* List all creative-deal associations.
* (dealAssociations.listAccountsCreativesDealAssociations)
*
* @param string $accountId The account to list the associations from. Specify
* "-" to list all creatives the current user has access to.
* @param string $creativeId The creative ID to list the associations from.
* Specify "-" to list all creatives under the above account.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListDealAssociationsResponse.next_page_token returned from the previous call
* to 'ListDealAssociations' method.
* @opt_param int pageSize Requested page size. Server may return fewer
* associations than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string query An optional query string to filter deal associations.
* If no filter is specified, all associations will be returned. Supported
* queries are:
*
* accountId=account_id_string creativeId=creative_id_string
* dealsId=deals_id_string dealsStatus:{approved, conditionally_approved,
* disapproved, not_checked} openAuctionStatus:{approved,
* conditionally_approved, disapproved, not_checked}
*
* Example: 'dealsId=12345 AND dealsStatus:disapproved'
* @return Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse
*/
public function listAccountsCreativesDealAssociations($accountId, $creativeId, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse");
}
/**
* Remove the association between a deal and a creative.
* (dealAssociations.remove)
*
* @param string $accountId The account the creative belongs to.
* @param string $creativeId The ID of the creative associated with the deal.
* @param Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
*/
public function remove($accountId, $creativeId, Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('remove', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
}
}