on develop help sign in
Regenerating gogol-adexchange-buyer from latest service definition
edfcaffBrendan Hay
gen/model/adexchangebuyer/v1.4/adexchangebuyer-api.json+216−16
@@ -1,12 +1,12 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/002w-fCkY_zNzqAq_LEe_TgmEjM\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/bLuDj8hKbRr7zEELKLv2i5H2Ydk\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "adexchangebuyer:v1.4",
5 "id": "adexchangebuyer:v1.4",
6 "name": "adexchangebuyer",
6 "name": "adexchangebuyer",
7 "canonicalName": "Ad Exchange Buyer",
7 "canonicalName": "Ad Exchange Buyer",
8 "version": "v1.4",
8 "version": "v1.4",
9− "revision": "20160509",
9+ "revision": "20161003",
10 "title": "Ad Exchange Buyer API",
10 "title": "Ad Exchange Buyer API",
11 "description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
11 "description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
12 "ownerDomain": "google.com",
12 "ownerDomain": "google.com",
@@ -448,6 +448,41 @@
448 "items": {
448 "items": {
449 "type": "object",
449 "type": "object",
450 "properties": {
450 "properties": {
451+ "contexts": {
452+ "type": "array",
453+ "description": "All known serving contexts containing serving status information.",
454+ "items": {
455+ "type": "object",
456+ "properties": {
457+ "auctionType": {
458+ "type": "array",
459+ "description": "Only set when contextType=AUCTION_TYPE. Represents the auction types this correction applies to.",
460+ "items": {
461+ "type": "string"
462+ }
463+ },
464+ "contextType": {
465+ "type": "string",
466+ "description": "The type of context (e.g., location, platform, auction type, SSL-ness)."
467+ },
468+ "geoCriteriaId": {
469+ "type": "array",
470+ "description": "Only set when contextType=LOCATION. Represents the geo criterias this correction applies to.",
471+ "items": {
472+ "type": "integer",
473+ "format": "int32"
474+ }
475+ },
476+ "platform": {
477+ "type": "array",
478+ "description": "Only set when contextType=PLATFORM. Represents the platforms this correction applies to.",
479+ "items": {
480+ "type": "string"
481+ }
482+ }
483+ }
484+ }
485+ },
451 "details": {
486 "details": {
452 "type": "array",
487 "type": "array",
453 "description": "Additional details about the correction.",
488 "description": "Additional details about the correction.",
@@ -466,6 +501,13 @@
466 "type": "string",
501 "type": "string",
467 "description": "Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly."
502 "description": "Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly."
468 },
503 },
504+ "detectedDomains": {
505+ "type": "array",
506+ "description": "Detected domains for this creative. Read-only. This field should not be set in requests.",
507+ "items": {
508+ "type": "string"
509+ }
510+ },
469 "filteringReasons": {
511 "filteringReasons": {
470 "type": "object",
512 "type": "object",
471 "description": "The filtering reasons for the creative. Read-only. This field should not be set in requests.",
513 "description": "The filtering reasons for the creative. Read-only. This field should not be set in requests.",
@@ -517,9 +559,16 @@
517 "description": "Resource type.",
559 "description": "Resource type.",
518 "default": "adexchangebuyer#creative"
560 "default": "adexchangebuyer#creative"
519 },
561 },
562+ "languages": {
563+ "type": "array",
564+ "description": "Detected languages for this creative. Read-only. This field should not be set in requests.",
565+ "items": {
566+ "type": "string"
567+ }
568+ },
520 "nativeAd": {
569 "nativeAd": {
521 "type": "object",
570 "type": "object",
522− "description": "If nativeAd is set, HTMLSnippet and videoURL should not be set.",
571+ "description": "If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)",
523 "properties": {
572 "properties": {
524 "advertiser": {
573 "advertiser": {
525 "type": "string"
574 "type": "string"
@@ -610,6 +659,9 @@
610 "store": {
659 "store": {
611 "type": "string",
660 "type": "string",
612 "description": "The URL to the app store to purchase/download the promoted app."
661 "description": "The URL to the app store to purchase/download the promoted app."
662+ },
663+ "videoURL": {
664+ "type": "string"
613 }
665 }
614 }
666 }
615 },
667 },
@@ -724,7 +776,7 @@
724 },
776 },
725 "videoURL": {
777 "videoURL": {
726 "type": "string",
778 "type": "string",
727− "description": "The url to fetch a video ad. If set, HTMLSnippet should not be set."
779+ "description": "The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set. Note, this is diffrent from resource.native_ad.video_url above."
728 },
780 },
729 "width": {
781 "width": {
730 "type": "integer",
782 "type": "integer",
@@ -738,6 +790,41 @@
738 }
790 }
739 }
791 }
740 },
792 },
793+ "CreativeDealIds": {
794+ "id": "CreativeDealIds",
795+ "type": "object",
796+ "description": "The external deal ids associated with a creative.",
797+ "properties": {
798+ "dealStatuses": {
799+ "type": "array",
800+ "description": "A list of external deal ids and ARC approval status.",
801+ "items": {
802+ "type": "object",
803+ "properties": {
804+ "arcStatus": {
805+ "type": "string",
806+ "description": "ARC approval status."
807+ },
808+ "dealId": {
809+ "type": "string",
810+ "description": "External deal ID.",
811+ "format": "int64"
812+ },
813+ "webPropertyId": {
814+ "type": "integer",
815+ "description": "Publisher ID.",
816+ "format": "int32"
817+ }
818+ }
819+ }
820+ },
821+ "kind": {
822+ "type": "string",
823+ "description": "Resource type.",
824+ "default": "adexchangebuyer#creativeDealIds"
825+ }
826+ }
827+ },
741 "CreativesList": {
828 "CreativesList": {
742 "id": "CreativesList",
829 "id": "CreativesList",
743 "type": "object",
830 "type": "object",
@@ -776,6 +863,9 @@
776 "type": "object",
863 "type": "object",
777 "description": "Tracks which parties (if any) have paused a deal. The deal is considered paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused or the has_seller_paused bits can be set independently.",
864 "description": "Tracks which parties (if any) have paused a deal. The deal is considered paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused or the has_seller_paused bits can be set independently.",
778 "properties": {
865 "properties": {
866+ "buyerPauseReason": {
867+ "type": "string"
868+ },
779 "firstPausedBy": {
869 "firstPausedBy": {
780 "type": "string",
870 "type": "string",
781 "description": "If the deal is paused, records which party paused the deal first."
871 "description": "If the deal is paused, records which party paused the deal first."
@@ -785,6 +875,9 @@
785 },
875 },
786 "hasSellerPaused": {
876 "hasSellerPaused": {
787 "type": "boolean"
877 "type": "boolean"
878+ },
879+ "sellerPauseReason": {
880+ "type": "string"
788 }
881 }
789 }
882 }
790 },
883 },
@@ -796,6 +889,10 @@
796 "type": "string",
889 "type": "string",
797 "description": "Visibilty of the URL in bid requests."
890 "description": "Visibilty of the URL in bid requests."
798 },
891 },
892+ "crossListedExternalDealIdType": {
893+ "type": "string",
894+ "description": "Indicates that this ExternalDealId exists under at least two different AdxInventoryDeals. Currently, the only case that the same ExternalDealId will exist is programmatic cross sell case."
895+ },
799 "description": {
896 "description": {
800 "type": "string",
897 "type": "string",
801 "description": "Description for the proposed terms of the deal."
898 "description": "Description for the proposed terms of the deal."
@@ -821,6 +918,10 @@
821 "$ref": "DealTermsNonGuaranteedFixedPriceTerms",
918 "$ref": "DealTermsNonGuaranteedFixedPriceTerms",
822 "description": "The terms for non-guaranteed fixed price deals."
919 "description": "The terms for non-guaranteed fixed price deals."
823 },
920 },
921+ "rubiconNonGuaranteedTerms": {
922+ "$ref": "DealTermsRubiconNonGuaranteedTerms",
923+ "description": "The terms for rubicon non-guaranteed deals."
924+ },
824 "sellerTimeZone": {
925 "sellerTimeZone": {
825 "type": "string",
926 "type": "string",
826 "description": "For deals with Cost Per Day billing, defines the timezone used to mark the boundaries of a day (buyer-readonly)"
927 "description": "For deals with Cost Per Day billing, defines the timezone used to mark the boundaries of a day (buyer-readonly)"
@@ -849,7 +950,12 @@
849 },
950 },
850 "guaranteedLooks": {
951 "guaranteedLooks": {
851 "type": "string",
952 "type": "string",
852− "description": "Count of guaranteed looks. Required for deal, optional for product.",
953+ "description": "Count of guaranteed looks. Required for deal, optional for product. For CPD deals, buyer changes to guaranteed_looks will be ignored.",
954+ "format": "int64"
955+ },
956+ "minimumDailyLooks": {
957+ "type": "string",
958+ "description": "Count of minimum daily looks for a CPD deal. For CPD deals, buyer should negotiate on this field instead of guaranteed_looks.",
853 "format": "int64"
959 "format": "int64"
854 }
960 }
855 }
961 }
@@ -863,9 +969,14 @@
863 "description": "The timestamp (in ms since epoch) when the original reservation price for the deal was first converted to DFP currency. This is used to convert the contracted price into advertiser's currency without discrepancy.",
969 "description": "The timestamp (in ms since epoch) when the original reservation price for the deal was first converted to DFP currency. This is used to convert the contracted price into advertiser's currency without discrepancy.",
864 "format": "int64"
970 "format": "int64"
865 },
971 },
972+ "dfpLineItemId": {
973+ "type": "string",
974+ "description": "The DFP line item id associated with this deal. For features like CPD, buyers can retrieve the DFP line item for billing reconciliation.",
975+ "format": "int64"
976+ },
866 "originalContractedQuantity": {
977 "originalContractedQuantity": {
867 "type": "string",
978 "type": "string",
868− "description": "The original contracted quantity (# impressions) for this deal. To ensure delivery, sometimes publisher will book the deal with a impression buffer, however clients are billed using the original contracted quantity.",
979+ "description": "The original contracted quantity (# impressions) for this deal. To ensure delivery, sometimes the publisher will book the deal with a impression buffer, such that guaranteed_looks is greater than the contracted quantity. However clients are billed using the original contracted quantity.",
869 "format": "int64"
980 "format": "int64"
870 },
981 },
871 "price": {
982 "price": {
@@ -904,6 +1015,20 @@
904 }
1015 }
905 }
1016 }
906 },
1017 },
1018+ "DealTermsRubiconNonGuaranteedTerms": {
1019+ "id": "DealTermsRubiconNonGuaranteedTerms",
1020+ "type": "object",
1021+ "properties": {
1022+ "priorityPrice": {
1023+ "$ref": "Price",
1024+ "description": "Optional price for Rubicon priority access in the auction."
1025+ },
1026+ "standardPrice": {
1027+ "$ref": "Price",
1028+ "description": "Optional price for Rubicon standard access in the auction."
1029+ }
1030+ }
1031+ },
907 "DeleteOrderDealsRequest": {
1032 "DeleteOrderDealsRequest": {
908 "id": "DeleteOrderDealsRequest",
1033 "id": "DeleteOrderDealsRequest",
909 "type": "object",
1034 "type": "object",
@@ -1007,7 +1132,12 @@
1007 },
1132 },
1008 "name": {
1133 "name": {
1009 "type": "string",
1134 "type": "string",
1010− "description": "Name of the dimension mainly for debugging purposes."
1135+ "description": "Name of the dimension mainly for debugging purposes, except for the case of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids."
1136+ },
1137+ "percentage": {
1138+ "type": "integer",
1139+ "description": "Percent of total impressions for a dimension type. e.g. {dimension_type: 'GENDER', [{dimension_value: {id: 1, name: 'MALE', percentage: 60}}]} Gender MALE is 60% of all impressions which have gender.",
1140+ "format": "int32"
1011 }
1141 }
1012 }
1142 }
1013 },
1143 },
@@ -1087,7 +1217,7 @@
1087 "properties": {
1217 "properties": {
1088 "notes": {
1218 "notes": {
1089 "type": "array",
1219 "type": "array",
1090− "description": "The list of matching notes.",
1220+ "description": "The list of matching notes. The notes for a proposal are ordered from oldest to newest. If the notes span multiple proposals, they will be grouped by proposal, with the notes for the most recently modified proposal appearing first.",
1091 "items": {
1221 "items": {
1092 "$ref": "MarketplaceNote"
1222 "$ref": "MarketplaceNote"
1093 }
1223 }
@@ -1144,7 +1274,7 @@
1144 },
1274 },
1145 "dealId": {
1275 "dealId": {
1146 "type": "string",
1276 "type": "string",
1147− "description": "A unique deal=id for the deal (readonly)."
1277+ "description": "A unique deal-id for the deal (readonly)."
1148 },
1278 },
1149 "dealServingMetadata": {
1279 "dealServingMetadata": {
1150 "$ref": "DealServingMetadata",
1280 "$ref": "DealServingMetadata",
@@ -1172,6 +1302,10 @@
1172 "type": "string",
1302 "type": "string",
1173 "description": "Description for the deal terms. (updatable)"
1303 "description": "Description for the deal terms. (updatable)"
1174 },
1304 },
1305+ "isRfpTemplate": {
1306+ "type": "boolean",
1307+ "description": "Indicates whether the current deal is a RFP template. RFP template is created by buyer and not based on seller created products."
1308+ },
1175 "kind": {
1309 "kind": {
1176 "type": "string",
1310 "type": "string",
1177 "description": "Identifies what kind of resource this is. Value: the fixed string \"adexchangebuyer#marketplaceDeal\".",
1311 "description": "Identifies what kind of resource this is. Value: the fixed string \"adexchangebuyer#marketplaceDeal\".",
@@ -1704,6 +1838,11 @@
1704 "type": "string",
1838 "type": "string",
1705 "description": "The currency code for the price."
1839 "description": "The currency code for the price."
1706 },
1840 },
1841+ "expectedCpmMicros": {
1842+ "type": "number",
1843+ "description": "In case of CPD deals, the expected CPM in micros.",
1844+ "format": "double"
1845+ },
1707 "pricingType": {
1846 "pricingType": {
1708 "type": "string",
1847 "type": "string",
1709 "description": "The pricing type for the deal/product."
1848 "description": "The pricing type for the deal/product."
@@ -1871,7 +2010,7 @@
1871 },
2010 },
1872 "buyerContacts": {
2011 "buyerContacts": {
1873 "type": "array",
2012 "type": "array",
1874− "description": "Optional contact information fort the buyer. (seller-readonly)",
2013+ "description": "Optional contact information of the buyer. (seller-readonly)",
1875 "items": {
2014 "items": {
1876 "$ref": "ContactInformation"
2015 "$ref": "ContactInformation"
1877 }
2016 }
@@ -1880,9 +2019,16 @@
1880 "$ref": "PrivateData",
2019 "$ref": "PrivateData",
1881 "description": "Private data for buyer. (hidden from seller)."
2020 "description": "Private data for buyer. (hidden from seller)."
1882 },
2021 },
2022+ "dbmAdvertiserIds": {
2023+ "type": "array",
2024+ "description": "IDs of DBM advertisers permission to this proposal.",
2025+ "items": {
2026+ "type": "string"
2027+ }
2028+ },
1883 "hasBuyerSignedOff": {
2029 "hasBuyerSignedOff": {
1884 "type": "boolean",
2030 "type": "boolean",
1885− "description": "When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly)"
2031+ "description": "When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly)"
1886 },
2032 },
1887 "hasSellerSignedOff": {
2033 "hasSellerSignedOff": {
1888 "type": "boolean",
2034 "type": "boolean",
@@ -1956,7 +2102,7 @@
1956 },
2102 },
1957 "sellerContacts": {
2103 "sellerContacts": {
1958 "type": "array",
2104 "type": "array",
1959− "description": "Optional contact information for the seller (buyer-readonly).",
2105+ "description": "Optional contact information of the seller (buyer-readonly).",
1960 "items": {
2106 "items": {
1961 "$ref": "ContactInformation"
2107 "$ref": "ContactInformation"
1962 }
2108 }
@@ -2171,6 +2317,10 @@
2171 "size": {
2317 "size": {
2172 "$ref": "TargetingValueSize",
2318 "$ref": "TargetingValueSize",
2173 "description": "For regular or video creative size type, specifies the size of the creative."
2319 "description": "For regular or video creative size type, specifies the size of the creative."
2320+ },
2321+ "skippableAdType": {
2322+ "type": "string",
2323+ "description": "The skippable ad type for video size."
2174 }
2324 }
2175 }
2325 }
2176 },
2326 },
@@ -2299,6 +2449,11 @@
2299 "httpMethod": "PATCH",
2449 "httpMethod": "PATCH",
2300 "description": "Updates an existing account. This method supports patch semantics.",
2450 "description": "Updates an existing account. This method supports patch semantics.",
2301 "parameters": {
2451 "parameters": {
2452+ "confirmUnsafeAccountChange": {
2453+ "type": "boolean",
2454+ "description": "Confirmation for erasing bidder and cookie matching urls.",
2455+ "location": "query"
2456+ },
2302 "id": {
2457 "id": {
2303 "type": "integer",
2458 "type": "integer",
2304 "description": "The account id",
2459 "description": "The account id",
@@ -2326,6 +2481,11 @@
2326 "httpMethod": "PUT",
2481 "httpMethod": "PUT",
2327 "description": "Updates an existing account.",
2482 "description": "Updates an existing account.",
2328 "parameters": {
2483 "parameters": {
2484+ "confirmUnsafeAccountChange": {
2485+ "type": "boolean",
2486+ "description": "Confirmation for erasing bidder and cookie matching urls.",
2487+ "location": "query"
2488+ },
2329 "id": {
2489 "id": {
2330 "type": "integer",
2490 "type": "integer",
2331 "description": "The account id",
2491 "description": "The account id",
@@ -2653,6 +2813,37 @@
2653 "https://www.googleapis.com/auth/adexchange.buyer"
2813 "https://www.googleapis.com/auth/adexchange.buyer"
2654 ]
2814 ]
2655 },
2815 },
2816+ "listDeals": {
2817+ "id": "adexchangebuyer.creatives.listDeals",
2818+ "path": "creatives/{accountId}/{buyerCreativeId}/listDeals",
2819+ "httpMethod": "GET",
2820+ "description": "Lists the external deal ids associated with the creative.",
2821+ "parameters": {
2822+ "accountId": {
2823+ "type": "integer",
2824+ "description": "The id for the account that will serve this creative.",
2825+ "required": true,
2826+ "format": "int32",
2827+ "location": "path"
2828+ },
2829+ "buyerCreativeId": {
2830+ "type": "string",
2831+ "description": "The buyer-specific id for this creative.",
2832+ "required": true,
2833+ "location": "path"
2834+ }
2835+ },
2836+ "parameterOrder": [
2837+ "accountId",
2838+ "buyerCreativeId"
2839+ ],
2840+ "response": {
2841+ "$ref": "CreativeDealIds"
2842+ },
2843+ "scopes": [
2844+ "https://www.googleapis.com/auth/adexchange.buyer"
2845+ ]
2846+ },
2656 "removeDeal": {
2847 "removeDeal": {
2657 "id": "adexchangebuyer.creatives.removeDeal",
2848 "id": "adexchangebuyer.creatives.removeDeal",
2658 "path": "creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}",
2849 "path": "creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}",
@@ -2758,7 +2949,7 @@
2758 },
2949 },
2759 "proposalId": {
2950 "proposalId": {
2760 "type": "string",
2951 "type": "string",
2761− "description": "The proposalId to get deals for. To search across proposals specify order_id = '-' as part of the URL.",
2952+ "description": "The proposalId to get deals for. To search across all proposals specify order_id = '-' as part of the URL.",
2762 "required": true,
2953 "required": true,
2763 "location": "path"
2954 "location": "path"
2764 }
2955 }
@@ -2835,9 +3026,14 @@
2835 "httpMethod": "GET",
3026 "httpMethod": "GET",
2836 "description": "Get all the notes associated with a proposal",
3027 "description": "Get all the notes associated with a proposal",
2837 "parameters": {
3028 "parameters": {
3029+ "pqlQuery": {
3030+ "type": "string",
3031+ "description": "Query string to retrieve specific notes. To search the text contents of notes, please use syntax like \"WHERE note.note = \"foo\" or \"WHERE note.note LIKE \"%bar%\"",
3032+ "location": "query"
3033+ },
2838 "proposalId": {
3034 "proposalId": {
2839 "type": "string",
3035 "type": "string",
2840− "description": "The proposalId to get notes for.",
3036+ "description": "The proposalId to get notes for. To search across all proposals specify order_id = '-' as part of the URL.",
2841 "required": true,
3037 "required": true,
2842 "location": "path"
3038 "location": "path"
2843 }
3039 }
@@ -3229,12 +3425,13 @@
3229 },
3425 },
3230 "updateAction": {
3426 "updateAction": {
3231 "type": "string",
3427 "type": "string",
3232− "description": "The proposed action to take on the proposal.",
3428+ "description": "The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.",
3233 "required": true,
3429 "required": true,
3234 "enum": [
3430 "enum": [
3235 "accept",
3431 "accept",
3236 "cancel",
3432 "cancel",
3237 "propose",
3433 "propose",
3434+ "proposeAndAccept",
3238 "unknownAction",
3435 "unknownAction",
3239 "updateFinalized"
3436 "updateFinalized"
3240 ],
3437 ],
@@ -3243,6 +3440,7 @@
3243 "",
3440 "",
3244 "",
3441 "",
3245 "",
3442 "",
3443+ "",
3246 ""
3444 ""
3247 ],
3445 ],
3248 "location": "path"
3446 "location": "path"
@@ -3323,12 +3521,13 @@
3323 },
3521 },
3324 "updateAction": {
3522 "updateAction": {
3325 "type": "string",
3523 "type": "string",
3326− "description": "The proposed action to take on the proposal.",
3524+ "description": "The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.",
3327 "required": true,
3525 "required": true,
3328 "enum": [
3526 "enum": [
3329 "accept",
3527 "accept",
3330 "cancel",
3528 "cancel",
3331 "propose",
3529 "propose",
3530+ "proposeAndAccept",
3332 "unknownAction",
3531 "unknownAction",
3333 "updateFinalized"
3532 "updateFinalized"
3334 ],
3533 ],
@@ -3337,6 +3536,7 @@
3337 "",
3536 "",
3338 "",
3537 "",
3339 "",
3538 "",
3539+ "",
3340 ""
3540 ""
3341 ],
3541 ],
3342 "location": "path"
3542 "location": "path"
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer.hs+47
@@ -70,6 +70,9 @@ module Network.Google.AdExchangeBuyer
70 -- ** adexchangebuyer.creatives.list
70 -- ** adexchangebuyer.creatives.list
71 , module Network.Google.Resource.AdExchangeBuyer.Creatives.List
71 , module Network.Google.Resource.AdExchangeBuyer.Creatives.List
72
72
73+ -- ** adexchangebuyer.creatives.listDeals
74+ , module Network.Google.Resource.AdExchangeBuyer.Creatives.ListDeals
75+
73 -- ** adexchangebuyer.creatives.removeDeal
76 -- ** adexchangebuyer.creatives.removeDeal
74 , module Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
77 , module Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
75
78
@@ -167,6 +170,7 @@ module Network.Google.AdExchangeBuyer
167 , cnataImpressionTrackingURL
170 , cnataImpressionTrackingURL
168 , cnataCallToAction
171 , cnataCallToAction
169 , cnataStore
172 , cnataStore
173+ , cnataVideoURL
170 , cnataPrice
174 , cnataPrice
171 , cnataAdvertiser
175 , cnataAdvertiser
172 , cnataStarRating
176 , cnataStarRating
@@ -185,6 +189,13 @@ module Network.Google.AdExchangeBuyer
185 , clKind
189 , clKind
186 , clItems
190 , clItems
187
191
192+ -- ** CreativeDealIdsDealStatusesItem
193+ , CreativeDealIdsDealStatusesItem
194+ , creativeDealIdsDealStatusesItem
195+ , cdidsiArcStatus
196+ , cdidsiWebPropertyId
197+ , cdidsiDealId
198+
188 -- ** CreativeServingRestrictionsItemContextsItem
199 -- ** CreativeServingRestrictionsItemContextsItem
189 , CreativeServingRestrictionsItemContextsItem
200 , CreativeServingRestrictionsItemContextsItem
190 , creativeServingRestrictionsItemContextsItem
201 , creativeServingRestrictionsItemContextsItem
@@ -277,9 +288,16 @@ module Network.Google.AdExchangeBuyer
277 -- ** CreativeCorrectionsItem
288 -- ** CreativeCorrectionsItem
278 , CreativeCorrectionsItem
289 , CreativeCorrectionsItem
279 , creativeCorrectionsItem
290 , creativeCorrectionsItem
291+ , cciContexts
280 , cciReason
292 , cciReason
281 , cciDetails
293 , cciDetails
282
294
295+ -- ** DealTermsRubiconNonGuaranteedTerms
296+ , DealTermsRubiconNonGuaranteedTerms
297+ , dealTermsRubiconNonGuaranteedTerms
298+ , dtrngtPriorityPrice
299+ , dtrngtStandardPrice
300+
283 -- ** DealServingMetadata
301 -- ** DealServingMetadata
284 , DealServingMetadata
302 , DealServingMetadata
285 , dealServingMetadata
303 , dealServingMetadata
@@ -324,6 +342,7 @@ module Network.Google.AdExchangeBuyer
324 , cDealsStatus
342 , cDealsStatus
325 , cWidth
343 , cWidth
326 , cClickThroughURL
344 , cClickThroughURL
345+ , cLanguages
327 , cVendorType
346 , cVendorType
328 , cAccountId
347 , cAccountId
329 , cImpressionTrackingURL
348 , cImpressionTrackingURL
@@ -333,6 +352,7 @@ module Network.Google.AdExchangeBuyer
333 , cVideoURL
352 , cVideoURL
334 , cAPIUploadTimestamp
353 , cAPIUploadTimestamp
335 , cServingRestrictions
354 , cServingRestrictions
355+ , cDetectedDomains
336 , cOpenAuctionStatus
356 , cOpenAuctionStatus
337
357
338 -- ** TargetingValueDayPartTargetingDayPart
358 -- ** TargetingValueDayPartTargetingDayPart
@@ -349,6 +369,7 @@ module Network.Google.AdExchangeBuyer
349 , dimensionDimensionValue
369 , dimensionDimensionValue
350 , ddvName
370 , ddvName
351 , ddvId
371 , ddvId
372+ , ddvPercentage
352
373
353 -- ** PretargetingConfigList
374 -- ** PretargetingConfigList
354 , PretargetingConfigList
375 , PretargetingConfigList
@@ -484,12 +505,14 @@ module Network.Google.AdExchangeBuyer
484 , targetingValueCreativeSize
505 , targetingValueCreativeSize
485 , tvcsSize
506 , tvcsSize
486 , tvcsCompanionSizes
507 , tvcsCompanionSizes
508+ , tvcsSkippableAdType
487 , tvcsCreativeSizeType
509 , tvcsCreativeSizeType
488
510
489 -- ** DealTermsGuaranteedFixedPriceTermsBillingInfo
511 -- ** DealTermsGuaranteedFixedPriceTermsBillingInfo
490 , DealTermsGuaranteedFixedPriceTermsBillingInfo
512 , DealTermsGuaranteedFixedPriceTermsBillingInfo
491 , dealTermsGuaranteedFixedPriceTermsBillingInfo
513 , dealTermsGuaranteedFixedPriceTermsBillingInfo
492 , dtgfptbiCurrencyConversionTimeMs
514 , dtgfptbiCurrencyConversionTimeMs
515+ , dtgfptbiDfpLineItemId
493 , dtgfptbiPrice
516 , dtgfptbiPrice
494 , dtgfptbiOriginalContractedQuantity
517 , dtgfptbiOriginalContractedQuantity
495
518
@@ -507,6 +530,7 @@ module Network.Google.AdExchangeBuyer
507 , pBuyerContacts
530 , pBuyerContacts
508 , pKind
531 , pKind
509 , pOriginatorRole
532 , pOriginatorRole
533+ , pDBmAdvertiserIds
510 , pRevisionNumber
534 , pRevisionNumber
511 , pBilledBuyer
535 , pBilledBuyer
512 , pPrivateAuctionId
536 , pPrivateAuctionId
@@ -555,6 +579,14 @@ module Network.Google.AdExchangeBuyer
555 , pcdiHeight
579 , pcdiHeight
556 , pcdiWidth
580 , pcdiWidth
557
581
582+ -- ** CreativeCorrectionsItemContextsItem
583+ , CreativeCorrectionsItemContextsItem
584+ , creativeCorrectionsItemContextsItem
585+ , cciciPlatform
586+ , cciciContextType
587+ , cciciAuctionType
588+ , cciciGeoCriteriaId
589+
558 -- ** PublisherProvidedForecast
590 -- ** PublisherProvidedForecast
559 , PublisherProvidedForecast
591 , PublisherProvidedForecast
560 , publisherProvidedForecast
592 , publisherProvidedForecast
@@ -583,6 +615,7 @@ module Network.Google.AdExchangeBuyer
583 , pCurrencyCode
615 , pCurrencyCode
584 , pAmountMicros
616 , pAmountMicros
585 , pPricingType
617 , pPricingType
618+ , pExpectedCpmMicros
586
619
587 -- ** PretargetingConfigVideoPlayerSizesItem
620 -- ** PretargetingConfigVideoPlayerSizesItem
588 , PretargetingConfigVideoPlayerSizesItem
621 , PretargetingConfigVideoPlayerSizesItem
@@ -714,6 +747,7 @@ module Network.Google.AdExchangeBuyer
714 , mdDealServingMetadata
747 , mdDealServingMetadata
715 , mdFlightStartTimeMs
748 , mdFlightStartTimeMs
716 , mdSharedTargetings
749 , mdSharedTargetings
750+ , mdIsRfpTemplate
717 , mdProposalId
751 , mdProposalId
718 , mdDealId
752 , mdDealId
719 , mdInventoryDescription
753 , mdInventoryDescription
@@ -756,12 +790,20 @@ module Network.Google.AdExchangeBuyer
756 , dtEstimatedGrossSpend
790 , dtEstimatedGrossSpend
757 , dtNonGuaranteedFixedPriceTerms
791 , dtNonGuaranteedFixedPriceTerms
758 , dtNonGuaranteedAuctionTerms
792 , dtNonGuaranteedAuctionTerms
793+ , dtRubiconNonGuaranteedTerms
759 , dtBrandingType
794 , dtBrandingType
795+ , dtCrossListedExternalDealIdType
760 , dtEstimatedImpressionsPerDay
796 , dtEstimatedImpressionsPerDay
761 , dtSellerTimeZone
797 , dtSellerTimeZone
762 , dtGuaranteedFixedPriceTerms
798 , dtGuaranteedFixedPriceTerms
763 , dtDescription
799 , dtDescription
764
800
801+ -- ** CreativeDealIds
802+ , CreativeDealIds
803+ , creativeDealIds
804+ , cdiKind
805+ , cdiDealStatuses
806+
765 -- ** MarketplaceLabel
807 -- ** MarketplaceLabel
766 , MarketplaceLabel
808 , MarketplaceLabel
767 , marketplaceLabel
809 , marketplaceLabel
@@ -789,7 +831,9 @@ module Network.Google.AdExchangeBuyer
789 , DealServingMetadataDealPauseStatus
831 , DealServingMetadataDealPauseStatus
790 , dealServingMetadataDealPauseStatus
832 , dealServingMetadataDealPauseStatus
791 , dsmdpsFirstPausedBy
833 , dsmdpsFirstPausedBy
834+ , dsmdpsBuyerPauseReason
792 , dsmdpsHasBuyerPaused
835 , dsmdpsHasBuyerPaused
836+ , dsmdpsSellerPauseReason
793 , dsmdpsHasSellerPaused
837 , dsmdpsHasSellerPaused
794
838
795 -- ** DealTermsGuaranteedFixedPriceTerms
839 -- ** DealTermsGuaranteedFixedPriceTerms
@@ -799,6 +843,7 @@ module Network.Google.AdExchangeBuyer
799 , dtgfptGuaranteedImpressions
843 , dtgfptGuaranteedImpressions
800 , dtgfptBillingInfo
844 , dtgfptBillingInfo
801 , dtgfptFixedPrices
845 , dtgfptFixedPrices
846+ , dtgfptMinimumDailyLooks
802 ) where
847 ) where
803
848
804import Network.Google.AdExchangeBuyer.Types
849import Network.Google.AdExchangeBuyer.Types
@@ -816,6 +861,7 @@ import Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
816import Network.Google.Resource.AdExchangeBuyer.Creatives.Get
861import Network.Google.Resource.AdExchangeBuyer.Creatives.Get
817import Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
862import Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
818import Network.Google.Resource.AdExchangeBuyer.Creatives.List
863import Network.Google.Resource.AdExchangeBuyer.Creatives.List
864+import Network.Google.Resource.AdExchangeBuyer.Creatives.ListDeals
819import Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
865import Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
820import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
866import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
821import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
867import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
@@ -865,6 +911,7 @@ type AdExchangeBuyerAPI =
865 :<|> CreativesInsertResource
911 :<|> CreativesInsertResource
866 :<|> CreativesRemoveDealResource
912 :<|> CreativesRemoveDealResource
867 :<|> CreativesListResource
913 :<|> CreativesListResource
914+ :<|> CreativesListDealsResource
868 :<|> CreativesGetResource
915 :<|> CreativesGetResource
869 :<|> CreativesAddDealResource
916 :<|> CreativesAddDealResource
870 :<|> PerformanceReportListResource
917 :<|> PerformanceReportListResource
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types.hs+42
@@ -45,6 +45,7 @@ module Network.Google.AdExchangeBuyer.Types
45 , cnataImpressionTrackingURL
45 , cnataImpressionTrackingURL
46 , cnataCallToAction
46 , cnataCallToAction
47 , cnataStore
47 , cnataStore
48+ , cnataVideoURL
48 , cnataPrice
49 , cnataPrice
49 , cnataAdvertiser
50 , cnataAdvertiser
50 , cnataStarRating
51 , cnataStarRating
@@ -63,6 +64,13 @@ module Network.Google.AdExchangeBuyer.Types
63 , clKind
64 , clKind
64 , clItems
65 , clItems
65
66
67+ -- * CreativeDealIdsDealStatusesItem
68+ , CreativeDealIdsDealStatusesItem
69+ , creativeDealIdsDealStatusesItem
70+ , cdidsiArcStatus
71+ , cdidsiWebPropertyId
72+ , cdidsiDealId
73+
66 -- * CreativeServingRestrictionsItemContextsItem
74 -- * CreativeServingRestrictionsItemContextsItem
67 , CreativeServingRestrictionsItemContextsItem
75 , CreativeServingRestrictionsItemContextsItem
68 , creativeServingRestrictionsItemContextsItem
76 , creativeServingRestrictionsItemContextsItem
@@ -155,9 +163,16 @@ module Network.Google.AdExchangeBuyer.Types
155 -- * CreativeCorrectionsItem
163 -- * CreativeCorrectionsItem
156 , CreativeCorrectionsItem
164 , CreativeCorrectionsItem
157 , creativeCorrectionsItem
165 , creativeCorrectionsItem
166+ , cciContexts
158 , cciReason
167 , cciReason
159 , cciDetails
168 , cciDetails
160
169
170+ -- * DealTermsRubiconNonGuaranteedTerms
171+ , DealTermsRubiconNonGuaranteedTerms
172+ , dealTermsRubiconNonGuaranteedTerms
173+ , dtrngtPriorityPrice
174+ , dtrngtStandardPrice
175+
161 -- * DealServingMetadata
176 -- * DealServingMetadata
162 , DealServingMetadata
177 , DealServingMetadata
163 , dealServingMetadata
178 , dealServingMetadata
@@ -202,6 +217,7 @@ module Network.Google.AdExchangeBuyer.Types
202 , cDealsStatus
217 , cDealsStatus
203 , cWidth
218 , cWidth
204 , cClickThroughURL
219 , cClickThroughURL
220+ , cLanguages
205 , cVendorType
221 , cVendorType
206 , cAccountId
222 , cAccountId
207 , cImpressionTrackingURL
223 , cImpressionTrackingURL
@@ -211,6 +227,7 @@ module Network.Google.AdExchangeBuyer.Types
211 , cVideoURL
227 , cVideoURL
212 , cAPIUploadTimestamp
228 , cAPIUploadTimestamp
213 , cServingRestrictions
229 , cServingRestrictions
230+ , cDetectedDomains
214 , cOpenAuctionStatus
231 , cOpenAuctionStatus
215
232
216 -- * TargetingValueDayPartTargetingDayPart
233 -- * TargetingValueDayPartTargetingDayPart
@@ -227,6 +244,7 @@ module Network.Google.AdExchangeBuyer.Types
227 , dimensionDimensionValue
244 , dimensionDimensionValue
228 , ddvName
245 , ddvName
229 , ddvId
246 , ddvId
247+ , ddvPercentage
230
248
231 -- * PretargetingConfigList
249 -- * PretargetingConfigList
232 , PretargetingConfigList
250 , PretargetingConfigList
@@ -362,12 +380,14 @@ module Network.Google.AdExchangeBuyer.Types
362 , targetingValueCreativeSize
380 , targetingValueCreativeSize
363 , tvcsSize
381 , tvcsSize
364 , tvcsCompanionSizes
382 , tvcsCompanionSizes
383+ , tvcsSkippableAdType
365 , tvcsCreativeSizeType
384 , tvcsCreativeSizeType
366
385
367 -- * DealTermsGuaranteedFixedPriceTermsBillingInfo
386 -- * DealTermsGuaranteedFixedPriceTermsBillingInfo
368 , DealTermsGuaranteedFixedPriceTermsBillingInfo
387 , DealTermsGuaranteedFixedPriceTermsBillingInfo
369 , dealTermsGuaranteedFixedPriceTermsBillingInfo
388 , dealTermsGuaranteedFixedPriceTermsBillingInfo
370 , dtgfptbiCurrencyConversionTimeMs
389 , dtgfptbiCurrencyConversionTimeMs
390+ , dtgfptbiDfpLineItemId
371 , dtgfptbiPrice
391 , dtgfptbiPrice
372 , dtgfptbiOriginalContractedQuantity
392 , dtgfptbiOriginalContractedQuantity
373
393
@@ -385,6 +405,7 @@ module Network.Google.AdExchangeBuyer.Types
385 , pBuyerContacts
405 , pBuyerContacts
386 , pKind
406 , pKind
387 , pOriginatorRole
407 , pOriginatorRole
408+ , pDBmAdvertiserIds
388 , pRevisionNumber
409 , pRevisionNumber
389 , pBilledBuyer
410 , pBilledBuyer
390 , pPrivateAuctionId
411 , pPrivateAuctionId
@@ -433,6 +454,14 @@ module Network.Google.AdExchangeBuyer.Types
433 , pcdiHeight
454 , pcdiHeight
434 , pcdiWidth
455 , pcdiWidth
435
456
457+ -- * CreativeCorrectionsItemContextsItem
458+ , CreativeCorrectionsItemContextsItem
459+ , creativeCorrectionsItemContextsItem
460+ , cciciPlatform
461+ , cciciContextType
462+ , cciciAuctionType
463+ , cciciGeoCriteriaId
464+
436 -- * PublisherProvidedForecast
465 -- * PublisherProvidedForecast
437 , PublisherProvidedForecast
466 , PublisherProvidedForecast
438 , publisherProvidedForecast
467 , publisherProvidedForecast
@@ -461,6 +490,7 @@ module Network.Google.AdExchangeBuyer.Types
461 , pCurrencyCode
490 , pCurrencyCode
462 , pAmountMicros
491 , pAmountMicros
463 , pPricingType
492 , pPricingType
493+ , pExpectedCpmMicros
464
494
465 -- * PretargetingConfigVideoPlayerSizesItem
495 -- * PretargetingConfigVideoPlayerSizesItem
466 , PretargetingConfigVideoPlayerSizesItem
496 , PretargetingConfigVideoPlayerSizesItem
@@ -592,6 +622,7 @@ module Network.Google.AdExchangeBuyer.Types
592 , mdDealServingMetadata
622 , mdDealServingMetadata
593 , mdFlightStartTimeMs
623 , mdFlightStartTimeMs
594 , mdSharedTargetings
624 , mdSharedTargetings
625+ , mdIsRfpTemplate
595 , mdProposalId
626 , mdProposalId
596 , mdDealId
627 , mdDealId
597 , mdInventoryDescription
628 , mdInventoryDescription
@@ -634,12 +665,20 @@ module Network.Google.AdExchangeBuyer.Types
634 , dtEstimatedGrossSpend
665 , dtEstimatedGrossSpend
635 , dtNonGuaranteedFixedPriceTerms
666 , dtNonGuaranteedFixedPriceTerms
636 , dtNonGuaranteedAuctionTerms
667 , dtNonGuaranteedAuctionTerms
668+ , dtRubiconNonGuaranteedTerms
637 , dtBrandingType
669 , dtBrandingType
670+ , dtCrossListedExternalDealIdType
638 , dtEstimatedImpressionsPerDay
671 , dtEstimatedImpressionsPerDay
639 , dtSellerTimeZone
672 , dtSellerTimeZone
640 , dtGuaranteedFixedPriceTerms
673 , dtGuaranteedFixedPriceTerms
641 , dtDescription
674 , dtDescription
642
675
676+ -- * CreativeDealIds
677+ , CreativeDealIds
678+ , creativeDealIds
679+ , cdiKind
680+ , cdiDealStatuses
681+
643 -- * MarketplaceLabel
682 -- * MarketplaceLabel
644 , MarketplaceLabel
683 , MarketplaceLabel
645 , marketplaceLabel
684 , marketplaceLabel
@@ -667,7 +706,9 @@ module Network.Google.AdExchangeBuyer.Types
667 , DealServingMetadataDealPauseStatus
706 , DealServingMetadataDealPauseStatus
668 , dealServingMetadataDealPauseStatus
707 , dealServingMetadataDealPauseStatus
669 , dsmdpsFirstPausedBy
708 , dsmdpsFirstPausedBy
709+ , dsmdpsBuyerPauseReason
670 , dsmdpsHasBuyerPaused
710 , dsmdpsHasBuyerPaused
711+ , dsmdpsSellerPauseReason
671 , dsmdpsHasSellerPaused
712 , dsmdpsHasSellerPaused
672
713
673 -- * DealTermsGuaranteedFixedPriceTerms
714 -- * DealTermsGuaranteedFixedPriceTerms
@@ -677,6 +718,7 @@ module Network.Google.AdExchangeBuyer.Types
677 , dtgfptGuaranteedImpressions
718 , dtgfptGuaranteedImpressions
678 , dtgfptBillingInfo
719 , dtgfptBillingInfo
679 , dtgfptFixedPrices
720 , dtgfptFixedPrices
721+ , dtgfptMinimumDailyLooks
680 ) where
722 ) where
681
723
682import Network.Google.AdExchangeBuyer.Types.Product
724import Network.Google.AdExchangeBuyer.Types.Product
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs+498−41
@@ -139,7 +139,8 @@ instance ToJSON MarketplaceNote where
139 ("noteId" .=) <$> _mnNoteId,
139 ("noteId" .=) <$> _mnNoteId,
140 ("creatorRole" .=) <$> _mnCreatorRole])
140 ("creatorRole" .=) <$> _mnCreatorRole])
141
141
142−-- | If nativeAd is set, HTMLSnippet and videoURL should not be set.
142+-- | If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd
143+-- should not be set. (The videoURL inside nativeAd can be set.)
143--
144--
144-- /See:/ 'creativeNATiveAd' smart constructor.
145-- /See:/ 'creativeNATiveAd' smart constructor.
145data CreativeNATiveAd = CreativeNATiveAd'
146data CreativeNATiveAd = CreativeNATiveAd'
@@ -151,6 +152,7 @@ data CreativeNATiveAd = CreativeNATiveAd'
151 , _cnataImpressionTrackingURL :: !(Maybe [Text])
152 , _cnataImpressionTrackingURL :: !(Maybe [Text])
152 , _cnataCallToAction :: !(Maybe Text)
153 , _cnataCallToAction :: !(Maybe Text)
153 , _cnataStore :: !(Maybe Text)
154 , _cnataStore :: !(Maybe Text)
155+ , _cnataVideoURL :: !(Maybe Text)
154 , _cnataPrice :: !(Maybe Text)
156 , _cnataPrice :: !(Maybe Text)
155 , _cnataAdvertiser :: !(Maybe Text)
157 , _cnataAdvertiser :: !(Maybe Text)
156 , _cnataStarRating :: !(Maybe (Textual Double))
158 , _cnataStarRating :: !(Maybe (Textual Double))
@@ -177,6 +179,8 @@ data CreativeNATiveAd = CreativeNATiveAd'
177--
179--
178-- * 'cnataStore'
180-- * 'cnataStore'
179--
181--
182+-- * 'cnataVideoURL'
183+--
180-- * 'cnataPrice'
184-- * 'cnataPrice'
181--
185--
182-- * 'cnataAdvertiser'
186-- * 'cnataAdvertiser'
@@ -196,6 +200,7 @@ creativeNATiveAd =
196 , _cnataImpressionTrackingURL = Nothing
200 , _cnataImpressionTrackingURL = Nothing
197 , _cnataCallToAction = Nothing
201 , _cnataCallToAction = Nothing
198 , _cnataStore = Nothing
202 , _cnataStore = Nothing
203+ , _cnataVideoURL = Nothing
199 , _cnataPrice = Nothing
204 , _cnataPrice = Nothing
200 , _cnataAdvertiser = Nothing
205 , _cnataAdvertiser = Nothing
201 , _cnataStarRating = Nothing
206 , _cnataStarRating = Nothing
@@ -248,6 +253,11 @@ cnataStore :: Lens' CreativeNATiveAd (Maybe Text)
248cnataStore
253cnataStore
249 = lens _cnataStore (\ s a -> s{_cnataStore = a})
254 = lens _cnataStore (\ s a -> s{_cnataStore = a})
250
255
256+cnataVideoURL :: Lens' CreativeNATiveAd (Maybe Text)
257+cnataVideoURL
258+ = lens _cnataVideoURL
259+ (\ s a -> s{_cnataVideoURL = a})
260+
251-- | The price of the promoted app including the currency info.
261-- | The price of the promoted app including the currency info.
252cnataPrice :: Lens' CreativeNATiveAd (Maybe Text)
262cnataPrice :: Lens' CreativeNATiveAd (Maybe Text)
253cnataPrice
263cnataPrice
@@ -282,6 +292,7 @@ instance FromJSON CreativeNATiveAd where
282 <*> (o .:? "impressionTrackingUrl" .!= mempty)
292 <*> (o .:? "impressionTrackingUrl" .!= mempty)
283 <*> (o .:? "callToAction")
293 <*> (o .:? "callToAction")
284 <*> (o .:? "store")
294 <*> (o .:? "store")
295+ <*> (o .:? "videoURL")
285 <*> (o .:? "price")
296 <*> (o .:? "price")
286 <*> (o .:? "advertiser")
297 <*> (o .:? "advertiser")
287 <*> (o .:? "starRating")
298 <*> (o .:? "starRating")
@@ -300,6 +311,7 @@ instance ToJSON CreativeNATiveAd where
300 _cnataImpressionTrackingURL,
311 _cnataImpressionTrackingURL,
301 ("callToAction" .=) <$> _cnataCallToAction,
312 ("callToAction" .=) <$> _cnataCallToAction,
302 ("store" .=) <$> _cnataStore,
313 ("store" .=) <$> _cnataStore,
314+ ("videoURL" .=) <$> _cnataVideoURL,
303 ("price" .=) <$> _cnataPrice,
315 ("price" .=) <$> _cnataPrice,
304 ("advertiser" .=) <$> _cnataAdvertiser,
316 ("advertiser" .=) <$> _cnataAdvertiser,
305 ("starRating" .=) <$> _cnataStarRating,
317 ("starRating" .=) <$> _cnataStarRating,
@@ -419,6 +431,68 @@ instance ToJSON CreativesList where
419 [("nextPageToken" .=) <$> _clNextPageToken,
431 [("nextPageToken" .=) <$> _clNextPageToken,
420 Just ("kind" .= _clKind), ("items" .=) <$> _clItems])
432 Just ("kind" .= _clKind), ("items" .=) <$> _clItems])
421
433
434+--
435+-- /See:/ 'creativeDealIdsDealStatusesItem' smart constructor.
436+data CreativeDealIdsDealStatusesItem = CreativeDealIdsDealStatusesItem'
437+ { _cdidsiArcStatus :: !(Maybe Text)
438+ , _cdidsiWebPropertyId :: !(Maybe (Textual Int32))
439+ , _cdidsiDealId :: !(Maybe (Textual Int64))
440+ } deriving (Eq,Show,Data,Typeable,Generic)
441+
442+-- | Creates a value of 'CreativeDealIdsDealStatusesItem' with the minimum fields required to make a request.
443+--
444+-- Use one of the following lenses to modify other fields as desired:
445+--
446+-- * 'cdidsiArcStatus'
447+--
448+-- * 'cdidsiWebPropertyId'
449+--
450+-- * 'cdidsiDealId'
451+creativeDealIdsDealStatusesItem
452+ :: CreativeDealIdsDealStatusesItem
453+creativeDealIdsDealStatusesItem =
454+ CreativeDealIdsDealStatusesItem'
455+ { _cdidsiArcStatus = Nothing
456+ , _cdidsiWebPropertyId = Nothing
457+ , _cdidsiDealId = Nothing
458+ }
459+
460+-- | ARC approval status.
461+cdidsiArcStatus :: Lens' CreativeDealIdsDealStatusesItem (Maybe Text)
462+cdidsiArcStatus
463+ = lens _cdidsiArcStatus
464+ (\ s a -> s{_cdidsiArcStatus = a})
465+
466+-- | Publisher ID.
467+cdidsiWebPropertyId :: Lens' CreativeDealIdsDealStatusesItem (Maybe Int32)
468+cdidsiWebPropertyId
469+ = lens _cdidsiWebPropertyId
470+ (\ s a -> s{_cdidsiWebPropertyId = a})
471+ . mapping _Coerce
472+
473+-- | External deal ID.
474+cdidsiDealId :: Lens' CreativeDealIdsDealStatusesItem (Maybe Int64)
475+cdidsiDealId
476+ = lens _cdidsiDealId (\ s a -> s{_cdidsiDealId = a})
477+ . mapping _Coerce
478+
479+instance FromJSON CreativeDealIdsDealStatusesItem
480+ where
481+ parseJSON
482+ = withObject "CreativeDealIdsDealStatusesItem"
483+ (\ o ->
484+ CreativeDealIdsDealStatusesItem' <$>
485+ (o .:? "arcStatus") <*> (o .:? "webPropertyId") <*>
486+ (o .:? "dealId"))
487+
488+instance ToJSON CreativeDealIdsDealStatusesItem where
489+ toJSON CreativeDealIdsDealStatusesItem'{..}
490+ = object
491+ (catMaybes
492+ [("arcStatus" .=) <$> _cdidsiArcStatus,
493+ ("webPropertyId" .=) <$> _cdidsiWebPropertyId,
494+ ("dealId" .=) <$> _cdidsiDealId])
495+
422--
496--
423-- /See:/ 'creativeServingRestrictionsItemContextsItem' smart constructor.
497-- /See:/ 'creativeServingRestrictionsItemContextsItem' smart constructor.
424data CreativeServingRestrictionsItemContextsItem = CreativeServingRestrictionsItemContextsItem'
498data CreativeServingRestrictionsItemContextsItem = CreativeServingRestrictionsItemContextsItem'
@@ -921,7 +995,10 @@ getOrderNotesResponse =
921 { _gonrNotes = Nothing
995 { _gonrNotes = Nothing
922 }
996 }
923
997
924−-- | The list of matching notes.
998+-- | The list of matching notes. The notes for a proposal are ordered from
999+-- oldest to newest. If the notes span multiple proposals, they will be
1000+-- grouped by proposal, with the notes for the most recently modified
1001+-- proposal appearing first.
925gonrNotes :: Lens' GetOrderNotesResponse [MarketplaceNote]
1002gonrNotes :: Lens' GetOrderNotesResponse [MarketplaceNote]
926gonrNotes
1003gonrNotes
927 = lens _gonrNotes (\ s a -> s{_gonrNotes = a}) .
1004 = lens _gonrNotes (\ s a -> s{_gonrNotes = a}) .
@@ -1187,14 +1264,17 @@ instance ToJSON CreateOrdersRequest where
1187--
1264--
1188-- /See:/ 'creativeCorrectionsItem' smart constructor.
1265-- /See:/ 'creativeCorrectionsItem' smart constructor.
1189data CreativeCorrectionsItem = CreativeCorrectionsItem'
1266data CreativeCorrectionsItem = CreativeCorrectionsItem'
1267+ { _cciContexts :: !(Maybe [CreativeCorrectionsItemContextsItem])
1190− { _cciReason :: !(Maybe Text)
1268+ , _cciReason :: !(Maybe Text)
1191− , _cciDetails :: !(Maybe [Text])
1269+ , _cciDetails :: !(Maybe [Text])
1192 } deriving (Eq,Show,Data,Typeable,Generic)
1270 } deriving (Eq,Show,Data,Typeable,Generic)
1193
1271
1194-- | Creates a value of 'CreativeCorrectionsItem' with the minimum fields required to make a request.
1272-- | Creates a value of 'CreativeCorrectionsItem' with the minimum fields required to make a request.
1195--
1273--
1196-- Use one of the following lenses to modify other fields as desired:
1274-- Use one of the following lenses to modify other fields as desired:
1197--
1275--
1276+-- * 'cciContexts'
1277+--
1198-- * 'cciReason'
1278-- * 'cciReason'
1199--
1279--
1200-- * 'cciDetails'
1280-- * 'cciDetails'
@@ -1202,10 +1282,18 @@ creativeCorrectionsItem
1202 :: CreativeCorrectionsItem
1282 :: CreativeCorrectionsItem
1203creativeCorrectionsItem =
1283creativeCorrectionsItem =
1204 CreativeCorrectionsItem'
1284 CreativeCorrectionsItem'
1285+ { _cciContexts = Nothing
1205− { _cciReason = Nothing
1286+ , _cciReason = Nothing
1206 , _cciDetails = Nothing
1287 , _cciDetails = Nothing
1207 }
1288 }
1208
1289
1290+-- | All known serving contexts containing serving status information.
1291+cciContexts :: Lens' CreativeCorrectionsItem [CreativeCorrectionsItemContextsItem]
1292+cciContexts
1293+ = lens _cciContexts (\ s a -> s{_cciContexts = a}) .
1294+ _Default
1295+ . _Coerce
1296+
1209-- | The type of correction that was applied to the creative.
1297-- | The type of correction that was applied to the creative.
1210cciReason :: Lens' CreativeCorrectionsItem (Maybe Text)
1298cciReason :: Lens' CreativeCorrectionsItem (Maybe Text)
1211cciReason
1299cciReason
@@ -1223,15 +1311,67 @@ instance FromJSON CreativeCorrectionsItem where
1223 = withObject "CreativeCorrectionsItem"
1311 = withObject "CreativeCorrectionsItem"
1224 (\ o ->
1312 (\ o ->
1225 CreativeCorrectionsItem' <$>
1313 CreativeCorrectionsItem' <$>
1314+ (o .:? "contexts" .!= mempty) <*> (o .:? "reason")
1226− (o .:? "reason") <*> (o .:? "details" .!= mempty))
1315+ <*> (o .:? "details" .!= mempty))
1227
1316
1228instance ToJSON CreativeCorrectionsItem where
1317instance ToJSON CreativeCorrectionsItem where
1229 toJSON CreativeCorrectionsItem'{..}
1318 toJSON CreativeCorrectionsItem'{..}
1230 = object
1319 = object
1231 (catMaybes
1320 (catMaybes
1321+ [("contexts" .=) <$> _cciContexts,
1232− [("reason" .=) <$> _cciReason,
1322+ ("reason" .=) <$> _cciReason,
1233 ("details" .=) <$> _cciDetails])
1323 ("details" .=) <$> _cciDetails])
1234
1324
1325+--
1326+-- /See:/ 'dealTermsRubiconNonGuaranteedTerms' smart constructor.
1327+data DealTermsRubiconNonGuaranteedTerms = DealTermsRubiconNonGuaranteedTerms'
1328+ { _dtrngtPriorityPrice :: !(Maybe Price)
1329+ , _dtrngtStandardPrice :: !(Maybe Price)
1330+ } deriving (Eq,Show,Data,Typeable,Generic)
1331+
1332+-- | Creates a value of 'DealTermsRubiconNonGuaranteedTerms' with the minimum fields required to make a request.
1333+--
1334+-- Use one of the following lenses to modify other fields as desired:
1335+--
1336+-- * 'dtrngtPriorityPrice'
1337+--
1338+-- * 'dtrngtStandardPrice'
1339+dealTermsRubiconNonGuaranteedTerms
1340+ :: DealTermsRubiconNonGuaranteedTerms
1341+dealTermsRubiconNonGuaranteedTerms =
1342+ DealTermsRubiconNonGuaranteedTerms'
1343+ { _dtrngtPriorityPrice = Nothing
1344+ , _dtrngtStandardPrice = Nothing
1345+ }
1346+
1347+-- | Optional price for Rubicon priority access in the auction.
1348+dtrngtPriorityPrice :: Lens' DealTermsRubiconNonGuaranteedTerms (Maybe Price)
1349+dtrngtPriorityPrice
1350+ = lens _dtrngtPriorityPrice
1351+ (\ s a -> s{_dtrngtPriorityPrice = a})
1352+
1353+-- | Optional price for Rubicon standard access in the auction.
1354+dtrngtStandardPrice :: Lens' DealTermsRubiconNonGuaranteedTerms (Maybe Price)
1355+dtrngtStandardPrice
1356+ = lens _dtrngtStandardPrice
1357+ (\ s a -> s{_dtrngtStandardPrice = a})
1358+
1359+instance FromJSON DealTermsRubiconNonGuaranteedTerms
1360+ where
1361+ parseJSON
1362+ = withObject "DealTermsRubiconNonGuaranteedTerms"
1363+ (\ o ->
1364+ DealTermsRubiconNonGuaranteedTerms' <$>
1365+ (o .:? "priorityPrice") <*> (o .:? "standardPrice"))
1366+
1367+instance ToJSON DealTermsRubiconNonGuaranteedTerms
1368+ where
1369+ toJSON DealTermsRubiconNonGuaranteedTerms'{..}
1370+ = object
1371+ (catMaybes
1372+ [("priorityPrice" .=) <$> _dtrngtPriorityPrice,
1373+ ("standardPrice" .=) <$> _dtrngtStandardPrice])
1374+
1235--
1375--
1236-- /See:/ 'dealServingMetadata' smart constructor.
1376-- /See:/ 'dealServingMetadata' smart constructor.
1237newtype DealServingMetadata = DealServingMetadata'
1377newtype DealServingMetadata = DealServingMetadata'
@@ -1467,6 +1607,7 @@ data Creative = Creative'
1467 , _cDealsStatus :: !(Maybe Text)
1607 , _cDealsStatus :: !(Maybe Text)
1468 , _cWidth :: !(Maybe (Textual Int32))
1608 , _cWidth :: !(Maybe (Textual Int32))
1469 , _cClickThroughURL :: !(Maybe [Text])
1609 , _cClickThroughURL :: !(Maybe [Text])
1610+ , _cLanguages :: !(Maybe [Text])
1470 , _cVendorType :: !(Maybe [Textual Int32])
1611 , _cVendorType :: !(Maybe [Textual Int32])
1471 , _cAccountId :: !(Maybe (Textual Int32))
1612 , _cAccountId :: !(Maybe (Textual Int32))
1472 , _cImpressionTrackingURL :: !(Maybe [Text])
1613 , _cImpressionTrackingURL :: !(Maybe [Text])
@@ -1476,6 +1617,7 @@ data Creative = Creative'
1476 , _cVideoURL :: !(Maybe Text)
1617 , _cVideoURL :: !(Maybe Text)
1477 , _cAPIUploadTimestamp :: !(Maybe DateTime')
1618 , _cAPIUploadTimestamp :: !(Maybe DateTime')
1478 , _cServingRestrictions :: !(Maybe [CreativeServingRestrictionsItem])
1619 , _cServingRestrictions :: !(Maybe [CreativeServingRestrictionsItem])
1620+ , _cDetectedDomains :: !(Maybe [Text])
1479 , _cOpenAuctionStatus :: !(Maybe Text)
1621 , _cOpenAuctionStatus :: !(Maybe Text)
1480 } deriving (Eq,Show,Data,Typeable,Generic)
1622 } deriving (Eq,Show,Data,Typeable,Generic)
1481
1623
@@ -1515,6 +1657,8 @@ data Creative = Creative'
1515--
1657--
1516-- * 'cClickThroughURL'
1658-- * 'cClickThroughURL'
1517--
1659--
1660+-- * 'cLanguages'
1661+--
1518-- * 'cVendorType'
1662-- * 'cVendorType'
1519--
1663--
1520-- * 'cAccountId'
1664-- * 'cAccountId'
@@ -1533,6 +1677,8 @@ data Creative = Creative'
1533--
1677--
1534-- * 'cServingRestrictions'
1678-- * 'cServingRestrictions'
1535--
1679--
1680+-- * 'cDetectedDomains'
1681+--
1536-- * 'cOpenAuctionStatus'
1682-- * 'cOpenAuctionStatus'
1537creative
1683creative
1538 :: Creative
1684 :: Creative
@@ -1554,6 +1700,7 @@ creative =
1554 , _cDealsStatus = Nothing
1700 , _cDealsStatus = Nothing
1555 , _cWidth = Nothing
1701 , _cWidth = Nothing
1556 , _cClickThroughURL = Nothing
1702 , _cClickThroughURL = Nothing
1703+ , _cLanguages = Nothing
1557 , _cVendorType = Nothing
1704 , _cVendorType = Nothing
1558 , _cAccountId = Nothing
1705 , _cAccountId = Nothing
1559 , _cImpressionTrackingURL = Nothing
1706 , _cImpressionTrackingURL = Nothing
@@ -1563,6 +1710,7 @@ creative =
1563 , _cVideoURL = Nothing
1710 , _cVideoURL = Nothing
1564 , _cAPIUploadTimestamp = Nothing
1711 , _cAPIUploadTimestamp = Nothing
1565 , _cServingRestrictions = Nothing
1712 , _cServingRestrictions = Nothing
1713+ , _cDetectedDomains = Nothing
1566 , _cOpenAuctionStatus = Nothing
1714 , _cOpenAuctionStatus = Nothing
1567 }
1715 }
1568
1716
@@ -1573,7 +1721,8 @@ cAttribute
1573 _Default
1721 _Default
1574 . _Coerce
1722 . _Coerce
1575
1723
1576−-- | If nativeAd is set, HTMLSnippet and videoURL should not be set.
1724+-- | If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd
1725+-- should not be set. (The videoURL inside nativeAd can be set.)
1577cNATiveAd :: Lens' Creative (Maybe CreativeNATiveAd)
1726cNATiveAd :: Lens' Creative (Maybe CreativeNATiveAd)
1578cNATiveAd
1727cNATiveAd
1579 = lens _cNATiveAd (\ s a -> s{_cNATiveAd = a})
1728 = lens _cNATiveAd (\ s a -> s{_cNATiveAd = a})
@@ -1677,6 +1826,14 @@ cClickThroughURL
1677 . _Default
1826 . _Default
1678 . _Coerce
1827 . _Coerce
1679
1828
1829+-- | Detected languages for this creative. Read-only. This field should not
1830+-- be set in requests.
1831+cLanguages :: Lens' Creative [Text]
1832+cLanguages
1833+ = lens _cLanguages (\ s a -> s{_cLanguages = a}) .
1834+ _Default
1835+ . _Coerce
1836+
1680-- | All vendor types for the ads that may be shown from this snippet.
1837-- | All vendor types for the ads that may be shown from this snippet.
1681cVendorType :: Lens' Creative [Int32]
1838cVendorType :: Lens' Creative [Int32]
1682cVendorType
1839cVendorType
@@ -1721,7 +1878,9 @@ cSensitiveCategories
1721 . _Default
1878 . _Default
1722 . _Coerce
1879 . _Coerce
1723
1880
1724−-- | The url to fetch a video ad. If set, HTMLSnippet should not be set.
1881+-- | The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should
1882+-- not be set. Note, this is diffrent from resource.native_ad.video_url
1883+-- above.
1725cVideoURL :: Lens' Creative (Maybe Text)
1884cVideoURL :: Lens' Creative (Maybe Text)
1726cVideoURL
1885cVideoURL
1727 = lens _cVideoURL (\ s a -> s{_cVideoURL = a})
1886 = lens _cVideoURL (\ s a -> s{_cVideoURL = a})
@@ -1746,6 +1905,15 @@ cServingRestrictions
1746 . _Default
1905 . _Default
1747 . _Coerce
1906 . _Coerce
1748
1907
1908+-- | Detected domains for this creative. Read-only. This field should not be
1909+-- set in requests.
1910+cDetectedDomains :: Lens' Creative [Text]
1911+cDetectedDomains
1912+ = lens _cDetectedDomains
1913+ (\ s a -> s{_cDetectedDomains = a})
1914+ . _Default
1915+ . _Coerce
1916+
1749-- | Top-level open auction status. Read-only. This field should not be set
1917-- | Top-level open auction status. Read-only. This field should not be set
1750-- in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or
1918-- in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or
1751-- ALL) in servingRestrictions will also exist. Note that this may be
1919-- ALL) in servingRestrictions will also exist. Note that this may be
@@ -1776,6 +1944,7 @@ instance FromJSON Creative where
1776 <*> (o .:? "dealsStatus")
1944 <*> (o .:? "dealsStatus")
1777 <*> (o .:? "width")
1945 <*> (o .:? "width")
1778 <*> (o .:? "clickThroughUrl" .!= mempty)
1946 <*> (o .:? "clickThroughUrl" .!= mempty)
1947+ <*> (o .:? "languages" .!= mempty)
1779 <*> (o .:? "vendorType" .!= mempty)
1948 <*> (o .:? "vendorType" .!= mempty)
1780 <*> (o .:? "accountId")
1949 <*> (o .:? "accountId")
1781 <*> (o .:? "impressionTrackingUrl" .!= mempty)
1950 <*> (o .:? "impressionTrackingUrl" .!= mempty)
@@ -1785,6 +1954,7 @@ instance FromJSON Creative where
1785 <*> (o .:? "videoURL")
1954 <*> (o .:? "videoURL")
1786 <*> (o .:? "apiUploadTimestamp")
1955 <*> (o .:? "apiUploadTimestamp")
1787 <*> (o .:? "servingRestrictions" .!= mempty)
1956 <*> (o .:? "servingRestrictions" .!= mempty)
1957+ <*> (o .:? "detectedDomains" .!= mempty)
1788 <*> (o .:? "openAuctionStatus"))
1958 <*> (o .:? "openAuctionStatus"))
1789
1959
1790instance ToJSON Creative where
1960instance ToJSON Creative where
@@ -1809,6 +1979,7 @@ instance ToJSON Creative where
1809 ("dealsStatus" .=) <$> _cDealsStatus,
1979 ("dealsStatus" .=) <$> _cDealsStatus,
1810 ("width" .=) <$> _cWidth,
1980 ("width" .=) <$> _cWidth,
1811 ("clickThroughUrl" .=) <$> _cClickThroughURL,
1981 ("clickThroughUrl" .=) <$> _cClickThroughURL,
1982+ ("languages" .=) <$> _cLanguages,
1812 ("vendorType" .=) <$> _cVendorType,
1983 ("vendorType" .=) <$> _cVendorType,
1813 ("accountId" .=) <$> _cAccountId,
1984 ("accountId" .=) <$> _cAccountId,
1814 ("impressionTrackingUrl" .=) <$>
1985 ("impressionTrackingUrl" .=) <$>
@@ -1819,6 +1990,7 @@ instance ToJSON Creative where
1819 ("videoURL" .=) <$> _cVideoURL,
1990 ("videoURL" .=) <$> _cVideoURL,
1820 ("apiUploadTimestamp" .=) <$> _cAPIUploadTimestamp,
1991 ("apiUploadTimestamp" .=) <$> _cAPIUploadTimestamp,
1821 ("servingRestrictions" .=) <$> _cServingRestrictions,
1992 ("servingRestrictions" .=) <$> _cServingRestrictions,
1993+ ("detectedDomains" .=) <$> _cDetectedDomains,
1822 ("openAuctionStatus" .=) <$> _cOpenAuctionStatus])
1994 ("openAuctionStatus" .=) <$> _cOpenAuctionStatus])
1823
1995
1824--
1996--
@@ -1910,8 +2082,9 @@ instance ToJSON TargetingValueDayPartTargetingDayPart
1910--
2082--
1911-- /See:/ 'dimensionDimensionValue' smart constructor.
2083-- /See:/ 'dimensionDimensionValue' smart constructor.
1912data DimensionDimensionValue = DimensionDimensionValue'
2084data DimensionDimensionValue = DimensionDimensionValue'
1913− { _ddvName :: !(Maybe Text)
2085+ { _ddvName :: !(Maybe Text)
2086+ , _ddvId :: !(Maybe (Textual Int32))
1914− , _ddvId :: !(Maybe (Textual Int32))
2087+ , _ddvPercentage :: !(Maybe (Textual Int32))
1915 } deriving (Eq,Show,Data,Typeable,Generic)
2088 } deriving (Eq,Show,Data,Typeable,Generic)
1916
2089
1917-- | Creates a value of 'DimensionDimensionValue' with the minimum fields required to make a request.
2090-- | Creates a value of 'DimensionDimensionValue' with the minimum fields required to make a request.
@@ -1921,15 +2094,19 @@ data DimensionDimensionValue = DimensionDimensionValue'
1921-- * 'ddvName'
2094-- * 'ddvName'
1922--
2095--
1923-- * 'ddvId'
2096-- * 'ddvId'
2097+--
2098+-- * 'ddvPercentage'
1924dimensionDimensionValue
2099dimensionDimensionValue
1925 :: DimensionDimensionValue
2100 :: DimensionDimensionValue
1926dimensionDimensionValue =
2101dimensionDimensionValue =
1927 DimensionDimensionValue'
2102 DimensionDimensionValue'
1928 { _ddvName = Nothing
2103 { _ddvName = Nothing
1929 , _ddvId = Nothing
2104 , _ddvId = Nothing
2105+ , _ddvPercentage = Nothing
1930 }
2106 }
1931
2107
1932−-- | Name of the dimension mainly for debugging purposes.
2108+-- | Name of the dimension mainly for debugging purposes, except for the case
2109+-- of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids.
1933ddvName :: Lens' DimensionDimensionValue (Maybe Text)
2110ddvName :: Lens' DimensionDimensionValue (Maybe Text)
1934ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
2111ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
1935
2112
@@ -1939,18 +2116,29 @@ ddvId
1939 = lens _ddvId (\ s a -> s{_ddvId = a}) .
2116 = lens _ddvId (\ s a -> s{_ddvId = a}) .
1940 mapping _Coerce
2117 mapping _Coerce
1941
2118
2119+-- | Percent of total impressions for a dimension type. e.g. {dimension_type:
2120+-- \'GENDER\', [{dimension_value: {id: 1, name: \'MALE\', percentage:
2121+-- 60}}]} Gender MALE is 60% of all impressions which have gender.
2122+ddvPercentage :: Lens' DimensionDimensionValue (Maybe Int32)
2123+ddvPercentage
2124+ = lens _ddvPercentage
2125+ (\ s a -> s{_ddvPercentage = a})
2126+ . mapping _Coerce
2127+
1942instance FromJSON DimensionDimensionValue where
2128instance FromJSON DimensionDimensionValue where
1943 parseJSON
2129 parseJSON
1944 = withObject "DimensionDimensionValue"
2130 = withObject "DimensionDimensionValue"
1945 (\ o ->
2131 (\ o ->
1946 DimensionDimensionValue' <$>
2132 DimensionDimensionValue' <$>
1947− (o .:? "name") <*> (o .:? "id"))
2133+ (o .:? "name") <*> (o .:? "id") <*>
2134+ (o .:? "percentage"))
1948
2135
1949instance ToJSON DimensionDimensionValue where
2136instance ToJSON DimensionDimensionValue where
1950 toJSON DimensionDimensionValue'{..}
2137 toJSON DimensionDimensionValue'{..}
1951 = object
2138 = object
1952 (catMaybes
2139 (catMaybes
1953− [("name" .=) <$> _ddvName, ("id" .=) <$> _ddvId])
2140+ [("name" .=) <$> _ddvName, ("id" .=) <$> _ddvId,
2141+ ("percentage" .=) <$> _ddvPercentage])
1954
2142
1955--
2143--
1956-- /See:/ 'pretargetingConfigList' smart constructor.
2144-- /See:/ 'pretargetingConfigList' smart constructor.
@@ -3271,6 +3459,7 @@ instance ToJSON CreativeFilteringReasons where
3271data TargetingValueCreativeSize = TargetingValueCreativeSize'
3459data TargetingValueCreativeSize = TargetingValueCreativeSize'
3272 { _tvcsSize :: !(Maybe TargetingValueSize)
3460 { _tvcsSize :: !(Maybe TargetingValueSize)
3273 , _tvcsCompanionSizes :: !(Maybe [TargetingValueSize])
3461 , _tvcsCompanionSizes :: !(Maybe [TargetingValueSize])
3462+ , _tvcsSkippableAdType :: !(Maybe Text)
3274 , _tvcsCreativeSizeType :: !(Maybe Text)
3463 , _tvcsCreativeSizeType :: !(Maybe Text)
3275 } deriving (Eq,Show,Data,Typeable,Generic)
3464 } deriving (Eq,Show,Data,Typeable,Generic)
3276
3465
@@ -3282,6 +3471,8 @@ data TargetingValueCreativeSize = TargetingValueCreativeSize'
3282--
3471--
3283-- * 'tvcsCompanionSizes'
3472-- * 'tvcsCompanionSizes'
3284--
3473--
3474+-- * 'tvcsSkippableAdType'
3475+--
3285-- * 'tvcsCreativeSizeType'
3476-- * 'tvcsCreativeSizeType'
3286targetingValueCreativeSize
3477targetingValueCreativeSize
3287 :: TargetingValueCreativeSize
3478 :: TargetingValueCreativeSize
@@ -3289,6 +3480,7 @@ targetingValueCreativeSize =
3289 TargetingValueCreativeSize'
3480 TargetingValueCreativeSize'
3290 { _tvcsSize = Nothing
3481 { _tvcsSize = Nothing
3291 , _tvcsCompanionSizes = Nothing
3482 , _tvcsCompanionSizes = Nothing
3483+ , _tvcsSkippableAdType = Nothing
3292 , _tvcsCreativeSizeType = Nothing
3484 , _tvcsCreativeSizeType = Nothing
3293 }
3485 }
3294
3486
@@ -3305,6 +3497,12 @@ tvcsCompanionSizes
3305 . _Default
3497 . _Default
3306 . _Coerce
3498 . _Coerce
3307
3499
3500+-- | The skippable ad type for video size.
3501+tvcsSkippableAdType :: Lens' TargetingValueCreativeSize (Maybe Text)
3502+tvcsSkippableAdType
3503+ = lens _tvcsSkippableAdType
3504+ (\ s a -> s{_tvcsSkippableAdType = a})
3505+
3308-- | The Creative size type.
3506-- | The Creative size type.
3309tvcsCreativeSizeType :: Lens' TargetingValueCreativeSize (Maybe Text)
3507tvcsCreativeSizeType :: Lens' TargetingValueCreativeSize (Maybe Text)
3310tvcsCreativeSizeType
3508tvcsCreativeSizeType
@@ -3318,6 +3516,7 @@ instance FromJSON TargetingValueCreativeSize where
3318 TargetingValueCreativeSize' <$>
3516 TargetingValueCreativeSize' <$>
3319 (o .:? "size") <*>
3517 (o .:? "size") <*>
3320 (o .:? "companionSizes" .!= mempty)
3518 (o .:? "companionSizes" .!= mempty)
3519+ <*> (o .:? "skippableAdType")
3321 <*> (o .:? "creativeSizeType"))
3520 <*> (o .:? "creativeSizeType"))
3322
3521
3323instance ToJSON TargetingValueCreativeSize where
3522instance ToJSON TargetingValueCreativeSize where
@@ -3326,12 +3525,14 @@ instance ToJSON TargetingValueCreativeSize where
3326 (catMaybes
3525 (catMaybes
3327 [("size" .=) <$> _tvcsSize,
3526 [("size" .=) <$> _tvcsSize,
3328 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3527 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3528+ ("skippableAdType" .=) <$> _tvcsSkippableAdType,
3329 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3529 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3330
3530
3331--
3531--
3332-- /See:/ 'dealTermsGuaranteedFixedPriceTermsBillingInfo' smart constructor.
3532-- /See:/ 'dealTermsGuaranteedFixedPriceTermsBillingInfo' smart constructor.
3333data DealTermsGuaranteedFixedPriceTermsBillingInfo = DealTermsGuaranteedFixedPriceTermsBillingInfo'
3533data DealTermsGuaranteedFixedPriceTermsBillingInfo = DealTermsGuaranteedFixedPriceTermsBillingInfo'
3334 { _dtgfptbiCurrencyConversionTimeMs :: !(Maybe (Textual Int64))
3534 { _dtgfptbiCurrencyConversionTimeMs :: !(Maybe (Textual Int64))
3535+ , _dtgfptbiDfpLineItemId :: !(Maybe (Textual Int64))
3335 , _dtgfptbiPrice :: !(Maybe Price)
3536 , _dtgfptbiPrice :: !(Maybe Price)
3336 , _dtgfptbiOriginalContractedQuantity :: !(Maybe (Textual Int64))
3537 , _dtgfptbiOriginalContractedQuantity :: !(Maybe (Textual Int64))
3337 } deriving (Eq,Show,Data,Typeable,Generic)
3538 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3342,6 +3543,8 @@ data DealTermsGuaranteedFixedPriceTermsBillingInfo = DealTermsGuaranteedFixedPri
3342--
3543--
3343-- * 'dtgfptbiCurrencyConversionTimeMs'
3544-- * 'dtgfptbiCurrencyConversionTimeMs'
3344--
3545--
3546+-- * 'dtgfptbiDfpLineItemId'
3547+--
3345-- * 'dtgfptbiPrice'
3548-- * 'dtgfptbiPrice'
3346--
3549--
3347-- * 'dtgfptbiOriginalContractedQuantity'
3550-- * 'dtgfptbiOriginalContractedQuantity'
@@ -3350,6 +3553,7 @@ dealTermsGuaranteedFixedPriceTermsBillingInfo
3350dealTermsGuaranteedFixedPriceTermsBillingInfo =
3553dealTermsGuaranteedFixedPriceTermsBillingInfo =
3351 DealTermsGuaranteedFixedPriceTermsBillingInfo'
3554 DealTermsGuaranteedFixedPriceTermsBillingInfo'
3352 { _dtgfptbiCurrencyConversionTimeMs = Nothing
3555 { _dtgfptbiCurrencyConversionTimeMs = Nothing
3556+ , _dtgfptbiDfpLineItemId = Nothing
3353 , _dtgfptbiPrice = Nothing
3557 , _dtgfptbiPrice = Nothing
3354 , _dtgfptbiOriginalContractedQuantity = Nothing
3558 , _dtgfptbiOriginalContractedQuantity = Nothing
3355 }
3559 }
@@ -3364,6 +3568,14 @@ dtgfptbiCurrencyConversionTimeMs
3364 (\ s a -> s{_dtgfptbiCurrencyConversionTimeMs = a})
3568 (\ s a -> s{_dtgfptbiCurrencyConversionTimeMs = a})
3365 . mapping _Coerce
3569 . mapping _Coerce
3366
3570
3571+-- | The DFP line item id associated with this deal. For features like CPD,
3572+-- buyers can retrieve the DFP line item for billing reconciliation.
3573+dtgfptbiDfpLineItemId :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3574+dtgfptbiDfpLineItemId
3575+ = lens _dtgfptbiDfpLineItemId
3576+ (\ s a -> s{_dtgfptbiDfpLineItemId = a})
3577+ . mapping _Coerce
3578+
3367-- | The original reservation price for the deal, if the currency code is
3579-- | The original reservation price for the deal, if the currency code is
3368-- different from the one used in negotiation.
3580-- different from the one used in negotiation.
3369dtgfptbiPrice :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Price)
3581dtgfptbiPrice :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Price)
@@ -3372,8 +3584,9 @@ dtgfptbiPrice
3372 (\ s a -> s{_dtgfptbiPrice = a})
3584 (\ s a -> s{_dtgfptbiPrice = a})
3373
3585
3374-- | The original contracted quantity (# impressions) for this deal. To
3586-- | The original contracted quantity (# impressions) for this deal. To
3375−-- ensure delivery, sometimes publisher will book the deal with a
3587+-- ensure delivery, sometimes the publisher will book the deal with a
3588+-- impression buffer, such that guaranteed_looks is greater than the
3376−-- impression buffer, however clients are billed using the original
3589+-- contracted quantity. However clients are billed using the original
3377-- contracted quantity.
3590-- contracted quantity.
3378dtgfptbiOriginalContractedQuantity :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3591dtgfptbiOriginalContractedQuantity :: Lens' DealTermsGuaranteedFixedPriceTermsBillingInfo (Maybe Int64)
3379dtgfptbiOriginalContractedQuantity
3592dtgfptbiOriginalContractedQuantity
@@ -3389,7 +3602,8 @@ instance FromJSON
3389 (\ o ->
3602 (\ o ->
3390 DealTermsGuaranteedFixedPriceTermsBillingInfo' <$>
3603 DealTermsGuaranteedFixedPriceTermsBillingInfo' <$>
3391 (o .:? "currencyConversionTimeMs") <*>
3604 (o .:? "currencyConversionTimeMs") <*>
3605+ (o .:? "dfpLineItemId")
3392− (o .:? "price")
3606+ <*> (o .:? "price")
3393 <*> (o .:? "originalContractedQuantity"))
3607 <*> (o .:? "originalContractedQuantity"))
3394
3608
3395instance ToJSON
3609instance ToJSON
@@ -3400,6 +3614,7 @@ instance ToJSON
3400 (catMaybes
3614 (catMaybes
3401 [("currencyConversionTimeMs" .=) <$>
3615 [("currencyConversionTimeMs" .=) <$>
3402 _dtgfptbiCurrencyConversionTimeMs,
3616 _dtgfptbiCurrencyConversionTimeMs,
3617+ ("dfpLineItemId" .=) <$> _dtgfptbiDfpLineItemId,
3403 ("price" .=) <$> _dtgfptbiPrice,
3618 ("price" .=) <$> _dtgfptbiPrice,
3404 ("originalContractedQuantity" .=) <$>
3619 ("originalContractedQuantity" .=) <$>
3405 _dtgfptbiOriginalContractedQuantity])
3620 _dtgfptbiOriginalContractedQuantity])
@@ -3461,6 +3676,7 @@ data Proposal = Proposal'
3461 , _pBuyerContacts :: !(Maybe [ContactInformation])
3676 , _pBuyerContacts :: !(Maybe [ContactInformation])
3462 , _pKind :: !Text
3677 , _pKind :: !Text
3463 , _pOriginatorRole :: !(Maybe Text)
3678 , _pOriginatorRole :: !(Maybe Text)
3679+ , _pDBmAdvertiserIds :: !(Maybe [Text])
3464 , _pRevisionNumber :: !(Maybe (Textual Int64))
3680 , _pRevisionNumber :: !(Maybe (Textual Int64))
3465 , _pBilledBuyer :: !(Maybe Buyer)
3681 , _pBilledBuyer :: !(Maybe Buyer)
3466 , _pPrivateAuctionId :: !(Maybe Text)
3682 , _pPrivateAuctionId :: !(Maybe Text)
@@ -3495,6 +3711,8 @@ data Proposal = Proposal'
3495--
3711--
3496-- * 'pOriginatorRole'
3712-- * 'pOriginatorRole'
3497--
3713--
3714+-- * 'pDBmAdvertiserIds'
3715+--
3498-- * 'pRevisionNumber'
3716-- * 'pRevisionNumber'
3499--
3717--
3500-- * 'pBilledBuyer'
3718-- * 'pBilledBuyer'
@@ -3536,6 +3754,7 @@ proposal =
3536 , _pBuyerContacts = Nothing
3754 , _pBuyerContacts = Nothing
3537 , _pKind = "adexchangebuyer#proposal"
3755 , _pKind = "adexchangebuyer#proposal"
3538 , _pOriginatorRole = Nothing
3756 , _pOriginatorRole = Nothing
3757+ , _pDBmAdvertiserIds = Nothing
3539 , _pRevisionNumber = Nothing
3758 , _pRevisionNumber = Nothing
3540 , _pBilledBuyer = Nothing
3759 , _pBilledBuyer = Nothing
3541 , _pPrivateAuctionId = Nothing
3760 , _pPrivateAuctionId = Nothing
@@ -3573,7 +3792,7 @@ pInventorySource
3573 = lens _pInventorySource
3792 = lens _pInventorySource
3574 (\ s a -> s{_pInventorySource = a})
3793 (\ s a -> s{_pInventorySource = a})
3575
3794
3576−-- | Optional contact information fort the buyer. (seller-readonly)
3795+-- | Optional contact information of the buyer. (seller-readonly)
3577pBuyerContacts :: Lens' Proposal [ContactInformation]
3796pBuyerContacts :: Lens' Proposal [ContactInformation]
3578pBuyerContacts
3797pBuyerContacts
3579 = lens _pBuyerContacts
3798 = lens _pBuyerContacts
@@ -3592,6 +3811,14 @@ pOriginatorRole
3592 = lens _pOriginatorRole
3811 = lens _pOriginatorRole
3593 (\ s a -> s{_pOriginatorRole = a})
3812 (\ s a -> s{_pOriginatorRole = a})
3594
3813
3814+-- | IDs of DBM advertisers permission to this proposal.
3815+pDBmAdvertiserIds :: Lens' Proposal [Text]
3816+pDBmAdvertiserIds
3817+ = lens _pDBmAdvertiserIds
3818+ (\ s a -> s{_pDBmAdvertiserIds = a})
3819+ . _Default
3820+ . _Coerce
3821+
3595-- | The revision number for the proposal (readonly).
3822-- | The revision number for the proposal (readonly).
3596pRevisionNumber :: Lens' Proposal (Maybe Int64)
3823pRevisionNumber :: Lens' Proposal (Maybe Int64)
3597pRevisionNumber
3824pRevisionNumber
@@ -3639,7 +3866,7 @@ pProposalId
3639pName :: Lens' Proposal (Maybe Text)
3866pName :: Lens' Proposal (Maybe Text)
3640pName = lens _pName (\ s a -> s{_pName = a})
3867pName = lens _pName (\ s a -> s{_pName = a})
3641
3868
3642−-- | Optional contact information for the seller (buyer-readonly).
3869+-- | Optional contact information of the seller (buyer-readonly).
3643pSellerContacts :: Lens' Proposal [ContactInformation]
3870pSellerContacts :: Lens' Proposal [ContactInformation]
3644pSellerContacts
3871pSellerContacts
3645 = lens _pSellerContacts
3872 = lens _pSellerContacts
@@ -3680,7 +3907,7 @@ pNegotiationId
3680 (\ s a -> s{_pNegotiationId = a})
3907 (\ s a -> s{_pNegotiationId = a})
3681
3908
3682-- | When an proposal is in an accepted state, indicates whether the buyer
3909-- | When an proposal is in an accepted state, indicates whether the buyer
3683−-- has signed off Once both sides have signed off on a deal, the proposal
3910+-- has signed off. Once both sides have signed off on a deal, the proposal
3684-- can be finalized by the seller. (seller-readonly)
3911-- can be finalized by the seller. (seller-readonly)
3685pHasBuyerSignedOff :: Lens' Proposal (Maybe Bool)
3912pHasBuyerSignedOff :: Lens' Proposal (Maybe Bool)
3686pHasBuyerSignedOff
3913pHasBuyerSignedOff
@@ -3702,6 +3929,7 @@ instance FromJSON Proposal where
3702 <*> (o .:? "buyerContacts" .!= mempty)
3929 <*> (o .:? "buyerContacts" .!= mempty)
3703 <*> (o .:? "kind" .!= "adexchangebuyer#proposal")
3930 <*> (o .:? "kind" .!= "adexchangebuyer#proposal")
3704 <*> (o .:? "originatorRole")
3931 <*> (o .:? "originatorRole")
3932+ <*> (o .:? "dbmAdvertiserIds" .!= mempty)
3705 <*> (o .:? "revisionNumber")
3933 <*> (o .:? "revisionNumber")
3706 <*> (o .:? "billedBuyer")
3934 <*> (o .:? "billedBuyer")
3707 <*> (o .:? "privateAuctionId")
3935 <*> (o .:? "privateAuctionId")
@@ -3729,6 +3957,7 @@ instance ToJSON Proposal where
3729 ("buyerContacts" .=) <$> _pBuyerContacts,
3957 ("buyerContacts" .=) <$> _pBuyerContacts,
3730 Just ("kind" .= _pKind),
3958 Just ("kind" .= _pKind),
3731 ("originatorRole" .=) <$> _pOriginatorRole,
3959 ("originatorRole" .=) <$> _pOriginatorRole,
3960+ ("dbmAdvertiserIds" .=) <$> _pDBmAdvertiserIds,
3732 ("revisionNumber" .=) <$> _pRevisionNumber,
3961 ("revisionNumber" .=) <$> _pRevisionNumber,
3733 ("billedBuyer" .=) <$> _pBilledBuyer,
3962 ("billedBuyer" .=) <$> _pBilledBuyer,
3734 ("privateAuctionId" .=) <$> _pPrivateAuctionId,
3963 ("privateAuctionId" .=) <$> _pPrivateAuctionId,
@@ -4004,6 +4233,90 @@ instance ToJSON PretargetingConfigDimensionsItem
4004 [("height" .=) <$> _pcdiHeight,
4233 [("height" .=) <$> _pcdiHeight,
4005 ("width" .=) <$> _pcdiWidth])
4234 ("width" .=) <$> _pcdiWidth])
4006
4235
4236+--
4237+-- /See:/ 'creativeCorrectionsItemContextsItem' smart constructor.
4238+data CreativeCorrectionsItemContextsItem = CreativeCorrectionsItemContextsItem'
4239+ { _cciciPlatform :: !(Maybe [Text])
4240+ , _cciciContextType :: !(Maybe Text)
4241+ , _cciciAuctionType :: !(Maybe [Text])
4242+ , _cciciGeoCriteriaId :: !(Maybe [Textual Int32])
4243+ } deriving (Eq,Show,Data,Typeable,Generic)
4244+
4245+-- | Creates a value of 'CreativeCorrectionsItemContextsItem' with the minimum fields required to make a request.
4246+--
4247+-- Use one of the following lenses to modify other fields as desired:
4248+--
4249+-- * 'cciciPlatform'
4250+--
4251+-- * 'cciciContextType'
4252+--
4253+-- * 'cciciAuctionType'
4254+--
4255+-- * 'cciciGeoCriteriaId'
4256+creativeCorrectionsItemContextsItem
4257+ :: CreativeCorrectionsItemContextsItem
4258+creativeCorrectionsItemContextsItem =
4259+ CreativeCorrectionsItemContextsItem'
4260+ { _cciciPlatform = Nothing
4261+ , _cciciContextType = Nothing
4262+ , _cciciAuctionType = Nothing
4263+ , _cciciGeoCriteriaId = Nothing
4264+ }
4265+
4266+-- | Only set when contextType=PLATFORM. Represents the platforms this
4267+-- correction applies to.
4268+cciciPlatform :: Lens' CreativeCorrectionsItemContextsItem [Text]
4269+cciciPlatform
4270+ = lens _cciciPlatform
4271+ (\ s a -> s{_cciciPlatform = a})
4272+ . _Default
4273+ . _Coerce
4274+
4275+-- | The type of context (e.g., location, platform, auction type, SSL-ness).
4276+cciciContextType :: Lens' CreativeCorrectionsItemContextsItem (Maybe Text)
4277+cciciContextType
4278+ = lens _cciciContextType
4279+ (\ s a -> s{_cciciContextType = a})
4280+
4281+-- | Only set when contextType=AUCTION_TYPE. Represents the auction types
4282+-- this correction applies to.
4283+cciciAuctionType :: Lens' CreativeCorrectionsItemContextsItem [Text]
4284+cciciAuctionType
4285+ = lens _cciciAuctionType
4286+ (\ s a -> s{_cciciAuctionType = a})
4287+ . _Default
4288+ . _Coerce
4289+
4290+-- | Only set when contextType=LOCATION. Represents the geo criterias this
4291+-- correction applies to.
4292+cciciGeoCriteriaId :: Lens' CreativeCorrectionsItemContextsItem [Int32]
4293+cciciGeoCriteriaId
4294+ = lens _cciciGeoCriteriaId
4295+ (\ s a -> s{_cciciGeoCriteriaId = a})
4296+ . _Default
4297+ . _Coerce
4298+
4299+instance FromJSON CreativeCorrectionsItemContextsItem
4300+ where
4301+ parseJSON
4302+ = withObject "CreativeCorrectionsItemContextsItem"
4303+ (\ o ->
4304+ CreativeCorrectionsItemContextsItem' <$>
4305+ (o .:? "platform" .!= mempty) <*>
4306+ (o .:? "contextType")
4307+ <*> (o .:? "auctionType" .!= mempty)
4308+ <*> (o .:? "geoCriteriaId" .!= mempty))
4309+
4310+instance ToJSON CreativeCorrectionsItemContextsItem
4311+ where
4312+ toJSON CreativeCorrectionsItemContextsItem'{..}
4313+ = object
4314+ (catMaybes
4315+ [("platform" .=) <$> _cciciPlatform,
4316+ ("contextType" .=) <$> _cciciContextType,
4317+ ("auctionType" .=) <$> _cciciAuctionType,
4318+ ("geoCriteriaId" .=) <$> _cciciGeoCriteriaId])
4319+
4007-- | This message carries publisher provided forecasting information.
4320-- | This message carries publisher provided forecasting information.
4008--
4321--
4009-- /See:/ 'publisherProvidedForecast' smart constructor.
4322-- /See:/ 'publisherProvidedForecast' smart constructor.
@@ -4205,9 +4518,10 @@ instance ToJSON CreativeNATiveAdAppIcon where
4205--
4518--
4206-- /See:/ 'price' smart constructor.
4519-- /See:/ 'price' smart constructor.
4207data Price = Price'
4520data Price = Price'
4208− { _pCurrencyCode :: !(Maybe Text)
4521+ { _pCurrencyCode :: !(Maybe Text)
4209− , _pAmountMicros :: !(Maybe (Textual Double))
4522+ , _pAmountMicros :: !(Maybe (Textual Double))
4210− , _pPricingType :: !(Maybe Text)
4523+ , _pPricingType :: !(Maybe Text)
4524+ , _pExpectedCpmMicros :: !(Maybe (Textual Double))
4211 } deriving (Eq,Show,Data,Typeable,Generic)
4525 } deriving (Eq,Show,Data,Typeable,Generic)
4212
4526
4213-- | Creates a value of 'Price' with the minimum fields required to make a request.
4527-- | Creates a value of 'Price' with the minimum fields required to make a request.
@@ -4219,6 +4533,8 @@ data Price = Price'
4219-- * 'pAmountMicros'
4533-- * 'pAmountMicros'
4220--
4534--
4221-- * 'pPricingType'
4535-- * 'pPricingType'
4536+--
4537+-- * 'pExpectedCpmMicros'
4222price
4538price
4223 :: Price
4539 :: Price
4224price =
4540price =
@@ -4226,6 +4542,7 @@ price =
4226 { _pCurrencyCode = Nothing
4542 { _pCurrencyCode = Nothing
4227 , _pAmountMicros = Nothing
4543 , _pAmountMicros = Nothing
4228 , _pPricingType = Nothing
4544 , _pPricingType = Nothing
4545+ , _pExpectedCpmMicros = Nothing
4229 }
4546 }
4230
4547
4231-- | The currency code for the price.
4548-- | The currency code for the price.
@@ -4246,13 +4563,21 @@ pPricingType :: Lens' Price (Maybe Text)
4246pPricingType
4563pPricingType
4247 = lens _pPricingType (\ s a -> s{_pPricingType = a})
4564 = lens _pPricingType (\ s a -> s{_pPricingType = a})
4248
4565
4566+-- | In case of CPD deals, the expected CPM in micros.
4567+pExpectedCpmMicros :: Lens' Price (Maybe Double)
4568+pExpectedCpmMicros
4569+ = lens _pExpectedCpmMicros
4570+ (\ s a -> s{_pExpectedCpmMicros = a})
4571+ . mapping _Coerce
4572+
4249instance FromJSON Price where
4573instance FromJSON Price where
4250 parseJSON
4574 parseJSON
4251 = withObject "Price"
4575 = withObject "Price"
4252 (\ o ->
4576 (\ o ->
4253 Price' <$>
4577 Price' <$>
4254 (o .:? "currencyCode") <*> (o .:? "amountMicros") <*>
4578 (o .:? "currencyCode") <*> (o .:? "amountMicros") <*>
4255− (o .:? "pricingType"))
4579+ (o .:? "pricingType")
4580+ <*> (o .:? "expectedCpmMicros"))
4256
4581
4257instance ToJSON Price where
4582instance ToJSON Price where
4258 toJSON Price'{..}
4583 toJSON Price'{..}
@@ -4260,7 +4585,8 @@ instance ToJSON Price where
4260 (catMaybes
4585 (catMaybes
4261 [("currencyCode" .=) <$> _pCurrencyCode,
4586 [("currencyCode" .=) <$> _pCurrencyCode,
4262 ("amountMicros" .=) <$> _pAmountMicros,
4587 ("amountMicros" .=) <$> _pAmountMicros,
4263− ("pricingType" .=) <$> _pPricingType])
4588+ ("pricingType" .=) <$> _pPricingType,
4589+ ("expectedCpmMicros" .=) <$> _pExpectedCpmMicros])
4264
4590
4265--
4591--
4266-- /See:/ 'pretargetingConfigVideoPlayerSizesItem' smart constructor.
4592-- /See:/ 'pretargetingConfigVideoPlayerSizesItem' smart constructor.
@@ -5478,6 +5804,7 @@ data MarketplaceDeal = MarketplaceDeal'
5478 , _mdDealServingMetadata :: !(Maybe DealServingMetadata)
5804 , _mdDealServingMetadata :: !(Maybe DealServingMetadata)
5479 , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
5805 , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
5480 , _mdSharedTargetings :: !(Maybe [SharedTargeting])
5806 , _mdSharedTargetings :: !(Maybe [SharedTargeting])
5807+ , _mdIsRfpTemplate :: !(Maybe Bool)
5481 , _mdProposalId :: !(Maybe Text)
5808 , _mdProposalId :: !(Maybe Text)
5482 , _mdDealId :: !(Maybe Text)
5809 , _mdDealId :: !(Maybe Text)
5483 , _mdInventoryDescription :: !(Maybe Text)
5810 , _mdInventoryDescription :: !(Maybe Text)
@@ -5518,6 +5845,8 @@ data MarketplaceDeal = MarketplaceDeal'
5518--
5845--
5519-- * 'mdSharedTargetings'
5846-- * 'mdSharedTargetings'
5520--
5847--
5848+-- * 'mdIsRfpTemplate'
5849+--
5521-- * 'mdProposalId'
5850-- * 'mdProposalId'
5522--
5851--
5523-- * 'mdDealId'
5852-- * 'mdDealId'
@@ -5556,6 +5885,7 @@ marketplaceDeal =
5556 , _mdDealServingMetadata = Nothing
5885 , _mdDealServingMetadata = Nothing
5557 , _mdFlightStartTimeMs = Nothing
5886 , _mdFlightStartTimeMs = Nothing
5558 , _mdSharedTargetings = Nothing
5887 , _mdSharedTargetings = Nothing
5888+ , _mdIsRfpTemplate = Nothing
5559 , _mdProposalId = Nothing
5889 , _mdProposalId = Nothing
5560 , _mdDealId = Nothing
5890 , _mdDealId = Nothing
5561 , _mdInventoryDescription = Nothing
5891 , _mdInventoryDescription = Nothing
@@ -5644,11 +5974,18 @@ mdSharedTargetings
5644 . _Default
5974 . _Default
5645 . _Coerce
5975 . _Coerce
5646
5976
5977+-- | Indicates whether the current deal is a RFP template. RFP template is
5978+-- created by buyer and not based on seller created products.
5979+mdIsRfpTemplate :: Lens' MarketplaceDeal (Maybe Bool)
5980+mdIsRfpTemplate
5981+ = lens _mdIsRfpTemplate
5982+ (\ s a -> s{_mdIsRfpTemplate = a})
5983+
5647mdProposalId :: Lens' MarketplaceDeal (Maybe Text)
5984mdProposalId :: Lens' MarketplaceDeal (Maybe Text)
5648mdProposalId
5985mdProposalId
5649 = lens _mdProposalId (\ s a -> s{_mdProposalId = a})
5986 = lens _mdProposalId (\ s a -> s{_mdProposalId = a})
5650
5987
5651−-- | A unique deal=id for the deal (readonly).
5988+-- | A unique deal-id for the deal (readonly).
5652mdDealId :: Lens' MarketplaceDeal (Maybe Text)
5989mdDealId :: Lens' MarketplaceDeal (Maybe Text)
5653mdDealId = lens _mdDealId (\ s a -> s{_mdDealId = a})
5990mdDealId = lens _mdDealId (\ s a -> s{_mdDealId = a})
5654
5991
@@ -5736,6 +6073,7 @@ instance FromJSON MarketplaceDeal where
5736 <*> (o .:? "dealServingMetadata")
6073 <*> (o .:? "dealServingMetadata")
5737 <*> (o .:? "flightStartTimeMs")
6074 <*> (o .:? "flightStartTimeMs")
5738 <*> (o .:? "sharedTargetings" .!= mempty)
6075 <*> (o .:? "sharedTargetings" .!= mempty)
6076+ <*> (o .:? "isRfpTemplate")
5739 <*> (o .:? "proposalId")
6077 <*> (o .:? "proposalId")
5740 <*> (o .:? "dealId")
6078 <*> (o .:? "dealId")
5741 <*> (o .:? "inventoryDescription")
6079 <*> (o .:? "inventoryDescription")
@@ -5765,6 +6103,7 @@ instance ToJSON MarketplaceDeal where
5765 _mdDealServingMetadata,
6103 _mdDealServingMetadata,
5766 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
6104 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
5767 ("sharedTargetings" .=) <$> _mdSharedTargetings,
6105 ("sharedTargetings" .=) <$> _mdSharedTargetings,
6106+ ("isRfpTemplate" .=) <$> _mdIsRfpTemplate,
5768 ("proposalId" .=) <$> _mdProposalId,
6107 ("proposalId" .=) <$> _mdProposalId,
5769 ("dealId" .=) <$> _mdDealId,
6108 ("dealId" .=) <$> _mdDealId,
5770 ("inventoryDescription" .=) <$>
6109 ("inventoryDescription" .=) <$>
@@ -5933,14 +6272,16 @@ instance ToJSON CreativeFilteringReasonsReasonsItem
5933--
6272--
5934-- /See:/ 'dealTerms' smart constructor.
6273-- /See:/ 'dealTerms' smart constructor.
5935data DealTerms = DealTerms'
6274data DealTerms = DealTerms'
5936− { _dtEstimatedGrossSpend :: !(Maybe Price)
6275+ { _dtEstimatedGrossSpend :: !(Maybe Price)
5937− , _dtNonGuaranteedFixedPriceTerms :: !(Maybe DealTermsNonGuaranteedFixedPriceTerms)
6276+ , _dtNonGuaranteedFixedPriceTerms :: !(Maybe DealTermsNonGuaranteedFixedPriceTerms)
5938− , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
6277+ , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
6278+ , _dtRubiconNonGuaranteedTerms :: !(Maybe DealTermsRubiconNonGuaranteedTerms)
5939− , _dtBrandingType :: !(Maybe Text)
6279+ , _dtBrandingType :: !(Maybe Text)
6280+ , _dtCrossListedExternalDealIdType :: !(Maybe Text)
5940− , _dtEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
6281+ , _dtEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
5941− , _dtSellerTimeZone :: !(Maybe Text)
6282+ , _dtSellerTimeZone :: !(Maybe Text)
5942− , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
6283+ , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
5943− , _dtDescription :: !(Maybe Text)
6284+ , _dtDescription :: !(Maybe Text)
5944 } deriving (Eq,Show,Data,Typeable,Generic)
6285 } deriving (Eq,Show,Data,Typeable,Generic)
5945
6286
5946-- | Creates a value of 'DealTerms' with the minimum fields required to make a request.
6287-- | Creates a value of 'DealTerms' with the minimum fields required to make a request.
@@ -5953,8 +6294,12 @@ data DealTerms = DealTerms'
5953--
6294--
5954-- * 'dtNonGuaranteedAuctionTerms'
6295-- * 'dtNonGuaranteedAuctionTerms'
5955--
6296--
6297+-- * 'dtRubiconNonGuaranteedTerms'
6298+--
5956-- * 'dtBrandingType'
6299-- * 'dtBrandingType'
5957--
6300--
6301+-- * 'dtCrossListedExternalDealIdType'
6302+--
5958-- * 'dtEstimatedImpressionsPerDay'
6303-- * 'dtEstimatedImpressionsPerDay'
5959--
6304--
5960-- * 'dtSellerTimeZone'
6305-- * 'dtSellerTimeZone'
@@ -5969,7 +6314,9 @@ dealTerms =
5969 { _dtEstimatedGrossSpend = Nothing
6314 { _dtEstimatedGrossSpend = Nothing
5970 , _dtNonGuaranteedFixedPriceTerms = Nothing
6315 , _dtNonGuaranteedFixedPriceTerms = Nothing
5971 , _dtNonGuaranteedAuctionTerms = Nothing
6316 , _dtNonGuaranteedAuctionTerms = Nothing
6317+ , _dtRubiconNonGuaranteedTerms = Nothing
5972 , _dtBrandingType = Nothing
6318 , _dtBrandingType = Nothing
6319+ , _dtCrossListedExternalDealIdType = Nothing
5973 , _dtEstimatedImpressionsPerDay = Nothing
6320 , _dtEstimatedImpressionsPerDay = Nothing
5974 , _dtSellerTimeZone = Nothing
6321 , _dtSellerTimeZone = Nothing
5975 , _dtGuaranteedFixedPriceTerms = Nothing
6322 , _dtGuaranteedFixedPriceTerms = Nothing
@@ -5995,12 +6342,26 @@ dtNonGuaranteedAuctionTerms
5995 = lens _dtNonGuaranteedAuctionTerms
6342 = lens _dtNonGuaranteedAuctionTerms
5996 (\ s a -> s{_dtNonGuaranteedAuctionTerms = a})
6343 (\ s a -> s{_dtNonGuaranteedAuctionTerms = a})
5997
6344
6345+-- | The terms for rubicon non-guaranteed deals.
6346+dtRubiconNonGuaranteedTerms :: Lens' DealTerms (Maybe DealTermsRubiconNonGuaranteedTerms)
6347+dtRubiconNonGuaranteedTerms
6348+ = lens _dtRubiconNonGuaranteedTerms
6349+ (\ s a -> s{_dtRubiconNonGuaranteedTerms = a})
6350+
5998-- | Visibilty of the URL in bid requests.
6351-- | Visibilty of the URL in bid requests.
5999dtBrandingType :: Lens' DealTerms (Maybe Text)
6352dtBrandingType :: Lens' DealTerms (Maybe Text)
6000dtBrandingType
6353dtBrandingType
6001 = lens _dtBrandingType
6354 = lens _dtBrandingType
6002 (\ s a -> s{_dtBrandingType = a})
6355 (\ s a -> s{_dtBrandingType = a})
6003
6356
6357+-- | Indicates that this ExternalDealId exists under at least two different
6358+-- AdxInventoryDeals. Currently, the only case that the same ExternalDealId
6359+-- will exist is programmatic cross sell case.
6360+dtCrossListedExternalDealIdType :: Lens' DealTerms (Maybe Text)
6361+dtCrossListedExternalDealIdType
6362+ = lens _dtCrossListedExternalDealIdType
6363+ (\ s a -> s{_dtCrossListedExternalDealIdType = a})
6364+
6004-- | Non-binding estimate of the impressions served per day Can be set by
6365-- | Non-binding estimate of the impressions served per day Can be set by
6005-- buyer or seller.
6366-- buyer or seller.
6006dtEstimatedImpressionsPerDay :: Lens' DealTerms (Maybe Int64)
6367dtEstimatedImpressionsPerDay :: Lens' DealTerms (Maybe Int64)
@@ -6036,7 +6397,9 @@ instance FromJSON DealTerms where
6036 (o .:? "estimatedGrossSpend") <*>
6397 (o .:? "estimatedGrossSpend") <*>
6037 (o .:? "nonGuaranteedFixedPriceTerms")
6398 (o .:? "nonGuaranteedFixedPriceTerms")
6038 <*> (o .:? "nonGuaranteedAuctionTerms")
6399 <*> (o .:? "nonGuaranteedAuctionTerms")
6400+ <*> (o .:? "rubiconNonGuaranteedTerms")
6039 <*> (o .:? "brandingType")
6401 <*> (o .:? "brandingType")
6402+ <*> (o .:? "crossListedExternalDealIdType")
6040 <*> (o .:? "estimatedImpressionsPerDay")
6403 <*> (o .:? "estimatedImpressionsPerDay")
6041 <*> (o .:? "sellerTimeZone")
6404 <*> (o .:? "sellerTimeZone")
6042 <*> (o .:? "guaranteedFixedPriceTerms")
6405 <*> (o .:? "guaranteedFixedPriceTerms")
@@ -6052,7 +6415,11 @@ instance ToJSON DealTerms where
6052 _dtNonGuaranteedFixedPriceTerms,
6415 _dtNonGuaranteedFixedPriceTerms,
6053 ("nonGuaranteedAuctionTerms" .=) <$>
6416 ("nonGuaranteedAuctionTerms" .=) <$>
6054 _dtNonGuaranteedAuctionTerms,
6417 _dtNonGuaranteedAuctionTerms,
6418+ ("rubiconNonGuaranteedTerms" .=) <$>
6419+ _dtRubiconNonGuaranteedTerms,
6055 ("brandingType" .=) <$> _dtBrandingType,
6420 ("brandingType" .=) <$> _dtBrandingType,
6421+ ("crossListedExternalDealIdType" .=) <$>
6422+ _dtCrossListedExternalDealIdType,
6056 ("estimatedImpressionsPerDay" .=) <$>
6423 ("estimatedImpressionsPerDay" .=) <$>
6057 _dtEstimatedImpressionsPerDay,
6424 _dtEstimatedImpressionsPerDay,
6058 ("sellerTimeZone" .=) <$> _dtSellerTimeZone,
6425 ("sellerTimeZone" .=) <$> _dtSellerTimeZone,
@@ -6060,6 +6427,56 @@ instance ToJSON DealTerms where
6060 _dtGuaranteedFixedPriceTerms,
6427 _dtGuaranteedFixedPriceTerms,
6061 ("description" .=) <$> _dtDescription])
6428 ("description" .=) <$> _dtDescription])
6062
6429
6430+-- | The external deal ids associated with a creative.
6431+--
6432+-- /See:/ 'creativeDealIds' smart constructor.
6433+data CreativeDealIds = CreativeDealIds'
6434+ { _cdiKind :: !Text
6435+ , _cdiDealStatuses :: !(Maybe [CreativeDealIdsDealStatusesItem])
6436+ } deriving (Eq,Show,Data,Typeable,Generic)
6437+
6438+-- | Creates a value of 'CreativeDealIds' with the minimum fields required to make a request.
6439+--
6440+-- Use one of the following lenses to modify other fields as desired:
6441+--
6442+-- * 'cdiKind'
6443+--
6444+-- * 'cdiDealStatuses'
6445+creativeDealIds
6446+ :: CreativeDealIds
6447+creativeDealIds =
6448+ CreativeDealIds'
6449+ { _cdiKind = "adexchangebuyer#creativeDealIds"
6450+ , _cdiDealStatuses = Nothing
6451+ }
6452+
6453+-- | Resource type.
6454+cdiKind :: Lens' CreativeDealIds Text
6455+cdiKind = lens _cdiKind (\ s a -> s{_cdiKind = a})
6456+
6457+-- | A list of external deal ids and ARC approval status.
6458+cdiDealStatuses :: Lens' CreativeDealIds [CreativeDealIdsDealStatusesItem]
6459+cdiDealStatuses
6460+ = lens _cdiDealStatuses
6461+ (\ s a -> s{_cdiDealStatuses = a})
6462+ . _Default
6463+ . _Coerce
6464+
6465+instance FromJSON CreativeDealIds where
6466+ parseJSON
6467+ = withObject "CreativeDealIds"
6468+ (\ o ->
6469+ CreativeDealIds' <$>
6470+ (o .:? "kind" .!= "adexchangebuyer#creativeDealIds")
6471+ <*> (o .:? "dealStatuses" .!= mempty))
6472+
6473+instance ToJSON CreativeDealIds where
6474+ toJSON CreativeDealIds'{..}
6475+ = object
6476+ (catMaybes
6477+ [Just ("kind" .= _cdiKind),
6478+ ("dealStatuses" .=) <$> _cdiDealStatuses])
6479+
6063--
6480--
6064-- /See:/ 'marketplaceLabel' smart constructor.
6481-- /See:/ 'marketplaceLabel' smart constructor.
6065data MarketplaceLabel = MarketplaceLabel'
6482data MarketplaceLabel = MarketplaceLabel'
@@ -6233,9 +6650,11 @@ instance ToJSON AddOrderDealsRequest where
6233--
6650--
6234-- /See:/ 'dealServingMetadataDealPauseStatus' smart constructor.
6651-- /See:/ 'dealServingMetadataDealPauseStatus' smart constructor.
6235data DealServingMetadataDealPauseStatus = DealServingMetadataDealPauseStatus'
6652data DealServingMetadataDealPauseStatus = DealServingMetadataDealPauseStatus'
6236− { _dsmdpsFirstPausedBy :: !(Maybe Text)
6653+ { _dsmdpsFirstPausedBy :: !(Maybe Text)
6654+ , _dsmdpsBuyerPauseReason :: !(Maybe Text)
6237− , _dsmdpsHasBuyerPaused :: !(Maybe Bool)
6655+ , _dsmdpsHasBuyerPaused :: !(Maybe Bool)
6656+ , _dsmdpsSellerPauseReason :: !(Maybe Text)
6238− , _dsmdpsHasSellerPaused :: !(Maybe Bool)
6657+ , _dsmdpsHasSellerPaused :: !(Maybe Bool)
6239 } deriving (Eq,Show,Data,Typeable,Generic)
6658 } deriving (Eq,Show,Data,Typeable,Generic)
6240
6659
6241-- | Creates a value of 'DealServingMetadataDealPauseStatus' with the minimum fields required to make a request.
6660-- | Creates a value of 'DealServingMetadataDealPauseStatus' with the minimum fields required to make a request.
@@ -6244,15 +6663,21 @@ data DealServingMetadataDealPauseStatus = DealServingMetadataDealPauseStatus'
6244--
6663--
6245-- * 'dsmdpsFirstPausedBy'
6664-- * 'dsmdpsFirstPausedBy'
6246--
6665--
6666+-- * 'dsmdpsBuyerPauseReason'
6667+--
6247-- * 'dsmdpsHasBuyerPaused'
6668-- * 'dsmdpsHasBuyerPaused'
6248--
6669--
6670+-- * 'dsmdpsSellerPauseReason'
6671+--
6249-- * 'dsmdpsHasSellerPaused'
6672-- * 'dsmdpsHasSellerPaused'
6250dealServingMetadataDealPauseStatus
6673dealServingMetadataDealPauseStatus
6251 :: DealServingMetadataDealPauseStatus
6674 :: DealServingMetadataDealPauseStatus
6252dealServingMetadataDealPauseStatus =
6675dealServingMetadataDealPauseStatus =
6253 DealServingMetadataDealPauseStatus'
6676 DealServingMetadataDealPauseStatus'
6254 { _dsmdpsFirstPausedBy = Nothing
6677 { _dsmdpsFirstPausedBy = Nothing
6678+ , _dsmdpsBuyerPauseReason = Nothing
6255 , _dsmdpsHasBuyerPaused = Nothing
6679 , _dsmdpsHasBuyerPaused = Nothing
6680+ , _dsmdpsSellerPauseReason = Nothing
6256 , _dsmdpsHasSellerPaused = Nothing
6681 , _dsmdpsHasSellerPaused = Nothing
6257 }
6682 }
6258
6683
@@ -6262,11 +6687,21 @@ dsmdpsFirstPausedBy
6262 = lens _dsmdpsFirstPausedBy
6687 = lens _dsmdpsFirstPausedBy
6263 (\ s a -> s{_dsmdpsFirstPausedBy = a})
6688 (\ s a -> s{_dsmdpsFirstPausedBy = a})
6264
6689
6690+dsmdpsBuyerPauseReason :: Lens' DealServingMetadataDealPauseStatus (Maybe Text)
6691+dsmdpsBuyerPauseReason
6692+ = lens _dsmdpsBuyerPauseReason
6693+ (\ s a -> s{_dsmdpsBuyerPauseReason = a})
6694+
6265dsmdpsHasBuyerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6695dsmdpsHasBuyerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6266dsmdpsHasBuyerPaused
6696dsmdpsHasBuyerPaused
6267 = lens _dsmdpsHasBuyerPaused
6697 = lens _dsmdpsHasBuyerPaused
6268 (\ s a -> s{_dsmdpsHasBuyerPaused = a})
6698 (\ s a -> s{_dsmdpsHasBuyerPaused = a})
6269
6699
6700+dsmdpsSellerPauseReason :: Lens' DealServingMetadataDealPauseStatus (Maybe Text)
6701+dsmdpsSellerPauseReason
6702+ = lens _dsmdpsSellerPauseReason
6703+ (\ s a -> s{_dsmdpsSellerPauseReason = a})
6704+
6270dsmdpsHasSellerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6705dsmdpsHasSellerPaused :: Lens' DealServingMetadataDealPauseStatus (Maybe Bool)
6271dsmdpsHasSellerPaused
6706dsmdpsHasSellerPaused
6272 = lens _dsmdpsHasSellerPaused
6707 = lens _dsmdpsHasSellerPaused
@@ -6278,7 +6713,10 @@ instance FromJSON DealServingMetadataDealPauseStatus
6278 = withObject "DealServingMetadataDealPauseStatus"
6713 = withObject "DealServingMetadataDealPauseStatus"
6279 (\ o ->
6714 (\ o ->
6280 DealServingMetadataDealPauseStatus' <$>
6715 DealServingMetadataDealPauseStatus' <$>
6716+ (o .:? "firstPausedBy") <*>
6717+ (o .:? "buyerPauseReason")
6281− (o .:? "firstPausedBy") <*> (o .:? "hasBuyerPaused")
6718+ <*> (o .:? "hasBuyerPaused")
6719+ <*> (o .:? "sellerPauseReason")
6282 <*> (o .:? "hasSellerPaused"))
6720 <*> (o .:? "hasSellerPaused"))
6283
6721
6284instance ToJSON DealServingMetadataDealPauseStatus
6722instance ToJSON DealServingMetadataDealPauseStatus
@@ -6287,7 +6725,10 @@ instance ToJSON DealServingMetadataDealPauseStatus
6287 = object
6725 = object
6288 (catMaybes
6726 (catMaybes
6289 [("firstPausedBy" .=) <$> _dsmdpsFirstPausedBy,
6727 [("firstPausedBy" .=) <$> _dsmdpsFirstPausedBy,
6728+ ("buyerPauseReason" .=) <$> _dsmdpsBuyerPauseReason,
6290 ("hasBuyerPaused" .=) <$> _dsmdpsHasBuyerPaused,
6729 ("hasBuyerPaused" .=) <$> _dsmdpsHasBuyerPaused,
6730+ ("sellerPauseReason" .=) <$>
6731+ _dsmdpsSellerPauseReason,
6291 ("hasSellerPaused" .=) <$> _dsmdpsHasSellerPaused])
6732 ("hasSellerPaused" .=) <$> _dsmdpsHasSellerPaused])
6292
6733
6293--
6734--
@@ -6297,6 +6738,7 @@ data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
6297 , _dtgfptGuaranteedImpressions :: !(Maybe (Textual Int64))
6738 , _dtgfptGuaranteedImpressions :: !(Maybe (Textual Int64))
6298 , _dtgfptBillingInfo :: !(Maybe DealTermsGuaranteedFixedPriceTermsBillingInfo)
6739 , _dtgfptBillingInfo :: !(Maybe DealTermsGuaranteedFixedPriceTermsBillingInfo)
6299 , _dtgfptFixedPrices :: !(Maybe [PricePerBuyer])
6740 , _dtgfptFixedPrices :: !(Maybe [PricePerBuyer])
6741+ , _dtgfptMinimumDailyLooks :: !(Maybe (Textual Int64))
6300 } deriving (Eq,Show,Data,Typeable,Generic)
6742 } deriving (Eq,Show,Data,Typeable,Generic)
6301
6743
6302-- | Creates a value of 'DealTermsGuaranteedFixedPriceTerms' with the minimum fields required to make a request.
6744-- | Creates a value of 'DealTermsGuaranteedFixedPriceTerms' with the minimum fields required to make a request.
@@ -6310,6 +6752,8 @@ data DealTermsGuaranteedFixedPriceTerms = DealTermsGuaranteedFixedPriceTerms'
6310-- * 'dtgfptBillingInfo'
6752-- * 'dtgfptBillingInfo'
6311--
6753--
6312-- * 'dtgfptFixedPrices'
6754-- * 'dtgfptFixedPrices'
6755+--
6756+-- * 'dtgfptMinimumDailyLooks'
6313dealTermsGuaranteedFixedPriceTerms
6757dealTermsGuaranteedFixedPriceTerms
6314 :: DealTermsGuaranteedFixedPriceTerms
6758 :: DealTermsGuaranteedFixedPriceTerms
6315dealTermsGuaranteedFixedPriceTerms =
6759dealTermsGuaranteedFixedPriceTerms =
@@ -6318,9 +6762,11 @@ dealTermsGuaranteedFixedPriceTerms =
6318 , _dtgfptGuaranteedImpressions = Nothing
6762 , _dtgfptGuaranteedImpressions = Nothing
6319 , _dtgfptBillingInfo = Nothing
6763 , _dtgfptBillingInfo = Nothing
6320 , _dtgfptFixedPrices = Nothing
6764 , _dtgfptFixedPrices = Nothing
6765+ , _dtgfptMinimumDailyLooks = Nothing
6321 }
6766 }
6322
6767
6323−-- | Count of guaranteed looks. Required for deal, optional for product.
6768+-- | Count of guaranteed looks. Required for deal, optional for product. For
6769+-- CPD deals, buyer changes to guaranteed_looks will be ignored.
6324dtgfptGuaranteedLooks :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe Int64)
6770dtgfptGuaranteedLooks :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe Int64)
6325dtgfptGuaranteedLooks
6771dtgfptGuaranteedLooks
6326 = lens _dtgfptGuaranteedLooks
6772 = lens _dtgfptGuaranteedLooks
@@ -6351,6 +6797,14 @@ dtgfptFixedPrices
6351 . _Default
6797 . _Default
6352 . _Coerce
6798 . _Coerce
6353
6799
6800+-- | Count of minimum daily looks for a CPD deal. For CPD deals, buyer should
6801+-- negotiate on this field instead of guaranteed_looks.
6802+dtgfptMinimumDailyLooks :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe Int64)
6803+dtgfptMinimumDailyLooks
6804+ = lens _dtgfptMinimumDailyLooks
6805+ (\ s a -> s{_dtgfptMinimumDailyLooks = a})
6806+ . mapping _Coerce
6807+
6354instance FromJSON DealTermsGuaranteedFixedPriceTerms
6808instance FromJSON DealTermsGuaranteedFixedPriceTerms
6355 where
6809 where
6356 parseJSON
6810 parseJSON
@@ -6360,7 +6814,8 @@ instance FromJSON DealTermsGuaranteedFixedPriceTerms
6360 (o .:? "guaranteedLooks") <*>
6814 (o .:? "guaranteedLooks") <*>
6361 (o .:? "guaranteedImpressions")
6815 (o .:? "guaranteedImpressions")
6362 <*> (o .:? "billingInfo")
6816 <*> (o .:? "billingInfo")
6363− <*> (o .:? "fixedPrices" .!= mempty))
6817+ <*> (o .:? "fixedPrices" .!= mempty)
6818+ <*> (o .:? "minimumDailyLooks"))
6364
6819
6365instance ToJSON DealTermsGuaranteedFixedPriceTerms
6820instance ToJSON DealTermsGuaranteedFixedPriceTerms
6366 where
6821 where
@@ -6371,4 +6826,6 @@ instance ToJSON DealTermsGuaranteedFixedPriceTerms
6371 ("guaranteedImpressions" .=) <$>
6826 ("guaranteedImpressions" .=) <$>
6372 _dtgfptGuaranteedImpressions,
6827 _dtgfptGuaranteedImpressions,
6373 ("billingInfo" .=) <$> _dtgfptBillingInfo,
6828 ("billingInfo" .=) <$> _dtgfptBillingInfo,
6374− ("fixedPrices" .=) <$> _dtgfptFixedPrices])
6829+ ("fixedPrices" .=) <$> _dtgfptFixedPrices,
6830+ ("minimumDailyLooks" .=) <$>
6831+ _dtgfptMinimumDailyLooks])
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Sum.hs+12−2
@@ -59,7 +59,8 @@ instance FromJSON CreativesListOpenAuctionStatusFilter where
59instance ToJSON CreativesListOpenAuctionStatusFilter where
59instance ToJSON CreativesListOpenAuctionStatusFilter where
60 toJSON = toJSONText
60 toJSON = toJSONText
61
61
62−-- | The proposed action to take on the proposal.
62+-- | The proposed action to take on the proposal. This field is required and
63+-- it must be set when updating a proposal.
63data ProposalsPatchUpdateAction
64data ProposalsPatchUpdateAction
64 = Accept
65 = Accept
65 -- ^ @accept@
66 -- ^ @accept@
@@ -67,6 +68,8 @@ data ProposalsPatchUpdateAction
67 -- ^ @cancel@
68 -- ^ @cancel@
68 | Propose
69 | Propose
69 -- ^ @propose@
70 -- ^ @propose@
71+ | ProposeAndAccept
72+ -- ^ @proposeAndAccept@
70 | UnknownAction
73 | UnknownAction
71 -- ^ @unknownAction@
74 -- ^ @unknownAction@
72 | UpdateFinalized
75 | UpdateFinalized
@@ -80,6 +83,7 @@ instance FromHttpApiData ProposalsPatchUpdateAction where
80 "accept" -> Right Accept
83 "accept" -> Right Accept
81 "cancel" -> Right Cancel
84 "cancel" -> Right Cancel
82 "propose" -> Right Propose
85 "propose" -> Right Propose
86+ "proposeAndAccept" -> Right ProposeAndAccept
83 "unknownAction" -> Right UnknownAction
87 "unknownAction" -> Right UnknownAction
84 "updateFinalized" -> Right UpdateFinalized
88 "updateFinalized" -> Right UpdateFinalized
85 x -> Left ("Unable to parse ProposalsPatchUpdateAction from: " <> x)
89 x -> Left ("Unable to parse ProposalsPatchUpdateAction from: " <> x)
@@ -89,6 +93,7 @@ instance ToHttpApiData ProposalsPatchUpdateAction where
89 Accept -> "accept"
93 Accept -> "accept"
90 Cancel -> "cancel"
94 Cancel -> "cancel"
91 Propose -> "propose"
95 Propose -> "propose"
96+ ProposeAndAccept -> "proposeAndAccept"
92 UnknownAction -> "unknownAction"
97 UnknownAction -> "unknownAction"
93 UpdateFinalized -> "updateFinalized"
98 UpdateFinalized -> "updateFinalized"
94
99
@@ -138,7 +143,8 @@ instance FromJSON CreativesListDealsStatusFilter where
138instance ToJSON CreativesListDealsStatusFilter where
143instance ToJSON CreativesListDealsStatusFilter where
139 toJSON = toJSONText
144 toJSON = toJSONText
140
145
141−-- | The proposed action to take on the proposal.
146+-- | The proposed action to take on the proposal. This field is required and
147+-- it must be set when updating a proposal.
142data ProposalsUpdateUpdateAction
148data ProposalsUpdateUpdateAction
143 = PUUAAccept
149 = PUUAAccept
144 -- ^ @accept@
150 -- ^ @accept@
@@ -146,6 +152,8 @@ data ProposalsUpdateUpdateAction
146 -- ^ @cancel@
152 -- ^ @cancel@
147 | PUUAPropose
153 | PUUAPropose
148 -- ^ @propose@
154 -- ^ @propose@
155+ | PUUAProposeAndAccept
156+ -- ^ @proposeAndAccept@
149 | PUUAUnknownAction
157 | PUUAUnknownAction
150 -- ^ @unknownAction@
158 -- ^ @unknownAction@
151 | PUUAUpdateFinalized
159 | PUUAUpdateFinalized
@@ -159,6 +167,7 @@ instance FromHttpApiData ProposalsUpdateUpdateAction where
159 "accept" -> Right PUUAAccept
167 "accept" -> Right PUUAAccept
160 "cancel" -> Right PUUACancel
168 "cancel" -> Right PUUACancel
161 "propose" -> Right PUUAPropose
169 "propose" -> Right PUUAPropose
170+ "proposeAndAccept" -> Right PUUAProposeAndAccept
162 "unknownAction" -> Right PUUAUnknownAction
171 "unknownAction" -> Right PUUAUnknownAction
163 "updateFinalized" -> Right PUUAUpdateFinalized
172 "updateFinalized" -> Right PUUAUpdateFinalized
164 x -> Left ("Unable to parse ProposalsUpdateUpdateAction from: " <> x)
173 x -> Left ("Unable to parse ProposalsUpdateUpdateAction from: " <> x)
@@ -168,6 +177,7 @@ instance ToHttpApiData ProposalsUpdateUpdateAction where
168 PUUAAccept -> "accept"
177 PUUAAccept -> "accept"
169 PUUACancel -> "cancel"
178 PUUACancel -> "cancel"
170 PUUAPropose -> "propose"
179 PUUAPropose -> "propose"
180+ PUUAProposeAndAccept -> "proposeAndAccept"
171 PUUAUnknownAction -> "unknownAction"
181 PUUAUnknownAction -> "unknownAction"
172 PUUAUpdateFinalized -> "updateFinalized"
182 PUUAUpdateFinalized -> "updateFinalized"
173
183
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Accounts/Patch.hs+19−5
@@ -34,6 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.Accounts.Patch
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , apPayload
36 , apPayload
37+ , apConfirmUnsafeAccountChange
37 , apId
38 , apId
38 ) where
39 ) where
39
40
@@ -47,15 +48,17 @@ type AccountsPatchResource =
47 "v1.4" :>
48 "v1.4" :>
48 "accounts" :>
49 "accounts" :>
49 Capture "id" (Textual Int32) :>
50 Capture "id" (Textual Int32) :>
51+ QueryParam "confirmUnsafeAccountChange" Bool :>
50− QueryParam "alt" AltJSON :>
52+ QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] Account :> Patch '[JSON] Account
53+ ReqBody '[JSON] Account :> Patch '[JSON] Account
52
54
53-- | Updates an existing account. This method supports patch semantics.
55-- | Updates an existing account. This method supports patch semantics.
54--
56--
55-- /See:/ 'accountsPatch' smart constructor.
57-- /See:/ 'accountsPatch' smart constructor.
56data AccountsPatch = AccountsPatch'
58data AccountsPatch = AccountsPatch'
57− { _apPayload :: !Account
59+ { _apPayload :: !Account
60+ , _apConfirmUnsafeAccountChange :: !(Maybe Bool)
58− , _apId :: !(Textual Int32)
61+ , _apId :: !(Textual Int32)
59 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
60
63
61-- | Creates a value of 'AccountsPatch' with the minimum fields required to make a request.
64-- | Creates a value of 'AccountsPatch' with the minimum fields required to make a request.
@@ -64,6 +67,8 @@ data AccountsPatch = AccountsPatch'
64--
67--
65-- * 'apPayload'
68-- * 'apPayload'
66--
69--
70+-- * 'apConfirmUnsafeAccountChange'
71+--
67-- * 'apId'
72-- * 'apId'
68accountsPatch
73accountsPatch
69 :: Account -- ^ 'apPayload'
74 :: Account -- ^ 'apPayload'
@@ -72,6 +77,7 @@ accountsPatch
72accountsPatch pApPayload_ pApId_ =
77accountsPatch pApPayload_ pApId_ =
73 AccountsPatch'
78 AccountsPatch'
74 { _apPayload = pApPayload_
79 { _apPayload = pApPayload_
80+ , _apConfirmUnsafeAccountChange = Nothing
75 , _apId = _Coerce # pApId_
81 , _apId = _Coerce # pApId_
76 }
82 }
77
83
@@ -80,6 +86,12 @@ apPayload :: Lens' AccountsPatch Account
80apPayload
86apPayload
81 = lens _apPayload (\ s a -> s{_apPayload = a})
87 = lens _apPayload (\ s a -> s{_apPayload = a})
82
88
89+-- | Confirmation for erasing bidder and cookie matching urls.
90+apConfirmUnsafeAccountChange :: Lens' AccountsPatch (Maybe Bool)
91+apConfirmUnsafeAccountChange
92+ = lens _apConfirmUnsafeAccountChange
93+ (\ s a -> s{_apConfirmUnsafeAccountChange = a})
94+
83-- | The account id
95-- | The account id
84apId :: Lens' AccountsPatch Int32
96apId :: Lens' AccountsPatch Int32
85apId = lens _apId (\ s a -> s{_apId = a}) . _Coerce
97apId = lens _apId (\ s a -> s{_apId = a}) . _Coerce
@@ -89,7 +101,9 @@ instance GoogleRequest AccountsPatch where
89 type Scopes AccountsPatch =
101 type Scopes AccountsPatch =
90 '["https://www.googleapis.com/auth/adexchange.buyer"]
102 '["https://www.googleapis.com/auth/adexchange.buyer"]
91 requestClient AccountsPatch'{..}
103 requestClient AccountsPatch'{..}
104+ = go _apId _apConfirmUnsafeAccountChange
92− = go _apId (Just AltJSON) _apPayload
105+ (Just AltJSON)
106+ _apPayload
93 adExchangeBuyerService
107 adExchangeBuyerService
94 where go
108 where go
95 = buildClient (Proxy :: Proxy AccountsPatchResource)
109 = buildClient (Proxy :: Proxy AccountsPatchResource)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Accounts/Update.hs+19−5
@@ -34,6 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.Accounts.Update
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , auPayload
36 , auPayload
37+ , auConfirmUnsafeAccountChange
37 , auId
38 , auId
38 ) where
39 ) where
39
40
@@ -47,15 +48,17 @@ type AccountsUpdateResource =
47 "v1.4" :>
48 "v1.4" :>
48 "accounts" :>
49 "accounts" :>
49 Capture "id" (Textual Int32) :>
50 Capture "id" (Textual Int32) :>
51+ QueryParam "confirmUnsafeAccountChange" Bool :>
50− QueryParam "alt" AltJSON :>
52+ QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] Account :> Put '[JSON] Account
53+ ReqBody '[JSON] Account :> Put '[JSON] Account
52
54
53-- | Updates an existing account.
55-- | Updates an existing account.
54--
56--
55-- /See:/ 'accountsUpdate' smart constructor.
57-- /See:/ 'accountsUpdate' smart constructor.
56data AccountsUpdate = AccountsUpdate'
58data AccountsUpdate = AccountsUpdate'
57− { _auPayload :: !Account
59+ { _auPayload :: !Account
60+ , _auConfirmUnsafeAccountChange :: !(Maybe Bool)
58− , _auId :: !(Textual Int32)
61+ , _auId :: !(Textual Int32)
59 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
60
63
61-- | Creates a value of 'AccountsUpdate' with the minimum fields required to make a request.
64-- | Creates a value of 'AccountsUpdate' with the minimum fields required to make a request.
@@ -64,6 +67,8 @@ data AccountsUpdate = AccountsUpdate'
64--
67--
65-- * 'auPayload'
68-- * 'auPayload'
66--
69--
70+-- * 'auConfirmUnsafeAccountChange'
71+--
67-- * 'auId'
72-- * 'auId'
68accountsUpdate
73accountsUpdate
69 :: Account -- ^ 'auPayload'
74 :: Account -- ^ 'auPayload'
@@ -72,6 +77,7 @@ accountsUpdate
72accountsUpdate pAuPayload_ pAuId_ =
77accountsUpdate pAuPayload_ pAuId_ =
73 AccountsUpdate'
78 AccountsUpdate'
74 { _auPayload = pAuPayload_
79 { _auPayload = pAuPayload_
80+ , _auConfirmUnsafeAccountChange = Nothing
75 , _auId = _Coerce # pAuId_
81 , _auId = _Coerce # pAuId_
76 }
82 }
77
83
@@ -80,6 +86,12 @@ auPayload :: Lens' AccountsUpdate Account
80auPayload
86auPayload
81 = lens _auPayload (\ s a -> s{_auPayload = a})
87 = lens _auPayload (\ s a -> s{_auPayload = a})
82
88
89+-- | Confirmation for erasing bidder and cookie matching urls.
90+auConfirmUnsafeAccountChange :: Lens' AccountsUpdate (Maybe Bool)
91+auConfirmUnsafeAccountChange
92+ = lens _auConfirmUnsafeAccountChange
93+ (\ s a -> s{_auConfirmUnsafeAccountChange = a})
94+
83-- | The account id
95-- | The account id
84auId :: Lens' AccountsUpdate Int32
96auId :: Lens' AccountsUpdate Int32
85auId = lens _auId (\ s a -> s{_auId = a}) . _Coerce
97auId = lens _auId (\ s a -> s{_auId = a}) . _Coerce
@@ -89,7 +101,9 @@ instance GoogleRequest AccountsUpdate where
89 type Scopes AccountsUpdate =
101 type Scopes AccountsUpdate =
90 '["https://www.googleapis.com/auth/adexchange.buyer"]
102 '["https://www.googleapis.com/auth/adexchange.buyer"]
91 requestClient AccountsUpdate'{..}
103 requestClient AccountsUpdate'{..}
104+ = go _auId _auConfirmUnsafeAccountChange
92− = go _auId (Just AltJSON) _auPayload
105+ (Just AltJSON)
106+ _auPayload
93 adExchangeBuyerService
107 adExchangeBuyerService
94 where go
108 where go
95 = buildClient (Proxy :: Proxy AccountsUpdateResource)
109 = buildClient (Proxy :: Proxy AccountsUpdateResource)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Creatives/ListDeals.hsnew file+102
@@ -0,0 +1,102 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Creatives.ListDeals
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Lists the external deal ids associated with the creative.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.creatives.listDeals@.
26+module Network.Google.Resource.AdExchangeBuyer.Creatives.ListDeals
27+ (
28+ -- * REST Resource
29+ CreativesListDealsResource
30+
31+ -- * Creating a Request
32+ , creativesListDeals
33+ , CreativesListDeals
34+
35+ -- * Request Lenses
36+ , cldBuyerCreativeId
37+ , cldAccountId
38+ ) where
39+
40+import Network.Google.AdExchangeBuyer.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @adexchangebuyer.creatives.listDeals@ method which the
44+-- 'CreativesListDeals' request conforms to.
45+type CreativesListDealsResource =
46+ "adexchangebuyer" :>
47+ "v1.4" :>
48+ "creatives" :>
49+ Capture "accountId" (Textual Int32) :>
50+ Capture "buyerCreativeId" Text :>
51+ "listDeals" :>
52+ QueryParam "alt" AltJSON :>
53+ Get '[JSON] CreativeDealIds
54+
55+-- | Lists the external deal ids associated with the creative.
56+--
57+-- /See:/ 'creativesListDeals' smart constructor.
58+data CreativesListDeals = CreativesListDeals'
59+ { _cldBuyerCreativeId :: !Text
60+ , _cldAccountId :: !(Textual Int32)
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'CreativesListDeals' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'cldBuyerCreativeId'
68+--
69+-- * 'cldAccountId'
70+creativesListDeals
71+ :: Text -- ^ 'cldBuyerCreativeId'
72+ -> Int32 -- ^ 'cldAccountId'
73+ -> CreativesListDeals
74+creativesListDeals pCldBuyerCreativeId_ pCldAccountId_ =
75+ CreativesListDeals'
76+ { _cldBuyerCreativeId = pCldBuyerCreativeId_
77+ , _cldAccountId = _Coerce # pCldAccountId_
78+ }
79+
80+-- | The buyer-specific id for this creative.
81+cldBuyerCreativeId :: Lens' CreativesListDeals Text
82+cldBuyerCreativeId
83+ = lens _cldBuyerCreativeId
84+ (\ s a -> s{_cldBuyerCreativeId = a})
85+
86+-- | The id for the account that will serve this creative.
87+cldAccountId :: Lens' CreativesListDeals Int32
88+cldAccountId
89+ = lens _cldAccountId (\ s a -> s{_cldAccountId = a})
90+ . _Coerce
91+
92+instance GoogleRequest CreativesListDeals where
93+ type Rs CreativesListDeals = CreativeDealIds
94+ type Scopes CreativesListDeals =
95+ '["https://www.googleapis.com/auth/adexchange.buyer"]
96+ requestClient CreativesListDeals'{..}
97+ = go _cldAccountId _cldBuyerCreativeId (Just AltJSON)
98+ adExchangeBuyerService
99+ where go
100+ = buildClient
101+ (Proxy :: Proxy CreativesListDealsResource)
102+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/List.hs+1−1
@@ -76,7 +76,7 @@ marketplaceDealsList pMdlProposalId_ =
76 , _mdlPqlQuery = Nothing
76 , _mdlPqlQuery = Nothing
77 }
77 }
78
78
79−-- | The proposalId to get deals for. To search across proposals specify
79+-- | The proposalId to get deals for. To search across all proposals specify
80-- order_id = \'-\' as part of the URL.
80-- order_id = \'-\' as part of the URL.
81mdlProposalId :: Lens' MarketplaceDealsList Text
81mdlProposalId :: Lens' MarketplaceDealsList Text
82mdlProposalId
82mdlProposalId
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceNotes/List.hs+20−6
@@ -34,6 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mnlProposalId
36 , mnlProposalId
37+ , mnlPqlQuery
37 ) where
38 ) where
38
39
39import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -47,14 +48,16 @@ type MarketplaceNotesListResource =
47 "proposals" :>
48 "proposals" :>
48 Capture "proposalId" Text :>
49 Capture "proposalId" Text :>
49 "notes" :>
50 "notes" :>
51+ QueryParam "pqlQuery" Text :>
50− QueryParam "alt" AltJSON :>
52+ QueryParam "alt" AltJSON :>
51− Get '[JSON] GetOrderNotesResponse
53+ Get '[JSON] GetOrderNotesResponse
52
54
53-- | Get all the notes associated with a proposal
55-- | Get all the notes associated with a proposal
54--
56--
55-- /See:/ 'marketplaceNotesList' smart constructor.
57-- /See:/ 'marketplaceNotesList' smart constructor.
56−newtype MarketplaceNotesList = MarketplaceNotesList'
58+data MarketplaceNotesList = MarketplaceNotesList'
57− { _mnlProposalId :: Text
59+ { _mnlProposalId :: !Text
60+ , _mnlPqlQuery :: !(Maybe Text)
58 } deriving (Eq,Show,Data,Typeable,Generic)
61 } deriving (Eq,Show,Data,Typeable,Generic)
59
62
60-- | Creates a value of 'MarketplaceNotesList' with the minimum fields required to make a request.
63-- | Creates a value of 'MarketplaceNotesList' with the minimum fields required to make a request.
@@ -62,26 +65,37 @@ newtype MarketplaceNotesList = MarketplaceNotesList'
62-- Use one of the following lenses to modify other fields as desired:
65-- Use one of the following lenses to modify other fields as desired:
63--
66--
64-- * 'mnlProposalId'
67-- * 'mnlProposalId'
68+--
69+-- * 'mnlPqlQuery'
65marketplaceNotesList
70marketplaceNotesList
66 :: Text -- ^ 'mnlProposalId'
71 :: Text -- ^ 'mnlProposalId'
67 -> MarketplaceNotesList
72 -> MarketplaceNotesList
68marketplaceNotesList pMnlProposalId_ =
73marketplaceNotesList pMnlProposalId_ =
69 MarketplaceNotesList'
74 MarketplaceNotesList'
70 { _mnlProposalId = pMnlProposalId_
75 { _mnlProposalId = pMnlProposalId_
76+ , _mnlPqlQuery = Nothing
71 }
77 }
72
78
73−-- | The proposalId to get notes for.
79+-- | The proposalId to get notes for. To search across all proposals specify
80+-- order_id = \'-\' as part of the URL.
74mnlProposalId :: Lens' MarketplaceNotesList Text
81mnlProposalId :: Lens' MarketplaceNotesList Text
75mnlProposalId
82mnlProposalId
76 = lens _mnlProposalId
83 = lens _mnlProposalId
77 (\ s a -> s{_mnlProposalId = a})
84 (\ s a -> s{_mnlProposalId = a})
78
85
86+-- | Query string to retrieve specific notes. To search the text contents of
87+-- notes, please use syntax like \"WHERE note.note = \"foo\" or \"WHERE
88+-- note.note LIKE \"%bar%\"
89+mnlPqlQuery :: Lens' MarketplaceNotesList (Maybe Text)
90+mnlPqlQuery
91+ = lens _mnlPqlQuery (\ s a -> s{_mnlPqlQuery = a})
92+
79instance GoogleRequest MarketplaceNotesList where
93instance GoogleRequest MarketplaceNotesList where
80 type Rs MarketplaceNotesList = GetOrderNotesResponse
94 type Rs MarketplaceNotesList = GetOrderNotesResponse
81 type Scopes MarketplaceNotesList =
95 type Scopes MarketplaceNotesList =
82 '["https://www.googleapis.com/auth/adexchange.buyer"]
96 '["https://www.googleapis.com/auth/adexchange.buyer"]
83 requestClient MarketplaceNotesList'{..}
97 requestClient MarketplaceNotesList'{..}
84− = go _mnlProposalId (Just AltJSON)
98+ = go _mnlProposalId _mnlPqlQuery (Just AltJSON)
85 adExchangeBuyerService
99 adExchangeBuyerService
86 where go
100 where go
87 = buildClient
101 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Patch.hs+2−1
@@ -89,7 +89,8 @@ proposalsPatch pPpUpdateAction_ pPpRevisionNumber_ pPpPayload_ pPpProposalId_ =
89 , _ppProposalId = pPpProposalId_
89 , _ppProposalId = pPpProposalId_
90 }
90 }
91
91
92−-- | The proposed action to take on the proposal.
92+-- | The proposed action to take on the proposal. This field is required and
93+-- it must be set when updating a proposal.
93ppUpdateAction :: Lens' ProposalsPatch ProposalsPatchUpdateAction
94ppUpdateAction :: Lens' ProposalsPatch ProposalsPatchUpdateAction
94ppUpdateAction
95ppUpdateAction
95 = lens _ppUpdateAction
96 = lens _ppUpdateAction
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Update.hs+2−1
@@ -89,7 +89,8 @@ proposalsUpdate pPuUpdateAction_ pPuRevisionNumber_ pPuPayload_ pPuProposalId_ =
89 , _puProposalId = pPuProposalId_
89 , _puProposalId = pPuProposalId_
90 }
90 }
91
91
92−-- | The proposed action to take on the proposal.
92+-- | The proposed action to take on the proposal. This field is required and
93+-- it must be set when updating a proposal.
93puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction
94puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction
94puUpdateAction
95puUpdateAction
95 = lens _puUpdateAction
96 = lens _puUpdateAction
gogol-adexchange-buyer/gogol-adexchange-buyer.cabal+1
@@ -50,6 +50,7 @@ library
50 , Network.Google.Resource.AdExchangeBuyer.Creatives.Get
50 , Network.Google.Resource.AdExchangeBuyer.Creatives.Get
51 , Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
51 , Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
52 , Network.Google.Resource.AdExchangeBuyer.Creatives.List
52 , Network.Google.Resource.AdExchangeBuyer.Creatives.List
53+ , Network.Google.Resource.AdExchangeBuyer.Creatives.ListDeals
53 , Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
54 , Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
54 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
55 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
55 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
56 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert