PageRenderTime 56ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/gan/v1beta1/gan-api.json

https://code.google.com/p/google-api-go-client/
JSON | 1859 lines | 1859 code | 0 blank | 0 comment | 0 complexity | b76d60a6a2b34a378eb5af02a743f313 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {
  2. "kind": "discovery#restDescription",
  3. "etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/0f7uRmJraUnv6U9LmngxWGiEMV0\"",
  4. "discoveryVersion": "v1",
  5. "id": "gan:v1beta1",
  6. "name": "gan",
  7. "version": "v1beta1",
  8. "title": "Google Affiliate Network API",
  9. "description": "Lets you have programmatic access to your Google Affiliate Network data.",
  10. "ownerDomain": "google.com",
  11. "ownerName": "Google",
  12. "icons": {
  13. "x16": "http://www.google.com/images/icons/product/affiliatenetwork-16.png",
  14. "x32": "http://www.google.com/images/icons/product/affiliatenetwork-32.png"
  15. },
  16. "documentationLink": "https://developers.google.com/affiliate-network/",
  17. "protocol": "rest",
  18. "baseUrl": "https://www.googleapis.com/gan/v1beta1/",
  19. "basePath": "/gan/v1beta1/",
  20. "rootUrl": "https://www.googleapis.com/",
  21. "servicePath": "gan/v1beta1/",
  22. "batchPath": "batch",
  23. "parameters": {
  24. "alt": {
  25. "type": "string",
  26. "description": "Data format for the response.",
  27. "default": "json",
  28. "enum": [
  29. "json"
  30. ],
  31. "enumDescriptions": [
  32. "Responses with Content-Type of application/json"
  33. ],
  34. "location": "query"
  35. },
  36. "fields": {
  37. "type": "string",
  38. "description": "Selector specifying which fields to include in a partial response.",
  39. "location": "query"
  40. },
  41. "key": {
  42. "type": "string",
  43. "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
  44. "location": "query"
  45. },
  46. "oauth_token": {
  47. "type": "string",
  48. "description": "OAuth 2.0 token for the current user.",
  49. "location": "query"
  50. },
  51. "prettyPrint": {
  52. "type": "boolean",
  53. "description": "Returns response with indentations and line breaks.",
  54. "default": "true",
  55. "location": "query"
  56. },
  57. "quotaUser": {
  58. "type": "string",
  59. "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
  60. "location": "query"
  61. },
  62. "userIp": {
  63. "type": "string",
  64. "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
  65. "location": "query"
  66. }
  67. },
  68. "schemas": {
  69. "Advertiser": {
  70. "id": "Advertiser",
  71. "type": "object",
  72. "description": "An AdvertiserResource.",
  73. "properties": {
  74. "allowPublisherCreatedLinks": {
  75. "type": "boolean",
  76. "description": "True if the advertiser allows publisher created links, otherwise false."
  77. },
  78. "category": {
  79. "type": "string",
  80. "description": "Category that this advertiser belongs to. A valid list of categories can be found here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107581"
  81. },
  82. "commissionDuration": {
  83. "type": "integer",
  84. "description": "The longest possible length of a commission (how long the cookies on the customer's browser last before they expire).",
  85. "format": "int32"
  86. },
  87. "contactEmail": {
  88. "type": "string",
  89. "description": "Email that this advertiser would like publishers to contact them with."
  90. },
  91. "contactPhone": {
  92. "type": "string",
  93. "description": "Phone that this advertiser would like publishers to contact them with."
  94. },
  95. "defaultLinkId": {
  96. "type": "string",
  97. "description": "The default link id for this advertiser.",
  98. "format": "int64"
  99. },
  100. "description": {
  101. "type": "string",
  102. "description": "Description of the website the advertiser advertises from."
  103. },
  104. "epcNinetyDayAverage": {
  105. "$ref": "Money",
  106. "description": "The sum of fees paid to publishers divided by the total number of clicks over the past three months. This value should be multiplied by 100 at the time of display."
  107. },
  108. "epcSevenDayAverage": {
  109. "$ref": "Money",
  110. "description": "The sum of fees paid to publishers divided by the total number of clicks over the past seven days. This value should be multiplied by 100 at the time of display."
  111. },
  112. "id": {
  113. "type": "string",
  114. "description": "The ID of this advertiser.",
  115. "format": "int64"
  116. },
  117. "item": {
  118. "$ref": "Advertiser",
  119. "description": "The requested advertiser."
  120. },
  121. "joinDate": {
  122. "type": "string",
  123. "description": "Date that this advertiser was approved as a Google Affiliate Network advertiser.",
  124. "format": "date-time"
  125. },
  126. "kind": {
  127. "type": "string",
  128. "description": "The kind for an advertiser.",
  129. "default": "gan#advertiser"
  130. },
  131. "logoUrl": {
  132. "type": "string",
  133. "description": "URL to the logo this advertiser uses on the Google Affiliate Network."
  134. },
  135. "merchantCenterIds": {
  136. "type": "array",
  137. "description": "List of merchant center ids for this advertiser",
  138. "items": {
  139. "type": "string",
  140. "format": "int64"
  141. }
  142. },
  143. "name": {
  144. "type": "string",
  145. "description": "The name of this advertiser."
  146. },
  147. "payoutRank": {
  148. "type": "string",
  149. "description": "A rank based on commissions paid to publishers over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid)."
  150. },
  151. "productFeedsEnabled": {
  152. "type": "boolean",
  153. "description": "Allows advertisers to submit product listings to Google Product Search."
  154. },
  155. "redirectDomains": {
  156. "type": "array",
  157. "description": "List of redirect URLs for this advertiser",
  158. "items": {
  159. "type": "string"
  160. }
  161. },
  162. "siteUrl": {
  163. "type": "string",
  164. "description": "URL of the website this advertiser advertises from."
  165. },
  166. "status": {
  167. "type": "string",
  168. "description": "The status of the requesting publisher's relationship this advertiser."
  169. }
  170. }
  171. },
  172. "Advertisers": {
  173. "id": "Advertisers",
  174. "type": "object",
  175. "properties": {
  176. "items": {
  177. "type": "array",
  178. "description": "The advertiser list.",
  179. "items": {
  180. "$ref": "Advertiser"
  181. }
  182. },
  183. "kind": {
  184. "type": "string",
  185. "description": "The kind for a page of advertisers.",
  186. "default": "gan#advertisers"
  187. },
  188. "nextPageToken": {
  189. "type": "string",
  190. "description": "The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve."
  191. }
  192. }
  193. },
  194. "CcOffer": {
  195. "id": "CcOffer",
  196. "type": "object",
  197. "description": "A credit card offer. There are many possible result fields. We provide two different views of the data, or \"projections.\" The \"full\" projection includes every result field. And the \"summary\" projection, which is the default, includes a smaller subset of the fields. The fields included in the summary projection are marked as such in their descriptions.",
  198. "properties": {
  199. "additionalCardBenefits": {
  200. "type": "array",
  201. "description": "More marketing copy about the card's benefits. A summary field.",
  202. "items": {
  203. "type": "string"
  204. }
  205. },
  206. "additionalCardHolderFee": {
  207. "type": "string",
  208. "description": "Any extra fees levied on card holders."
  209. },
  210. "ageMinimum": {
  211. "type": "number",
  212. "description": "The youngest a recipient of this card may be.",
  213. "format": "double"
  214. },
  215. "ageMinimumDetails": {
  216. "type": "string",
  217. "description": "Text describing the details of the age minimum restriction."
  218. },
  219. "annualFee": {
  220. "type": "number",
  221. "description": "The ongoing annual fee, in dollars.",
  222. "format": "double"
  223. },
  224. "annualFeeDisplay": {
  225. "type": "string",
  226. "description": "Text describing the annual fee, including any difference for the first year. A summary field."
  227. },
  228. "annualRewardMaximum": {
  229. "type": "number",
  230. "description": "The largest number of units you may accumulate in a year.",
  231. "format": "double"
  232. },
  233. "approvedCategories": {
  234. "type": "array",
  235. "description": "Possible categories for this card, eg \"Low Interest\" or \"Good.\" A summary field.",
  236. "items": {
  237. "type": "string"
  238. }
  239. },
  240. "aprDisplay": {
  241. "type": "string",
  242. "description": "Text describing the purchase APR. A summary field."
  243. },
  244. "balanceComputationMethod": {
  245. "type": "string",
  246. "description": "Text describing how the balance is computed. A summary field."
  247. },
  248. "balanceTransferTerms": {
  249. "type": "string",
  250. "description": "Text describing the terms for balance transfers. A summary field."
  251. },
  252. "bonusRewards": {
  253. "type": "array",
  254. "description": "For cards with rewards programs, extra circumstances whereby additional rewards may be granted.",
  255. "items": {
  256. "type": "object",
  257. "properties": {
  258. "amount": {
  259. "type": "number",
  260. "description": "How many units of reward will be granted.",
  261. "format": "double"
  262. },
  263. "details": {
  264. "type": "string",
  265. "description": "The circumstances under which this rule applies, for example, booking a flight via Orbitz."
  266. }
  267. }
  268. }
  269. },
  270. "carRentalInsurance": {
  271. "type": "string",
  272. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  273. },
  274. "cardBenefits": {
  275. "type": "array",
  276. "description": "A list of what the issuer thinks are the most important benefits of the card. Usually summarizes the rewards program, if there is one. A summary field.",
  277. "items": {
  278. "type": "string"
  279. }
  280. },
  281. "cardName": {
  282. "type": "string",
  283. "description": "The issuer's name for the card, including any trademark or service mark designators. A summary field."
  284. },
  285. "cardType": {
  286. "type": "string",
  287. "description": "What kind of credit card this is, for example secured or unsecured."
  288. },
  289. "cashAdvanceTerms": {
  290. "type": "string",
  291. "description": "Text describing the terms for cash advances. A summary field."
  292. },
  293. "creditLimitMax": {
  294. "type": "number",
  295. "description": "The high end for credit limits the issuer imposes on recipients of this card.",
  296. "format": "double"
  297. },
  298. "creditLimitMin": {
  299. "type": "number",
  300. "description": "The low end for credit limits the issuer imposes on recipients of this card.",
  301. "format": "double"
  302. },
  303. "creditRatingDisplay": {
  304. "type": "string",
  305. "description": "Text describing the credit ratings required for recipients of this card, for example \"Excellent/Good.\" A summary field."
  306. },
  307. "defaultFees": {
  308. "type": "array",
  309. "description": "Fees for defaulting on your payments.",
  310. "items": {
  311. "type": "object",
  312. "properties": {
  313. "category": {
  314. "type": "string",
  315. "description": "The type of charge, for example Purchases."
  316. },
  317. "maxRate": {
  318. "type": "number",
  319. "description": "The highest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage.",
  320. "format": "double"
  321. },
  322. "minRate": {
  323. "type": "number",
  324. "description": "The lowest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage.",
  325. "format": "double"
  326. },
  327. "rateType": {
  328. "type": "string",
  329. "description": "Fixed or variable."
  330. }
  331. }
  332. }
  333. },
  334. "disclaimer": {
  335. "type": "string",
  336. "description": "A notice that, if present, is referenced via an asterisk by many of the other summary fields. If this field is present, it will always start with an asterisk (\"*\"), and must be prominently displayed with the offer. A summary field."
  337. },
  338. "emergencyInsurance": {
  339. "type": "string",
  340. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  341. },
  342. "existingCustomerOnly": {
  343. "type": "boolean",
  344. "description": "Whether this card is only available to existing customers of the issuer."
  345. },
  346. "extendedWarranty": {
  347. "type": "string",
  348. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  349. },
  350. "firstYearAnnualFee": {
  351. "type": "number",
  352. "description": "The annual fee for the first year, if different from the ongoing fee. Optional.",
  353. "format": "double"
  354. },
  355. "flightAccidentInsurance": {
  356. "type": "string",
  357. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  358. },
  359. "foreignCurrencyTransactionFee": {
  360. "type": "string",
  361. "description": "Fee for each transaction involving a foreign currency."
  362. },
  363. "fraudLiability": {
  364. "type": "string",
  365. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  366. },
  367. "gracePeriodDisplay": {
  368. "type": "string",
  369. "description": "Text describing the grace period before finance charges apply. A summary field."
  370. },
  371. "imageUrl": {
  372. "type": "string",
  373. "description": "The link to the image of the card that is shown on Connect Commerce. A summary field."
  374. },
  375. "initialSetupAndProcessingFee": {
  376. "type": "string",
  377. "description": "Fee for setting up the card."
  378. },
  379. "introBalanceTransferTerms": {
  380. "type": "string",
  381. "description": "Text describing the terms for introductory period balance transfers. A summary field."
  382. },
  383. "introCashAdvanceTerms": {
  384. "type": "string",
  385. "description": "Text describing the terms for introductory period cash advances. A summary field."
  386. },
  387. "introPurchaseTerms": {
  388. "type": "string",
  389. "description": "Text describing the terms for introductory period purchases. A summary field."
  390. },
  391. "issuer": {
  392. "type": "string",
  393. "description": "Name of card issuer. A summary field."
  394. },
  395. "issuerId": {
  396. "type": "string",
  397. "description": "The Google Affiliate Network ID of the advertiser making this offer."
  398. },
  399. "issuerWebsite": {
  400. "type": "string",
  401. "description": "The generic link to the issuer's site."
  402. },
  403. "kind": {
  404. "type": "string",
  405. "description": "The kind for one credit card offer. A summary field.",
  406. "default": "gan#ccOffer"
  407. },
  408. "landingPageUrl": {
  409. "type": "string",
  410. "description": "The link to the issuer's page for this card. A summary field."
  411. },
  412. "latePaymentFee": {
  413. "type": "string",
  414. "description": "Text describing how much a late payment will cost, eg \"up to $35.\" A summary field."
  415. },
  416. "luggageInsurance": {
  417. "type": "string",
  418. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  419. },
  420. "maxPurchaseRate": {
  421. "type": "number",
  422. "description": "The highest interest rate the issuer charges on this card. Expressed as an absolute number, not as a percentage.",
  423. "format": "double"
  424. },
  425. "minPurchaseRate": {
  426. "type": "number",
  427. "description": "The lowest interest rate the issuer charges on this card. Expressed as an absolute number, not as a percentage.",
  428. "format": "double"
  429. },
  430. "minimumFinanceCharge": {
  431. "type": "string",
  432. "description": "Text describing how much missing the grace period will cost."
  433. },
  434. "network": {
  435. "type": "string",
  436. "description": "Which network (eg Visa) the card belongs to. A summary field."
  437. },
  438. "offerId": {
  439. "type": "string",
  440. "description": "This offer's ID. A summary field."
  441. },
  442. "offersImmediateCashReward": {
  443. "type": "boolean",
  444. "description": "Whether a cash reward program lets you get cash back sooner than end of year or other longish period."
  445. },
  446. "overLimitFee": {
  447. "type": "string",
  448. "description": "Fee for exceeding the card's charge limit."
  449. },
  450. "prohibitedCategories": {
  451. "type": "array",
  452. "description": "Categories in which the issuer does not wish the card to be displayed. A summary field.",
  453. "items": {
  454. "type": "string"
  455. }
  456. },
  457. "purchaseRateAdditionalDetails": {
  458. "type": "string",
  459. "description": "Text describing any additional details for the purchase rate. A summary field."
  460. },
  461. "purchaseRateType": {
  462. "type": "string",
  463. "description": "Fixed or variable."
  464. },
  465. "returnedPaymentFee": {
  466. "type": "string",
  467. "description": "Text describing the fee for a payment that doesn't clear. A summary field."
  468. },
  469. "rewardPartner": {
  470. "type": "string",
  471. "description": "The company that redeems the rewards, if different from the issuer."
  472. },
  473. "rewardUnit": {
  474. "type": "string",
  475. "description": "For cards with rewards programs, the unit of reward. For example, miles, cash back, points."
  476. },
  477. "rewards": {
  478. "type": "array",
  479. "description": "For cards with rewards programs, detailed rules about how the program works.",
  480. "items": {
  481. "type": "object",
  482. "properties": {
  483. "additionalDetails": {
  484. "type": "string",
  485. "description": "Other limits, for example, if this rule only applies during an introductory period."
  486. },
  487. "amount": {
  488. "type": "number",
  489. "description": "The number of units rewarded per purchase dollar.",
  490. "format": "double"
  491. },
  492. "category": {
  493. "type": "string",
  494. "description": "The kind of purchases covered by this rule."
  495. },
  496. "expirationMonths": {
  497. "type": "number",
  498. "description": "How long rewards granted by this rule last.",
  499. "format": "double"
  500. },
  501. "maxRewardTier": {
  502. "type": "number",
  503. "description": "The maximum purchase amount in the given category for this rule to apply.",
  504. "format": "double"
  505. },
  506. "minRewardTier": {
  507. "type": "number",
  508. "description": "The minimum purchase amount in the given category before this rule applies.",
  509. "format": "double"
  510. }
  511. }
  512. }
  513. },
  514. "rewardsExpire": {
  515. "type": "boolean",
  516. "description": "Whether accumulated rewards ever expire."
  517. },
  518. "rewardsHaveBlackoutDates": {
  519. "type": "boolean",
  520. "description": "For airline miles rewards, tells whether blackout dates apply to the miles."
  521. },
  522. "statementCopyFee": {
  523. "type": "string",
  524. "description": "Fee for requesting a copy of your statement."
  525. },
  526. "trackingUrl": {
  527. "type": "string",
  528. "description": "The link to ping to register a click on this offer. A summary field."
  529. },
  530. "travelInsurance": {
  531. "type": "string",
  532. "description": "If you get coverage when you use the card for the given activity, this field describes it."
  533. },
  534. "variableRatesLastUpdated": {
  535. "type": "string",
  536. "description": "When variable rates were last updated."
  537. },
  538. "variableRatesUpdateFrequency": {
  539. "type": "string",
  540. "description": "How often variable rates are updated."
  541. }
  542. }
  543. },
  544. "CcOffers": {
  545. "id": "CcOffers",
  546. "type": "object",
  547. "properties": {
  548. "items": {
  549. "type": "array",
  550. "description": "The credit card offers.",
  551. "items": {
  552. "$ref": "CcOffer"
  553. }
  554. },
  555. "kind": {
  556. "type": "string",
  557. "description": "The kind for a page of credit card offers.",
  558. "default": "gan#ccOffers"
  559. }
  560. }
  561. },
  562. "Event": {
  563. "id": "Event",
  564. "type": "object",
  565. "description": "An EventResource.",
  566. "properties": {
  567. "advertiserId": {
  568. "type": "string",
  569. "description": "The ID of advertiser for this event.",
  570. "format": "int64"
  571. },
  572. "advertiserName": {
  573. "type": "string",
  574. "description": "The name of the advertiser for this event."
  575. },
  576. "chargeId": {
  577. "type": "string",
  578. "description": "The charge ID for this event. Only returned for charge events."
  579. },
  580. "chargeType": {
  581. "type": "string",
  582. "description": "Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit|credit). Only returned for charge events."
  583. },
  584. "commissionableSales": {
  585. "$ref": "Money",
  586. "description": "Amount of money exchanged during the transaction. Only returned for charge and conversion events."
  587. },
  588. "earnings": {
  589. "$ref": "Money",
  590. "description": "Earnings by the publisher."
  591. },
  592. "eventDate": {
  593. "type": "string",
  594. "description": "The date-time this event was initiated as a RFC 3339 date-time value.",
  595. "format": "date-time"
  596. },
  597. "kind": {
  598. "type": "string",
  599. "description": "The kind for one event.",
  600. "default": "gan#event"
  601. },
  602. "memberId": {
  603. "type": "string",
  604. "description": "The ID of the member attached to this event. Only returned for conversion events."
  605. },
  606. "modifyDate": {
  607. "type": "string",
  608. "description": "The date-time this event was last modified as a RFC 3339 date-time value.",
  609. "format": "date-time"
  610. },
  611. "networkFee": {
  612. "$ref": "Money",
  613. "description": "Fee that the advertiser paid to the Google Affiliate Network."
  614. },
  615. "orderId": {
  616. "type": "string",
  617. "description": "The order ID for this event. Only returned for conversion events."
  618. },
  619. "products": {
  620. "type": "array",
  621. "description": "Products associated with the event.",
  622. "items": {
  623. "type": "object",
  624. "properties": {
  625. "categoryId": {
  626. "type": "string",
  627. "description": "Id of the category this product belongs to."
  628. },
  629. "categoryName": {
  630. "type": "string",
  631. "description": "Name of the category this product belongs to."
  632. },
  633. "earnings": {
  634. "$ref": "Money",
  635. "description": "Amount earned by the publisher on this product."
  636. },
  637. "networkFee": {
  638. "$ref": "Money",
  639. "description": "Fee that the advertiser paid to the Google Affiliate Network for this product."
  640. },
  641. "publisherFee": {
  642. "$ref": "Money",
  643. "description": "Fee that the advertiser paid to the publisehr for this product."
  644. },
  645. "quantity": {
  646. "type": "string",
  647. "description": "Quantity of this product bought/exchanged.",
  648. "format": "int64"
  649. },
  650. "sku": {
  651. "type": "string",
  652. "description": "Sku of this product."
  653. },
  654. "skuName": {
  655. "type": "string",
  656. "description": "Sku name of this product."
  657. },
  658. "unitPrice": {
  659. "$ref": "Money",
  660. "description": "Price per unit of this product."
  661. }
  662. }
  663. }
  664. },
  665. "publisherFee": {
  666. "$ref": "Money",
  667. "description": "Fee that the advertiser paid to the publisher."
  668. },
  669. "publisherId": {
  670. "type": "string",
  671. "description": "The ID of the publisher for this event.",
  672. "format": "int64"
  673. },
  674. "publisherName": {
  675. "type": "string",
  676. "description": "The name of the publisher for this event."
  677. },
  678. "status": {
  679. "type": "string",
  680. "description": "Status of the event (active|canceled). Only returned for charge and conversion events."
  681. },
  682. "type": {
  683. "type": "string",
  684. "description": "Type of the event (action|transaction|charge)."
  685. }
  686. }
  687. },
  688. "Events": {
  689. "id": "Events",
  690. "type": "object",
  691. "properties": {
  692. "items": {
  693. "type": "array",
  694. "description": "The event list.",
  695. "items": {
  696. "$ref": "Event"
  697. }
  698. },
  699. "kind": {
  700. "type": "string",
  701. "description": "The kind for a page of events.",
  702. "default": "gan#events"
  703. },
  704. "nextPageToken": {
  705. "type": "string",
  706. "description": "The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve."
  707. }
  708. }
  709. },
  710. "Link": {
  711. "id": "Link",
  712. "type": "object",
  713. "description": "A LinkResource.",
  714. "properties": {
  715. "advertiserId": {
  716. "type": "string",
  717. "description": "The advertiser id for the advertiser who owns this link.",
  718. "format": "int64"
  719. },
  720. "authorship": {
  721. "type": "string",
  722. "description": "Authorship"
  723. },
  724. "availability": {
  725. "type": "string",
  726. "description": "Availability."
  727. },
  728. "clickTrackingUrl": {
  729. "type": "string",
  730. "description": "Tracking url for clicks."
  731. },
  732. "createDate": {
  733. "type": "string",
  734. "description": "Date that this link was created.",
  735. "format": "date-time"
  736. },
  737. "description": {
  738. "type": "string",
  739. "description": "Description."
  740. },
  741. "destinationUrl": {
  742. "type": "string",
  743. "description": "The destination URL for the link."
  744. },
  745. "duration": {
  746. "type": "string",
  747. "description": "Duration"
  748. },
  749. "endDate": {
  750. "type": "string",
  751. "description": "Date that this link becomes inactive.",
  752. "format": "date-time"
  753. },
  754. "epcNinetyDayAverage": {
  755. "$ref": "Money",
  756. "description": "The sum of fees paid to publishers divided by the total number of clicks over the past three months on this link. This value should be multiplied by 100 at the time of display."
  757. },
  758. "epcSevenDayAverage": {
  759. "$ref": "Money",
  760. "description": "The sum of fees paid to publishers divided by the total number of clicks over the past seven days on this link. This value should be multiplied by 100 at the time of display."
  761. },
  762. "id": {
  763. "type": "string",
  764. "description": "The ID of this link.",
  765. "format": "int64"
  766. },
  767. "imageAltText": {
  768. "type": "string",
  769. "description": "image alt text."
  770. },
  771. "impressionTrackingUrl": {
  772. "type": "string",
  773. "description": "Tracking url for impressions."
  774. },
  775. "isActive": {
  776. "type": "boolean",
  777. "description": "Flag for if this link is active."
  778. },
  779. "kind": {
  780. "type": "string",
  781. "description": "The kind for one entity.",
  782. "default": "gan#link"
  783. },
  784. "linkType": {
  785. "type": "string",
  786. "description": "The link type."
  787. },
  788. "name": {
  789. "type": "string",
  790. "description": "The logical name for this link."
  791. },
  792. "promotionType": {
  793. "type": "string",
  794. "description": "Promotion Type"
  795. },
  796. "specialOffers": {
  797. "type": "object",
  798. "description": "Special offers on the link.",
  799. "properties": {
  800. "freeGift": {
  801. "type": "boolean",
  802. "description": "Whether there is a free gift"
  803. },
  804. "freeShipping": {
  805. "type": "boolean",
  806. "description": "Whether there is free shipping"
  807. },
  808. "freeShippingMin": {
  809. "$ref": "Money",
  810. "description": "Minimum purchase amount for free shipping promotion"
  811. },
  812. "percentOff": {
  813. "type": "number",
  814. "description": "Percent off on the purchase",
  815. "format": "double"
  816. },
  817. "percentOffMin": {
  818. "$ref": "Money",
  819. "description": "Minimum purchase amount for percent off promotion"
  820. },
  821. "priceCut": {
  822. "$ref": "Money",
  823. "description": "Price cut on the purchase"
  824. },
  825. "priceCutMin": {
  826. "$ref": "Money",
  827. "description": "Minimum purchase amount for price cut promotion"
  828. },
  829. "promotionCodes": {
  830. "type": "array",
  831. "description": "List of promotion code associated with the link",
  832. "items": {
  833. "type": "string"
  834. }
  835. }
  836. }
  837. },
  838. "startDate": {
  839. "type": "string",
  840. "description": "Date that this link becomes active.",
  841. "format": "date-time"
  842. }
  843. }
  844. },
  845. "Links": {
  846. "id": "Links",
  847. "type": "object",
  848. "properties": {
  849. "items": {
  850. "type": "array",
  851. "description": "The links.",
  852. "items": {
  853. "$ref": "Link"
  854. }
  855. },
  856. "kind": {
  857. "type": "string",
  858. "description": "The kind for a page of links.",
  859. "default": "gan#links"
  860. },
  861. "nextPageToken": {
  862. "type": "string",
  863. "description": "The next page token."
  864. }
  865. }
  866. },
  867. "Money": {
  868. "id": "Money",
  869. "type": "object",
  870. "description": "An ApiMoneyProto.",
  871. "properties": {
  872. "amount": {
  873. "type": "number",
  874. "description": "The amount of money.",
  875. "format": "double"
  876. },
  877. "currencyCode": {
  878. "type": "string",
  879. "description": "The 3-letter code of the currency in question."
  880. }
  881. }
  882. },
  883. "Publisher": {
  884. "id": "Publisher",
  885. "type": "object",
  886. "description": "A PublisherResource.",
  887. "properties": {
  888. "classification": {
  889. "type": "string",
  890. "description": "Classification that this publisher belongs to. See this link for all publisher classifications: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107625&ctx=cb&src=cb&cbid=-k5fihzthfaik&cbrank=4"
  891. },
  892. "epcNinetyDayAverage": {
  893. "$ref": "Money",
  894. "description": "The sum of fees paid to this publisher divided by the total number of clicks over the past three months. Values are multiplied by 100 for display purposes."
  895. },
  896. "epcSevenDayAverage": {
  897. "$ref": "Money",
  898. "description": "The sum of fees paid to this publisher divided by the total number of clicks over the past seven days. Values are multiplied by 100 for display purposes."
  899. },
  900. "id": {
  901. "type": "string",
  902. "description": "The ID of this publisher.",
  903. "format": "int64"
  904. },
  905. "item": {
  906. "$ref": "Publisher",
  907. "description": "The requested publisher."
  908. },
  909. "joinDate": {
  910. "type": "string",
  911. "description": "Date that this publisher was approved as a Google Affiliate Network publisher.",
  912. "format": "date-time"
  913. },
  914. "kind": {
  915. "type": "string",
  916. "description": "The kind for a publisher.",
  917. "default": "gan#publisher"
  918. },
  919. "name": {
  920. "type": "string",
  921. "description": "The name of this publisher."
  922. },
  923. "payoutRank": {
  924. "type": "string",
  925. "description": "A rank based on commissions paid to this publisher over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid)."
  926. },
  927. "sites": {
  928. "type": "array",
  929. "description": "Websites that this publisher uses to advertise.",
  930. "items": {
  931. "type": "string"
  932. }
  933. },
  934. "status": {
  935. "type": "string",
  936. "description": "The status of the requesting advertiser's relationship with this publisher."
  937. }
  938. }
  939. },
  940. "Publishers": {
  941. "id": "Publishers",
  942. "type": "object",
  943. "properties": {
  944. "items": {
  945. "type": "array",
  946. "description": "The entity list.",
  947. "items": {
  948. "$ref": "Publisher"
  949. }
  950. },
  951. "kind": {
  952. "type": "string",
  953. "description": "The kind for a page of entities.",
  954. "default": "gan#publishers"
  955. },
  956. "nextPageToken": {
  957. "type": "string",
  958. "description": "The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve."
  959. }
  960. }
  961. },
  962. "Report": {
  963. "id": "Report",
  964. "type": "object",
  965. "description": "A ReportResource representing a report of a certain type either for an advertiser or publisher.",
  966. "properties": {
  967. "column_names": {
  968. "type": "array",
  969. "description": "The column names for the report",
  970. "items": {
  971. "type": "string"
  972. }
  973. },
  974. "end_date": {
  975. "type": "string",
  976. "description": "The end of the date range for this report, exclusive."
  977. },
  978. "kind": {
  979. "type": "string",
  980. "description": "The kind for a report.",
  981. "default": "gan#report"
  982. },
  983. "matching_row_count": {
  984. "type": "string",
  985. "description": "The number of matching rows before paging is applied.",
  986. "format": "int64"
  987. },
  988. "rows": {
  989. "type": "array",
  990. "description": "The rows of data for the report",
  991. "items": {
  992. "type": "array",
  993. "description": "Loop over each column in the row.",
  994. "items": {
  995. "type": "any"
  996. }
  997. }
  998. },
  999. "start_date": {
  1000. "type": "string",
  1001. "description": "The start of the date range for this report, inclusive."
  1002. },
  1003. "totals_rows": {
  1004. "type": "array",
  1005. "description": "The totals rows for the report",
  1006. "items": {
  1007. "type": "array",
  1008. "description": "Loop over each column in the row.",
  1009. "items": {
  1010. "type": "any"
  1011. }
  1012. }
  1013. },
  1014. "type": {
  1015. "type": "string",
  1016. "description": "The report type."
  1017. }
  1018. }
  1019. }
  1020. },
  1021. "resources": {
  1022. "advertisers": {
  1023. "methods": {
  1024. "get": {
  1025. "id": "gan.advertisers.get",
  1026. "path": "{role}/{roleId}/advertiser",
  1027. "httpMethod": "GET",
  1028. "description": "Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only publishers can lookup advertisers. Advertisers can request information about themselves by omitting the advertiserId query parameter.",
  1029. "parameters": {
  1030. "advertiserId": {
  1031. "type": "string",
  1032. "description": "The ID of the advertiser to look up. Optional.",
  1033. "location": "query"
  1034. },
  1035. "role": {
  1036. "type": "string",
  1037. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1038. "required": true,
  1039. "enum": [
  1040. "advertisers",
  1041. "publishers"
  1042. ],
  1043. "enumDescriptions": [
  1044. "The requester is requesting as an advertiser.",
  1045. "The requester is requesting as a publisher."
  1046. ],
  1047. "location": "path"
  1048. },
  1049. "roleId": {
  1050. "type": "string",
  1051. "description": "The ID of the requesting advertiser or publisher.",
  1052. "required": true,
  1053. "location": "path"
  1054. }
  1055. },
  1056. "parameterOrder": [
  1057. "role",
  1058. "roleId"
  1059. ],
  1060. "response": {
  1061. "$ref": "Advertiser"
  1062. }
  1063. },
  1064. "list": {
  1065. "id": "gan.advertisers.list",
  1066. "path": "{role}/{roleId}/advertisers",
  1067. "httpMethod": "GET",
  1068. "description": "Retrieves data about all advertisers that the requesting advertiser/publisher has access to.",
  1069. "parameters": {
  1070. "advertiserCategory": {
  1071. "type": "string",
  1072. "description": "Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.",
  1073. "location": "query"
  1074. },
  1075. "maxResults": {
  1076. "type": "integer",
  1077. "description": "Max number of items to return in this page. Optional. Defaults to 20.",
  1078. "format": "uint32",
  1079. "minimum": "0",
  1080. "maximum": "100",
  1081. "location": "query"
  1082. },
  1083. "minNinetyDayEpc": {
  1084. "type": "number",
  1085. "description": "Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.",
  1086. "format": "double",
  1087. "location": "query"
  1088. },
  1089. "minPayoutRank": {
  1090. "type": "integer",
  1091. "description": "A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.",
  1092. "format": "int32",
  1093. "minimum": "1",
  1094. "maximum": "4",
  1095. "location": "query"
  1096. },
  1097. "minSevenDayEpc": {
  1098. "type": "number",
  1099. "description": "Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.",
  1100. "format": "double",
  1101. "location": "query"
  1102. },
  1103. "pageToken": {
  1104. "type": "string",
  1105. "description": "The value of 'nextPageToken' from the previous page. Optional.",
  1106. "location": "query"
  1107. },
  1108. "relationshipStatus": {
  1109. "type": "string",
  1110. "description": "Filters out all advertisers for which do not have the given relationship status with the requesting publisher.",
  1111. "enum": [
  1112. "approved",
  1113. "available",
  1114. "deactivated",
  1115. "declined",
  1116. "pending"
  1117. ],
  1118. "enumDescriptions": [
  1119. "An advertiser that has approved your application.",
  1120. "An advertiser program that's accepting new publishers.",
  1121. "Deactivated means either the advertiser has removed you from their program, or it could also mean that you chose to remove yourself from the advertiser's program.",
  1122. "An advertiser that did not approve your application.",
  1123. "An advertiser program that you've already applied to, but they haven't yet decided to approve or decline your application."
  1124. ],
  1125. "location": "query"
  1126. },
  1127. "role": {
  1128. "type": "string",
  1129. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1130. "required": true,
  1131. "enum": [
  1132. "advertisers",
  1133. "publishers"
  1134. ],
  1135. "enumDescriptions": [
  1136. "The requester is requesting as an advertiser.",
  1137. "The requester is requesting as a publisher."
  1138. ],
  1139. "location": "path"
  1140. },
  1141. "roleId": {
  1142. "type": "string",
  1143. "description": "The ID of the requesting advertiser or publisher.",
  1144. "required": true,
  1145. "location": "path"
  1146. }
  1147. },
  1148. "parameterOrder": [
  1149. "role",
  1150. "roleId"
  1151. ],
  1152. "response": {
  1153. "$ref": "Advertisers"
  1154. }
  1155. }
  1156. }
  1157. },
  1158. "ccOffers": {
  1159. "methods": {
  1160. "list": {
  1161. "id": "gan.ccOffers.list",
  1162. "path": "publishers/{publisher}/ccOffers",
  1163. "httpMethod": "GET",
  1164. "description": "Retrieves credit card offers for the given publisher.",
  1165. "parameters": {
  1166. "advertiser": {
  1167. "type": "string",
  1168. "description": "The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.",
  1169. "repeated": true,
  1170. "location": "query"
  1171. },
  1172. "projection": {
  1173. "type": "string",
  1174. "description": "The set of fields to return.",
  1175. "enum": [
  1176. "full",
  1177. "summary"
  1178. ],
  1179. "enumDescriptions": [
  1180. "Include all offer fields. This is the default.",
  1181. "Include only the basic fields needed to display an offer."
  1182. ],
  1183. "location": "query"
  1184. },
  1185. "publisher": {
  1186. "type": "string",
  1187. "description": "The ID of the publisher in question.",
  1188. "required": true,
  1189. "location": "path"
  1190. }
  1191. },
  1192. "parameterOrder": [
  1193. "publisher"
  1194. ],
  1195. "response": {
  1196. "$ref": "CcOffers"
  1197. }
  1198. }
  1199. }
  1200. },
  1201. "events": {
  1202. "methods": {
  1203. "list": {
  1204. "id": "gan.events.list",
  1205. "path": "{role}/{roleId}/events",
  1206. "httpMethod": "GET",
  1207. "description": "Retrieves event data for a given advertiser/publisher.",
  1208. "parameters": {
  1209. "advertiserId": {
  1210. "type": "string",
  1211. "description": "Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.",
  1212. "location": "query"
  1213. },
  1214. "chargeType": {
  1215. "type": "string",
  1216. "description": "Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.",
  1217. "enum": [
  1218. "credit",
  1219. "debit",
  1220. "monthly_minimum",
  1221. "other",
  1222. "slotting_fee",
  1223. "tier_bonus"
  1224. ],
  1225. "enumDescriptions": [
  1226. "A credit increases the publisher's payout amount and decreases the advertiser's invoice amount.",
  1227. "A debit reduces the publisher's payout and increases the advertiser's invoice amount.",
  1228. "A payment made to Google by an advertiser as a minimum monthly network fee.",
  1229. "Catch all. Default if unset",
  1230. "A one time payment made from an advertiser to a publisher.",
  1231. "A payment from an advertiser to a publisher for the publisher maintaining a high tier level"
  1232. ],
  1233. "location": "query"
  1234. },
  1235. "eventDateMax": {
  1236. "type": "string",
  1237. "description": "Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.",
  1238. "location": "query"
  1239. },
  1240. "eventDateMin": {
  1241. "type": "string",
  1242. "description": "Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.",
  1243. "location": "query"
  1244. },
  1245. "linkId": {
  1246. "type": "string",
  1247. "description": "Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.",
  1248. "location": "query"
  1249. },
  1250. "maxResults": {
  1251. "type": "integer",
  1252. "description": "Max number of offers to return in this page. Optional. Defaults to 20.",
  1253. "format": "uint32",
  1254. "minimum": "0",
  1255. "maximum": "100",
  1256. "location": "query"
  1257. },
  1258. "memberId": {
  1259. "type": "string",
  1260. "description": "Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.",
  1261. "location": "query"
  1262. },
  1263. "modifyDateMax": {
  1264. "type": "string",
  1265. "description": "Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.",
  1266. "location": "query"
  1267. },
  1268. "modifyDateMin": {
  1269. "type": "string",
  1270. "description": "Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.",
  1271. "location": "query"
  1272. },
  1273. "orderId": {
  1274. "type": "string",
  1275. "description": "Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.",
  1276. "location": "query"
  1277. },
  1278. "pageToken": {
  1279. "type": "string",
  1280. "description": "The value of 'nextPageToken' from the previous page. Optional.",
  1281. "location": "query"
  1282. },
  1283. "productCategory": {
  1284. "type": "string",
  1285. "description": "Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.",
  1286. "location": "query"
  1287. },
  1288. "publisherId": {
  1289. "type": "string",
  1290. "description": "Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.",
  1291. "location": "query"
  1292. },
  1293. "role": {
  1294. "type": "string",
  1295. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1296. "required": true,
  1297. "enum": [
  1298. "advertisers",
  1299. "publishers"
  1300. ],
  1301. "enumDescriptions": [
  1302. "The requester is requesting as an advertiser.",
  1303. "The requester is requesting as a publisher."
  1304. ],
  1305. "location": "path"
  1306. },
  1307. "roleId": {
  1308. "type": "string",
  1309. "description": "The ID of the requesting advertiser or publisher.",
  1310. "required": true,
  1311. "location": "path"
  1312. },
  1313. "sku": {
  1314. "type": "string",
  1315. "description": "Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.",
  1316. "location": "query"
  1317. },
  1318. "status": {
  1319. "type": "string",
  1320. "description": "Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.",
  1321. "enum": [
  1322. "active",
  1323. "canceled"
  1324. ],
  1325. "enumDescriptions": [
  1326. "Event is currently active.",
  1327. "Event is currently canceled."
  1328. ],
  1329. "location": "query"
  1330. },
  1331. "type": {
  1332. "type": "string",
  1333. "description": "Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.",
  1334. "enum": [
  1335. "action",
  1336. "charge",
  1337. "transaction"
  1338. ],
  1339. "enumDescriptions": [
  1340. "The completion of an application, sign-up, or other process. For example, an action occurs if a user clicks an ad for a credit card and completes an application for that card.",
  1341. "A charge event is typically a payment between an advertiser, publisher or Google.",
  1342. "A conversion event, typically an e-commerce transaction. Some advertisers use a transaction to record other types of events, such as magazine subscriptions."
  1343. ],
  1344. "location": "query"
  1345. }
  1346. },
  1347. "parameterOrder": [
  1348. "role",
  1349. "roleId"
  1350. ],
  1351. "response": {
  1352. "$ref": "Events"
  1353. }
  1354. }
  1355. }
  1356. },
  1357. "links": {
  1358. "methods": {
  1359. "get": {
  1360. "id": "gan.links.get",
  1361. "path": "{role}/{roleId}/link/{linkId}",
  1362. "httpMethod": "GET",
  1363. "description": "Retrieves data about a single link if the requesting advertiser/publisher has access to it. Advertisers can look up their own links. Publishers can look up visible links or links belonging to advertisers they are in a relationship with.",
  1364. "parameters": {
  1365. "linkId": {
  1366. "type": "string",
  1367. "description": "The ID of the link to look up.",
  1368. "required": true,
  1369. "format": "int64",
  1370. "location": "path"
  1371. },
  1372. "role": {
  1373. "type": "string",
  1374. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1375. "required": true,
  1376. "enum": [
  1377. "advertisers",
  1378. "publishers"
  1379. ],
  1380. "enumDescriptions": [
  1381. "The requester is requesting as an advertiser.",
  1382. "The requester is requesting as a publisher."
  1383. ],
  1384. "location": "path"
  1385. },
  1386. "roleId": {
  1387. "type": "string",
  1388. "description": "The ID of the requesting advertiser or publisher.",
  1389. "required": true,
  1390. "location": "path"
  1391. }
  1392. },
  1393. "parameterOrder": [
  1394. "role",
  1395. "roleId",
  1396. "linkId"
  1397. ],
  1398. "response": {
  1399. "$ref": "Link"
  1400. }
  1401. },
  1402. "insert": {
  1403. "id": "gan.links.insert",
  1404. "path": "{role}/{roleId}/link",
  1405. "httpMethod": "POST",
  1406. "description": "Inserts a new link.",
  1407. "parameters": {
  1408. "role": {
  1409. "type": "string",
  1410. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1411. "required": true,
  1412. "enum": [
  1413. "advertisers",
  1414. "publishers"
  1415. ],
  1416. "enumDescriptions": [
  1417. "The requester is requesting as an advertiser.",
  1418. "The requester is requesting as a publisher."
  1419. ],
  1420. "location": "path"
  1421. },
  1422. "roleId": {
  1423. "type": "string",
  1424. "description": "The ID of the requesting advertiser or publisher.",
  1425. "required": true,
  1426. "location": "path"
  1427. }
  1428. },
  1429. "parameterOrder": [
  1430. "role",
  1431. "roleId"
  1432. ],
  1433. "request": {
  1434. "$ref": "Link"
  1435. },
  1436. "response": {
  1437. "$ref": "Link"
  1438. }
  1439. },
  1440. "list": {
  1441. "id": "gan.links.list",
  1442. "path": "{role}/{roleId}/links",
  1443. "httpMethod": "GET",
  1444. "description": "Retrieves all links that match the query parameters.",
  1445. "parameters": {
  1446. "advertiserId": {
  1447. "type": "string",
  1448. "description": "Limits the resulting links to the ones belonging to the listed advertisers.",
  1449. "format": "int64",
  1450. "repeated": true,
  1451. "location": "query"
  1452. },
  1453. "assetSize": {
  1454. "type": "string",
  1455. "description": "The size of the given asset.",
  1456. "repeated": true,
  1457. "location": "query"
  1458. },
  1459. "authorship": {
  1460. "type": "string",
  1461. "description": "The role of the author of the link.",
  1462. "enum": [
  1463. "advertiser",
  1464. "publisher"
  1465. ],
  1466. "enumDescriptions": [
  1467. "",
  1468. ""
  1469. ],
  1470. "location": "query"
  1471. },
  1472. "createDateMax": {
  1473. "type": "string",
  1474. "description": "The end of the create date range.",
  1475. "location": "query"
  1476. },
  1477. "createDateMin": {
  1478. "type": "string",
  1479. "description": "The beginning of the create date range.",
  1480. "location": "query"
  1481. },
  1482. "linkType": {
  1483. "type": "string",
  1484. "description": "The type of the link.",
  1485. "enum": [
  1486. "banner",
  1487. "text"
  1488. ],
  1489. "enumDescriptions": [
  1490. "",
  1491. ""
  1492. ],
  1493. "location": "query"
  1494. },
  1495. "maxResults": {
  1496. "type": "integer",
  1497. "description": "Max number of items to return in this page. Optional. Defaults to 20.",
  1498. "format": "uint32",
  1499. "minimum": "0",
  1500. "maximum": "100",
  1501. "location": "query"
  1502. },
  1503. "pageToken": {
  1504. "type": "string",
  1505. "description": "The value of 'nextPageToken' from the previous page. Optional.",
  1506. "location": "query"
  1507. },
  1508. "promotionType": {
  1509. "type": "string",
  1510. "description": "The promotion type.",
  1511. "enum": [
  1512. "coupon",
  1513. "free_gift",
  1514. "free_shipping",
  1515. "percent_off",
  1516. "price_cut"
  1517. ],
  1518. "enumDescriptions": [
  1519. "",
  1520. "",
  1521. "",
  1522. "",
  1523. ""
  1524. ],
  1525. "repeated": true,
  1526. "location": "query"
  1527. },
  1528. "relationshipStatus": {
  1529. "type": "string",
  1530. "description": "The status of the relationship.",
  1531. "enum": [
  1532. "approved",
  1533. "available"
  1534. ],
  1535. "enumDescriptions": [
  1536. "",
  1537. ""
  1538. ],
  1539. "location": "query"
  1540. },
  1541. "role": {
  1542. "type": "string",
  1543. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1544. "required": true,
  1545. "enum": [
  1546. "advertisers",
  1547. "publishers"
  1548. ],
  1549. "enumDescriptions": [
  1550. "The requester is requesting as an advertiser.",
  1551. "The requester is requesting as a publisher."
  1552. ],
  1553. "location": "path"
  1554. },
  1555. "roleId": {
  1556. "type": "string",
  1557. "description": "The ID of the requesting advertiser or publisher.",
  1558. "required": true,
  1559. "location": "path"
  1560. },
  1561. "searchText": {
  1562. "type": "string",
  1563. "description": "Field for full text search across title and merchandising text, supports link id search.",
  1564. "location": "query"
  1565. },
  1566. "startDateMax": {
  1567. "type": "string",
  1568. "description": "The end of the start date range.",
  1569. "location": "query"
  1570. },
  1571. "startDateMin": {
  1572. "type": "string",
  1573. "description": "The beginning of the start date range.",
  1574. "location": "query"
  1575. }
  1576. },
  1577. "parameterOrder": [
  1578. "role",
  1579. "roleId"
  1580. ],
  1581. "response": {
  1582. "$ref": "Links"
  1583. }
  1584. }
  1585. }
  1586. },
  1587. "publishers": {
  1588. "methods": {
  1589. "get": {
  1590. "id": "gan.publishers.get",
  1591. "path": "{role}/{roleId}/publisher",
  1592. "httpMethod": "GET",
  1593. "description": "Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.",
  1594. "parameters": {
  1595. "publisherId": {
  1596. "type": "string",
  1597. "description": "The ID of the publisher to look up. Optional.",
  1598. "location": "query"
  1599. },
  1600. "role": {
  1601. "type": "string",
  1602. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1603. "required": true,
  1604. "enum": [
  1605. "advertisers",
  1606. "publishers"
  1607. ],
  1608. "enumDescriptions": [
  1609. "The requester is requesting as an advertiser.",
  1610. "The requester is requesting as a publisher."
  1611. ],
  1612. "location": "path"
  1613. },
  1614. "roleId": {
  1615. "type": "string",
  1616. "description": "The ID of the requesting advertiser or publisher.",
  1617. "required": true,
  1618. "location": "path"
  1619. }
  1620. },
  1621. "parameterOrder": [
  1622. "role",
  1623. "roleId"
  1624. ],
  1625. "response": {
  1626. "$ref": "Publisher"
  1627. }
  1628. },
  1629. "list": {
  1630. "id": "gan.publishers.list",
  1631. "path": "{role}/{roleId}/publishers",
  1632. "httpMethod": "GET",
  1633. "description": "Retrieves data about all publishers that the requesting advertiser/publisher has access to.",
  1634. "parameters": {
  1635. "maxResults": {
  1636. "type": "integer",
  1637. "description": "Max number of items to return in this page. Optional. Defaults to 20.",
  1638. "format": "uint32",
  1639. "minimum": "0",
  1640. "maximum": "100",
  1641. "location": "query"
  1642. },
  1643. "minNinetyDayEpc": {
  1644. "type": "number",
  1645. "description": "Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.",
  1646. "format": "double",
  1647. "location": "query"
  1648. },
  1649. "minPayoutRank": {
  1650. "type": "integer",
  1651. "description": "A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.",
  1652. "format": "int32",
  1653. "minimum": "1",
  1654. "maximum": "4",
  1655. "location": "query"
  1656. },
  1657. "minSevenDayEpc": {
  1658. "type": "number",
  1659. "description": "Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.",
  1660. "format": "double",
  1661. "location": "query"
  1662. },
  1663. "pageToken": {
  1664. "type": "string",
  1665. "description": "The value of 'nextPageToken' from the previous page. Optional.",
  1666. "location": "query"
  1667. },
  1668. "publisherCategory": {
  1669. "type": "string",
  1670. "description": "Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.",
  1671. "location": "query"
  1672. },
  1673. "relationshipStatus": {
  1674. "type": "string",
  1675. "description": "Filters out all publishers for which do not have the given relationship status with the requesting publisher.",
  1676. "enum": [
  1677. "approved",
  1678. "available",
  1679. "deactivated",
  1680. "declined",
  1681. "pending"
  1682. ],
  1683. "enumDescriptions": [
  1684. "Publishers you've approved to your program.",
  1685. "Publishers available for you to recruit.",
  1686. "A publisher that you terminated from your program. Publishers also have the ability to remove themselves from your program.",
  1687. "A publisher that you did not approve to your program.",
  1688. "Publishers that have applied to your program. We recommend reviewing and deciding on pending publishers on a weekly basis."
  1689. ],
  1690. "location": "query"
  1691. },
  1692. "role": {
  1693. "type": "string",
  1694. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1695. "required": true,
  1696. "enum": [
  1697. "advertisers",
  1698. "publishers"
  1699. ],
  1700. "enumDescriptions": [
  1701. "The requester is requesting as an advertiser.",
  1702. "The requester is requesting as a publisher."
  1703. ],
  1704. "location": "path"
  1705. },
  1706. "roleId": {
  1707. "type": "string",
  1708. "description": "The ID of the requesting advertiser or publisher.",
  1709. "required": true,
  1710. "location": "path"
  1711. }
  1712. },
  1713. "parameterOrder": [
  1714. "role",
  1715. "roleId"
  1716. ],
  1717. "response": {
  1718. "$ref": "Publishers"
  1719. }
  1720. }
  1721. }
  1722. },
  1723. "reports": {
  1724. "methods": {
  1725. "get": {
  1726. "id": "gan.reports.get",
  1727. "path": "{role}/{roleId}/report/{reportType}",
  1728. "httpMethod": "GET",
  1729. "description": "Retrieves a report of the specified type.",
  1730. "parameters": {
  1731. "advertiserId": {
  1732. "type": "string",
  1733. "description": "The IDs of the advertisers to look up, if applicable.",
  1734. "repeated": true,
  1735. "location": "query"
  1736. },
  1737. "calculateTotals": {
  1738. "type": "boolean",
  1739. "description": "Whether or not to calculate totals rows. Optional.",
  1740. "location": "query"
  1741. },
  1742. "endDate": {
  1743. "type": "string",
  1744. "description": "The end date (exclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day after startDate, if that is given, or today. Optional.",
  1745. "location": "query"
  1746. },
  1747. "eventType": {
  1748. "type": "string",
  1749. "description": "Filters out all events that are not of the given type. Valid values: 'action', 'transaction', or 'charge'. Optional.",
  1750. "enum": [
  1751. "action",
  1752. "charge",
  1753. "transaction"
  1754. ],
  1755. "enumDescriptions": [
  1756. "Event type is action.",
  1757. "Event type is charge.",
  1758. "Event type is transaction."
  1759. ],
  1760. "location": "query"
  1761. },
  1762. "linkId": {
  1763. "type": "string",
  1764. "description": "Filters to capture one of given link IDs. Optional.",
  1765. "repeated": true,
  1766. "location": "query"
  1767. },
  1768. "maxResults": {
  1769. "type": "integer",
  1770. "description": "Max number of items to return in this page. Optional. Defaults to return all results.",
  1771. "format": "uint32",
  1772. "minimum": "0",
  1773. "location": "query"
  1774. },
  1775. "orderId": {
  1776. "type": "string",
  1777. "description": "Filters to capture one of the given order IDs. Optional.",
  1778. "repeated": true,
  1779. "location": "query"
  1780. },
  1781. "publisherId": {
  1782. "type": "string",
  1783. "description": "The IDs of the publishers to look up, if applicable.",
  1784. "repeated": true,
  1785. "location": "query"
  1786. },
  1787. "reportType": {
  1788. "type": "string",
  1789. "description": "The type of report being requested. Valid values: 'order_delta'. Required.",
  1790. "required": true,
  1791. "enum": [
  1792. "order_delta"
  1793. ],
  1794. "enumDescriptions": [
  1795. "The order delta report type."
  1796. ],
  1797. "location": "path"
  1798. },
  1799. "role": {
  1800. "type": "string",
  1801. "description": "The role of the requester. Valid values: 'advertisers' or 'publishers'.",
  1802. "required": true,
  1803. "enum": [
  1804. "advertisers",
  1805. "publishers"
  1806. ],
  1807. "enumDescriptions": [
  1808. "The requester is requesting as an advertiser.",
  1809. "The requester is requesting as a publisher."
  1810. ],
  1811. "location": "path"
  1812. },
  1813. "roleId": {
  1814. "type": "string",
  1815. "description": "The ID of the requesting advertiser or publisher.",
  1816. "required": true,
  1817. "location": "path"
  1818. },
  1819. "startDate": {
  1820. "type": "string",
  1821. "description": "The start date (inclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day before endDate, if that is given, or yesterday. Optional.",
  1822. "location": "query"
  1823. },
  1824. "startIndex": {
  1825. "type": "integer",
  1826. "description": "Offset on which to return results when paging. Optional.",
  1827. "format": "uint32",
  1828. "minimum": "0",
  1829. "location": "query"
  1830. },
  1831. "status": {
  1832. "type": "string",
  1833. "description": "Filters out all events that do not have the given status. Valid values: 'active', 'canceled', or 'invalid'. Optional.",
  1834. "enum": [
  1835. "active",
  1836. "canceled",
  1837. "invalid"
  1838. ],
  1839. "enumDescriptions": [
  1840. "Event is currently active.",
  1841. "Event is currently canceled.",
  1842. "Event is currently invalid."
  1843. ],
  1844. "location": "query"
  1845. }
  1846. },
  1847. "parameterOrder": [
  1848. "role",
  1849. "roleId",
  1850. "reportType"
  1851. ],
  1852. "response": {
  1853. "$ref": "Report"
  1854. }
  1855. }
  1856. }
  1857. }
  1858. }
  1859. }