Google Ad Manager Premium Connector

All processors can throw a AdManagerApiException when there is a problem with the request submitted to the API or a AdManagerCommunicationException if there is a communication problem with the API (such as timeouts etc.).

Additional Info

Requires Mule Enterprise License

Yes  

Requires Entitlement

Yes  

Mule Version

3.6.0 or higher

Configs


OAuth 2.0

<google-ad-manager-premium:config-oauth>

Connection Management

Connection strategy to connect with Google Ad Manager through OAuth authentication

Attributes

Name Java Type Description Default Value Required

name

String

The name of this configuration. With this name can be later referenced.

x 

clientId

String

The client Id

x 

clientSecret

String

The client secret

x 

refreshToken

String

The refresh token for Google Ad Manager

x 

tokenServerUrl

String

The token server URL for Google Ad Manager

https://accounts.google.com/o/oauth2/token

 

applicationName

String

The application name for Google Ad Manager

x 

endpoint

String

The endpoint (URL) for Google Ad Manager

https://ads.google.com/

 

networkCode

String

The network code for Google Ad Manager

x 


Service Account

<google-ad-manager-premium:config-service-account>

Connection Management

Connection strategy to connect with Google Ad Manager through service account authentication

Attributes

Name Java Type Description Default Value Required

name

String

The name of this configuration. With this name can be later referenced.

x 

jsonKeyFilePath

String

The path to the JSON file provided by google for service authentication

x 

tokenServerUrl

String

The token server URL for Google Ad Manager

https://accounts.google.com/o/oauth2/token

 

applicationName

String

The application name for Google Ad Manager

x 

endpoint

String

The endpoint (URL) for Google Ad Manager

https://ads.google.com/

 

networkCode

String

The network code for Google Ad Manager

x 

Processors


Download Report

<google-ad-manager-premium:download-report>

  DataSense enabled

Download a Report from the Google Ad Manager service.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

reportJob

ReportJob

The Report Job for which the download needs to be generated

#[payload]

 

exportFormat

ExportFormat

The format in which the document should be produced

XML

 

Returns

Return Java Type Description

InputStream

Input Stream containing a dump of the report


Get Report Download URL

<google-ad-manager-premium:get-report-download-url>

Gets the URL containing the Report generated.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

reportJobId

long

The Report Job ID (refer to Create Report)

x 

reportDownloadOptions

ReportDownloadOptions

Report Download Options a POJO containing the report download options

x 

Returns

Return Java Type Description

String

The URL location of the Report


Select PQL

<google-ad-manager-premium:select-pql>

Method for executing a PQL (Publisher-Query-Language) select statement to retrieve data from Google Ad Manager.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selectCols

String

A comma-delimited list of columns to be selected, if it's left blank or an asterisk ('*') is used every column will be returned

*

 

fromTable

String

The name of the table from which the data will be obtained

x 

queryString

String

The query string to filter the objects The query string is written as id=:id, in turns the queryParams must contain the parameter specified (e.g. :id)

x 

queryParams

Map<String,Object>

The query parameters to filter the objects, these parameters should match the promised parameters specified in the queryString parameter

x 

queryOrder

String

The order in which the results will be retrieved

ASC

 

queryOffset

Integer

The query limit for the statement

0

 

Returns

Return Java Type Description

List<String[]>

Result of the 'select' operation.


Get by Statement

<google-ad-manager-premium:get-by-statement>

  DataSense enabled

Retrieve object(s) that match the query.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selector

GetByStatementSelector

The object that will be retrieved

x 

queryString

String

The query string to filter the objects The query string is written as id=:id, in turns the queryParams must contain the parameter specified (e.g. :id)

x 

queryParams

Map<String,Object>

The query parameters to filter the objects, these parameters should match the promised parameters specified in the queryString parameter

x 

queryOrder

String

The order in which the results will be retrieved

ASC

 

queryOffset

Integer

The query offset for the statement

0

 

Returns

Return Java Type Description

Object

Object object(s) that match with the parameters


Get

<google-ad-manager-premium:get>

  DataSense enabled

Gets a object(s) depending on the service chosen.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selector

GetSelector

The object that will be retrieved

x 

Returns

Return Java Type Description

Object

User or List of


Perform

<google-ad-manager-premium:perform>

  DataSense enabled

Perform action onto objects.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selector

String

The service that an action should be performed on, and the action to be perform.

The string should take form of object||action such as Ad Units||Activate Ad Units.

Supported objects can be found in the PerformSelector enum, the actions supported match the ones in the Google Ad Manager documentation

x 

queryString

String

The query string to filter the objects The query string is written as id=:id, in turns the queryParams must contain the parameter specified (e.g. :id)

x 

queryParams

Map<String,Object>

The query parameters to filter the objects, these parameters should match the promised parameters specified in the queryString parameter

x 

Returns

Return Java Type Description

Integer

The number of objects effected by the perform operation


Create

<google-ad-manager-premium:create>

  DataSense enabled

Create Objects on a service.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selector

CreateSelector

The type of object being created (see CreateSelector)

x 

objects

Object

List Objects to be created (different depending on the service chosen)

#[payload]

 

Returns

Return Java Type Description

Object

List (either Long or String containing the IDs of the objects created


Update

<google-ad-manager-premium:update>

  DataSense enabled

Update a list of Objects.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

selector

UpdateSelector

The update operation to be performed

x 

items

Object

The items to be updated

#[payload]

 

Returns

Return Java Type Description

Object

List containing the IDs for the items updated through the operation


Create Report

<google-ad-manager-premium:create-report>

Creates a Report with the given parameters.

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

createReportMethod

DownloadReportMethod

Whether sync (wait for report to be created) or async (refer to Get Report Job Status)

x 

dimensions

String

comma-delimited dimensions list

x 

columns

String

comma-delimited columns list

x 

dimensionAttributes

String

comma-delimited dimension attributes list

 

startDate

Date

the start of the Report date

x 

endDate

Date

the end of the report date

x 

Returns

Return Java Type Description

ReportJob

ReportJob the Report Job of the Report created/being created


Get Custom Field Option

<google-ad-manager-premium:get-custom-field-option>

Gets a Custom Field with the given Custom field Option ID

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

customFieldOptionId

long

the ID of the Custom field Option

x 

Returns

Return Java Type Description

CustomFieldOption

CustomFieldOption the Custom field Option that has the ID specified


Get Report Job Status

<google-ad-manager-premium:get-report-job-status>

Gets the status of a created Report Job (usually used in conjunction with Create Report with DownloadReportMethod set as Async)

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

reportJobId

long

the ID of the Report Job

x 

Returns

Return Java Type Description

ReportJobStatus

ReportJobStatus the job status of the Report that has the ID


Get Availability Forecast

<google-ad-manager-premium:get-availability-forecast>

Retrieve the Availability Forecast for the given prospective Line Item

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

prospectiveLineItem

ProspectiveLineItem

the prospective Line Item to retrieve the Availability Forecast for

#[payload]

 

includeTargetingCriteriaBreakdown

Boolean

boolean to include or not targeting criteria breakdown

 

includeContendingLineItems

Boolean

boolean to include or not contending Line Items

 

Returns

Return Java Type Description

AvailabilityForecast

AvailabilityForecast the Availability Forecast for the prospective


Get Availability Forecast by ID

<google-ad-manager-premium:get-availability-forecast-by-id>

Retrieve the Availability Forecast for the given prospective Line Item ID

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

lineItemId

long

the prospective Line Item ID for retrieve the Availability Forecast

x 

includeTargetingCriteriaBreakdown

Boolean

boolean for include or not targeting criteria breakdown

 

includeContendingLineItems

Boolean

boolean for include or not contending Line Items

 

Returns

Return Java Type Description

AvailabilityForecast

AvailabilityForecast the Availability Forecast for the prospective


Get Delivery Forecast by IDs

<google-ad-manager-premium:get-delivery-forecast-by-ids>

Retrieve the Delivery Forecast for the given prospective Line Item IDs

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

lineItemIds

String

comma-delimited list of IDs for the Line Items to include

 

ignoredLineItems

String

comma-delimited list of IDs for the Line Items to ignore

 

Returns

Return Java Type Description

DeliveryForecast

DeliveryForecast the Delivery Forecast for the prospective Line Item


Get Delivery Forecast

<google-ad-manager-premium:get-delivery-forecast>

Retrieve the Delivery Forecast for the given prospective Line Items

Attributes

Name Java Type Description Default Value Required

config-ref

String

Specify which config to use

x 

prospectiveLineItems

List

list of prospective Line Items for the Delivery Forecast

#[payload]

 

ignoredLineItems

String

comma-delimited list of IDs for the Line Items to ignore

 

Returns

Return Java Type Description

DeliveryForecast

DeliveryForecast the Delivery Forecast for the prospective Line Items