Handles the headers used in <= v13 (both sandbox and production)

Methods
N
O
Attributes
[R] tag
[W] credentials
Class Public methods
new(tag, credentials)

Constructor for Pre2009HeaderHandler.

Args:

  • tag: XML tag name to be handled (email, password, etc.)

  • value: value to be sent inside tag on outgoing requests

     # File lib/adwords4r/credentials.rb, line 101
101:     def initialize(tag, credentials)
102:       super(XSD::QName.new(nil, tag))
103:       @tag = tag
104:       @credentials = credentials
105:     end
Instance Public methods
on_simple_outbound()

Handles callback.

     # File lib/adwords4r/credentials.rb, line 108
108:     def on_simple_outbound
109:       if @tag == 'clientEmail'
110:         return @credentials.client_email
111:       elsif @tag == 'clientCustomerId'
112:         return @credentials.client_customer_id
113:       else
114:         @credentials.credentials[@tag]
115:       end
116:     end