* $dfareportingService = new Google\Service\Dfareporting(...); * $billingAssignments = $dfareportingService->billingAssignments; * */ class BillingAssignments extends \Google\Service\Resource { /** * Inserts a new billing assignment and returns the new assignment. Only one of * advertiser_id or campaign_id is support per request. If the new assignment * has no effect (assigning a campaign to the parent advertiser billing profile * or assigning an advertiser to the account billing profile), no assignment * will be returned. (billingAssignments.insert) * * @param string $profileId User profile ID associated with this request. * @param string $billingProfileId Billing profile ID of this billing * assignment. * @param BillingAssignment $postBody * @param array $optParams Optional parameters. * @return BillingAssignment * @throws \Google\Service\Exception */ public function insert($profileId, $billingProfileId, BillingAssignment $postBody, $optParams = []) { $params = ['profileId' => $profileId, 'billingProfileId' => $billingProfileId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], BillingAssignment::class); } /** * Retrieves a list of billing assignments. * (billingAssignments.listBillingAssignments) * * @param string $profileId User profile ID associated with this request. * @param string $billingProfileId Billing profile ID of this billing * assignment. * @param array $optParams Optional parameters. * @return BillingAssignmentsListResponse * @throws \Google\Service\Exception */ public function listBillingAssignments($profileId, $billingProfileId, $optParams = []) { $params = ['profileId' => $profileId, 'billingProfileId' => $billingProfileId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], BillingAssignmentsListResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BillingAssignments::class, 'Google_Service_Dfareporting_Resource_BillingAssignments');