* $dfareportingService = new Google\Service\Dfareporting(...); * $creativeAssets = $dfareportingService->creativeAssets; * */ class CreativeAssets extends \Google\Service\Resource { /** * Inserts a new creative asset. (creativeAssets.insert) * * @param string $profileId User profile ID associated with this request. * @param string $advertiserId Advertiser ID of this creative. This is a * required field. * @param CreativeAssetMetadata $postBody * @param array $optParams Optional parameters. * @return CreativeAssetMetadata */ public function insert($profileId, $advertiserId, CreativeAssetMetadata $postBody, $optParams = []) { $params = ['profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], CreativeAssetMetadata::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreativeAssets::class, 'Google_Service_Dfareporting_Resource_CreativeAssets');