com.google.api.ads.dfa.lib.testing.mocks.v1_12
Interface LoginRemote

All Known Implementing Classes:
LoginSoapBindingStub

public interface LoginRemote

Mock login remote. Named similarly enough to be mistaken for the DFA API's login service. Used to test DfaServiceClient and LoginTokens.

Author:
Joseph DiLallo

Method Summary
 UserProfile authenticate(String username, String password)
          Mock of DFA's login service authenticate operation.
 UserProfile impersonateNetwork(String username, String password, long networkId)
          Mock of DFA's login service impersonateNetwork operation.
 UserProfile impersonateUser(String username, String password, String targetUsername)
          Mock of DFA's login service impersonateUser operation.
 

Method Detail

authenticate

UserProfile authenticate(String username,
                         String password)
Mock of DFA's login service authenticate operation.

Parameters:
username - DFA user profile name
password - DFA user profile password
Returns:
a user profile

impersonateUser

UserProfile impersonateUser(String username,
                            String password,
                            String targetUsername)
Mock of DFA's login service impersonateUser operation.

Parameters:
username - DFA superuser profile name
password - DFA superuser profile password
targetUsername - username to impersonate
Returns:
a user profile

impersonateNetwork

UserProfile impersonateNetwork(String username,
                               String password,
                               long networkId)
Mock of DFA's login service impersonateNetwork operation.

Parameters:
username - DFA superuser profile name
password - DFA superuser profile token
networkId - network to impersonate
Returns:
a user profile


Copyright © 2012. All Rights Reserved.