\Google\AdsApi\AdManager\Util\v202108CsvFiles

A utility class for processing and handling CSV files.

Summary

Methods
Properties
Constants
writeCsv()
writeCsvToStream()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

writeCsv()

writeCsv(array  $csvData,string  $fileName)

Writes the CSV data to a file located at `$fileName`.

Parameters

array $csvData

the CSV data including the header

string $fileName

the file to write the CSV data to

Throws

\InvalidArgumentException

if $csvData is null or $fileName is null

writeCsvToStream()

writeCsvToStream(array  $csvData,resource  $handle)

Writes the CSV data to a stream handle.

Parameters

array $csvData

the CSV data including the header

resource $handle

the stream handle to write the CSV data to

Throws

\InvalidArgumentException

if $csvData is null or $fileName is null

__construct()

__construct()

This class is meant to be used statically.