farleyknight-commission_junction 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/commission_junction.gemspec +1 -1
- data/lib/commission_junction.rb +15 -2
- metadata +1 -1
data/commission_junction.gemspec
CHANGED
data/lib/commission_junction.rb
CHANGED
@@ -23,6 +23,7 @@ require 'commission_junction/ext'
|
|
23
23
|
# All CJ results are hashes.. I found this to be easier to
|
24
24
|
# use than objects because hashes are more transparent:
|
25
25
|
#
|
26
|
+
# require 'pp'
|
26
27
|
# pp results
|
27
28
|
#
|
28
29
|
# Outputs:
|
@@ -131,6 +132,12 @@ class CommissionJunction
|
|
131
132
|
end
|
132
133
|
|
133
134
|
#
|
135
|
+
# Required parameters
|
136
|
+
# token: The Authentication Key from a successful publisher login. The Commission Junction authentication process generates this key and provides the developer with it. For example, after a publisher authenticates themselves with the Branded Login Service, the system appends the key to the specified redirect URL.
|
137
|
+
#
|
138
|
+
# Response:
|
139
|
+
# The response includes information about the publisher necessary for advertisers or developers to complete a number of tasks, including: creating links, personalizing content and identifying the publisher with their program.
|
140
|
+
#
|
134
141
|
# For a list of possible params (where applicable) or more information, go to:
|
135
142
|
# http://help.cj.com/en/web_services/Publisher_Lookup_Service.htm
|
136
143
|
#
|
@@ -138,11 +145,14 @@ class CommissionJunction
|
|
138
145
|
doOperation('PublisherLookup', 'publisherLookup', self.instance_variables_hash.merge({:token => token}))
|
139
146
|
end
|
140
147
|
|
148
|
+
#
|
149
|
+
# List of advertiser sub-categories. Use a language code provided
|
150
|
+
# by #getLanguages as your prefered locale (english is default).
|
141
151
|
#
|
142
152
|
# For a list of possible params (where applicable) or more information, go to:
|
143
153
|
# http://help.cj.com/en/web_services/Support_Services.htm
|
144
154
|
#
|
145
|
-
def getCategories(locale = '
|
155
|
+
def getCategories(locale = 'en')
|
146
156
|
doOperation('FieldTypesSupport', 'getCategories', self.instance_variables_hash.merge({:locale => locale}))
|
147
157
|
end
|
148
158
|
|
@@ -162,11 +172,14 @@ class CommissionJunction
|
|
162
172
|
doOperation('FieldTypesSupport', 'getLinkSizes', self.instance_variables_hash)
|
163
173
|
end
|
164
174
|
|
175
|
+
#
|
176
|
+
# List of supported countries. Use a language code provided
|
177
|
+
# by #getLanguages as your prefered locale (english is default).
|
165
178
|
#
|
166
179
|
# For a list of possible params (where applicable) or more information, go to:
|
167
180
|
# http://help.cj.com/en/web_services/Support_Services.htm
|
168
181
|
#
|
169
|
-
def getCountries(locale = '
|
182
|
+
def getCountries(locale = 'en')
|
170
183
|
doOperation('FieldTypesSupport', 'getCountries', self.instance_variables_hash.merge({:locale => locale}))
|
171
184
|
end
|
172
185
|
|