@ConnectionManagement(friendlyName="OAuth 2.0",
configElementName="config-oauth")
public class OAuth2Config
extends AbstractConfig
| Modifier and Type | Field and Description |
|---|---|
protected String |
refreshToken
The refresh token for Google Ad Manager.
|
applicationName, companyService, contactService, customFieldService, customTargetingService, endpoint, forecastService, inventoryService, lineItemService, networkCode, orderService, placementService, pqlService, reportService, session, tokenServerUrl, userService| Constructor and Description |
|---|
OAuth2Config() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String clientId,
String clientSecret)
Connect method.
|
String |
getRefreshToken()
Returns the refresh token.
|
void |
setRefreshToken(String refreshToken)
Sets the refresh token.
|
connectionId, disconnect, getApplicationName, getCompanyService, getContactService, getCustomFieldService, getCustomTargetingService, getEndpoint, getForecastService, getInventoryService, getLineItemService, getNetworkCode, getOrderService, getPlacementService, getPqlService, getReportService, getSession, getTokenServerUrl, getUserService, initialiseServices, isConnected, setApplicationName, setCompanyService, setContactService, setCustomFieldService, setCustomTargetingService, setEndpoint, setForecastService, setInventoryService, setLineItemService, setNetworkCode, setOrderService, setPlacementService, setPqlService, setReportService, setSession, setTokenServerUrl, setUserService@Configurable @Required protected String refreshToken
@Connect
@TestConnectivity(label="Test Connection")
public void connect(@ConnectionKey
String clientId,
@Password
String clientSecret)
throws org.mule.api.ConnectionException
clientId - the client IdclientSecret - the client secretorg.mule.api.ConnectionException - if there is a problem establishing a connectionpublic String getRefreshToken()
String the refresh token for Google Ad Managerpublic void setRefreshToken(String refreshToken)
refreshToken - the refresh token for Google Ad ManagerCopyright © 2010–2019. All rights reserved.