@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
|
String |
getRefreshToken() |
void |
setRefreshToken(String refreshToken) |
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()
public void setRefreshToken(String refreshToken)
refreshToken
- The refresh token for Google Ad ManagerCopyright © 2010–2019. All rights reserved.