googleadexchangebuyer.pp 262 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675
  1. unit googleadexchangebuyer;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAccount = Class;
  9. TAccountsList = Class;
  10. TAddOrderDealsRequest = Class;
  11. TAddOrderDealsResponse = Class;
  12. TAddOrderNotesRequest = Class;
  13. TAddOrderNotesResponse = Class;
  14. TBillingInfo = Class;
  15. TBillingInfoList = Class;
  16. TBudget = Class;
  17. TBuyer = Class;
  18. TContactInformation = Class;
  19. TCreateOrdersRequest = Class;
  20. TCreateOrdersResponse = Class;
  21. TCreative = Class;
  22. TCreativesList = Class;
  23. TDealServingMetadata = Class;
  24. TDealServingMetadataDealPauseStatus = Class;
  25. TDealTerms = Class;
  26. TDealTermsGuaranteedFixedPriceTerms = Class;
  27. TDealTermsGuaranteedFixedPriceTermsBillingInfo = Class;
  28. TDealTermsNonGuaranteedAuctionTerms = Class;
  29. TDealTermsNonGuaranteedFixedPriceTerms = Class;
  30. TDeleteOrderDealsRequest = Class;
  31. TDeleteOrderDealsResponse = Class;
  32. TDeliveryControl = Class;
  33. TDeliveryControlFrequencyCap = Class;
  34. TDimension = Class;
  35. TDimensionDimensionValue = Class;
  36. TEditAllOrderDealsRequest = Class;
  37. TEditAllOrderDealsResponse = Class;
  38. TGetOffersResponse = Class;
  39. TGetOrderDealsResponse = Class;
  40. TGetOrderNotesResponse = Class;
  41. TGetOrdersResponse = Class;
  42. TGetPublisherProfilesByAccountIdResponse = Class;
  43. TMarketplaceDeal = Class;
  44. TMarketplaceDealParty = Class;
  45. TMarketplaceLabel = Class;
  46. TMarketplaceNote = Class;
  47. TPerformanceReport = Class;
  48. TPerformanceReportList = Class;
  49. TPretargetingConfig = Class;
  50. TPretargetingConfigList = Class;
  51. TPrice = Class;
  52. TPricePerBuyer = Class;
  53. TPrivateData = Class;
  54. TProduct = Class;
  55. TProposal = Class;
  56. TPublisherProfileApiProto = Class;
  57. TPublisherProvidedForecast = Class;
  58. TSeller = Class;
  59. TSharedTargeting = Class;
  60. TTargetingValue = Class;
  61. TTargetingValueCreativeSize = Class;
  62. TTargetingValueDayPartTargeting = Class;
  63. TTargetingValueDayPartTargetingDayPart = Class;
  64. TTargetingValueSize = Class;
  65. TUpdatePrivateAuctionProposalRequest = Class;
  66. TAccountArray = Array of TAccount;
  67. TAccountsListArray = Array of TAccountsList;
  68. TAddOrderDealsRequestArray = Array of TAddOrderDealsRequest;
  69. TAddOrderDealsResponseArray = Array of TAddOrderDealsResponse;
  70. TAddOrderNotesRequestArray = Array of TAddOrderNotesRequest;
  71. TAddOrderNotesResponseArray = Array of TAddOrderNotesResponse;
  72. TBillingInfoArray = Array of TBillingInfo;
  73. TBillingInfoListArray = Array of TBillingInfoList;
  74. TBudgetArray = Array of TBudget;
  75. TBuyerArray = Array of TBuyer;
  76. TContactInformationArray = Array of TContactInformation;
  77. TCreateOrdersRequestArray = Array of TCreateOrdersRequest;
  78. TCreateOrdersResponseArray = Array of TCreateOrdersResponse;
  79. TCreativeArray = Array of TCreative;
  80. TCreativesListArray = Array of TCreativesList;
  81. TDealServingMetadataArray = Array of TDealServingMetadata;
  82. TDealServingMetadataDealPauseStatusArray = Array of TDealServingMetadataDealPauseStatus;
  83. TDealTermsArray = Array of TDealTerms;
  84. TDealTermsGuaranteedFixedPriceTermsArray = Array of TDealTermsGuaranteedFixedPriceTerms;
  85. TDealTermsGuaranteedFixedPriceTermsBillingInfoArray = Array of TDealTermsGuaranteedFixedPriceTermsBillingInfo;
  86. TDealTermsNonGuaranteedAuctionTermsArray = Array of TDealTermsNonGuaranteedAuctionTerms;
  87. TDealTermsNonGuaranteedFixedPriceTermsArray = Array of TDealTermsNonGuaranteedFixedPriceTerms;
  88. TDeleteOrderDealsRequestArray = Array of TDeleteOrderDealsRequest;
  89. TDeleteOrderDealsResponseArray = Array of TDeleteOrderDealsResponse;
  90. TDeliveryControlArray = Array of TDeliveryControl;
  91. TDeliveryControlFrequencyCapArray = Array of TDeliveryControlFrequencyCap;
  92. TDimensionArray = Array of TDimension;
  93. TDimensionDimensionValueArray = Array of TDimensionDimensionValue;
  94. TEditAllOrderDealsRequestArray = Array of TEditAllOrderDealsRequest;
  95. TEditAllOrderDealsResponseArray = Array of TEditAllOrderDealsResponse;
  96. TGetOffersResponseArray = Array of TGetOffersResponse;
  97. TGetOrderDealsResponseArray = Array of TGetOrderDealsResponse;
  98. TGetOrderNotesResponseArray = Array of TGetOrderNotesResponse;
  99. TGetOrdersResponseArray = Array of TGetOrdersResponse;
  100. TGetPublisherProfilesByAccountIdResponseArray = Array of TGetPublisherProfilesByAccountIdResponse;
  101. TMarketplaceDealArray = Array of TMarketplaceDeal;
  102. TMarketplaceDealPartyArray = Array of TMarketplaceDealParty;
  103. TMarketplaceLabelArray = Array of TMarketplaceLabel;
  104. TMarketplaceNoteArray = Array of TMarketplaceNote;
  105. TPerformanceReportArray = Array of TPerformanceReport;
  106. TPerformanceReportListArray = Array of TPerformanceReportList;
  107. TPretargetingConfigArray = Array of TPretargetingConfig;
  108. TPretargetingConfigListArray = Array of TPretargetingConfigList;
  109. TPriceArray = Array of TPrice;
  110. TPricePerBuyerArray = Array of TPricePerBuyer;
  111. TPrivateDataArray = Array of TPrivateData;
  112. TProductArray = Array of TProduct;
  113. TProposalArray = Array of TProposal;
  114. TPublisherProfileApiProtoArray = Array of TPublisherProfileApiProto;
  115. TPublisherProvidedForecastArray = Array of TPublisherProvidedForecast;
  116. TSellerArray = Array of TSeller;
  117. TSharedTargetingArray = Array of TSharedTargeting;
  118. TTargetingValueArray = Array of TTargetingValue;
  119. TTargetingValueCreativeSizeArray = Array of TTargetingValueCreativeSize;
  120. TTargetingValueDayPartTargetingArray = Array of TTargetingValueDayPartTargeting;
  121. TTargetingValueDayPartTargetingDayPartArray = Array of TTargetingValueDayPartTargetingDayPart;
  122. TTargetingValueSizeArray = Array of TTargetingValueSize;
  123. TUpdatePrivateAuctionProposalRequestArray = Array of TUpdatePrivateAuctionProposalRequest;
  124. //Anonymous types, using auto-generated names
  125. TAccountTypebidderLocationItem = Class;
  126. TCreativeTypecorrectionsItem = Class;
  127. TCreativeTypefilteringReasonsTypereasonsItem = Class;
  128. TCreativeTypefilteringReasons = Class;
  129. TCreativeTypenativeAdTypeappIcon = Class;
  130. TCreativeTypenativeAdTypeimage = Class;
  131. TCreativeTypenativeAdTypelogo = Class;
  132. TCreativeTypenativeAd = Class;
  133. TCreativeTypeservingRestrictionsItemTypecontextsItem = Class;
  134. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem = Class;
  135. TCreativeTypeservingRestrictionsItem = Class;
  136. TPretargetingConfigTypedimensionsItem = Class;
  137. TPretargetingConfigTypeexcludedPlacementsItem = Class;
  138. TPretargetingConfigTypeplacementsItem = Class;
  139. TPretargetingConfigTypevideoPlayerSizesItem = Class;
  140. TAccountTypebidderLocationArray = Array of TAccountTypebidderLocationItem;
  141. TAccountsListTypeitemsArray = Array of TAccount;
  142. TAddOrderDealsRequestTypedealsArray = Array of TMarketplaceDeal;
  143. TAddOrderDealsResponseTypedealsArray = Array of TMarketplaceDeal;
  144. TAddOrderNotesRequestTypenotesArray = Array of TMarketplaceNote;
  145. TAddOrderNotesResponseTypenotesArray = Array of TMarketplaceNote;
  146. TBillingInfoListTypeitemsArray = Array of TBillingInfo;
  147. TCreateOrdersRequestTypeproposalsArray = Array of TProposal;
  148. TCreateOrdersResponseTypeproposalsArray = Array of TProposal;
  149. TCreativeTypecorrectionsArray = Array of TCreativeTypecorrectionsItem;
  150. TCreativeTypefilteringReasonsTypereasonsArray = Array of TCreativeTypefilteringReasonsTypereasonsItem;
  151. TCreativeTypeservingRestrictionsItemTypecontextsArray = Array of TCreativeTypeservingRestrictionsItemTypecontextsItem;
  152. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsArray = Array of TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem;
  153. TCreativeTypeservingRestrictionsArray = Array of TCreativeTypeservingRestrictionsItem;
  154. TCreativesListTypeitemsArray = Array of TCreative;
  155. TDealTermsGuaranteedFixedPriceTermsTypefixedPricesArray = Array of TPricePerBuyer;
  156. TDealTermsNonGuaranteedAuctionTermsTypereservePricePerBuyersArray = Array of TPricePerBuyer;
  157. TDealTermsNonGuaranteedFixedPriceTermsTypefixedPricesArray = Array of TPricePerBuyer;
  158. TDeleteOrderDealsResponseTypedealsArray = Array of TMarketplaceDeal;
  159. TDeliveryControlTypefrequencyCapsArray = Array of TDeliveryControlFrequencyCap;
  160. TDimensionTypedimensionValuesArray = Array of TDimensionDimensionValue;
  161. TEditAllOrderDealsRequestTypedealsArray = Array of TMarketplaceDeal;
  162. TEditAllOrderDealsResponseTypedealsArray = Array of TMarketplaceDeal;
  163. TGetOffersResponseTypeproductsArray = Array of TProduct;
  164. TGetOrderDealsResponseTypedealsArray = Array of TMarketplaceDeal;
  165. TGetOrderNotesResponseTypenotesArray = Array of TMarketplaceNote;
  166. TGetOrdersResponseTypeproposalsArray = Array of TProposal;
  167. TGetPublisherProfilesByAccountIdResponseTypeprofilesArray = Array of TPublisherProfileApiProto;
  168. TMarketplaceDealTypesellerContactsArray = Array of TContactInformation;
  169. TMarketplaceDealTypesharedTargetingsArray = Array of TSharedTargeting;
  170. TPerformanceReportListTypeperformanceReportArray = Array of TPerformanceReport;
  171. TPretargetingConfigTypedimensionsArray = Array of TPretargetingConfigTypedimensionsItem;
  172. TPretargetingConfigTypeexcludedPlacementsArray = Array of TPretargetingConfigTypeexcludedPlacementsItem;
  173. TPretargetingConfigTypeplacementsArray = Array of TPretargetingConfigTypeplacementsItem;
  174. TPretargetingConfigTypevideoPlayerSizesArray = Array of TPretargetingConfigTypevideoPlayerSizesItem;
  175. TPretargetingConfigListTypeitemsArray = Array of TPretargetingConfig;
  176. TProductTypecreatorContactsArray = Array of TContactInformation;
  177. TProductTypelabelsArray = Array of TMarketplaceLabel;
  178. TProductTypesharedTargetingsArray = Array of TSharedTargeting;
  179. TProposalTypebuyerContactsArray = Array of TContactInformation;
  180. TProposalTypelabelsArray = Array of TMarketplaceLabel;
  181. TProposalTypesellerContactsArray = Array of TContactInformation;
  182. TPublisherProvidedForecastTypedimensionsArray = Array of TDimension;
  183. TSharedTargetingTypeexclusionsArray = Array of TTargetingValue;
  184. TSharedTargetingTypeinclusionsArray = Array of TTargetingValue;
  185. TTargetingValueCreativeSizeTypecompanionSizesArray = Array of TTargetingValueSize;
  186. TTargetingValueDayPartTargetingTypedayPartsArray = Array of TTargetingValueDayPartTargetingDayPart;
  187. { --------------------------------------------------------------------
  188. TAccountTypebidderLocationItem
  189. --------------------------------------------------------------------}
  190. TAccountTypebidderLocationItem = Class(TGoogleBaseObject)
  191. Private
  192. FbidProtocol : String;
  193. FmaximumQps : integer;
  194. Fregion : String;
  195. Furl : String;
  196. Protected
  197. //Property setters
  198. Procedure SetbidProtocol(AIndex : Integer; const AValue : String); virtual;
  199. Procedure SetmaximumQps(AIndex : Integer; const AValue : integer); virtual;
  200. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  201. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  202. Public
  203. Published
  204. Property bidProtocol : String Index 0 Read FbidProtocol Write SetbidProtocol;
  205. Property maximumQps : integer Index 8 Read FmaximumQps Write SetmaximumQps;
  206. Property region : String Index 16 Read Fregion Write Setregion;
  207. Property url : String Index 24 Read Furl Write Seturl;
  208. end;
  209. TAccountTypebidderLocationItemClass = Class of TAccountTypebidderLocationItem;
  210. { --------------------------------------------------------------------
  211. TAccount
  212. --------------------------------------------------------------------}
  213. TAccount = Class(TGoogleBaseObject)
  214. Private
  215. FbidderLocation : TAccountTypebidderLocationArray;
  216. FcookieMatchingNid : String;
  217. FcookieMatchingUrl : String;
  218. Fid : integer;
  219. Fkind : String;
  220. FmaximumActiveCreatives : integer;
  221. FmaximumTotalQps : integer;
  222. FnumberActiveCreatives : integer;
  223. Protected
  224. //Property setters
  225. Procedure SetbidderLocation(AIndex : Integer; const AValue : TAccountTypebidderLocationArray); virtual;
  226. Procedure SetcookieMatchingNid(AIndex : Integer; const AValue : String); virtual;
  227. Procedure SetcookieMatchingUrl(AIndex : Integer; const AValue : String); virtual;
  228. Procedure Setid(AIndex : Integer; const AValue : integer); virtual;
  229. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  230. Procedure SetmaximumActiveCreatives(AIndex : Integer; const AValue : integer); virtual;
  231. Procedure SetmaximumTotalQps(AIndex : Integer; const AValue : integer); virtual;
  232. Procedure SetnumberActiveCreatives(AIndex : Integer; const AValue : integer); virtual;
  233. //2.6.4. bug workaround
  234. {$IFDEF VER2_6}
  235. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  236. {$ENDIF VER2_6}
  237. Public
  238. Published
  239. Property bidderLocation : TAccountTypebidderLocationArray Index 0 Read FbidderLocation Write SetbidderLocation;
  240. Property cookieMatchingNid : String Index 8 Read FcookieMatchingNid Write SetcookieMatchingNid;
  241. Property cookieMatchingUrl : String Index 16 Read FcookieMatchingUrl Write SetcookieMatchingUrl;
  242. Property id : integer Index 24 Read Fid Write Setid;
  243. Property kind : String Index 32 Read Fkind Write Setkind;
  244. Property maximumActiveCreatives : integer Index 40 Read FmaximumActiveCreatives Write SetmaximumActiveCreatives;
  245. Property maximumTotalQps : integer Index 48 Read FmaximumTotalQps Write SetmaximumTotalQps;
  246. Property numberActiveCreatives : integer Index 56 Read FnumberActiveCreatives Write SetnumberActiveCreatives;
  247. end;
  248. TAccountClass = Class of TAccount;
  249. { --------------------------------------------------------------------
  250. TAccountsList
  251. --------------------------------------------------------------------}
  252. TAccountsList = Class(TGoogleBaseObject)
  253. Private
  254. Fitems : TAccountsListTypeitemsArray;
  255. Fkind : String;
  256. Protected
  257. //Property setters
  258. Procedure Setitems(AIndex : Integer; const AValue : TAccountsListTypeitemsArray); virtual;
  259. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  260. //2.6.4. bug workaround
  261. {$IFDEF VER2_6}
  262. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  263. {$ENDIF VER2_6}
  264. Public
  265. Published
  266. Property items : TAccountsListTypeitemsArray Index 0 Read Fitems Write Setitems;
  267. Property kind : String Index 8 Read Fkind Write Setkind;
  268. end;
  269. TAccountsListClass = Class of TAccountsList;
  270. { --------------------------------------------------------------------
  271. TAddOrderDealsRequest
  272. --------------------------------------------------------------------}
  273. TAddOrderDealsRequest = Class(TGoogleBaseObject)
  274. Private
  275. Fdeals : TAddOrderDealsRequestTypedealsArray;
  276. FproposalRevisionNumber : String;
  277. FupdateAction : String;
  278. Protected
  279. //Property setters
  280. Procedure Setdeals(AIndex : Integer; const AValue : TAddOrderDealsRequestTypedealsArray); virtual;
  281. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  282. Procedure SetupdateAction(AIndex : Integer; const AValue : String); virtual;
  283. //2.6.4. bug workaround
  284. {$IFDEF VER2_6}
  285. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  286. {$ENDIF VER2_6}
  287. Public
  288. Published
  289. Property deals : TAddOrderDealsRequestTypedealsArray Index 0 Read Fdeals Write Setdeals;
  290. Property proposalRevisionNumber : String Index 8 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  291. Property updateAction : String Index 16 Read FupdateAction Write SetupdateAction;
  292. end;
  293. TAddOrderDealsRequestClass = Class of TAddOrderDealsRequest;
  294. { --------------------------------------------------------------------
  295. TAddOrderDealsResponse
  296. --------------------------------------------------------------------}
  297. TAddOrderDealsResponse = Class(TGoogleBaseObject)
  298. Private
  299. Fdeals : TAddOrderDealsResponseTypedealsArray;
  300. FproposalRevisionNumber : String;
  301. Protected
  302. //Property setters
  303. Procedure Setdeals(AIndex : Integer; const AValue : TAddOrderDealsResponseTypedealsArray); virtual;
  304. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  305. //2.6.4. bug workaround
  306. {$IFDEF VER2_6}
  307. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  308. {$ENDIF VER2_6}
  309. Public
  310. Published
  311. Property deals : TAddOrderDealsResponseTypedealsArray Index 0 Read Fdeals Write Setdeals;
  312. Property proposalRevisionNumber : String Index 8 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  313. end;
  314. TAddOrderDealsResponseClass = Class of TAddOrderDealsResponse;
  315. { --------------------------------------------------------------------
  316. TAddOrderNotesRequest
  317. --------------------------------------------------------------------}
  318. TAddOrderNotesRequest = Class(TGoogleBaseObject)
  319. Private
  320. Fnotes : TAddOrderNotesRequestTypenotesArray;
  321. Protected
  322. //Property setters
  323. Procedure Setnotes(AIndex : Integer; const AValue : TAddOrderNotesRequestTypenotesArray); virtual;
  324. //2.6.4. bug workaround
  325. {$IFDEF VER2_6}
  326. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  327. {$ENDIF VER2_6}
  328. Public
  329. Published
  330. Property notes : TAddOrderNotesRequestTypenotesArray Index 0 Read Fnotes Write Setnotes;
  331. end;
  332. TAddOrderNotesRequestClass = Class of TAddOrderNotesRequest;
  333. { --------------------------------------------------------------------
  334. TAddOrderNotesResponse
  335. --------------------------------------------------------------------}
  336. TAddOrderNotesResponse = Class(TGoogleBaseObject)
  337. Private
  338. Fnotes : TAddOrderNotesResponseTypenotesArray;
  339. Protected
  340. //Property setters
  341. Procedure Setnotes(AIndex : Integer; const AValue : TAddOrderNotesResponseTypenotesArray); virtual;
  342. //2.6.4. bug workaround
  343. {$IFDEF VER2_6}
  344. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  345. {$ENDIF VER2_6}
  346. Public
  347. Published
  348. Property notes : TAddOrderNotesResponseTypenotesArray Index 0 Read Fnotes Write Setnotes;
  349. end;
  350. TAddOrderNotesResponseClass = Class of TAddOrderNotesResponse;
  351. { --------------------------------------------------------------------
  352. TBillingInfo
  353. --------------------------------------------------------------------}
  354. TBillingInfo = Class(TGoogleBaseObject)
  355. Private
  356. FaccountId : integer;
  357. FaccountName : String;
  358. FbillingId : TStringArray;
  359. Fkind : String;
  360. Protected
  361. //Property setters
  362. Procedure SetaccountId(AIndex : Integer; const AValue : integer); virtual;
  363. Procedure SetaccountName(AIndex : Integer; const AValue : String); virtual;
  364. Procedure SetbillingId(AIndex : Integer; const AValue : TStringArray); virtual;
  365. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  366. //2.6.4. bug workaround
  367. {$IFDEF VER2_6}
  368. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  369. {$ENDIF VER2_6}
  370. Public
  371. Published
  372. Property accountId : integer Index 0 Read FaccountId Write SetaccountId;
  373. Property accountName : String Index 8 Read FaccountName Write SetaccountName;
  374. Property billingId : TStringArray Index 16 Read FbillingId Write SetbillingId;
  375. Property kind : String Index 24 Read Fkind Write Setkind;
  376. end;
  377. TBillingInfoClass = Class of TBillingInfo;
  378. { --------------------------------------------------------------------
  379. TBillingInfoList
  380. --------------------------------------------------------------------}
  381. TBillingInfoList = Class(TGoogleBaseObject)
  382. Private
  383. Fitems : TBillingInfoListTypeitemsArray;
  384. Fkind : String;
  385. Protected
  386. //Property setters
  387. Procedure Setitems(AIndex : Integer; const AValue : TBillingInfoListTypeitemsArray); virtual;
  388. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  389. //2.6.4. bug workaround
  390. {$IFDEF VER2_6}
  391. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  392. {$ENDIF VER2_6}
  393. Public
  394. Published
  395. Property items : TBillingInfoListTypeitemsArray Index 0 Read Fitems Write Setitems;
  396. Property kind : String Index 8 Read Fkind Write Setkind;
  397. end;
  398. TBillingInfoListClass = Class of TBillingInfoList;
  399. { --------------------------------------------------------------------
  400. TBudget
  401. --------------------------------------------------------------------}
  402. TBudget = Class(TGoogleBaseObject)
  403. Private
  404. FaccountId : String;
  405. FbillingId : String;
  406. FbudgetAmount : String;
  407. FcurrencyCode : String;
  408. Fid : String;
  409. Fkind : String;
  410. Protected
  411. //Property setters
  412. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  413. Procedure SetbillingId(AIndex : Integer; const AValue : String); virtual;
  414. Procedure SetbudgetAmount(AIndex : Integer; const AValue : String); virtual;
  415. Procedure SetcurrencyCode(AIndex : Integer; const AValue : String); virtual;
  416. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  417. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  418. Public
  419. Published
  420. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  421. Property billingId : String Index 8 Read FbillingId Write SetbillingId;
  422. Property budgetAmount : String Index 16 Read FbudgetAmount Write SetbudgetAmount;
  423. Property currencyCode : String Index 24 Read FcurrencyCode Write SetcurrencyCode;
  424. Property id : String Index 32 Read Fid Write Setid;
  425. Property kind : String Index 40 Read Fkind Write Setkind;
  426. end;
  427. TBudgetClass = Class of TBudget;
  428. { --------------------------------------------------------------------
  429. TBuyer
  430. --------------------------------------------------------------------}
  431. TBuyer = Class(TGoogleBaseObject)
  432. Private
  433. FaccountId : String;
  434. Protected
  435. //Property setters
  436. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  437. Public
  438. Published
  439. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  440. end;
  441. TBuyerClass = Class of TBuyer;
  442. { --------------------------------------------------------------------
  443. TContactInformation
  444. --------------------------------------------------------------------}
  445. TContactInformation = Class(TGoogleBaseObject)
  446. Private
  447. Femail : String;
  448. Fname : String;
  449. Protected
  450. //Property setters
  451. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  452. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  453. Public
  454. Published
  455. Property email : String Index 0 Read Femail Write Setemail;
  456. Property name : String Index 8 Read Fname Write Setname;
  457. end;
  458. TContactInformationClass = Class of TContactInformation;
  459. { --------------------------------------------------------------------
  460. TCreateOrdersRequest
  461. --------------------------------------------------------------------}
  462. TCreateOrdersRequest = Class(TGoogleBaseObject)
  463. Private
  464. Fproposals : TCreateOrdersRequestTypeproposalsArray;
  465. FwebPropertyCode : String;
  466. Protected
  467. //Property setters
  468. Procedure Setproposals(AIndex : Integer; const AValue : TCreateOrdersRequestTypeproposalsArray); virtual;
  469. Procedure SetwebPropertyCode(AIndex : Integer; const AValue : String); virtual;
  470. //2.6.4. bug workaround
  471. {$IFDEF VER2_6}
  472. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  473. {$ENDIF VER2_6}
  474. Public
  475. Published
  476. Property proposals : TCreateOrdersRequestTypeproposalsArray Index 0 Read Fproposals Write Setproposals;
  477. Property webPropertyCode : String Index 8 Read FwebPropertyCode Write SetwebPropertyCode;
  478. end;
  479. TCreateOrdersRequestClass = Class of TCreateOrdersRequest;
  480. { --------------------------------------------------------------------
  481. TCreateOrdersResponse
  482. --------------------------------------------------------------------}
  483. TCreateOrdersResponse = Class(TGoogleBaseObject)
  484. Private
  485. Fproposals : TCreateOrdersResponseTypeproposalsArray;
  486. Protected
  487. //Property setters
  488. Procedure Setproposals(AIndex : Integer; const AValue : TCreateOrdersResponseTypeproposalsArray); virtual;
  489. //2.6.4. bug workaround
  490. {$IFDEF VER2_6}
  491. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  492. {$ENDIF VER2_6}
  493. Public
  494. Published
  495. Property proposals : TCreateOrdersResponseTypeproposalsArray Index 0 Read Fproposals Write Setproposals;
  496. end;
  497. TCreateOrdersResponseClass = Class of TCreateOrdersResponse;
  498. { --------------------------------------------------------------------
  499. TCreativeTypecorrectionsItem
  500. --------------------------------------------------------------------}
  501. TCreativeTypecorrectionsItem = Class(TGoogleBaseObject)
  502. Private
  503. Fdetails : TStringArray;
  504. Freason : String;
  505. Protected
  506. //Property setters
  507. Procedure Setdetails(AIndex : Integer; const AValue : TStringArray); virtual;
  508. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  509. //2.6.4. bug workaround
  510. {$IFDEF VER2_6}
  511. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  512. {$ENDIF VER2_6}
  513. Public
  514. Published
  515. Property details : TStringArray Index 0 Read Fdetails Write Setdetails;
  516. Property reason : String Index 8 Read Freason Write Setreason;
  517. end;
  518. TCreativeTypecorrectionsItemClass = Class of TCreativeTypecorrectionsItem;
  519. { --------------------------------------------------------------------
  520. TCreativeTypefilteringReasonsTypereasonsItem
  521. --------------------------------------------------------------------}
  522. TCreativeTypefilteringReasonsTypereasonsItem = Class(TGoogleBaseObject)
  523. Private
  524. FfilteringCount : String;
  525. FfilteringStatus : integer;
  526. Protected
  527. //Property setters
  528. Procedure SetfilteringCount(AIndex : Integer; const AValue : String); virtual;
  529. Procedure SetfilteringStatus(AIndex : Integer; const AValue : integer); virtual;
  530. Public
  531. Published
  532. Property filteringCount : String Index 0 Read FfilteringCount Write SetfilteringCount;
  533. Property filteringStatus : integer Index 8 Read FfilteringStatus Write SetfilteringStatus;
  534. end;
  535. TCreativeTypefilteringReasonsTypereasonsItemClass = Class of TCreativeTypefilteringReasonsTypereasonsItem;
  536. { --------------------------------------------------------------------
  537. TCreativeTypefilteringReasons
  538. --------------------------------------------------------------------}
  539. TCreativeTypefilteringReasons = Class(TGoogleBaseObject)
  540. Private
  541. Fdate : String;
  542. Freasons : TCreativeTypefilteringReasonsTypereasonsArray;
  543. Protected
  544. //Property setters
  545. Procedure Setdate(AIndex : Integer; const AValue : String); virtual;
  546. Procedure Setreasons(AIndex : Integer; const AValue : TCreativeTypefilteringReasonsTypereasonsArray); virtual;
  547. //2.6.4. bug workaround
  548. {$IFDEF VER2_6}
  549. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  550. {$ENDIF VER2_6}
  551. Public
  552. Published
  553. Property date : String Index 0 Read Fdate Write Setdate;
  554. Property reasons : TCreativeTypefilteringReasonsTypereasonsArray Index 8 Read Freasons Write Setreasons;
  555. end;
  556. TCreativeTypefilteringReasonsClass = Class of TCreativeTypefilteringReasons;
  557. { --------------------------------------------------------------------
  558. TCreativeTypenativeAdTypeappIcon
  559. --------------------------------------------------------------------}
  560. TCreativeTypenativeAdTypeappIcon = Class(TGoogleBaseObject)
  561. Private
  562. Fheight : integer;
  563. Furl : String;
  564. Fwidth : integer;
  565. Protected
  566. //Property setters
  567. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  568. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  569. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  570. Public
  571. Published
  572. Property height : integer Index 0 Read Fheight Write Setheight;
  573. Property url : String Index 8 Read Furl Write Seturl;
  574. Property width : integer Index 16 Read Fwidth Write Setwidth;
  575. end;
  576. TCreativeTypenativeAdTypeappIconClass = Class of TCreativeTypenativeAdTypeappIcon;
  577. { --------------------------------------------------------------------
  578. TCreativeTypenativeAdTypeimage
  579. --------------------------------------------------------------------}
  580. TCreativeTypenativeAdTypeimage = Class(TGoogleBaseObject)
  581. Private
  582. Fheight : integer;
  583. Furl : String;
  584. Fwidth : integer;
  585. Protected
  586. //Property setters
  587. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  588. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  589. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  590. Public
  591. Published
  592. Property height : integer Index 0 Read Fheight Write Setheight;
  593. Property url : String Index 8 Read Furl Write Seturl;
  594. Property width : integer Index 16 Read Fwidth Write Setwidth;
  595. end;
  596. TCreativeTypenativeAdTypeimageClass = Class of TCreativeTypenativeAdTypeimage;
  597. { --------------------------------------------------------------------
  598. TCreativeTypenativeAdTypelogo
  599. --------------------------------------------------------------------}
  600. TCreativeTypenativeAdTypelogo = Class(TGoogleBaseObject)
  601. Private
  602. Fheight : integer;
  603. Furl : String;
  604. Fwidth : integer;
  605. Protected
  606. //Property setters
  607. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  608. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  609. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  610. Public
  611. Published
  612. Property height : integer Index 0 Read Fheight Write Setheight;
  613. Property url : String Index 8 Read Furl Write Seturl;
  614. Property width : integer Index 16 Read Fwidth Write Setwidth;
  615. end;
  616. TCreativeTypenativeAdTypelogoClass = Class of TCreativeTypenativeAdTypelogo;
  617. { --------------------------------------------------------------------
  618. TCreativeTypenativeAd
  619. --------------------------------------------------------------------}
  620. TCreativeTypenativeAd = Class(TGoogleBaseObject)
  621. Private
  622. Fadvertiser : String;
  623. FappIcon : TCreativeTypenativeAdTypeappIcon;
  624. Fbody : String;
  625. FcallToAction : String;
  626. FclickTrackingUrl : String;
  627. Fheadline : String;
  628. Fimage : TCreativeTypenativeAdTypeimage;
  629. FimpressionTrackingUrl : TStringArray;
  630. Flogo : TCreativeTypenativeAdTypelogo;
  631. Fprice : String;
  632. FstarRating : double;
  633. Fstore : String;
  634. Protected
  635. //Property setters
  636. Procedure Setadvertiser(AIndex : Integer; const AValue : String); virtual;
  637. Procedure SetappIcon(AIndex : Integer; const AValue : TCreativeTypenativeAdTypeappIcon); virtual;
  638. Procedure Setbody(AIndex : Integer; const AValue : String); virtual;
  639. Procedure SetcallToAction(AIndex : Integer; const AValue : String); virtual;
  640. Procedure SetclickTrackingUrl(AIndex : Integer; const AValue : String); virtual;
  641. Procedure Setheadline(AIndex : Integer; const AValue : String); virtual;
  642. Procedure Setimage(AIndex : Integer; const AValue : TCreativeTypenativeAdTypeimage); virtual;
  643. Procedure SetimpressionTrackingUrl(AIndex : Integer; const AValue : TStringArray); virtual;
  644. Procedure Setlogo(AIndex : Integer; const AValue : TCreativeTypenativeAdTypelogo); virtual;
  645. Procedure Setprice(AIndex : Integer; const AValue : String); virtual;
  646. Procedure SetstarRating(AIndex : Integer; const AValue : double); virtual;
  647. Procedure Setstore(AIndex : Integer; const AValue : String); virtual;
  648. //2.6.4. bug workaround
  649. {$IFDEF VER2_6}
  650. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  651. {$ENDIF VER2_6}
  652. Public
  653. Published
  654. Property advertiser : String Index 0 Read Fadvertiser Write Setadvertiser;
  655. Property appIcon : TCreativeTypenativeAdTypeappIcon Index 8 Read FappIcon Write SetappIcon;
  656. Property body : String Index 16 Read Fbody Write Setbody;
  657. Property callToAction : String Index 24 Read FcallToAction Write SetcallToAction;
  658. Property clickTrackingUrl : String Index 32 Read FclickTrackingUrl Write SetclickTrackingUrl;
  659. Property headline : String Index 40 Read Fheadline Write Setheadline;
  660. Property image : TCreativeTypenativeAdTypeimage Index 48 Read Fimage Write Setimage;
  661. Property impressionTrackingUrl : TStringArray Index 56 Read FimpressionTrackingUrl Write SetimpressionTrackingUrl;
  662. Property logo : TCreativeTypenativeAdTypelogo Index 64 Read Flogo Write Setlogo;
  663. Property price : String Index 72 Read Fprice Write Setprice;
  664. Property starRating : double Index 80 Read FstarRating Write SetstarRating;
  665. Property store : String Index 88 Read Fstore Write Setstore;
  666. end;
  667. TCreativeTypenativeAdClass = Class of TCreativeTypenativeAd;
  668. { --------------------------------------------------------------------
  669. TCreativeTypeservingRestrictionsItemTypecontextsItem
  670. --------------------------------------------------------------------}
  671. TCreativeTypeservingRestrictionsItemTypecontextsItem = Class(TGoogleBaseObject)
  672. Private
  673. FauctionType : TStringArray;
  674. FcontextType : String;
  675. FgeoCriteriaId : TintegerArray;
  676. Fplatform : TStringArray;
  677. Protected
  678. //Property setters
  679. Procedure SetauctionType(AIndex : Integer; const AValue : TStringArray); virtual;
  680. Procedure SetcontextType(AIndex : Integer; const AValue : String); virtual;
  681. Procedure SetgeoCriteriaId(AIndex : Integer; const AValue : TintegerArray); virtual;
  682. Procedure Setplatform(AIndex : Integer; const AValue : TStringArray); virtual;
  683. //2.6.4. bug workaround
  684. {$IFDEF VER2_6}
  685. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  686. {$ENDIF VER2_6}
  687. Public
  688. Published
  689. Property auctionType : TStringArray Index 0 Read FauctionType Write SetauctionType;
  690. Property contextType : String Index 8 Read FcontextType Write SetcontextType;
  691. Property geoCriteriaId : TintegerArray Index 16 Read FgeoCriteriaId Write SetgeoCriteriaId;
  692. Property platform : TStringArray Index 24 Read Fplatform Write Setplatform;
  693. end;
  694. TCreativeTypeservingRestrictionsItemTypecontextsItemClass = Class of TCreativeTypeservingRestrictionsItemTypecontextsItem;
  695. { --------------------------------------------------------------------
  696. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem
  697. --------------------------------------------------------------------}
  698. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem = Class(TGoogleBaseObject)
  699. Private
  700. Fdetails : TStringArray;
  701. Freason : String;
  702. Protected
  703. //Property setters
  704. Procedure Setdetails(AIndex : Integer; const AValue : TStringArray); virtual;
  705. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  706. //2.6.4. bug workaround
  707. {$IFDEF VER2_6}
  708. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  709. {$ENDIF VER2_6}
  710. Public
  711. Published
  712. Property details : TStringArray Index 0 Read Fdetails Write Setdetails;
  713. Property reason : String Index 8 Read Freason Write Setreason;
  714. end;
  715. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItemClass = Class of TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem;
  716. { --------------------------------------------------------------------
  717. TCreativeTypeservingRestrictionsItem
  718. --------------------------------------------------------------------}
  719. TCreativeTypeservingRestrictionsItem = Class(TGoogleBaseObject)
  720. Private
  721. Fcontexts : TCreativeTypeservingRestrictionsItemTypecontextsArray;
  722. FdisapprovalReasons : TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsArray;
  723. Freason : String;
  724. Protected
  725. //Property setters
  726. Procedure Setcontexts(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsItemTypecontextsArray); virtual;
  727. Procedure SetdisapprovalReasons(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsArray); virtual;
  728. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  729. //2.6.4. bug workaround
  730. {$IFDEF VER2_6}
  731. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  732. {$ENDIF VER2_6}
  733. Public
  734. Published
  735. Property contexts : TCreativeTypeservingRestrictionsItemTypecontextsArray Index 0 Read Fcontexts Write Setcontexts;
  736. Property disapprovalReasons : TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsArray Index 8 Read FdisapprovalReasons Write SetdisapprovalReasons;
  737. Property reason : String Index 16 Read Freason Write Setreason;
  738. end;
  739. TCreativeTypeservingRestrictionsItemClass = Class of TCreativeTypeservingRestrictionsItem;
  740. { --------------------------------------------------------------------
  741. TCreative
  742. --------------------------------------------------------------------}
  743. TCreative = Class(TGoogleBaseObject)
  744. Private
  745. FHTMLSnippet : String;
  746. FaccountId : integer;
  747. FadChoicesDestinationUrl : String;
  748. FadvertiserId : TStringArray;
  749. FadvertiserName : String;
  750. FagencyId : String;
  751. FapiUploadTimestamp : TDatetime;
  752. Fattribute : TintegerArray;
  753. FbuyerCreativeId : String;
  754. FclickThroughUrl : TStringArray;
  755. Fcorrections : TCreativeTypecorrectionsArray;
  756. FdealsStatus : String;
  757. FfilteringReasons : TCreativeTypefilteringReasons;
  758. Fheight : integer;
  759. FimpressionTrackingUrl : TStringArray;
  760. Fkind : String;
  761. FnativeAd : TCreativeTypenativeAd;
  762. FopenAuctionStatus : String;
  763. FproductCategories : TintegerArray;
  764. FrestrictedCategories : TintegerArray;
  765. FsensitiveCategories : TintegerArray;
  766. FservingRestrictions : TCreativeTypeservingRestrictionsArray;
  767. FvendorType : TintegerArray;
  768. Fversion : integer;
  769. FvideoURL : String;
  770. Fwidth : integer;
  771. Protected
  772. //Property setters
  773. Procedure SetHTMLSnippet(AIndex : Integer; const AValue : String); virtual;
  774. Procedure SetaccountId(AIndex : Integer; const AValue : integer); virtual;
  775. Procedure SetadChoicesDestinationUrl(AIndex : Integer; const AValue : String); virtual;
  776. Procedure SetadvertiserId(AIndex : Integer; const AValue : TStringArray); virtual;
  777. Procedure SetadvertiserName(AIndex : Integer; const AValue : String); virtual;
  778. Procedure SetagencyId(AIndex : Integer; const AValue : String); virtual;
  779. Procedure SetapiUploadTimestamp(AIndex : Integer; const AValue : TDatetime); virtual;
  780. Procedure Setattribute(AIndex : Integer; const AValue : TintegerArray); virtual;
  781. Procedure SetbuyerCreativeId(AIndex : Integer; const AValue : String); virtual;
  782. Procedure SetclickThroughUrl(AIndex : Integer; const AValue : TStringArray); virtual;
  783. Procedure Setcorrections(AIndex : Integer; const AValue : TCreativeTypecorrectionsArray); virtual;
  784. Procedure SetdealsStatus(AIndex : Integer; const AValue : String); virtual;
  785. Procedure SetfilteringReasons(AIndex : Integer; const AValue : TCreativeTypefilteringReasons); virtual;
  786. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  787. Procedure SetimpressionTrackingUrl(AIndex : Integer; const AValue : TStringArray); virtual;
  788. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  789. Procedure SetnativeAd(AIndex : Integer; const AValue : TCreativeTypenativeAd); virtual;
  790. Procedure SetopenAuctionStatus(AIndex : Integer; const AValue : String); virtual;
  791. Procedure SetproductCategories(AIndex : Integer; const AValue : TintegerArray); virtual;
  792. Procedure SetrestrictedCategories(AIndex : Integer; const AValue : TintegerArray); virtual;
  793. Procedure SetsensitiveCategories(AIndex : Integer; const AValue : TintegerArray); virtual;
  794. Procedure SetservingRestrictions(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsArray); virtual;
  795. Procedure SetvendorType(AIndex : Integer; const AValue : TintegerArray); virtual;
  796. Procedure Setversion(AIndex : Integer; const AValue : integer); virtual;
  797. Procedure SetvideoURL(AIndex : Integer; const AValue : String); virtual;
  798. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  799. //2.6.4. bug workaround
  800. {$IFDEF VER2_6}
  801. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  802. {$ENDIF VER2_6}
  803. Public
  804. Published
  805. Property HTMLSnippet : String Index 0 Read FHTMLSnippet Write SetHTMLSnippet;
  806. Property accountId : integer Index 8 Read FaccountId Write SetaccountId;
  807. Property adChoicesDestinationUrl : String Index 16 Read FadChoicesDestinationUrl Write SetadChoicesDestinationUrl;
  808. Property advertiserId : TStringArray Index 24 Read FadvertiserId Write SetadvertiserId;
  809. Property advertiserName : String Index 32 Read FadvertiserName Write SetadvertiserName;
  810. Property agencyId : String Index 40 Read FagencyId Write SetagencyId;
  811. Property apiUploadTimestamp : TDatetime Index 48 Read FapiUploadTimestamp Write SetapiUploadTimestamp;
  812. Property attribute : TintegerArray Index 56 Read Fattribute Write Setattribute;
  813. Property buyerCreativeId : String Index 64 Read FbuyerCreativeId Write SetbuyerCreativeId;
  814. Property clickThroughUrl : TStringArray Index 72 Read FclickThroughUrl Write SetclickThroughUrl;
  815. Property corrections : TCreativeTypecorrectionsArray Index 80 Read Fcorrections Write Setcorrections;
  816. Property dealsStatus : String Index 88 Read FdealsStatus Write SetdealsStatus;
  817. Property filteringReasons : TCreativeTypefilteringReasons Index 96 Read FfilteringReasons Write SetfilteringReasons;
  818. Property height : integer Index 104 Read Fheight Write Setheight;
  819. Property impressionTrackingUrl : TStringArray Index 112 Read FimpressionTrackingUrl Write SetimpressionTrackingUrl;
  820. Property kind : String Index 120 Read Fkind Write Setkind;
  821. Property nativeAd : TCreativeTypenativeAd Index 128 Read FnativeAd Write SetnativeAd;
  822. Property openAuctionStatus : String Index 136 Read FopenAuctionStatus Write SetopenAuctionStatus;
  823. Property productCategories : TintegerArray Index 144 Read FproductCategories Write SetproductCategories;
  824. Property restrictedCategories : TintegerArray Index 152 Read FrestrictedCategories Write SetrestrictedCategories;
  825. Property sensitiveCategories : TintegerArray Index 160 Read FsensitiveCategories Write SetsensitiveCategories;
  826. Property servingRestrictions : TCreativeTypeservingRestrictionsArray Index 168 Read FservingRestrictions Write SetservingRestrictions;
  827. Property vendorType : TintegerArray Index 176 Read FvendorType Write SetvendorType;
  828. Property version : integer Index 184 Read Fversion Write Setversion;
  829. Property videoURL : String Index 192 Read FvideoURL Write SetvideoURL;
  830. Property width : integer Index 200 Read Fwidth Write Setwidth;
  831. end;
  832. TCreativeClass = Class of TCreative;
  833. { --------------------------------------------------------------------
  834. TCreativesList
  835. --------------------------------------------------------------------}
  836. TCreativesList = Class(TGoogleBaseObject)
  837. Private
  838. Fitems : TCreativesListTypeitemsArray;
  839. Fkind : String;
  840. FnextPageToken : String;
  841. Protected
  842. //Property setters
  843. Procedure Setitems(AIndex : Integer; const AValue : TCreativesListTypeitemsArray); virtual;
  844. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  845. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  846. //2.6.4. bug workaround
  847. {$IFDEF VER2_6}
  848. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  849. {$ENDIF VER2_6}
  850. Public
  851. Published
  852. Property items : TCreativesListTypeitemsArray Index 0 Read Fitems Write Setitems;
  853. Property kind : String Index 8 Read Fkind Write Setkind;
  854. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  855. end;
  856. TCreativesListClass = Class of TCreativesList;
  857. { --------------------------------------------------------------------
  858. TDealServingMetadata
  859. --------------------------------------------------------------------}
  860. TDealServingMetadata = Class(TGoogleBaseObject)
  861. Private
  862. FdealPauseStatus : TDealServingMetadataDealPauseStatus;
  863. Protected
  864. //Property setters
  865. Procedure SetdealPauseStatus(AIndex : Integer; const AValue : TDealServingMetadataDealPauseStatus); virtual;
  866. Public
  867. Published
  868. Property dealPauseStatus : TDealServingMetadataDealPauseStatus Index 0 Read FdealPauseStatus Write SetdealPauseStatus;
  869. end;
  870. TDealServingMetadataClass = Class of TDealServingMetadata;
  871. { --------------------------------------------------------------------
  872. TDealServingMetadataDealPauseStatus
  873. --------------------------------------------------------------------}
  874. TDealServingMetadataDealPauseStatus = Class(TGoogleBaseObject)
  875. Private
  876. FfirstPausedBy : String;
  877. FhasBuyerPaused : boolean;
  878. FhasSellerPaused : boolean;
  879. Protected
  880. //Property setters
  881. Procedure SetfirstPausedBy(AIndex : Integer; const AValue : String); virtual;
  882. Procedure SethasBuyerPaused(AIndex : Integer; const AValue : boolean); virtual;
  883. Procedure SethasSellerPaused(AIndex : Integer; const AValue : boolean); virtual;
  884. Public
  885. Published
  886. Property firstPausedBy : String Index 0 Read FfirstPausedBy Write SetfirstPausedBy;
  887. Property hasBuyerPaused : boolean Index 8 Read FhasBuyerPaused Write SethasBuyerPaused;
  888. Property hasSellerPaused : boolean Index 16 Read FhasSellerPaused Write SethasSellerPaused;
  889. end;
  890. TDealServingMetadataDealPauseStatusClass = Class of TDealServingMetadataDealPauseStatus;
  891. { --------------------------------------------------------------------
  892. TDealTerms
  893. --------------------------------------------------------------------}
  894. TDealTerms = Class(TGoogleBaseObject)
  895. Private
  896. FbrandingType : String;
  897. Fdescription : String;
  898. FestimatedGrossSpend : TPrice;
  899. FestimatedImpressionsPerDay : String;
  900. FguaranteedFixedPriceTerms : TDealTermsGuaranteedFixedPriceTerms;
  901. FnonGuaranteedAuctionTerms : TDealTermsNonGuaranteedAuctionTerms;
  902. FnonGuaranteedFixedPriceTerms : TDealTermsNonGuaranteedFixedPriceTerms;
  903. FsellerTimeZone : String;
  904. Protected
  905. //Property setters
  906. Procedure SetbrandingType(AIndex : Integer; const AValue : String); virtual;
  907. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  908. Procedure SetestimatedGrossSpend(AIndex : Integer; const AValue : TPrice); virtual;
  909. Procedure SetestimatedImpressionsPerDay(AIndex : Integer; const AValue : String); virtual;
  910. Procedure SetguaranteedFixedPriceTerms(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTerms); virtual;
  911. Procedure SetnonGuaranteedAuctionTerms(AIndex : Integer; const AValue : TDealTermsNonGuaranteedAuctionTerms); virtual;
  912. Procedure SetnonGuaranteedFixedPriceTerms(AIndex : Integer; const AValue : TDealTermsNonGuaranteedFixedPriceTerms); virtual;
  913. Procedure SetsellerTimeZone(AIndex : Integer; const AValue : String); virtual;
  914. Public
  915. Published
  916. Property brandingType : String Index 0 Read FbrandingType Write SetbrandingType;
  917. Property description : String Index 8 Read Fdescription Write Setdescription;
  918. Property estimatedGrossSpend : TPrice Index 16 Read FestimatedGrossSpend Write SetestimatedGrossSpend;
  919. Property estimatedImpressionsPerDay : String Index 24 Read FestimatedImpressionsPerDay Write SetestimatedImpressionsPerDay;
  920. Property guaranteedFixedPriceTerms : TDealTermsGuaranteedFixedPriceTerms Index 32 Read FguaranteedFixedPriceTerms Write SetguaranteedFixedPriceTerms;
  921. Property nonGuaranteedAuctionTerms : TDealTermsNonGuaranteedAuctionTerms Index 40 Read FnonGuaranteedAuctionTerms Write SetnonGuaranteedAuctionTerms;
  922. Property nonGuaranteedFixedPriceTerms : TDealTermsNonGuaranteedFixedPriceTerms Index 48 Read FnonGuaranteedFixedPriceTerms Write SetnonGuaranteedFixedPriceTerms;
  923. Property sellerTimeZone : String Index 56 Read FsellerTimeZone Write SetsellerTimeZone;
  924. end;
  925. TDealTermsClass = Class of TDealTerms;
  926. { --------------------------------------------------------------------
  927. TDealTermsGuaranteedFixedPriceTerms
  928. --------------------------------------------------------------------}
  929. TDealTermsGuaranteedFixedPriceTerms = Class(TGoogleBaseObject)
  930. Private
  931. FbillingInfo : TDealTermsGuaranteedFixedPriceTermsBillingInfo;
  932. FfixedPrices : TDealTermsGuaranteedFixedPriceTermsTypefixedPricesArray;
  933. FguaranteedImpressions : String;
  934. FguaranteedLooks : String;
  935. Protected
  936. //Property setters
  937. Procedure SetbillingInfo(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTermsBillingInfo); virtual;
  938. Procedure SetfixedPrices(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTermsTypefixedPricesArray); virtual;
  939. Procedure SetguaranteedImpressions(AIndex : Integer; const AValue : String); virtual;
  940. Procedure SetguaranteedLooks(AIndex : Integer; const AValue : String); virtual;
  941. //2.6.4. bug workaround
  942. {$IFDEF VER2_6}
  943. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  944. {$ENDIF VER2_6}
  945. Public
  946. Published
  947. Property billingInfo : TDealTermsGuaranteedFixedPriceTermsBillingInfo Index 0 Read FbillingInfo Write SetbillingInfo;
  948. Property fixedPrices : TDealTermsGuaranteedFixedPriceTermsTypefixedPricesArray Index 8 Read FfixedPrices Write SetfixedPrices;
  949. Property guaranteedImpressions : String Index 16 Read FguaranteedImpressions Write SetguaranteedImpressions;
  950. Property guaranteedLooks : String Index 24 Read FguaranteedLooks Write SetguaranteedLooks;
  951. end;
  952. TDealTermsGuaranteedFixedPriceTermsClass = Class of TDealTermsGuaranteedFixedPriceTerms;
  953. { --------------------------------------------------------------------
  954. TDealTermsGuaranteedFixedPriceTermsBillingInfo
  955. --------------------------------------------------------------------}
  956. TDealTermsGuaranteedFixedPriceTermsBillingInfo = Class(TGoogleBaseObject)
  957. Private
  958. FcurrencyConversionTimeMs : String;
  959. ForiginalContractedQuantity : String;
  960. Fprice : TPrice;
  961. Protected
  962. //Property setters
  963. Procedure SetcurrencyConversionTimeMs(AIndex : Integer; const AValue : String); virtual;
  964. Procedure SetoriginalContractedQuantity(AIndex : Integer; const AValue : String); virtual;
  965. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  966. Public
  967. Published
  968. Property currencyConversionTimeMs : String Index 0 Read FcurrencyConversionTimeMs Write SetcurrencyConversionTimeMs;
  969. Property originalContractedQuantity : String Index 8 Read ForiginalContractedQuantity Write SetoriginalContractedQuantity;
  970. Property price : TPrice Index 16 Read Fprice Write Setprice;
  971. end;
  972. TDealTermsGuaranteedFixedPriceTermsBillingInfoClass = Class of TDealTermsGuaranteedFixedPriceTermsBillingInfo;
  973. { --------------------------------------------------------------------
  974. TDealTermsNonGuaranteedAuctionTerms
  975. --------------------------------------------------------------------}
  976. TDealTermsNonGuaranteedAuctionTerms = Class(TGoogleBaseObject)
  977. Private
  978. FautoOptimizePrivateAuction : boolean;
  979. FreservePricePerBuyers : TDealTermsNonGuaranteedAuctionTermsTypereservePricePerBuyersArray;
  980. Protected
  981. //Property setters
  982. Procedure SetautoOptimizePrivateAuction(AIndex : Integer; const AValue : boolean); virtual;
  983. Procedure SetreservePricePerBuyers(AIndex : Integer; const AValue : TDealTermsNonGuaranteedAuctionTermsTypereservePricePerBuyersArray); virtual;
  984. //2.6.4. bug workaround
  985. {$IFDEF VER2_6}
  986. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  987. {$ENDIF VER2_6}
  988. Public
  989. Published
  990. Property autoOptimizePrivateAuction : boolean Index 0 Read FautoOptimizePrivateAuction Write SetautoOptimizePrivateAuction;
  991. Property reservePricePerBuyers : TDealTermsNonGuaranteedAuctionTermsTypereservePricePerBuyersArray Index 8 Read FreservePricePerBuyers Write SetreservePricePerBuyers;
  992. end;
  993. TDealTermsNonGuaranteedAuctionTermsClass = Class of TDealTermsNonGuaranteedAuctionTerms;
  994. { --------------------------------------------------------------------
  995. TDealTermsNonGuaranteedFixedPriceTerms
  996. --------------------------------------------------------------------}
  997. TDealTermsNonGuaranteedFixedPriceTerms = Class(TGoogleBaseObject)
  998. Private
  999. FfixedPrices : TDealTermsNonGuaranteedFixedPriceTermsTypefixedPricesArray;
  1000. Protected
  1001. //Property setters
  1002. Procedure SetfixedPrices(AIndex : Integer; const AValue : TDealTermsNonGuaranteedFixedPriceTermsTypefixedPricesArray); virtual;
  1003. //2.6.4. bug workaround
  1004. {$IFDEF VER2_6}
  1005. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1006. {$ENDIF VER2_6}
  1007. Public
  1008. Published
  1009. Property fixedPrices : TDealTermsNonGuaranteedFixedPriceTermsTypefixedPricesArray Index 0 Read FfixedPrices Write SetfixedPrices;
  1010. end;
  1011. TDealTermsNonGuaranteedFixedPriceTermsClass = Class of TDealTermsNonGuaranteedFixedPriceTerms;
  1012. { --------------------------------------------------------------------
  1013. TDeleteOrderDealsRequest
  1014. --------------------------------------------------------------------}
  1015. TDeleteOrderDealsRequest = Class(TGoogleBaseObject)
  1016. Private
  1017. FdealIds : TStringArray;
  1018. FproposalRevisionNumber : String;
  1019. FupdateAction : String;
  1020. Protected
  1021. //Property setters
  1022. Procedure SetdealIds(AIndex : Integer; const AValue : TStringArray); virtual;
  1023. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1024. Procedure SetupdateAction(AIndex : Integer; const AValue : String); virtual;
  1025. //2.6.4. bug workaround
  1026. {$IFDEF VER2_6}
  1027. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1028. {$ENDIF VER2_6}
  1029. Public
  1030. Published
  1031. Property dealIds : TStringArray Index 0 Read FdealIds Write SetdealIds;
  1032. Property proposalRevisionNumber : String Index 8 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  1033. Property updateAction : String Index 16 Read FupdateAction Write SetupdateAction;
  1034. end;
  1035. TDeleteOrderDealsRequestClass = Class of TDeleteOrderDealsRequest;
  1036. { --------------------------------------------------------------------
  1037. TDeleteOrderDealsResponse
  1038. --------------------------------------------------------------------}
  1039. TDeleteOrderDealsResponse = Class(TGoogleBaseObject)
  1040. Private
  1041. Fdeals : TDeleteOrderDealsResponseTypedealsArray;
  1042. FproposalRevisionNumber : String;
  1043. Protected
  1044. //Property setters
  1045. Procedure Setdeals(AIndex : Integer; const AValue : TDeleteOrderDealsResponseTypedealsArray); virtual;
  1046. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1047. //2.6.4. bug workaround
  1048. {$IFDEF VER2_6}
  1049. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1050. {$ENDIF VER2_6}
  1051. Public
  1052. Published
  1053. Property deals : TDeleteOrderDealsResponseTypedealsArray Index 0 Read Fdeals Write Setdeals;
  1054. Property proposalRevisionNumber : String Index 8 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  1055. end;
  1056. TDeleteOrderDealsResponseClass = Class of TDeleteOrderDealsResponse;
  1057. { --------------------------------------------------------------------
  1058. TDeliveryControl
  1059. --------------------------------------------------------------------}
  1060. TDeliveryControl = Class(TGoogleBaseObject)
  1061. Private
  1062. FcreativeBlockingLevel : String;
  1063. FdeliveryRateType : String;
  1064. FfrequencyCaps : TDeliveryControlTypefrequencyCapsArray;
  1065. Protected
  1066. //Property setters
  1067. Procedure SetcreativeBlockingLevel(AIndex : Integer; const AValue : String); virtual;
  1068. Procedure SetdeliveryRateType(AIndex : Integer; const AValue : String); virtual;
  1069. Procedure SetfrequencyCaps(AIndex : Integer; const AValue : TDeliveryControlTypefrequencyCapsArray); virtual;
  1070. //2.6.4. bug workaround
  1071. {$IFDEF VER2_6}
  1072. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1073. {$ENDIF VER2_6}
  1074. Public
  1075. Published
  1076. Property creativeBlockingLevel : String Index 0 Read FcreativeBlockingLevel Write SetcreativeBlockingLevel;
  1077. Property deliveryRateType : String Index 8 Read FdeliveryRateType Write SetdeliveryRateType;
  1078. Property frequencyCaps : TDeliveryControlTypefrequencyCapsArray Index 16 Read FfrequencyCaps Write SetfrequencyCaps;
  1079. end;
  1080. TDeliveryControlClass = Class of TDeliveryControl;
  1081. { --------------------------------------------------------------------
  1082. TDeliveryControlFrequencyCap
  1083. --------------------------------------------------------------------}
  1084. TDeliveryControlFrequencyCap = Class(TGoogleBaseObject)
  1085. Private
  1086. FmaxImpressions : integer;
  1087. FnumTimeUnits : integer;
  1088. FtimeUnitType : String;
  1089. Protected
  1090. //Property setters
  1091. Procedure SetmaxImpressions(AIndex : Integer; const AValue : integer); virtual;
  1092. Procedure SetnumTimeUnits(AIndex : Integer; const AValue : integer); virtual;
  1093. Procedure SettimeUnitType(AIndex : Integer; const AValue : String); virtual;
  1094. Public
  1095. Published
  1096. Property maxImpressions : integer Index 0 Read FmaxImpressions Write SetmaxImpressions;
  1097. Property numTimeUnits : integer Index 8 Read FnumTimeUnits Write SetnumTimeUnits;
  1098. Property timeUnitType : String Index 16 Read FtimeUnitType Write SettimeUnitType;
  1099. end;
  1100. TDeliveryControlFrequencyCapClass = Class of TDeliveryControlFrequencyCap;
  1101. { --------------------------------------------------------------------
  1102. TDimension
  1103. --------------------------------------------------------------------}
  1104. TDimension = Class(TGoogleBaseObject)
  1105. Private
  1106. FdimensionType : String;
  1107. FdimensionValues : TDimensionTypedimensionValuesArray;
  1108. Protected
  1109. //Property setters
  1110. Procedure SetdimensionType(AIndex : Integer; const AValue : String); virtual;
  1111. Procedure SetdimensionValues(AIndex : Integer; const AValue : TDimensionTypedimensionValuesArray); virtual;
  1112. //2.6.4. bug workaround
  1113. {$IFDEF VER2_6}
  1114. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1115. {$ENDIF VER2_6}
  1116. Public
  1117. Published
  1118. Property dimensionType : String Index 0 Read FdimensionType Write SetdimensionType;
  1119. Property dimensionValues : TDimensionTypedimensionValuesArray Index 8 Read FdimensionValues Write SetdimensionValues;
  1120. end;
  1121. TDimensionClass = Class of TDimension;
  1122. { --------------------------------------------------------------------
  1123. TDimensionDimensionValue
  1124. --------------------------------------------------------------------}
  1125. TDimensionDimensionValue = Class(TGoogleBaseObject)
  1126. Private
  1127. Fid : integer;
  1128. Fname : String;
  1129. Protected
  1130. //Property setters
  1131. Procedure Setid(AIndex : Integer; const AValue : integer); virtual;
  1132. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1133. Public
  1134. Published
  1135. Property id : integer Index 0 Read Fid Write Setid;
  1136. Property name : String Index 8 Read Fname Write Setname;
  1137. end;
  1138. TDimensionDimensionValueClass = Class of TDimensionDimensionValue;
  1139. { --------------------------------------------------------------------
  1140. TEditAllOrderDealsRequest
  1141. --------------------------------------------------------------------}
  1142. TEditAllOrderDealsRequest = Class(TGoogleBaseObject)
  1143. Private
  1144. Fdeals : TEditAllOrderDealsRequestTypedealsArray;
  1145. Fproposal : TProposal;
  1146. FproposalRevisionNumber : String;
  1147. FupdateAction : String;
  1148. Protected
  1149. //Property setters
  1150. Procedure Setdeals(AIndex : Integer; const AValue : TEditAllOrderDealsRequestTypedealsArray); virtual;
  1151. Procedure Setproposal(AIndex : Integer; const AValue : TProposal); virtual;
  1152. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1153. Procedure SetupdateAction(AIndex : Integer; const AValue : String); virtual;
  1154. //2.6.4. bug workaround
  1155. {$IFDEF VER2_6}
  1156. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1157. {$ENDIF VER2_6}
  1158. Public
  1159. Published
  1160. Property deals : TEditAllOrderDealsRequestTypedealsArray Index 0 Read Fdeals Write Setdeals;
  1161. Property proposal : TProposal Index 8 Read Fproposal Write Setproposal;
  1162. Property proposalRevisionNumber : String Index 16 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  1163. Property updateAction : String Index 24 Read FupdateAction Write SetupdateAction;
  1164. end;
  1165. TEditAllOrderDealsRequestClass = Class of TEditAllOrderDealsRequest;
  1166. { --------------------------------------------------------------------
  1167. TEditAllOrderDealsResponse
  1168. --------------------------------------------------------------------}
  1169. TEditAllOrderDealsResponse = Class(TGoogleBaseObject)
  1170. Private
  1171. Fdeals : TEditAllOrderDealsResponseTypedealsArray;
  1172. ForderRevisionNumber : String;
  1173. Protected
  1174. //Property setters
  1175. Procedure Setdeals(AIndex : Integer; const AValue : TEditAllOrderDealsResponseTypedealsArray); virtual;
  1176. Procedure SetorderRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1177. //2.6.4. bug workaround
  1178. {$IFDEF VER2_6}
  1179. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1180. {$ENDIF VER2_6}
  1181. Public
  1182. Published
  1183. Property deals : TEditAllOrderDealsResponseTypedealsArray Index 0 Read Fdeals Write Setdeals;
  1184. Property orderRevisionNumber : String Index 8 Read ForderRevisionNumber Write SetorderRevisionNumber;
  1185. end;
  1186. TEditAllOrderDealsResponseClass = Class of TEditAllOrderDealsResponse;
  1187. { --------------------------------------------------------------------
  1188. TGetOffersResponse
  1189. --------------------------------------------------------------------}
  1190. TGetOffersResponse = Class(TGoogleBaseObject)
  1191. Private
  1192. Fproducts : TGetOffersResponseTypeproductsArray;
  1193. Protected
  1194. //Property setters
  1195. Procedure Setproducts(AIndex : Integer; const AValue : TGetOffersResponseTypeproductsArray); virtual;
  1196. //2.6.4. bug workaround
  1197. {$IFDEF VER2_6}
  1198. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1199. {$ENDIF VER2_6}
  1200. Public
  1201. Published
  1202. Property products : TGetOffersResponseTypeproductsArray Index 0 Read Fproducts Write Setproducts;
  1203. end;
  1204. TGetOffersResponseClass = Class of TGetOffersResponse;
  1205. { --------------------------------------------------------------------
  1206. TGetOrderDealsResponse
  1207. --------------------------------------------------------------------}
  1208. TGetOrderDealsResponse = Class(TGoogleBaseObject)
  1209. Private
  1210. Fdeals : TGetOrderDealsResponseTypedealsArray;
  1211. Protected
  1212. //Property setters
  1213. Procedure Setdeals(AIndex : Integer; const AValue : TGetOrderDealsResponseTypedealsArray); virtual;
  1214. //2.6.4. bug workaround
  1215. {$IFDEF VER2_6}
  1216. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1217. {$ENDIF VER2_6}
  1218. Public
  1219. Published
  1220. Property deals : TGetOrderDealsResponseTypedealsArray Index 0 Read Fdeals Write Setdeals;
  1221. end;
  1222. TGetOrderDealsResponseClass = Class of TGetOrderDealsResponse;
  1223. { --------------------------------------------------------------------
  1224. TGetOrderNotesResponse
  1225. --------------------------------------------------------------------}
  1226. TGetOrderNotesResponse = Class(TGoogleBaseObject)
  1227. Private
  1228. Fnotes : TGetOrderNotesResponseTypenotesArray;
  1229. Protected
  1230. //Property setters
  1231. Procedure Setnotes(AIndex : Integer; const AValue : TGetOrderNotesResponseTypenotesArray); virtual;
  1232. //2.6.4. bug workaround
  1233. {$IFDEF VER2_6}
  1234. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1235. {$ENDIF VER2_6}
  1236. Public
  1237. Published
  1238. Property notes : TGetOrderNotesResponseTypenotesArray Index 0 Read Fnotes Write Setnotes;
  1239. end;
  1240. TGetOrderNotesResponseClass = Class of TGetOrderNotesResponse;
  1241. { --------------------------------------------------------------------
  1242. TGetOrdersResponse
  1243. --------------------------------------------------------------------}
  1244. TGetOrdersResponse = Class(TGoogleBaseObject)
  1245. Private
  1246. Fproposals : TGetOrdersResponseTypeproposalsArray;
  1247. Protected
  1248. //Property setters
  1249. Procedure Setproposals(AIndex : Integer; const AValue : TGetOrdersResponseTypeproposalsArray); virtual;
  1250. //2.6.4. bug workaround
  1251. {$IFDEF VER2_6}
  1252. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1253. {$ENDIF VER2_6}
  1254. Public
  1255. Published
  1256. Property proposals : TGetOrdersResponseTypeproposalsArray Index 0 Read Fproposals Write Setproposals;
  1257. end;
  1258. TGetOrdersResponseClass = Class of TGetOrdersResponse;
  1259. { --------------------------------------------------------------------
  1260. TGetPublisherProfilesByAccountIdResponse
  1261. --------------------------------------------------------------------}
  1262. TGetPublisherProfilesByAccountIdResponse = Class(TGoogleBaseObject)
  1263. Private
  1264. Fprofiles : TGetPublisherProfilesByAccountIdResponseTypeprofilesArray;
  1265. Protected
  1266. //Property setters
  1267. Procedure Setprofiles(AIndex : Integer; const AValue : TGetPublisherProfilesByAccountIdResponseTypeprofilesArray); virtual;
  1268. //2.6.4. bug workaround
  1269. {$IFDEF VER2_6}
  1270. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1271. {$ENDIF VER2_6}
  1272. Public
  1273. Published
  1274. Property profiles : TGetPublisherProfilesByAccountIdResponseTypeprofilesArray Index 0 Read Fprofiles Write Setprofiles;
  1275. end;
  1276. TGetPublisherProfilesByAccountIdResponseClass = Class of TGetPublisherProfilesByAccountIdResponse;
  1277. { --------------------------------------------------------------------
  1278. TMarketplaceDeal
  1279. --------------------------------------------------------------------}
  1280. TMarketplaceDeal = Class(TGoogleBaseObject)
  1281. Private
  1282. FbuyerPrivateData : TPrivateData;
  1283. FcreationTimeMs : String;
  1284. FcreativePreApprovalPolicy : String;
  1285. FcreativeSafeFrameCompatibility : String;
  1286. FdealId : String;
  1287. FdealServingMetadata : TDealServingMetadata;
  1288. FdeliveryControl : TDeliveryControl;
  1289. FexternalDealId : String;
  1290. FflightEndTimeMs : String;
  1291. FflightStartTimeMs : String;
  1292. FinventoryDescription : String;
  1293. Fkind : String;
  1294. FlastUpdateTimeMs : String;
  1295. Fname : String;
  1296. FproductId : String;
  1297. FproductRevisionNumber : String;
  1298. FprogrammaticCreativeSource : String;
  1299. FproposalId : String;
  1300. FsellerContacts : TMarketplaceDealTypesellerContactsArray;
  1301. FsharedTargetings : TMarketplaceDealTypesharedTargetingsArray;
  1302. FsyndicationProduct : String;
  1303. Fterms : TDealTerms;
  1304. FwebPropertyCode : String;
  1305. Protected
  1306. //Property setters
  1307. Procedure SetbuyerPrivateData(AIndex : Integer; const AValue : TPrivateData); virtual;
  1308. Procedure SetcreationTimeMs(AIndex : Integer; const AValue : String); virtual;
  1309. Procedure SetcreativePreApprovalPolicy(AIndex : Integer; const AValue : String); virtual;
  1310. Procedure SetcreativeSafeFrameCompatibility(AIndex : Integer; const AValue : String); virtual;
  1311. Procedure SetdealId(AIndex : Integer; const AValue : String); virtual;
  1312. Procedure SetdealServingMetadata(AIndex : Integer; const AValue : TDealServingMetadata); virtual;
  1313. Procedure SetdeliveryControl(AIndex : Integer; const AValue : TDeliveryControl); virtual;
  1314. Procedure SetexternalDealId(AIndex : Integer; const AValue : String); virtual;
  1315. Procedure SetflightEndTimeMs(AIndex : Integer; const AValue : String); virtual;
  1316. Procedure SetflightStartTimeMs(AIndex : Integer; const AValue : String); virtual;
  1317. Procedure SetinventoryDescription(AIndex : Integer; const AValue : String); virtual;
  1318. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1319. Procedure SetlastUpdateTimeMs(AIndex : Integer; const AValue : String); virtual;
  1320. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1321. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  1322. Procedure SetproductRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1323. Procedure SetprogrammaticCreativeSource(AIndex : Integer; const AValue : String); virtual;
  1324. Procedure SetproposalId(AIndex : Integer; const AValue : String); virtual;
  1325. Procedure SetsellerContacts(AIndex : Integer; const AValue : TMarketplaceDealTypesellerContactsArray); virtual;
  1326. Procedure SetsharedTargetings(AIndex : Integer; const AValue : TMarketplaceDealTypesharedTargetingsArray); virtual;
  1327. Procedure SetsyndicationProduct(AIndex : Integer; const AValue : String); virtual;
  1328. Procedure Setterms(AIndex : Integer; const AValue : TDealTerms); virtual;
  1329. Procedure SetwebPropertyCode(AIndex : Integer; const AValue : String); virtual;
  1330. //2.6.4. bug workaround
  1331. {$IFDEF VER2_6}
  1332. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1333. {$ENDIF VER2_6}
  1334. Public
  1335. Published
  1336. Property buyerPrivateData : TPrivateData Index 0 Read FbuyerPrivateData Write SetbuyerPrivateData;
  1337. Property creationTimeMs : String Index 8 Read FcreationTimeMs Write SetcreationTimeMs;
  1338. Property creativePreApprovalPolicy : String Index 16 Read FcreativePreApprovalPolicy Write SetcreativePreApprovalPolicy;
  1339. Property creativeSafeFrameCompatibility : String Index 24 Read FcreativeSafeFrameCompatibility Write SetcreativeSafeFrameCompatibility;
  1340. Property dealId : String Index 32 Read FdealId Write SetdealId;
  1341. Property dealServingMetadata : TDealServingMetadata Index 40 Read FdealServingMetadata Write SetdealServingMetadata;
  1342. Property deliveryControl : TDeliveryControl Index 48 Read FdeliveryControl Write SetdeliveryControl;
  1343. Property externalDealId : String Index 56 Read FexternalDealId Write SetexternalDealId;
  1344. Property flightEndTimeMs : String Index 64 Read FflightEndTimeMs Write SetflightEndTimeMs;
  1345. Property flightStartTimeMs : String Index 72 Read FflightStartTimeMs Write SetflightStartTimeMs;
  1346. Property inventoryDescription : String Index 80 Read FinventoryDescription Write SetinventoryDescription;
  1347. Property kind : String Index 88 Read Fkind Write Setkind;
  1348. Property lastUpdateTimeMs : String Index 96 Read FlastUpdateTimeMs Write SetlastUpdateTimeMs;
  1349. Property name : String Index 104 Read Fname Write Setname;
  1350. Property productId : String Index 112 Read FproductId Write SetproductId;
  1351. Property productRevisionNumber : String Index 120 Read FproductRevisionNumber Write SetproductRevisionNumber;
  1352. Property programmaticCreativeSource : String Index 128 Read FprogrammaticCreativeSource Write SetprogrammaticCreativeSource;
  1353. Property proposalId : String Index 136 Read FproposalId Write SetproposalId;
  1354. Property sellerContacts : TMarketplaceDealTypesellerContactsArray Index 144 Read FsellerContacts Write SetsellerContacts;
  1355. Property sharedTargetings : TMarketplaceDealTypesharedTargetingsArray Index 152 Read FsharedTargetings Write SetsharedTargetings;
  1356. Property syndicationProduct : String Index 160 Read FsyndicationProduct Write SetsyndicationProduct;
  1357. Property terms : TDealTerms Index 168 Read Fterms Write Setterms;
  1358. Property webPropertyCode : String Index 176 Read FwebPropertyCode Write SetwebPropertyCode;
  1359. end;
  1360. TMarketplaceDealClass = Class of TMarketplaceDeal;
  1361. { --------------------------------------------------------------------
  1362. TMarketplaceDealParty
  1363. --------------------------------------------------------------------}
  1364. TMarketplaceDealParty = Class(TGoogleBaseObject)
  1365. Private
  1366. Fbuyer : TBuyer;
  1367. Fseller : TSeller;
  1368. Protected
  1369. //Property setters
  1370. Procedure Setbuyer(AIndex : Integer; const AValue : TBuyer); virtual;
  1371. Procedure Setseller(AIndex : Integer; const AValue : TSeller); virtual;
  1372. Public
  1373. Published
  1374. Property buyer : TBuyer Index 0 Read Fbuyer Write Setbuyer;
  1375. Property seller : TSeller Index 8 Read Fseller Write Setseller;
  1376. end;
  1377. TMarketplaceDealPartyClass = Class of TMarketplaceDealParty;
  1378. { --------------------------------------------------------------------
  1379. TMarketplaceLabel
  1380. --------------------------------------------------------------------}
  1381. TMarketplaceLabel = Class(TGoogleBaseObject)
  1382. Private
  1383. FaccountId : String;
  1384. FcreateTimeMs : String;
  1385. FdeprecatedMarketplaceDealParty : TMarketplaceDealParty;
  1386. F_label : String;
  1387. Protected
  1388. Class Function ExportPropertyName(Const AName : String) : string; override;
  1389. //Property setters
  1390. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1391. Procedure SetcreateTimeMs(AIndex : Integer; const AValue : String); virtual;
  1392. Procedure SetdeprecatedMarketplaceDealParty(AIndex : Integer; const AValue : TMarketplaceDealParty); virtual;
  1393. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  1394. Public
  1395. Published
  1396. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1397. Property createTimeMs : String Index 8 Read FcreateTimeMs Write SetcreateTimeMs;
  1398. Property deprecatedMarketplaceDealParty : TMarketplaceDealParty Index 16 Read FdeprecatedMarketplaceDealParty Write SetdeprecatedMarketplaceDealParty;
  1399. Property _label : String Index 24 Read F_label Write Set_label;
  1400. end;
  1401. TMarketplaceLabelClass = Class of TMarketplaceLabel;
  1402. { --------------------------------------------------------------------
  1403. TMarketplaceNote
  1404. --------------------------------------------------------------------}
  1405. TMarketplaceNote = Class(TGoogleBaseObject)
  1406. Private
  1407. FcreatorRole : String;
  1408. FdealId : String;
  1409. Fkind : String;
  1410. Fnote : String;
  1411. FnoteId : String;
  1412. FproposalId : String;
  1413. FproposalRevisionNumber : String;
  1414. FtimestampMs : String;
  1415. Protected
  1416. //Property setters
  1417. Procedure SetcreatorRole(AIndex : Integer; const AValue : String); virtual;
  1418. Procedure SetdealId(AIndex : Integer; const AValue : String); virtual;
  1419. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1420. Procedure Setnote(AIndex : Integer; const AValue : String); virtual;
  1421. Procedure SetnoteId(AIndex : Integer; const AValue : String); virtual;
  1422. Procedure SetproposalId(AIndex : Integer; const AValue : String); virtual;
  1423. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1424. Procedure SettimestampMs(AIndex : Integer; const AValue : String); virtual;
  1425. Public
  1426. Published
  1427. Property creatorRole : String Index 0 Read FcreatorRole Write SetcreatorRole;
  1428. Property dealId : String Index 8 Read FdealId Write SetdealId;
  1429. Property kind : String Index 16 Read Fkind Write Setkind;
  1430. Property note : String Index 24 Read Fnote Write Setnote;
  1431. Property noteId : String Index 32 Read FnoteId Write SetnoteId;
  1432. Property proposalId : String Index 40 Read FproposalId Write SetproposalId;
  1433. Property proposalRevisionNumber : String Index 48 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  1434. Property timestampMs : String Index 56 Read FtimestampMs Write SettimestampMs;
  1435. end;
  1436. TMarketplaceNoteClass = Class of TMarketplaceNote;
  1437. { --------------------------------------------------------------------
  1438. TPerformanceReport
  1439. --------------------------------------------------------------------}
  1440. TPerformanceReport = Class(TGoogleBaseObject)
  1441. Private
  1442. FbidRate : double;
  1443. FbidRequestRate : double;
  1444. FcalloutStatusRate : TTJSONSchemaArray;
  1445. FcookieMatcherStatusRate : TTJSONSchemaArray;
  1446. FcreativeStatusRate : TTJSONSchemaArray;
  1447. FfilteredBidRate : double;
  1448. FhostedMatchStatusRate : TTJSONSchemaArray;
  1449. FinventoryMatchRate : double;
  1450. Fkind : String;
  1451. Flatency50thPercentile : double;
  1452. Flatency85thPercentile : double;
  1453. Flatency95thPercentile : double;
  1454. FnoQuotaInRegion : double;
  1455. FoutOfQuota : double;
  1456. FpixelMatchRequests : double;
  1457. FpixelMatchResponses : double;
  1458. FquotaConfiguredLimit : double;
  1459. FquotaThrottledLimit : double;
  1460. Fregion : String;
  1461. FsuccessfulRequestRate : double;
  1462. Ftimestamp : String;
  1463. FunsuccessfulRequestRate : double;
  1464. Protected
  1465. //Property setters
  1466. Procedure SetbidRate(AIndex : Integer; const AValue : double); virtual;
  1467. Procedure SetbidRequestRate(AIndex : Integer; const AValue : double); virtual;
  1468. Procedure SetcalloutStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray); virtual;
  1469. Procedure SetcookieMatcherStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray); virtual;
  1470. Procedure SetcreativeStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray); virtual;
  1471. Procedure SetfilteredBidRate(AIndex : Integer; const AValue : double); virtual;
  1472. Procedure SethostedMatchStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray); virtual;
  1473. Procedure SetinventoryMatchRate(AIndex : Integer; const AValue : double); virtual;
  1474. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1475. Procedure Setlatency50thPercentile(AIndex : Integer; const AValue : double); virtual;
  1476. Procedure Setlatency85thPercentile(AIndex : Integer; const AValue : double); virtual;
  1477. Procedure Setlatency95thPercentile(AIndex : Integer; const AValue : double); virtual;
  1478. Procedure SetnoQuotaInRegion(AIndex : Integer; const AValue : double); virtual;
  1479. Procedure SetoutOfQuota(AIndex : Integer; const AValue : double); virtual;
  1480. Procedure SetpixelMatchRequests(AIndex : Integer; const AValue : double); virtual;
  1481. Procedure SetpixelMatchResponses(AIndex : Integer; const AValue : double); virtual;
  1482. Procedure SetquotaConfiguredLimit(AIndex : Integer; const AValue : double); virtual;
  1483. Procedure SetquotaThrottledLimit(AIndex : Integer; const AValue : double); virtual;
  1484. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  1485. Procedure SetsuccessfulRequestRate(AIndex : Integer; const AValue : double); virtual;
  1486. Procedure Settimestamp(AIndex : Integer; const AValue : String); virtual;
  1487. Procedure SetunsuccessfulRequestRate(AIndex : Integer; const AValue : double); virtual;
  1488. //2.6.4. bug workaround
  1489. {$IFDEF VER2_6}
  1490. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1491. {$ENDIF VER2_6}
  1492. Public
  1493. Published
  1494. Property bidRate : double Index 0 Read FbidRate Write SetbidRate;
  1495. Property bidRequestRate : double Index 8 Read FbidRequestRate Write SetbidRequestRate;
  1496. Property calloutStatusRate : TTJSONSchemaArray Index 16 Read FcalloutStatusRate Write SetcalloutStatusRate;
  1497. Property cookieMatcherStatusRate : TTJSONSchemaArray Index 24 Read FcookieMatcherStatusRate Write SetcookieMatcherStatusRate;
  1498. Property creativeStatusRate : TTJSONSchemaArray Index 32 Read FcreativeStatusRate Write SetcreativeStatusRate;
  1499. Property filteredBidRate : double Index 40 Read FfilteredBidRate Write SetfilteredBidRate;
  1500. Property hostedMatchStatusRate : TTJSONSchemaArray Index 48 Read FhostedMatchStatusRate Write SethostedMatchStatusRate;
  1501. Property inventoryMatchRate : double Index 56 Read FinventoryMatchRate Write SetinventoryMatchRate;
  1502. Property kind : String Index 64 Read Fkind Write Setkind;
  1503. Property latency50thPercentile : double Index 72 Read Flatency50thPercentile Write Setlatency50thPercentile;
  1504. Property latency85thPercentile : double Index 80 Read Flatency85thPercentile Write Setlatency85thPercentile;
  1505. Property latency95thPercentile : double Index 88 Read Flatency95thPercentile Write Setlatency95thPercentile;
  1506. Property noQuotaInRegion : double Index 96 Read FnoQuotaInRegion Write SetnoQuotaInRegion;
  1507. Property outOfQuota : double Index 104 Read FoutOfQuota Write SetoutOfQuota;
  1508. Property pixelMatchRequests : double Index 112 Read FpixelMatchRequests Write SetpixelMatchRequests;
  1509. Property pixelMatchResponses : double Index 120 Read FpixelMatchResponses Write SetpixelMatchResponses;
  1510. Property quotaConfiguredLimit : double Index 128 Read FquotaConfiguredLimit Write SetquotaConfiguredLimit;
  1511. Property quotaThrottledLimit : double Index 136 Read FquotaThrottledLimit Write SetquotaThrottledLimit;
  1512. Property region : String Index 144 Read Fregion Write Setregion;
  1513. Property successfulRequestRate : double Index 152 Read FsuccessfulRequestRate Write SetsuccessfulRequestRate;
  1514. Property timestamp : String Index 160 Read Ftimestamp Write Settimestamp;
  1515. Property unsuccessfulRequestRate : double Index 168 Read FunsuccessfulRequestRate Write SetunsuccessfulRequestRate;
  1516. end;
  1517. TPerformanceReportClass = Class of TPerformanceReport;
  1518. { --------------------------------------------------------------------
  1519. TPerformanceReportList
  1520. --------------------------------------------------------------------}
  1521. TPerformanceReportList = Class(TGoogleBaseObject)
  1522. Private
  1523. Fkind : String;
  1524. FperformanceReport : TPerformanceReportListTypeperformanceReportArray;
  1525. Protected
  1526. //Property setters
  1527. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1528. Procedure SetperformanceReport(AIndex : Integer; const AValue : TPerformanceReportListTypeperformanceReportArray); virtual;
  1529. //2.6.4. bug workaround
  1530. {$IFDEF VER2_6}
  1531. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1532. {$ENDIF VER2_6}
  1533. Public
  1534. Published
  1535. Property kind : String Index 0 Read Fkind Write Setkind;
  1536. Property performanceReport : TPerformanceReportListTypeperformanceReportArray Index 8 Read FperformanceReport Write SetperformanceReport;
  1537. end;
  1538. TPerformanceReportListClass = Class of TPerformanceReportList;
  1539. { --------------------------------------------------------------------
  1540. TPretargetingConfigTypedimensionsItem
  1541. --------------------------------------------------------------------}
  1542. TPretargetingConfigTypedimensionsItem = Class(TGoogleBaseObject)
  1543. Private
  1544. Fheight : String;
  1545. Fwidth : String;
  1546. Protected
  1547. //Property setters
  1548. Procedure Setheight(AIndex : Integer; const AValue : String); virtual;
  1549. Procedure Setwidth(AIndex : Integer; const AValue : String); virtual;
  1550. Public
  1551. Published
  1552. Property height : String Index 0 Read Fheight Write Setheight;
  1553. Property width : String Index 8 Read Fwidth Write Setwidth;
  1554. end;
  1555. TPretargetingConfigTypedimensionsItemClass = Class of TPretargetingConfigTypedimensionsItem;
  1556. { --------------------------------------------------------------------
  1557. TPretargetingConfigTypeexcludedPlacementsItem
  1558. --------------------------------------------------------------------}
  1559. TPretargetingConfigTypeexcludedPlacementsItem = Class(TGoogleBaseObject)
  1560. Private
  1561. Ftoken : String;
  1562. F_type : String;
  1563. Protected
  1564. Class Function ExportPropertyName(Const AName : String) : string; override;
  1565. //Property setters
  1566. Procedure Settoken(AIndex : Integer; const AValue : String); virtual;
  1567. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1568. Public
  1569. Published
  1570. Property token : String Index 0 Read Ftoken Write Settoken;
  1571. Property _type : String Index 8 Read F_type Write Set_type;
  1572. end;
  1573. TPretargetingConfigTypeexcludedPlacementsItemClass = Class of TPretargetingConfigTypeexcludedPlacementsItem;
  1574. { --------------------------------------------------------------------
  1575. TPretargetingConfigTypeplacementsItem
  1576. --------------------------------------------------------------------}
  1577. TPretargetingConfigTypeplacementsItem = Class(TGoogleBaseObject)
  1578. Private
  1579. Ftoken : String;
  1580. F_type : String;
  1581. Protected
  1582. Class Function ExportPropertyName(Const AName : String) : string; override;
  1583. //Property setters
  1584. Procedure Settoken(AIndex : Integer; const AValue : String); virtual;
  1585. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1586. Public
  1587. Published
  1588. Property token : String Index 0 Read Ftoken Write Settoken;
  1589. Property _type : String Index 8 Read F_type Write Set_type;
  1590. end;
  1591. TPretargetingConfigTypeplacementsItemClass = Class of TPretargetingConfigTypeplacementsItem;
  1592. { --------------------------------------------------------------------
  1593. TPretargetingConfigTypevideoPlayerSizesItem
  1594. --------------------------------------------------------------------}
  1595. TPretargetingConfigTypevideoPlayerSizesItem = Class(TGoogleBaseObject)
  1596. Private
  1597. FaspectRatio : String;
  1598. FminHeight : String;
  1599. FminWidth : String;
  1600. Protected
  1601. //Property setters
  1602. Procedure SetaspectRatio(AIndex : Integer; const AValue : String); virtual;
  1603. Procedure SetminHeight(AIndex : Integer; const AValue : String); virtual;
  1604. Procedure SetminWidth(AIndex : Integer; const AValue : String); virtual;
  1605. Public
  1606. Published
  1607. Property aspectRatio : String Index 0 Read FaspectRatio Write SetaspectRatio;
  1608. Property minHeight : String Index 8 Read FminHeight Write SetminHeight;
  1609. Property minWidth : String Index 16 Read FminWidth Write SetminWidth;
  1610. end;
  1611. TPretargetingConfigTypevideoPlayerSizesItemClass = Class of TPretargetingConfigTypevideoPlayerSizesItem;
  1612. { --------------------------------------------------------------------
  1613. TPretargetingConfig
  1614. --------------------------------------------------------------------}
  1615. TPretargetingConfig = Class(TGoogleBaseObject)
  1616. Private
  1617. FbillingId : String;
  1618. FconfigId : String;
  1619. FconfigName : String;
  1620. FcreativeType : TStringArray;
  1621. Fdimensions : TPretargetingConfigTypedimensionsArray;
  1622. FexcludedContentLabels : TStringArray;
  1623. FexcludedGeoCriteriaIds : TStringArray;
  1624. FexcludedPlacements : TPretargetingConfigTypeexcludedPlacementsArray;
  1625. FexcludedUserLists : TStringArray;
  1626. FexcludedVerticals : TStringArray;
  1627. FgeoCriteriaIds : TStringArray;
  1628. FisActive : boolean;
  1629. Fkind : String;
  1630. Flanguages : TStringArray;
  1631. FmobileCarriers : TStringArray;
  1632. FmobileDevices : TStringArray;
  1633. FmobileOperatingSystemVersions : TStringArray;
  1634. Fplacements : TPretargetingConfigTypeplacementsArray;
  1635. Fplatforms : TStringArray;
  1636. FsupportedCreativeAttributes : TStringArray;
  1637. FuserLists : TStringArray;
  1638. FvendorTypes : TStringArray;
  1639. Fverticals : TStringArray;
  1640. FvideoPlayerSizes : TPretargetingConfigTypevideoPlayerSizesArray;
  1641. Protected
  1642. //Property setters
  1643. Procedure SetbillingId(AIndex : Integer; const AValue : String); virtual;
  1644. Procedure SetconfigId(AIndex : Integer; const AValue : String); virtual;
  1645. Procedure SetconfigName(AIndex : Integer; const AValue : String); virtual;
  1646. Procedure SetcreativeType(AIndex : Integer; const AValue : TStringArray); virtual;
  1647. Procedure Setdimensions(AIndex : Integer; const AValue : TPretargetingConfigTypedimensionsArray); virtual;
  1648. Procedure SetexcludedContentLabels(AIndex : Integer; const AValue : TStringArray); virtual;
  1649. Procedure SetexcludedGeoCriteriaIds(AIndex : Integer; const AValue : TStringArray); virtual;
  1650. Procedure SetexcludedPlacements(AIndex : Integer; const AValue : TPretargetingConfigTypeexcludedPlacementsArray); virtual;
  1651. Procedure SetexcludedUserLists(AIndex : Integer; const AValue : TStringArray); virtual;
  1652. Procedure SetexcludedVerticals(AIndex : Integer; const AValue : TStringArray); virtual;
  1653. Procedure SetgeoCriteriaIds(AIndex : Integer; const AValue : TStringArray); virtual;
  1654. Procedure SetisActive(AIndex : Integer; const AValue : boolean); virtual;
  1655. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1656. Procedure Setlanguages(AIndex : Integer; const AValue : TStringArray); virtual;
  1657. Procedure SetmobileCarriers(AIndex : Integer; const AValue : TStringArray); virtual;
  1658. Procedure SetmobileDevices(AIndex : Integer; const AValue : TStringArray); virtual;
  1659. Procedure SetmobileOperatingSystemVersions(AIndex : Integer; const AValue : TStringArray); virtual;
  1660. Procedure Setplacements(AIndex : Integer; const AValue : TPretargetingConfigTypeplacementsArray); virtual;
  1661. Procedure Setplatforms(AIndex : Integer; const AValue : TStringArray); virtual;
  1662. Procedure SetsupportedCreativeAttributes(AIndex : Integer; const AValue : TStringArray); virtual;
  1663. Procedure SetuserLists(AIndex : Integer; const AValue : TStringArray); virtual;
  1664. Procedure SetvendorTypes(AIndex : Integer; const AValue : TStringArray); virtual;
  1665. Procedure Setverticals(AIndex : Integer; const AValue : TStringArray); virtual;
  1666. Procedure SetvideoPlayerSizes(AIndex : Integer; const AValue : TPretargetingConfigTypevideoPlayerSizesArray); virtual;
  1667. //2.6.4. bug workaround
  1668. {$IFDEF VER2_6}
  1669. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1670. {$ENDIF VER2_6}
  1671. Public
  1672. Published
  1673. Property billingId : String Index 0 Read FbillingId Write SetbillingId;
  1674. Property configId : String Index 8 Read FconfigId Write SetconfigId;
  1675. Property configName : String Index 16 Read FconfigName Write SetconfigName;
  1676. Property creativeType : TStringArray Index 24 Read FcreativeType Write SetcreativeType;
  1677. Property dimensions : TPretargetingConfigTypedimensionsArray Index 32 Read Fdimensions Write Setdimensions;
  1678. Property excludedContentLabels : TStringArray Index 40 Read FexcludedContentLabels Write SetexcludedContentLabels;
  1679. Property excludedGeoCriteriaIds : TStringArray Index 48 Read FexcludedGeoCriteriaIds Write SetexcludedGeoCriteriaIds;
  1680. Property excludedPlacements : TPretargetingConfigTypeexcludedPlacementsArray Index 56 Read FexcludedPlacements Write SetexcludedPlacements;
  1681. Property excludedUserLists : TStringArray Index 64 Read FexcludedUserLists Write SetexcludedUserLists;
  1682. Property excludedVerticals : TStringArray Index 72 Read FexcludedVerticals Write SetexcludedVerticals;
  1683. Property geoCriteriaIds : TStringArray Index 80 Read FgeoCriteriaIds Write SetgeoCriteriaIds;
  1684. Property isActive : boolean Index 88 Read FisActive Write SetisActive;
  1685. Property kind : String Index 96 Read Fkind Write Setkind;
  1686. Property languages : TStringArray Index 104 Read Flanguages Write Setlanguages;
  1687. Property mobileCarriers : TStringArray Index 112 Read FmobileCarriers Write SetmobileCarriers;
  1688. Property mobileDevices : TStringArray Index 120 Read FmobileDevices Write SetmobileDevices;
  1689. Property mobileOperatingSystemVersions : TStringArray Index 128 Read FmobileOperatingSystemVersions Write SetmobileOperatingSystemVersions;
  1690. Property placements : TPretargetingConfigTypeplacementsArray Index 136 Read Fplacements Write Setplacements;
  1691. Property platforms : TStringArray Index 144 Read Fplatforms Write Setplatforms;
  1692. Property supportedCreativeAttributes : TStringArray Index 152 Read FsupportedCreativeAttributes Write SetsupportedCreativeAttributes;
  1693. Property userLists : TStringArray Index 160 Read FuserLists Write SetuserLists;
  1694. Property vendorTypes : TStringArray Index 168 Read FvendorTypes Write SetvendorTypes;
  1695. Property verticals : TStringArray Index 176 Read Fverticals Write Setverticals;
  1696. Property videoPlayerSizes : TPretargetingConfigTypevideoPlayerSizesArray Index 184 Read FvideoPlayerSizes Write SetvideoPlayerSizes;
  1697. end;
  1698. TPretargetingConfigClass = Class of TPretargetingConfig;
  1699. { --------------------------------------------------------------------
  1700. TPretargetingConfigList
  1701. --------------------------------------------------------------------}
  1702. TPretargetingConfigList = Class(TGoogleBaseObject)
  1703. Private
  1704. Fitems : TPretargetingConfigListTypeitemsArray;
  1705. Fkind : String;
  1706. Protected
  1707. //Property setters
  1708. Procedure Setitems(AIndex : Integer; const AValue : TPretargetingConfigListTypeitemsArray); virtual;
  1709. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1710. //2.6.4. bug workaround
  1711. {$IFDEF VER2_6}
  1712. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1713. {$ENDIF VER2_6}
  1714. Public
  1715. Published
  1716. Property items : TPretargetingConfigListTypeitemsArray Index 0 Read Fitems Write Setitems;
  1717. Property kind : String Index 8 Read Fkind Write Setkind;
  1718. end;
  1719. TPretargetingConfigListClass = Class of TPretargetingConfigList;
  1720. { --------------------------------------------------------------------
  1721. TPrice
  1722. --------------------------------------------------------------------}
  1723. TPrice = Class(TGoogleBaseObject)
  1724. Private
  1725. FamountMicros : double;
  1726. FcurrencyCode : String;
  1727. FpricingType : String;
  1728. Protected
  1729. //Property setters
  1730. Procedure SetamountMicros(AIndex : Integer; const AValue : double); virtual;
  1731. Procedure SetcurrencyCode(AIndex : Integer; const AValue : String); virtual;
  1732. Procedure SetpricingType(AIndex : Integer; const AValue : String); virtual;
  1733. Public
  1734. Published
  1735. Property amountMicros : double Index 0 Read FamountMicros Write SetamountMicros;
  1736. Property currencyCode : String Index 8 Read FcurrencyCode Write SetcurrencyCode;
  1737. Property pricingType : String Index 16 Read FpricingType Write SetpricingType;
  1738. end;
  1739. TPriceClass = Class of TPrice;
  1740. { --------------------------------------------------------------------
  1741. TPricePerBuyer
  1742. --------------------------------------------------------------------}
  1743. TPricePerBuyer = Class(TGoogleBaseObject)
  1744. Private
  1745. FauctionTier : String;
  1746. Fbuyer : TBuyer;
  1747. Fprice : TPrice;
  1748. Protected
  1749. //Property setters
  1750. Procedure SetauctionTier(AIndex : Integer; const AValue : String); virtual;
  1751. Procedure Setbuyer(AIndex : Integer; const AValue : TBuyer); virtual;
  1752. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  1753. Public
  1754. Published
  1755. Property auctionTier : String Index 0 Read FauctionTier Write SetauctionTier;
  1756. Property buyer : TBuyer Index 8 Read Fbuyer Write Setbuyer;
  1757. Property price : TPrice Index 16 Read Fprice Write Setprice;
  1758. end;
  1759. TPricePerBuyerClass = Class of TPricePerBuyer;
  1760. { --------------------------------------------------------------------
  1761. TPrivateData
  1762. --------------------------------------------------------------------}
  1763. TPrivateData = Class(TGoogleBaseObject)
  1764. Private
  1765. FreferenceId : String;
  1766. FreferencePayload : String;
  1767. Protected
  1768. //Property setters
  1769. Procedure SetreferenceId(AIndex : Integer; const AValue : String); virtual;
  1770. Procedure SetreferencePayload(AIndex : Integer; const AValue : String); virtual;
  1771. Public
  1772. Published
  1773. Property referenceId : String Index 0 Read FreferenceId Write SetreferenceId;
  1774. Property referencePayload : String Index 8 Read FreferencePayload Write SetreferencePayload;
  1775. end;
  1776. TPrivateDataClass = Class of TPrivateData;
  1777. { --------------------------------------------------------------------
  1778. TProduct
  1779. --------------------------------------------------------------------}
  1780. TProduct = Class(TGoogleBaseObject)
  1781. Private
  1782. FcreationTimeMs : String;
  1783. FcreatorContacts : TProductTypecreatorContactsArray;
  1784. FdeliveryControl : TDeliveryControl;
  1785. FflightEndTimeMs : String;
  1786. FflightStartTimeMs : String;
  1787. FhasCreatorSignedOff : boolean;
  1788. FinventorySource : String;
  1789. Fkind : String;
  1790. Flabels : TProductTypelabelsArray;
  1791. FlastUpdateTimeMs : String;
  1792. FlegacyOfferId : String;
  1793. Fname : String;
  1794. FprivateAuctionId : String;
  1795. FproductId : String;
  1796. FpublisherProfileId : String;
  1797. FpublisherProvidedForecast : TPublisherProvidedForecast;
  1798. FrevisionNumber : String;
  1799. Fseller : TSeller;
  1800. FsharedTargetings : TProductTypesharedTargetingsArray;
  1801. Fstate : String;
  1802. FsyndicationProduct : String;
  1803. Fterms : TDealTerms;
  1804. FwebPropertyCode : String;
  1805. Protected
  1806. //Property setters
  1807. Procedure SetcreationTimeMs(AIndex : Integer; const AValue : String); virtual;
  1808. Procedure SetcreatorContacts(AIndex : Integer; const AValue : TProductTypecreatorContactsArray); virtual;
  1809. Procedure SetdeliveryControl(AIndex : Integer; const AValue : TDeliveryControl); virtual;
  1810. Procedure SetflightEndTimeMs(AIndex : Integer; const AValue : String); virtual;
  1811. Procedure SetflightStartTimeMs(AIndex : Integer; const AValue : String); virtual;
  1812. Procedure SethasCreatorSignedOff(AIndex : Integer; const AValue : boolean); virtual;
  1813. Procedure SetinventorySource(AIndex : Integer; const AValue : String); virtual;
  1814. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1815. Procedure Setlabels(AIndex : Integer; const AValue : TProductTypelabelsArray); virtual;
  1816. Procedure SetlastUpdateTimeMs(AIndex : Integer; const AValue : String); virtual;
  1817. Procedure SetlegacyOfferId(AIndex : Integer; const AValue : String); virtual;
  1818. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1819. Procedure SetprivateAuctionId(AIndex : Integer; const AValue : String); virtual;
  1820. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  1821. Procedure SetpublisherProfileId(AIndex : Integer; const AValue : String); virtual;
  1822. Procedure SetpublisherProvidedForecast(AIndex : Integer; const AValue : TPublisherProvidedForecast); virtual;
  1823. Procedure SetrevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1824. Procedure Setseller(AIndex : Integer; const AValue : TSeller); virtual;
  1825. Procedure SetsharedTargetings(AIndex : Integer; const AValue : TProductTypesharedTargetingsArray); virtual;
  1826. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1827. Procedure SetsyndicationProduct(AIndex : Integer; const AValue : String); virtual;
  1828. Procedure Setterms(AIndex : Integer; const AValue : TDealTerms); virtual;
  1829. Procedure SetwebPropertyCode(AIndex : Integer; const AValue : String); virtual;
  1830. //2.6.4. bug workaround
  1831. {$IFDEF VER2_6}
  1832. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1833. {$ENDIF VER2_6}
  1834. Public
  1835. Published
  1836. Property creationTimeMs : String Index 0 Read FcreationTimeMs Write SetcreationTimeMs;
  1837. Property creatorContacts : TProductTypecreatorContactsArray Index 8 Read FcreatorContacts Write SetcreatorContacts;
  1838. Property deliveryControl : TDeliveryControl Index 16 Read FdeliveryControl Write SetdeliveryControl;
  1839. Property flightEndTimeMs : String Index 24 Read FflightEndTimeMs Write SetflightEndTimeMs;
  1840. Property flightStartTimeMs : String Index 32 Read FflightStartTimeMs Write SetflightStartTimeMs;
  1841. Property hasCreatorSignedOff : boolean Index 40 Read FhasCreatorSignedOff Write SethasCreatorSignedOff;
  1842. Property inventorySource : String Index 48 Read FinventorySource Write SetinventorySource;
  1843. Property kind : String Index 56 Read Fkind Write Setkind;
  1844. Property labels : TProductTypelabelsArray Index 64 Read Flabels Write Setlabels;
  1845. Property lastUpdateTimeMs : String Index 72 Read FlastUpdateTimeMs Write SetlastUpdateTimeMs;
  1846. Property legacyOfferId : String Index 80 Read FlegacyOfferId Write SetlegacyOfferId;
  1847. Property name : String Index 88 Read Fname Write Setname;
  1848. Property privateAuctionId : String Index 96 Read FprivateAuctionId Write SetprivateAuctionId;
  1849. Property productId : String Index 104 Read FproductId Write SetproductId;
  1850. Property publisherProfileId : String Index 112 Read FpublisherProfileId Write SetpublisherProfileId;
  1851. Property publisherProvidedForecast : TPublisherProvidedForecast Index 120 Read FpublisherProvidedForecast Write SetpublisherProvidedForecast;
  1852. Property revisionNumber : String Index 128 Read FrevisionNumber Write SetrevisionNumber;
  1853. Property seller : TSeller Index 136 Read Fseller Write Setseller;
  1854. Property sharedTargetings : TProductTypesharedTargetingsArray Index 144 Read FsharedTargetings Write SetsharedTargetings;
  1855. Property state : String Index 152 Read Fstate Write Setstate;
  1856. Property syndicationProduct : String Index 160 Read FsyndicationProduct Write SetsyndicationProduct;
  1857. Property terms : TDealTerms Index 168 Read Fterms Write Setterms;
  1858. Property webPropertyCode : String Index 176 Read FwebPropertyCode Write SetwebPropertyCode;
  1859. end;
  1860. TProductClass = Class of TProduct;
  1861. { --------------------------------------------------------------------
  1862. TProposal
  1863. --------------------------------------------------------------------}
  1864. TProposal = Class(TGoogleBaseObject)
  1865. Private
  1866. FbilledBuyer : TBuyer;
  1867. Fbuyer : TBuyer;
  1868. FbuyerContacts : TProposalTypebuyerContactsArray;
  1869. FbuyerPrivateData : TPrivateData;
  1870. FhasBuyerSignedOff : boolean;
  1871. FhasSellerSignedOff : boolean;
  1872. FinventorySource : String;
  1873. FisRenegotiating : boolean;
  1874. FisSetupComplete : boolean;
  1875. Fkind : String;
  1876. Flabels : TProposalTypelabelsArray;
  1877. FlastUpdaterOrCommentorRole : String;
  1878. Fname : String;
  1879. FnegotiationId : String;
  1880. ForiginatorRole : String;
  1881. FprivateAuctionId : String;
  1882. FproposalId : String;
  1883. FproposalState : String;
  1884. FrevisionNumber : String;
  1885. FrevisionTimeMs : String;
  1886. Fseller : TSeller;
  1887. FsellerContacts : TProposalTypesellerContactsArray;
  1888. Protected
  1889. //Property setters
  1890. Procedure SetbilledBuyer(AIndex : Integer; const AValue : TBuyer); virtual;
  1891. Procedure Setbuyer(AIndex : Integer; const AValue : TBuyer); virtual;
  1892. Procedure SetbuyerContacts(AIndex : Integer; const AValue : TProposalTypebuyerContactsArray); virtual;
  1893. Procedure SetbuyerPrivateData(AIndex : Integer; const AValue : TPrivateData); virtual;
  1894. Procedure SethasBuyerSignedOff(AIndex : Integer; const AValue : boolean); virtual;
  1895. Procedure SethasSellerSignedOff(AIndex : Integer; const AValue : boolean); virtual;
  1896. Procedure SetinventorySource(AIndex : Integer; const AValue : String); virtual;
  1897. Procedure SetisRenegotiating(AIndex : Integer; const AValue : boolean); virtual;
  1898. Procedure SetisSetupComplete(AIndex : Integer; const AValue : boolean); virtual;
  1899. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1900. Procedure Setlabels(AIndex : Integer; const AValue : TProposalTypelabelsArray); virtual;
  1901. Procedure SetlastUpdaterOrCommentorRole(AIndex : Integer; const AValue : String); virtual;
  1902. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1903. Procedure SetnegotiationId(AIndex : Integer; const AValue : String); virtual;
  1904. Procedure SetoriginatorRole(AIndex : Integer; const AValue : String); virtual;
  1905. Procedure SetprivateAuctionId(AIndex : Integer; const AValue : String); virtual;
  1906. Procedure SetproposalId(AIndex : Integer; const AValue : String); virtual;
  1907. Procedure SetproposalState(AIndex : Integer; const AValue : String); virtual;
  1908. Procedure SetrevisionNumber(AIndex : Integer; const AValue : String); virtual;
  1909. Procedure SetrevisionTimeMs(AIndex : Integer; const AValue : String); virtual;
  1910. Procedure Setseller(AIndex : Integer; const AValue : TSeller); virtual;
  1911. Procedure SetsellerContacts(AIndex : Integer; const AValue : TProposalTypesellerContactsArray); virtual;
  1912. //2.6.4. bug workaround
  1913. {$IFDEF VER2_6}
  1914. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1915. {$ENDIF VER2_6}
  1916. Public
  1917. Published
  1918. Property billedBuyer : TBuyer Index 0 Read FbilledBuyer Write SetbilledBuyer;
  1919. Property buyer : TBuyer Index 8 Read Fbuyer Write Setbuyer;
  1920. Property buyerContacts : TProposalTypebuyerContactsArray Index 16 Read FbuyerContacts Write SetbuyerContacts;
  1921. Property buyerPrivateData : TPrivateData Index 24 Read FbuyerPrivateData Write SetbuyerPrivateData;
  1922. Property hasBuyerSignedOff : boolean Index 32 Read FhasBuyerSignedOff Write SethasBuyerSignedOff;
  1923. Property hasSellerSignedOff : boolean Index 40 Read FhasSellerSignedOff Write SethasSellerSignedOff;
  1924. Property inventorySource : String Index 48 Read FinventorySource Write SetinventorySource;
  1925. Property isRenegotiating : boolean Index 56 Read FisRenegotiating Write SetisRenegotiating;
  1926. Property isSetupComplete : boolean Index 64 Read FisSetupComplete Write SetisSetupComplete;
  1927. Property kind : String Index 72 Read Fkind Write Setkind;
  1928. Property labels : TProposalTypelabelsArray Index 80 Read Flabels Write Setlabels;
  1929. Property lastUpdaterOrCommentorRole : String Index 88 Read FlastUpdaterOrCommentorRole Write SetlastUpdaterOrCommentorRole;
  1930. Property name : String Index 96 Read Fname Write Setname;
  1931. Property negotiationId : String Index 104 Read FnegotiationId Write SetnegotiationId;
  1932. Property originatorRole : String Index 112 Read ForiginatorRole Write SetoriginatorRole;
  1933. Property privateAuctionId : String Index 120 Read FprivateAuctionId Write SetprivateAuctionId;
  1934. Property proposalId : String Index 128 Read FproposalId Write SetproposalId;
  1935. Property proposalState : String Index 136 Read FproposalState Write SetproposalState;
  1936. Property revisionNumber : String Index 144 Read FrevisionNumber Write SetrevisionNumber;
  1937. Property revisionTimeMs : String Index 152 Read FrevisionTimeMs Write SetrevisionTimeMs;
  1938. Property seller : TSeller Index 160 Read Fseller Write Setseller;
  1939. Property sellerContacts : TProposalTypesellerContactsArray Index 168 Read FsellerContacts Write SetsellerContacts;
  1940. end;
  1941. TProposalClass = Class of TProposal;
  1942. { --------------------------------------------------------------------
  1943. TPublisherProfileApiProto
  1944. --------------------------------------------------------------------}
  1945. TPublisherProfileApiProto = Class(TGoogleBaseObject)
  1946. Private
  1947. FaccountId : String;
  1948. Faudience : String;
  1949. FbuyerPitchStatement : String;
  1950. FdirectContact : String;
  1951. Fexchange : String;
  1952. FgooglePlusLink : String;
  1953. FisParent : boolean;
  1954. FisPublished : boolean;
  1955. Fkind : String;
  1956. FlogoUrl : String;
  1957. FmediaKitLink : String;
  1958. Fname : String;
  1959. Foverview : String;
  1960. FprofileId : integer;
  1961. FprogrammaticContact : String;
  1962. FpublisherDomains : TStringArray;
  1963. FpublisherProfileId : String;
  1964. FpublisherProvidedForecast : TPublisherProvidedForecast;
  1965. FrateCardInfoLink : String;
  1966. FsamplePageLink : String;
  1967. Fseller : TSeller;
  1968. Fstate : String;
  1969. FtopHeadlines : TStringArray;
  1970. Protected
  1971. //Property setters
  1972. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1973. Procedure Setaudience(AIndex : Integer; const AValue : String); virtual;
  1974. Procedure SetbuyerPitchStatement(AIndex : Integer; const AValue : String); virtual;
  1975. Procedure SetdirectContact(AIndex : Integer; const AValue : String); virtual;
  1976. Procedure Setexchange(AIndex : Integer; const AValue : String); virtual;
  1977. Procedure SetgooglePlusLink(AIndex : Integer; const AValue : String); virtual;
  1978. Procedure SetisParent(AIndex : Integer; const AValue : boolean); virtual;
  1979. Procedure SetisPublished(AIndex : Integer; const AValue : boolean); virtual;
  1980. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1981. Procedure SetlogoUrl(AIndex : Integer; const AValue : String); virtual;
  1982. Procedure SetmediaKitLink(AIndex : Integer; const AValue : String); virtual;
  1983. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1984. Procedure Setoverview(AIndex : Integer; const AValue : String); virtual;
  1985. Procedure SetprofileId(AIndex : Integer; const AValue : integer); virtual;
  1986. Procedure SetprogrammaticContact(AIndex : Integer; const AValue : String); virtual;
  1987. Procedure SetpublisherDomains(AIndex : Integer; const AValue : TStringArray); virtual;
  1988. Procedure SetpublisherProfileId(AIndex : Integer; const AValue : String); virtual;
  1989. Procedure SetpublisherProvidedForecast(AIndex : Integer; const AValue : TPublisherProvidedForecast); virtual;
  1990. Procedure SetrateCardInfoLink(AIndex : Integer; const AValue : String); virtual;
  1991. Procedure SetsamplePageLink(AIndex : Integer; const AValue : String); virtual;
  1992. Procedure Setseller(AIndex : Integer; const AValue : TSeller); virtual;
  1993. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1994. Procedure SettopHeadlines(AIndex : Integer; const AValue : TStringArray); virtual;
  1995. //2.6.4. bug workaround
  1996. {$IFDEF VER2_6}
  1997. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1998. {$ENDIF VER2_6}
  1999. Public
  2000. Published
  2001. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2002. Property audience : String Index 8 Read Faudience Write Setaudience;
  2003. Property buyerPitchStatement : String Index 16 Read FbuyerPitchStatement Write SetbuyerPitchStatement;
  2004. Property directContact : String Index 24 Read FdirectContact Write SetdirectContact;
  2005. Property exchange : String Index 32 Read Fexchange Write Setexchange;
  2006. Property googlePlusLink : String Index 40 Read FgooglePlusLink Write SetgooglePlusLink;
  2007. Property isParent : boolean Index 48 Read FisParent Write SetisParent;
  2008. Property isPublished : boolean Index 56 Read FisPublished Write SetisPublished;
  2009. Property kind : String Index 64 Read Fkind Write Setkind;
  2010. Property logoUrl : String Index 72 Read FlogoUrl Write SetlogoUrl;
  2011. Property mediaKitLink : String Index 80 Read FmediaKitLink Write SetmediaKitLink;
  2012. Property name : String Index 88 Read Fname Write Setname;
  2013. Property overview : String Index 96 Read Foverview Write Setoverview;
  2014. Property profileId : integer Index 104 Read FprofileId Write SetprofileId;
  2015. Property programmaticContact : String Index 112 Read FprogrammaticContact Write SetprogrammaticContact;
  2016. Property publisherDomains : TStringArray Index 120 Read FpublisherDomains Write SetpublisherDomains;
  2017. Property publisherProfileId : String Index 128 Read FpublisherProfileId Write SetpublisherProfileId;
  2018. Property publisherProvidedForecast : TPublisherProvidedForecast Index 136 Read FpublisherProvidedForecast Write SetpublisherProvidedForecast;
  2019. Property rateCardInfoLink : String Index 144 Read FrateCardInfoLink Write SetrateCardInfoLink;
  2020. Property samplePageLink : String Index 152 Read FsamplePageLink Write SetsamplePageLink;
  2021. Property seller : TSeller Index 160 Read Fseller Write Setseller;
  2022. Property state : String Index 168 Read Fstate Write Setstate;
  2023. Property topHeadlines : TStringArray Index 176 Read FtopHeadlines Write SettopHeadlines;
  2024. end;
  2025. TPublisherProfileApiProtoClass = Class of TPublisherProfileApiProto;
  2026. { --------------------------------------------------------------------
  2027. TPublisherProvidedForecast
  2028. --------------------------------------------------------------------}
  2029. TPublisherProvidedForecast = Class(TGoogleBaseObject)
  2030. Private
  2031. Fdimensions : TPublisherProvidedForecastTypedimensionsArray;
  2032. FweeklyImpressions : String;
  2033. FweeklyUniques : String;
  2034. Protected
  2035. //Property setters
  2036. Procedure Setdimensions(AIndex : Integer; const AValue : TPublisherProvidedForecastTypedimensionsArray); virtual;
  2037. Procedure SetweeklyImpressions(AIndex : Integer; const AValue : String); virtual;
  2038. Procedure SetweeklyUniques(AIndex : Integer; const AValue : String); virtual;
  2039. //2.6.4. bug workaround
  2040. {$IFDEF VER2_6}
  2041. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2042. {$ENDIF VER2_6}
  2043. Public
  2044. Published
  2045. Property dimensions : TPublisherProvidedForecastTypedimensionsArray Index 0 Read Fdimensions Write Setdimensions;
  2046. Property weeklyImpressions : String Index 8 Read FweeklyImpressions Write SetweeklyImpressions;
  2047. Property weeklyUniques : String Index 16 Read FweeklyUniques Write SetweeklyUniques;
  2048. end;
  2049. TPublisherProvidedForecastClass = Class of TPublisherProvidedForecast;
  2050. { --------------------------------------------------------------------
  2051. TSeller
  2052. --------------------------------------------------------------------}
  2053. TSeller = Class(TGoogleBaseObject)
  2054. Private
  2055. FaccountId : String;
  2056. FsubAccountId : String;
  2057. Protected
  2058. //Property setters
  2059. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2060. Procedure SetsubAccountId(AIndex : Integer; const AValue : String); virtual;
  2061. Public
  2062. Published
  2063. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2064. Property subAccountId : String Index 8 Read FsubAccountId Write SetsubAccountId;
  2065. end;
  2066. TSellerClass = Class of TSeller;
  2067. { --------------------------------------------------------------------
  2068. TSharedTargeting
  2069. --------------------------------------------------------------------}
  2070. TSharedTargeting = Class(TGoogleBaseObject)
  2071. Private
  2072. Fexclusions : TSharedTargetingTypeexclusionsArray;
  2073. Finclusions : TSharedTargetingTypeinclusionsArray;
  2074. Fkey : String;
  2075. Protected
  2076. //Property setters
  2077. Procedure Setexclusions(AIndex : Integer; const AValue : TSharedTargetingTypeexclusionsArray); virtual;
  2078. Procedure Setinclusions(AIndex : Integer; const AValue : TSharedTargetingTypeinclusionsArray); virtual;
  2079. Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
  2080. //2.6.4. bug workaround
  2081. {$IFDEF VER2_6}
  2082. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2083. {$ENDIF VER2_6}
  2084. Public
  2085. Published
  2086. Property exclusions : TSharedTargetingTypeexclusionsArray Index 0 Read Fexclusions Write Setexclusions;
  2087. Property inclusions : TSharedTargetingTypeinclusionsArray Index 8 Read Finclusions Write Setinclusions;
  2088. Property key : String Index 16 Read Fkey Write Setkey;
  2089. end;
  2090. TSharedTargetingClass = Class of TSharedTargeting;
  2091. { --------------------------------------------------------------------
  2092. TTargetingValue
  2093. --------------------------------------------------------------------}
  2094. TTargetingValue = Class(TGoogleBaseObject)
  2095. Private
  2096. FcreativeSizeValue : TTargetingValueCreativeSize;
  2097. FdayPartTargetingValue : TTargetingValueDayPartTargeting;
  2098. FlongValue : String;
  2099. FstringValue : String;
  2100. Protected
  2101. //Property setters
  2102. Procedure SetcreativeSizeValue(AIndex : Integer; const AValue : TTargetingValueCreativeSize); virtual;
  2103. Procedure SetdayPartTargetingValue(AIndex : Integer; const AValue : TTargetingValueDayPartTargeting); virtual;
  2104. Procedure SetlongValue(AIndex : Integer; const AValue : String); virtual;
  2105. Procedure SetstringValue(AIndex : Integer; const AValue : String); virtual;
  2106. Public
  2107. Published
  2108. Property creativeSizeValue : TTargetingValueCreativeSize Index 0 Read FcreativeSizeValue Write SetcreativeSizeValue;
  2109. Property dayPartTargetingValue : TTargetingValueDayPartTargeting Index 8 Read FdayPartTargetingValue Write SetdayPartTargetingValue;
  2110. Property longValue : String Index 16 Read FlongValue Write SetlongValue;
  2111. Property stringValue : String Index 24 Read FstringValue Write SetstringValue;
  2112. end;
  2113. TTargetingValueClass = Class of TTargetingValue;
  2114. { --------------------------------------------------------------------
  2115. TTargetingValueCreativeSize
  2116. --------------------------------------------------------------------}
  2117. TTargetingValueCreativeSize = Class(TGoogleBaseObject)
  2118. Private
  2119. FcompanionSizes : TTargetingValueCreativeSizeTypecompanionSizesArray;
  2120. FcreativeSizeType : String;
  2121. Fsize : TTargetingValueSize;
  2122. Protected
  2123. //Property setters
  2124. Procedure SetcompanionSizes(AIndex : Integer; const AValue : TTargetingValueCreativeSizeTypecompanionSizesArray); virtual;
  2125. Procedure SetcreativeSizeType(AIndex : Integer; const AValue : String); virtual;
  2126. Procedure Setsize(AIndex : Integer; const AValue : TTargetingValueSize); virtual;
  2127. //2.6.4. bug workaround
  2128. {$IFDEF VER2_6}
  2129. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2130. {$ENDIF VER2_6}
  2131. Public
  2132. Published
  2133. Property companionSizes : TTargetingValueCreativeSizeTypecompanionSizesArray Index 0 Read FcompanionSizes Write SetcompanionSizes;
  2134. Property creativeSizeType : String Index 8 Read FcreativeSizeType Write SetcreativeSizeType;
  2135. Property size : TTargetingValueSize Index 16 Read Fsize Write Setsize;
  2136. end;
  2137. TTargetingValueCreativeSizeClass = Class of TTargetingValueCreativeSize;
  2138. { --------------------------------------------------------------------
  2139. TTargetingValueDayPartTargeting
  2140. --------------------------------------------------------------------}
  2141. TTargetingValueDayPartTargeting = Class(TGoogleBaseObject)
  2142. Private
  2143. FdayParts : TTargetingValueDayPartTargetingTypedayPartsArray;
  2144. FtimeZoneType : String;
  2145. Protected
  2146. //Property setters
  2147. Procedure SetdayParts(AIndex : Integer; const AValue : TTargetingValueDayPartTargetingTypedayPartsArray); virtual;
  2148. Procedure SettimeZoneType(AIndex : Integer; const AValue : String); virtual;
  2149. //2.6.4. bug workaround
  2150. {$IFDEF VER2_6}
  2151. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2152. {$ENDIF VER2_6}
  2153. Public
  2154. Published
  2155. Property dayParts : TTargetingValueDayPartTargetingTypedayPartsArray Index 0 Read FdayParts Write SetdayParts;
  2156. Property timeZoneType : String Index 8 Read FtimeZoneType Write SettimeZoneType;
  2157. end;
  2158. TTargetingValueDayPartTargetingClass = Class of TTargetingValueDayPartTargeting;
  2159. { --------------------------------------------------------------------
  2160. TTargetingValueDayPartTargetingDayPart
  2161. --------------------------------------------------------------------}
  2162. TTargetingValueDayPartTargetingDayPart = Class(TGoogleBaseObject)
  2163. Private
  2164. FdayOfWeek : String;
  2165. FendHour : integer;
  2166. FendMinute : integer;
  2167. FstartHour : integer;
  2168. FstartMinute : integer;
  2169. Protected
  2170. //Property setters
  2171. Procedure SetdayOfWeek(AIndex : Integer; const AValue : String); virtual;
  2172. Procedure SetendHour(AIndex : Integer; const AValue : integer); virtual;
  2173. Procedure SetendMinute(AIndex : Integer; const AValue : integer); virtual;
  2174. Procedure SetstartHour(AIndex : Integer; const AValue : integer); virtual;
  2175. Procedure SetstartMinute(AIndex : Integer; const AValue : integer); virtual;
  2176. Public
  2177. Published
  2178. Property dayOfWeek : String Index 0 Read FdayOfWeek Write SetdayOfWeek;
  2179. Property endHour : integer Index 8 Read FendHour Write SetendHour;
  2180. Property endMinute : integer Index 16 Read FendMinute Write SetendMinute;
  2181. Property startHour : integer Index 24 Read FstartHour Write SetstartHour;
  2182. Property startMinute : integer Index 32 Read FstartMinute Write SetstartMinute;
  2183. end;
  2184. TTargetingValueDayPartTargetingDayPartClass = Class of TTargetingValueDayPartTargetingDayPart;
  2185. { --------------------------------------------------------------------
  2186. TTargetingValueSize
  2187. --------------------------------------------------------------------}
  2188. TTargetingValueSize = Class(TGoogleBaseObject)
  2189. Private
  2190. Fheight : integer;
  2191. Fwidth : integer;
  2192. Protected
  2193. //Property setters
  2194. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  2195. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  2196. Public
  2197. Published
  2198. Property height : integer Index 0 Read Fheight Write Setheight;
  2199. Property width : integer Index 8 Read Fwidth Write Setwidth;
  2200. end;
  2201. TTargetingValueSizeClass = Class of TTargetingValueSize;
  2202. { --------------------------------------------------------------------
  2203. TUpdatePrivateAuctionProposalRequest
  2204. --------------------------------------------------------------------}
  2205. TUpdatePrivateAuctionProposalRequest = Class(TGoogleBaseObject)
  2206. Private
  2207. FexternalDealId : String;
  2208. Fnote : TMarketplaceNote;
  2209. FproposalRevisionNumber : String;
  2210. FupdateAction : String;
  2211. Protected
  2212. //Property setters
  2213. Procedure SetexternalDealId(AIndex : Integer; const AValue : String); virtual;
  2214. Procedure Setnote(AIndex : Integer; const AValue : TMarketplaceNote); virtual;
  2215. Procedure SetproposalRevisionNumber(AIndex : Integer; const AValue : String); virtual;
  2216. Procedure SetupdateAction(AIndex : Integer; const AValue : String); virtual;
  2217. Public
  2218. Published
  2219. Property externalDealId : String Index 0 Read FexternalDealId Write SetexternalDealId;
  2220. Property note : TMarketplaceNote Index 8 Read Fnote Write Setnote;
  2221. Property proposalRevisionNumber : String Index 16 Read FproposalRevisionNumber Write SetproposalRevisionNumber;
  2222. Property updateAction : String Index 24 Read FupdateAction Write SetupdateAction;
  2223. end;
  2224. TUpdatePrivateAuctionProposalRequestClass = Class of TUpdatePrivateAuctionProposalRequest;
  2225. { --------------------------------------------------------------------
  2226. TAccountsResource
  2227. --------------------------------------------------------------------}
  2228. TAccountsResource = Class(TGoogleResource)
  2229. Public
  2230. Class Function ResourceName : String; override;
  2231. Class Function DefaultAPI : TGoogleAPIClass; override;
  2232. Function Get(id: integer) : TAccount;
  2233. Function List : TAccountsList;
  2234. Function Patch(id: integer; aAccount : TAccount) : TAccount;
  2235. Function Update(id: integer; aAccount : TAccount) : TAccount;
  2236. end;
  2237. { --------------------------------------------------------------------
  2238. TBillingInfoResource
  2239. --------------------------------------------------------------------}
  2240. TBillingInfoResource = Class(TGoogleResource)
  2241. Public
  2242. Class Function ResourceName : String; override;
  2243. Class Function DefaultAPI : TGoogleAPIClass; override;
  2244. Function Get(accountId: integer) : TBillingInfo;
  2245. Function List : TBillingInfoList;
  2246. end;
  2247. { --------------------------------------------------------------------
  2248. TBudgetResource
  2249. --------------------------------------------------------------------}
  2250. TBudgetResource = Class(TGoogleResource)
  2251. Public
  2252. Class Function ResourceName : String; override;
  2253. Class Function DefaultAPI : TGoogleAPIClass; override;
  2254. Function Get(accountId: string; billingId: string) : TBudget;
  2255. Function Patch(accountId: string; billingId: string; aBudget : TBudget) : TBudget;
  2256. Function Update(accountId: string; billingId: string; aBudget : TBudget) : TBudget;
  2257. end;
  2258. { --------------------------------------------------------------------
  2259. TCreativesResource
  2260. --------------------------------------------------------------------}
  2261. //Optional query Options for TCreativesResource, method List
  2262. TCreativesListOptions = Record
  2263. accountId : integer;
  2264. buyerCreativeId : String;
  2265. dealsStatusFilter : String;
  2266. maxResults : integer;
  2267. openAuctionStatusFilter : String;
  2268. pageToken : String;
  2269. end;
  2270. TCreativesResource = Class(TGoogleResource)
  2271. Public
  2272. Class Function ResourceName : String; override;
  2273. Class Function DefaultAPI : TGoogleAPIClass; override;
  2274. Procedure AddDeal(accountId: integer; buyerCreativeId: string; dealId: string);
  2275. Function Get(accountId: integer; buyerCreativeId: string) : TCreative;
  2276. Function Insert(aCreative : TCreative) : TCreative;
  2277. Function List(AQuery : string = '') : TCreativesList;
  2278. Function List(AQuery : TCreativeslistOptions) : TCreativesList;
  2279. Procedure RemoveDeal(accountId: integer; buyerCreativeId: string; dealId: string);
  2280. end;
  2281. { --------------------------------------------------------------------
  2282. TMarketplacedealsResource
  2283. --------------------------------------------------------------------}
  2284. //Optional query Options for TMarketplacedealsResource, method List
  2285. TMarketplacedealsListOptions = Record
  2286. pqlQuery : String;
  2287. end;
  2288. TMarketplacedealsResource = Class(TGoogleResource)
  2289. Public
  2290. Class Function ResourceName : String; override;
  2291. Class Function DefaultAPI : TGoogleAPIClass; override;
  2292. Function Delete(proposalId: string; aDeleteOrderDealsRequest : TDeleteOrderDealsRequest) : TDeleteOrderDealsResponse;
  2293. Function Insert(proposalId: string; aAddOrderDealsRequest : TAddOrderDealsRequest) : TAddOrderDealsResponse;
  2294. Function List(proposalId: string; AQuery : string = '') : TGetOrderDealsResponse;
  2295. Function List(proposalId: string; AQuery : TMarketplacedealslistOptions) : TGetOrderDealsResponse;
  2296. Function Update(proposalId: string; aEditAllOrderDealsRequest : TEditAllOrderDealsRequest) : TEditAllOrderDealsResponse;
  2297. end;
  2298. { --------------------------------------------------------------------
  2299. TMarketplacenotesResource
  2300. --------------------------------------------------------------------}
  2301. TMarketplacenotesResource = Class(TGoogleResource)
  2302. Public
  2303. Class Function ResourceName : String; override;
  2304. Class Function DefaultAPI : TGoogleAPIClass; override;
  2305. Function Insert(proposalId: string; aAddOrderNotesRequest : TAddOrderNotesRequest) : TAddOrderNotesResponse;
  2306. Function List(proposalId: string) : TGetOrderNotesResponse;
  2307. end;
  2308. { --------------------------------------------------------------------
  2309. TMarketplaceprivateauctionResource
  2310. --------------------------------------------------------------------}
  2311. TMarketplaceprivateauctionResource = Class(TGoogleResource)
  2312. Public
  2313. Class Function ResourceName : String; override;
  2314. Class Function DefaultAPI : TGoogleAPIClass; override;
  2315. Procedure Updateproposal(privateAuctionId: string; aUpdatePrivateAuctionProposalRequest : TUpdatePrivateAuctionProposalRequest);
  2316. end;
  2317. { --------------------------------------------------------------------
  2318. TPerformanceReportResource
  2319. --------------------------------------------------------------------}
  2320. //Optional query Options for TPerformanceReportResource, method List
  2321. TPerformanceReportListOptions = Record
  2322. accountId : int64;
  2323. endDateTime : String;
  2324. maxResults : integer;
  2325. pageToken : String;
  2326. startDateTime : String;
  2327. end;
  2328. TPerformanceReportResource = Class(TGoogleResource)
  2329. Public
  2330. Class Function ResourceName : String; override;
  2331. Class Function DefaultAPI : TGoogleAPIClass; override;
  2332. Function List(AQuery : string = '') : TPerformanceReportList;
  2333. Function List(AQuery : TPerformanceReportlistOptions) : TPerformanceReportList;
  2334. end;
  2335. { --------------------------------------------------------------------
  2336. TPretargetingConfigResource
  2337. --------------------------------------------------------------------}
  2338. TPretargetingConfigResource = Class(TGoogleResource)
  2339. Public
  2340. Class Function ResourceName : String; override;
  2341. Class Function DefaultAPI : TGoogleAPIClass; override;
  2342. Procedure Delete(accountId: string; configId: string);
  2343. Function Get(accountId: string; configId: string) : TPretargetingConfig;
  2344. Function Insert(accountId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  2345. Function List(accountId: string) : TPretargetingConfigList;
  2346. Function Patch(accountId: string; configId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  2347. Function Update(accountId: string; configId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  2348. end;
  2349. { --------------------------------------------------------------------
  2350. TProductsResource
  2351. --------------------------------------------------------------------}
  2352. //Optional query Options for TProductsResource, method Search
  2353. TProductsSearchOptions = Record
  2354. pqlQuery : String;
  2355. end;
  2356. TProductsResource = Class(TGoogleResource)
  2357. Public
  2358. Class Function ResourceName : String; override;
  2359. Class Function DefaultAPI : TGoogleAPIClass; override;
  2360. Function Get(productId: string) : TProduct;
  2361. Function Search(AQuery : string = '') : TGetOffersResponse;
  2362. Function Search(AQuery : TProductssearchOptions) : TGetOffersResponse;
  2363. end;
  2364. { --------------------------------------------------------------------
  2365. TProposalsResource
  2366. --------------------------------------------------------------------}
  2367. //Optional query Options for TProposalsResource, method Search
  2368. TProposalsSearchOptions = Record
  2369. pqlQuery : String;
  2370. end;
  2371. TProposalsResource = Class(TGoogleResource)
  2372. Public
  2373. Class Function ResourceName : String; override;
  2374. Class Function DefaultAPI : TGoogleAPIClass; override;
  2375. Function Get(proposalId: string) : TProposal;
  2376. Function Insert(aCreateOrdersRequest : TCreateOrdersRequest) : TCreateOrdersResponse;
  2377. Function Patch(proposalId: string; revisionNumber: string; _updateAction: string; aProposal : TProposal) : TProposal;
  2378. Function Search(AQuery : string = '') : TGetOrdersResponse;
  2379. Function Search(AQuery : TProposalssearchOptions) : TGetOrdersResponse;
  2380. Procedure Setupcomplete(proposalId: string);
  2381. Function Update(proposalId: string; revisionNumber: string; _updateAction: string; aProposal : TProposal) : TProposal;
  2382. end;
  2383. { --------------------------------------------------------------------
  2384. TPubprofilesResource
  2385. --------------------------------------------------------------------}
  2386. TPubprofilesResource = Class(TGoogleResource)
  2387. Public
  2388. Class Function ResourceName : String; override;
  2389. Class Function DefaultAPI : TGoogleAPIClass; override;
  2390. Function List(accountId: integer) : TGetPublisherProfilesByAccountIdResponse;
  2391. end;
  2392. { --------------------------------------------------------------------
  2393. TAdexchangebuyerAPI
  2394. --------------------------------------------------------------------}
  2395. TAdexchangebuyerAPI = Class(TGoogleAPI)
  2396. Private
  2397. FAccountsInstance : TAccountsResource;
  2398. FBillingInfoInstance : TBillingInfoResource;
  2399. FBudgetInstance : TBudgetResource;
  2400. FCreativesInstance : TCreativesResource;
  2401. FMarketplacedealsInstance : TMarketplacedealsResource;
  2402. FMarketplacenotesInstance : TMarketplacenotesResource;
  2403. FMarketplaceprivateauctionInstance : TMarketplaceprivateauctionResource;
  2404. FPerformanceReportInstance : TPerformanceReportResource;
  2405. FPretargetingConfigInstance : TPretargetingConfigResource;
  2406. FProductsInstance : TProductsResource;
  2407. FProposalsInstance : TProposalsResource;
  2408. FPubprofilesInstance : TPubprofilesResource;
  2409. Function GetAccountsInstance : TAccountsResource;virtual;
  2410. Function GetBillingInfoInstance : TBillingInfoResource;virtual;
  2411. Function GetBudgetInstance : TBudgetResource;virtual;
  2412. Function GetCreativesInstance : TCreativesResource;virtual;
  2413. Function GetMarketplacedealsInstance : TMarketplacedealsResource;virtual;
  2414. Function GetMarketplacenotesInstance : TMarketplacenotesResource;virtual;
  2415. Function GetMarketplaceprivateauctionInstance : TMarketplaceprivateauctionResource;virtual;
  2416. Function GetPerformanceReportInstance : TPerformanceReportResource;virtual;
  2417. Function GetPretargetingConfigInstance : TPretargetingConfigResource;virtual;
  2418. Function GetProductsInstance : TProductsResource;virtual;
  2419. Function GetProposalsInstance : TProposalsResource;virtual;
  2420. Function GetPubprofilesInstance : TPubprofilesResource;virtual;
  2421. Public
  2422. //Override class functions with API info
  2423. Class Function APIName : String; override;
  2424. Class Function APIVersion : String; override;
  2425. Class Function APIRevision : String; override;
  2426. Class Function APIID : String; override;
  2427. Class Function APITitle : String; override;
  2428. Class Function APIDescription : String; override;
  2429. Class Function APIOwnerDomain : String; override;
  2430. Class Function APIOwnerName : String; override;
  2431. Class Function APIIcon16 : String; override;
  2432. Class Function APIIcon32 : String; override;
  2433. Class Function APIdocumentationLink : String; override;
  2434. Class Function APIrootUrl : string; override;
  2435. Class Function APIbasePath : string;override;
  2436. Class Function APIbaseURL : String;override;
  2437. Class Function APIProtocol : string;override;
  2438. Class Function APIservicePath : string;override;
  2439. Class Function APIbatchPath : String;override;
  2440. Class Function APIAuthScopes : TScopeInfoArray;override;
  2441. Class Function APINeedsAuth : Boolean;override;
  2442. Class Procedure RegisterAPIResources; override;
  2443. //Add create function for resources
  2444. Function CreateAccountsResource(AOwner : TComponent) : TAccountsResource;virtual;overload;
  2445. Function CreateAccountsResource : TAccountsResource;virtual;overload;
  2446. Function CreateBillingInfoResource(AOwner : TComponent) : TBillingInfoResource;virtual;overload;
  2447. Function CreateBillingInfoResource : TBillingInfoResource;virtual;overload;
  2448. Function CreateBudgetResource(AOwner : TComponent) : TBudgetResource;virtual;overload;
  2449. Function CreateBudgetResource : TBudgetResource;virtual;overload;
  2450. Function CreateCreativesResource(AOwner : TComponent) : TCreativesResource;virtual;overload;
  2451. Function CreateCreativesResource : TCreativesResource;virtual;overload;
  2452. Function CreateMarketplacedealsResource(AOwner : TComponent) : TMarketplacedealsResource;virtual;overload;
  2453. Function CreateMarketplacedealsResource : TMarketplacedealsResource;virtual;overload;
  2454. Function CreateMarketplacenotesResource(AOwner : TComponent) : TMarketplacenotesResource;virtual;overload;
  2455. Function CreateMarketplacenotesResource : TMarketplacenotesResource;virtual;overload;
  2456. Function CreateMarketplaceprivateauctionResource(AOwner : TComponent) : TMarketplaceprivateauctionResource;virtual;overload;
  2457. Function CreateMarketplaceprivateauctionResource : TMarketplaceprivateauctionResource;virtual;overload;
  2458. Function CreatePerformanceReportResource(AOwner : TComponent) : TPerformanceReportResource;virtual;overload;
  2459. Function CreatePerformanceReportResource : TPerformanceReportResource;virtual;overload;
  2460. Function CreatePretargetingConfigResource(AOwner : TComponent) : TPretargetingConfigResource;virtual;overload;
  2461. Function CreatePretargetingConfigResource : TPretargetingConfigResource;virtual;overload;
  2462. Function CreateProductsResource(AOwner : TComponent) : TProductsResource;virtual;overload;
  2463. Function CreateProductsResource : TProductsResource;virtual;overload;
  2464. Function CreateProposalsResource(AOwner : TComponent) : TProposalsResource;virtual;overload;
  2465. Function CreateProposalsResource : TProposalsResource;virtual;overload;
  2466. Function CreatePubprofilesResource(AOwner : TComponent) : TPubprofilesResource;virtual;overload;
  2467. Function CreatePubprofilesResource : TPubprofilesResource;virtual;overload;
  2468. //Add default on-demand instances for resources
  2469. Property AccountsResource : TAccountsResource Read GetAccountsInstance;
  2470. Property BillingInfoResource : TBillingInfoResource Read GetBillingInfoInstance;
  2471. Property BudgetResource : TBudgetResource Read GetBudgetInstance;
  2472. Property CreativesResource : TCreativesResource Read GetCreativesInstance;
  2473. Property MarketplacedealsResource : TMarketplacedealsResource Read GetMarketplacedealsInstance;
  2474. Property MarketplacenotesResource : TMarketplacenotesResource Read GetMarketplacenotesInstance;
  2475. Property MarketplaceprivateauctionResource : TMarketplaceprivateauctionResource Read GetMarketplaceprivateauctionInstance;
  2476. Property PerformanceReportResource : TPerformanceReportResource Read GetPerformanceReportInstance;
  2477. Property PretargetingConfigResource : TPretargetingConfigResource Read GetPretargetingConfigInstance;
  2478. Property ProductsResource : TProductsResource Read GetProductsInstance;
  2479. Property ProposalsResource : TProposalsResource Read GetProposalsInstance;
  2480. Property PubprofilesResource : TPubprofilesResource Read GetPubprofilesInstance;
  2481. end;
  2482. implementation
  2483. { --------------------------------------------------------------------
  2484. TAccountTypebidderLocationItem
  2485. --------------------------------------------------------------------}
  2486. Procedure TAccountTypebidderLocationItem.SetbidProtocol(AIndex : Integer; const AValue : String);
  2487. begin
  2488. If (FbidProtocol=AValue) then exit;
  2489. FbidProtocol:=AValue;
  2490. MarkPropertyChanged(AIndex);
  2491. end;
  2492. Procedure TAccountTypebidderLocationItem.SetmaximumQps(AIndex : Integer; const AValue : integer);
  2493. begin
  2494. If (FmaximumQps=AValue) then exit;
  2495. FmaximumQps:=AValue;
  2496. MarkPropertyChanged(AIndex);
  2497. end;
  2498. Procedure TAccountTypebidderLocationItem.Setregion(AIndex : Integer; const AValue : String);
  2499. begin
  2500. If (Fregion=AValue) then exit;
  2501. Fregion:=AValue;
  2502. MarkPropertyChanged(AIndex);
  2503. end;
  2504. Procedure TAccountTypebidderLocationItem.Seturl(AIndex : Integer; const AValue : String);
  2505. begin
  2506. If (Furl=AValue) then exit;
  2507. Furl:=AValue;
  2508. MarkPropertyChanged(AIndex);
  2509. end;
  2510. { --------------------------------------------------------------------
  2511. TAccount
  2512. --------------------------------------------------------------------}
  2513. Procedure TAccount.SetbidderLocation(AIndex : Integer; const AValue : TAccountTypebidderLocationArray);
  2514. begin
  2515. If (FbidderLocation=AValue) then exit;
  2516. FbidderLocation:=AValue;
  2517. MarkPropertyChanged(AIndex);
  2518. end;
  2519. Procedure TAccount.SetcookieMatchingNid(AIndex : Integer; const AValue : String);
  2520. begin
  2521. If (FcookieMatchingNid=AValue) then exit;
  2522. FcookieMatchingNid:=AValue;
  2523. MarkPropertyChanged(AIndex);
  2524. end;
  2525. Procedure TAccount.SetcookieMatchingUrl(AIndex : Integer; const AValue : String);
  2526. begin
  2527. If (FcookieMatchingUrl=AValue) then exit;
  2528. FcookieMatchingUrl:=AValue;
  2529. MarkPropertyChanged(AIndex);
  2530. end;
  2531. Procedure TAccount.Setid(AIndex : Integer; const AValue : integer);
  2532. begin
  2533. If (Fid=AValue) then exit;
  2534. Fid:=AValue;
  2535. MarkPropertyChanged(AIndex);
  2536. end;
  2537. Procedure TAccount.Setkind(AIndex : Integer; const AValue : String);
  2538. begin
  2539. If (Fkind=AValue) then exit;
  2540. Fkind:=AValue;
  2541. MarkPropertyChanged(AIndex);
  2542. end;
  2543. Procedure TAccount.SetmaximumActiveCreatives(AIndex : Integer; const AValue : integer);
  2544. begin
  2545. If (FmaximumActiveCreatives=AValue) then exit;
  2546. FmaximumActiveCreatives:=AValue;
  2547. MarkPropertyChanged(AIndex);
  2548. end;
  2549. Procedure TAccount.SetmaximumTotalQps(AIndex : Integer; const AValue : integer);
  2550. begin
  2551. If (FmaximumTotalQps=AValue) then exit;
  2552. FmaximumTotalQps:=AValue;
  2553. MarkPropertyChanged(AIndex);
  2554. end;
  2555. Procedure TAccount.SetnumberActiveCreatives(AIndex : Integer; const AValue : integer);
  2556. begin
  2557. If (FnumberActiveCreatives=AValue) then exit;
  2558. FnumberActiveCreatives:=AValue;
  2559. MarkPropertyChanged(AIndex);
  2560. end;
  2561. //2.6.4. bug workaround
  2562. {$IFDEF VER2_6}
  2563. Procedure TAccount.SetArrayLength(Const AName : String; ALength : Longint);
  2564. begin
  2565. Case AName of
  2566. 'bidderlocation' : SetLength(FbidderLocation,ALength);
  2567. else
  2568. Inherited SetArrayLength(AName,ALength);
  2569. end;
  2570. end;
  2571. {$ENDIF VER2_6}
  2572. { --------------------------------------------------------------------
  2573. TAccountsList
  2574. --------------------------------------------------------------------}
  2575. Procedure TAccountsList.Setitems(AIndex : Integer; const AValue : TAccountsListTypeitemsArray);
  2576. begin
  2577. If (Fitems=AValue) then exit;
  2578. Fitems:=AValue;
  2579. MarkPropertyChanged(AIndex);
  2580. end;
  2581. Procedure TAccountsList.Setkind(AIndex : Integer; const AValue : String);
  2582. begin
  2583. If (Fkind=AValue) then exit;
  2584. Fkind:=AValue;
  2585. MarkPropertyChanged(AIndex);
  2586. end;
  2587. //2.6.4. bug workaround
  2588. {$IFDEF VER2_6}
  2589. Procedure TAccountsList.SetArrayLength(Const AName : String; ALength : Longint);
  2590. begin
  2591. Case AName of
  2592. 'items' : SetLength(Fitems,ALength);
  2593. else
  2594. Inherited SetArrayLength(AName,ALength);
  2595. end;
  2596. end;
  2597. {$ENDIF VER2_6}
  2598. { --------------------------------------------------------------------
  2599. TAddOrderDealsRequest
  2600. --------------------------------------------------------------------}
  2601. Procedure TAddOrderDealsRequest.Setdeals(AIndex : Integer; const AValue : TAddOrderDealsRequestTypedealsArray);
  2602. begin
  2603. If (Fdeals=AValue) then exit;
  2604. Fdeals:=AValue;
  2605. MarkPropertyChanged(AIndex);
  2606. end;
  2607. Procedure TAddOrderDealsRequest.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  2608. begin
  2609. If (FproposalRevisionNumber=AValue) then exit;
  2610. FproposalRevisionNumber:=AValue;
  2611. MarkPropertyChanged(AIndex);
  2612. end;
  2613. Procedure TAddOrderDealsRequest.SetupdateAction(AIndex : Integer; const AValue : String);
  2614. begin
  2615. If (FupdateAction=AValue) then exit;
  2616. FupdateAction:=AValue;
  2617. MarkPropertyChanged(AIndex);
  2618. end;
  2619. //2.6.4. bug workaround
  2620. {$IFDEF VER2_6}
  2621. Procedure TAddOrderDealsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  2622. begin
  2623. Case AName of
  2624. 'deals' : SetLength(Fdeals,ALength);
  2625. else
  2626. Inherited SetArrayLength(AName,ALength);
  2627. end;
  2628. end;
  2629. {$ENDIF VER2_6}
  2630. { --------------------------------------------------------------------
  2631. TAddOrderDealsResponse
  2632. --------------------------------------------------------------------}
  2633. Procedure TAddOrderDealsResponse.Setdeals(AIndex : Integer; const AValue : TAddOrderDealsResponseTypedealsArray);
  2634. begin
  2635. If (Fdeals=AValue) then exit;
  2636. Fdeals:=AValue;
  2637. MarkPropertyChanged(AIndex);
  2638. end;
  2639. Procedure TAddOrderDealsResponse.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  2640. begin
  2641. If (FproposalRevisionNumber=AValue) then exit;
  2642. FproposalRevisionNumber:=AValue;
  2643. MarkPropertyChanged(AIndex);
  2644. end;
  2645. //2.6.4. bug workaround
  2646. {$IFDEF VER2_6}
  2647. Procedure TAddOrderDealsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2648. begin
  2649. Case AName of
  2650. 'deals' : SetLength(Fdeals,ALength);
  2651. else
  2652. Inherited SetArrayLength(AName,ALength);
  2653. end;
  2654. end;
  2655. {$ENDIF VER2_6}
  2656. { --------------------------------------------------------------------
  2657. TAddOrderNotesRequest
  2658. --------------------------------------------------------------------}
  2659. Procedure TAddOrderNotesRequest.Setnotes(AIndex : Integer; const AValue : TAddOrderNotesRequestTypenotesArray);
  2660. begin
  2661. If (Fnotes=AValue) then exit;
  2662. Fnotes:=AValue;
  2663. MarkPropertyChanged(AIndex);
  2664. end;
  2665. //2.6.4. bug workaround
  2666. {$IFDEF VER2_6}
  2667. Procedure TAddOrderNotesRequest.SetArrayLength(Const AName : String; ALength : Longint);
  2668. begin
  2669. Case AName of
  2670. 'notes' : SetLength(Fnotes,ALength);
  2671. else
  2672. Inherited SetArrayLength(AName,ALength);
  2673. end;
  2674. end;
  2675. {$ENDIF VER2_6}
  2676. { --------------------------------------------------------------------
  2677. TAddOrderNotesResponse
  2678. --------------------------------------------------------------------}
  2679. Procedure TAddOrderNotesResponse.Setnotes(AIndex : Integer; const AValue : TAddOrderNotesResponseTypenotesArray);
  2680. begin
  2681. If (Fnotes=AValue) then exit;
  2682. Fnotes:=AValue;
  2683. MarkPropertyChanged(AIndex);
  2684. end;
  2685. //2.6.4. bug workaround
  2686. {$IFDEF VER2_6}
  2687. Procedure TAddOrderNotesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2688. begin
  2689. Case AName of
  2690. 'notes' : SetLength(Fnotes,ALength);
  2691. else
  2692. Inherited SetArrayLength(AName,ALength);
  2693. end;
  2694. end;
  2695. {$ENDIF VER2_6}
  2696. { --------------------------------------------------------------------
  2697. TBillingInfo
  2698. --------------------------------------------------------------------}
  2699. Procedure TBillingInfo.SetaccountId(AIndex : Integer; const AValue : integer);
  2700. begin
  2701. If (FaccountId=AValue) then exit;
  2702. FaccountId:=AValue;
  2703. MarkPropertyChanged(AIndex);
  2704. end;
  2705. Procedure TBillingInfo.SetaccountName(AIndex : Integer; const AValue : String);
  2706. begin
  2707. If (FaccountName=AValue) then exit;
  2708. FaccountName:=AValue;
  2709. MarkPropertyChanged(AIndex);
  2710. end;
  2711. Procedure TBillingInfo.SetbillingId(AIndex : Integer; const AValue : TStringArray);
  2712. begin
  2713. If (FbillingId=AValue) then exit;
  2714. FbillingId:=AValue;
  2715. MarkPropertyChanged(AIndex);
  2716. end;
  2717. Procedure TBillingInfo.Setkind(AIndex : Integer; const AValue : String);
  2718. begin
  2719. If (Fkind=AValue) then exit;
  2720. Fkind:=AValue;
  2721. MarkPropertyChanged(AIndex);
  2722. end;
  2723. //2.6.4. bug workaround
  2724. {$IFDEF VER2_6}
  2725. Procedure TBillingInfo.SetArrayLength(Const AName : String; ALength : Longint);
  2726. begin
  2727. Case AName of
  2728. 'billingid' : SetLength(FbillingId,ALength);
  2729. else
  2730. Inherited SetArrayLength(AName,ALength);
  2731. end;
  2732. end;
  2733. {$ENDIF VER2_6}
  2734. { --------------------------------------------------------------------
  2735. TBillingInfoList
  2736. --------------------------------------------------------------------}
  2737. Procedure TBillingInfoList.Setitems(AIndex : Integer; const AValue : TBillingInfoListTypeitemsArray);
  2738. begin
  2739. If (Fitems=AValue) then exit;
  2740. Fitems:=AValue;
  2741. MarkPropertyChanged(AIndex);
  2742. end;
  2743. Procedure TBillingInfoList.Setkind(AIndex : Integer; const AValue : String);
  2744. begin
  2745. If (Fkind=AValue) then exit;
  2746. Fkind:=AValue;
  2747. MarkPropertyChanged(AIndex);
  2748. end;
  2749. //2.6.4. bug workaround
  2750. {$IFDEF VER2_6}
  2751. Procedure TBillingInfoList.SetArrayLength(Const AName : String; ALength : Longint);
  2752. begin
  2753. Case AName of
  2754. 'items' : SetLength(Fitems,ALength);
  2755. else
  2756. Inherited SetArrayLength(AName,ALength);
  2757. end;
  2758. end;
  2759. {$ENDIF VER2_6}
  2760. { --------------------------------------------------------------------
  2761. TBudget
  2762. --------------------------------------------------------------------}
  2763. Procedure TBudget.SetaccountId(AIndex : Integer; const AValue : String);
  2764. begin
  2765. If (FaccountId=AValue) then exit;
  2766. FaccountId:=AValue;
  2767. MarkPropertyChanged(AIndex);
  2768. end;
  2769. Procedure TBudget.SetbillingId(AIndex : Integer; const AValue : String);
  2770. begin
  2771. If (FbillingId=AValue) then exit;
  2772. FbillingId:=AValue;
  2773. MarkPropertyChanged(AIndex);
  2774. end;
  2775. Procedure TBudget.SetbudgetAmount(AIndex : Integer; const AValue : String);
  2776. begin
  2777. If (FbudgetAmount=AValue) then exit;
  2778. FbudgetAmount:=AValue;
  2779. MarkPropertyChanged(AIndex);
  2780. end;
  2781. Procedure TBudget.SetcurrencyCode(AIndex : Integer; const AValue : String);
  2782. begin
  2783. If (FcurrencyCode=AValue) then exit;
  2784. FcurrencyCode:=AValue;
  2785. MarkPropertyChanged(AIndex);
  2786. end;
  2787. Procedure TBudget.Setid(AIndex : Integer; const AValue : String);
  2788. begin
  2789. If (Fid=AValue) then exit;
  2790. Fid:=AValue;
  2791. MarkPropertyChanged(AIndex);
  2792. end;
  2793. Procedure TBudget.Setkind(AIndex : Integer; const AValue : String);
  2794. begin
  2795. If (Fkind=AValue) then exit;
  2796. Fkind:=AValue;
  2797. MarkPropertyChanged(AIndex);
  2798. end;
  2799. { --------------------------------------------------------------------
  2800. TBuyer
  2801. --------------------------------------------------------------------}
  2802. Procedure TBuyer.SetaccountId(AIndex : Integer; const AValue : String);
  2803. begin
  2804. If (FaccountId=AValue) then exit;
  2805. FaccountId:=AValue;
  2806. MarkPropertyChanged(AIndex);
  2807. end;
  2808. { --------------------------------------------------------------------
  2809. TContactInformation
  2810. --------------------------------------------------------------------}
  2811. Procedure TContactInformation.Setemail(AIndex : Integer; const AValue : String);
  2812. begin
  2813. If (Femail=AValue) then exit;
  2814. Femail:=AValue;
  2815. MarkPropertyChanged(AIndex);
  2816. end;
  2817. Procedure TContactInformation.Setname(AIndex : Integer; const AValue : String);
  2818. begin
  2819. If (Fname=AValue) then exit;
  2820. Fname:=AValue;
  2821. MarkPropertyChanged(AIndex);
  2822. end;
  2823. { --------------------------------------------------------------------
  2824. TCreateOrdersRequest
  2825. --------------------------------------------------------------------}
  2826. Procedure TCreateOrdersRequest.Setproposals(AIndex : Integer; const AValue : TCreateOrdersRequestTypeproposalsArray);
  2827. begin
  2828. If (Fproposals=AValue) then exit;
  2829. Fproposals:=AValue;
  2830. MarkPropertyChanged(AIndex);
  2831. end;
  2832. Procedure TCreateOrdersRequest.SetwebPropertyCode(AIndex : Integer; const AValue : String);
  2833. begin
  2834. If (FwebPropertyCode=AValue) then exit;
  2835. FwebPropertyCode:=AValue;
  2836. MarkPropertyChanged(AIndex);
  2837. end;
  2838. //2.6.4. bug workaround
  2839. {$IFDEF VER2_6}
  2840. Procedure TCreateOrdersRequest.SetArrayLength(Const AName : String; ALength : Longint);
  2841. begin
  2842. Case AName of
  2843. 'proposals' : SetLength(Fproposals,ALength);
  2844. else
  2845. Inherited SetArrayLength(AName,ALength);
  2846. end;
  2847. end;
  2848. {$ENDIF VER2_6}
  2849. { --------------------------------------------------------------------
  2850. TCreateOrdersResponse
  2851. --------------------------------------------------------------------}
  2852. Procedure TCreateOrdersResponse.Setproposals(AIndex : Integer; const AValue : TCreateOrdersResponseTypeproposalsArray);
  2853. begin
  2854. If (Fproposals=AValue) then exit;
  2855. Fproposals:=AValue;
  2856. MarkPropertyChanged(AIndex);
  2857. end;
  2858. //2.6.4. bug workaround
  2859. {$IFDEF VER2_6}
  2860. Procedure TCreateOrdersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2861. begin
  2862. Case AName of
  2863. 'proposals' : SetLength(Fproposals,ALength);
  2864. else
  2865. Inherited SetArrayLength(AName,ALength);
  2866. end;
  2867. end;
  2868. {$ENDIF VER2_6}
  2869. { --------------------------------------------------------------------
  2870. TCreativeTypecorrectionsItem
  2871. --------------------------------------------------------------------}
  2872. Procedure TCreativeTypecorrectionsItem.Setdetails(AIndex : Integer; const AValue : TStringArray);
  2873. begin
  2874. If (Fdetails=AValue) then exit;
  2875. Fdetails:=AValue;
  2876. MarkPropertyChanged(AIndex);
  2877. end;
  2878. Procedure TCreativeTypecorrectionsItem.Setreason(AIndex : Integer; const AValue : String);
  2879. begin
  2880. If (Freason=AValue) then exit;
  2881. Freason:=AValue;
  2882. MarkPropertyChanged(AIndex);
  2883. end;
  2884. //2.6.4. bug workaround
  2885. {$IFDEF VER2_6}
  2886. Procedure TCreativeTypecorrectionsItem.SetArrayLength(Const AName : String; ALength : Longint);
  2887. begin
  2888. Case AName of
  2889. 'details' : SetLength(Fdetails,ALength);
  2890. else
  2891. Inherited SetArrayLength(AName,ALength);
  2892. end;
  2893. end;
  2894. {$ENDIF VER2_6}
  2895. { --------------------------------------------------------------------
  2896. TCreativeTypefilteringReasonsTypereasonsItem
  2897. --------------------------------------------------------------------}
  2898. Procedure TCreativeTypefilteringReasonsTypereasonsItem.SetfilteringCount(AIndex : Integer; const AValue : String);
  2899. begin
  2900. If (FfilteringCount=AValue) then exit;
  2901. FfilteringCount:=AValue;
  2902. MarkPropertyChanged(AIndex);
  2903. end;
  2904. Procedure TCreativeTypefilteringReasonsTypereasonsItem.SetfilteringStatus(AIndex : Integer; const AValue : integer);
  2905. begin
  2906. If (FfilteringStatus=AValue) then exit;
  2907. FfilteringStatus:=AValue;
  2908. MarkPropertyChanged(AIndex);
  2909. end;
  2910. { --------------------------------------------------------------------
  2911. TCreativeTypefilteringReasons
  2912. --------------------------------------------------------------------}
  2913. Procedure TCreativeTypefilteringReasons.Setdate(AIndex : Integer; const AValue : String);
  2914. begin
  2915. If (Fdate=AValue) then exit;
  2916. Fdate:=AValue;
  2917. MarkPropertyChanged(AIndex);
  2918. end;
  2919. Procedure TCreativeTypefilteringReasons.Setreasons(AIndex : Integer; const AValue : TCreativeTypefilteringReasonsTypereasonsArray);
  2920. begin
  2921. If (Freasons=AValue) then exit;
  2922. Freasons:=AValue;
  2923. MarkPropertyChanged(AIndex);
  2924. end;
  2925. //2.6.4. bug workaround
  2926. {$IFDEF VER2_6}
  2927. Procedure TCreativeTypefilteringReasons.SetArrayLength(Const AName : String; ALength : Longint);
  2928. begin
  2929. Case AName of
  2930. 'reasons' : SetLength(Freasons,ALength);
  2931. else
  2932. Inherited SetArrayLength(AName,ALength);
  2933. end;
  2934. end;
  2935. {$ENDIF VER2_6}
  2936. { --------------------------------------------------------------------
  2937. TCreativeTypenativeAdTypeappIcon
  2938. --------------------------------------------------------------------}
  2939. Procedure TCreativeTypenativeAdTypeappIcon.Setheight(AIndex : Integer; const AValue : integer);
  2940. begin
  2941. If (Fheight=AValue) then exit;
  2942. Fheight:=AValue;
  2943. MarkPropertyChanged(AIndex);
  2944. end;
  2945. Procedure TCreativeTypenativeAdTypeappIcon.Seturl(AIndex : Integer; const AValue : String);
  2946. begin
  2947. If (Furl=AValue) then exit;
  2948. Furl:=AValue;
  2949. MarkPropertyChanged(AIndex);
  2950. end;
  2951. Procedure TCreativeTypenativeAdTypeappIcon.Setwidth(AIndex : Integer; const AValue : integer);
  2952. begin
  2953. If (Fwidth=AValue) then exit;
  2954. Fwidth:=AValue;
  2955. MarkPropertyChanged(AIndex);
  2956. end;
  2957. { --------------------------------------------------------------------
  2958. TCreativeTypenativeAdTypeimage
  2959. --------------------------------------------------------------------}
  2960. Procedure TCreativeTypenativeAdTypeimage.Setheight(AIndex : Integer; const AValue : integer);
  2961. begin
  2962. If (Fheight=AValue) then exit;
  2963. Fheight:=AValue;
  2964. MarkPropertyChanged(AIndex);
  2965. end;
  2966. Procedure TCreativeTypenativeAdTypeimage.Seturl(AIndex : Integer; const AValue : String);
  2967. begin
  2968. If (Furl=AValue) then exit;
  2969. Furl:=AValue;
  2970. MarkPropertyChanged(AIndex);
  2971. end;
  2972. Procedure TCreativeTypenativeAdTypeimage.Setwidth(AIndex : Integer; const AValue : integer);
  2973. begin
  2974. If (Fwidth=AValue) then exit;
  2975. Fwidth:=AValue;
  2976. MarkPropertyChanged(AIndex);
  2977. end;
  2978. { --------------------------------------------------------------------
  2979. TCreativeTypenativeAdTypelogo
  2980. --------------------------------------------------------------------}
  2981. Procedure TCreativeTypenativeAdTypelogo.Setheight(AIndex : Integer; const AValue : integer);
  2982. begin
  2983. If (Fheight=AValue) then exit;
  2984. Fheight:=AValue;
  2985. MarkPropertyChanged(AIndex);
  2986. end;
  2987. Procedure TCreativeTypenativeAdTypelogo.Seturl(AIndex : Integer; const AValue : String);
  2988. begin
  2989. If (Furl=AValue) then exit;
  2990. Furl:=AValue;
  2991. MarkPropertyChanged(AIndex);
  2992. end;
  2993. Procedure TCreativeTypenativeAdTypelogo.Setwidth(AIndex : Integer; const AValue : integer);
  2994. begin
  2995. If (Fwidth=AValue) then exit;
  2996. Fwidth:=AValue;
  2997. MarkPropertyChanged(AIndex);
  2998. end;
  2999. { --------------------------------------------------------------------
  3000. TCreativeTypenativeAd
  3001. --------------------------------------------------------------------}
  3002. Procedure TCreativeTypenativeAd.Setadvertiser(AIndex : Integer; const AValue : String);
  3003. begin
  3004. If (Fadvertiser=AValue) then exit;
  3005. Fadvertiser:=AValue;
  3006. MarkPropertyChanged(AIndex);
  3007. end;
  3008. Procedure TCreativeTypenativeAd.SetappIcon(AIndex : Integer; const AValue : TCreativeTypenativeAdTypeappIcon);
  3009. begin
  3010. If (FappIcon=AValue) then exit;
  3011. FappIcon:=AValue;
  3012. MarkPropertyChanged(AIndex);
  3013. end;
  3014. Procedure TCreativeTypenativeAd.Setbody(AIndex : Integer; const AValue : String);
  3015. begin
  3016. If (Fbody=AValue) then exit;
  3017. Fbody:=AValue;
  3018. MarkPropertyChanged(AIndex);
  3019. end;
  3020. Procedure TCreativeTypenativeAd.SetcallToAction(AIndex : Integer; const AValue : String);
  3021. begin
  3022. If (FcallToAction=AValue) then exit;
  3023. FcallToAction:=AValue;
  3024. MarkPropertyChanged(AIndex);
  3025. end;
  3026. Procedure TCreativeTypenativeAd.SetclickTrackingUrl(AIndex : Integer; const AValue : String);
  3027. begin
  3028. If (FclickTrackingUrl=AValue) then exit;
  3029. FclickTrackingUrl:=AValue;
  3030. MarkPropertyChanged(AIndex);
  3031. end;
  3032. Procedure TCreativeTypenativeAd.Setheadline(AIndex : Integer; const AValue : String);
  3033. begin
  3034. If (Fheadline=AValue) then exit;
  3035. Fheadline:=AValue;
  3036. MarkPropertyChanged(AIndex);
  3037. end;
  3038. Procedure TCreativeTypenativeAd.Setimage(AIndex : Integer; const AValue : TCreativeTypenativeAdTypeimage);
  3039. begin
  3040. If (Fimage=AValue) then exit;
  3041. Fimage:=AValue;
  3042. MarkPropertyChanged(AIndex);
  3043. end;
  3044. Procedure TCreativeTypenativeAd.SetimpressionTrackingUrl(AIndex : Integer; const AValue : TStringArray);
  3045. begin
  3046. If (FimpressionTrackingUrl=AValue) then exit;
  3047. FimpressionTrackingUrl:=AValue;
  3048. MarkPropertyChanged(AIndex);
  3049. end;
  3050. Procedure TCreativeTypenativeAd.Setlogo(AIndex : Integer; const AValue : TCreativeTypenativeAdTypelogo);
  3051. begin
  3052. If (Flogo=AValue) then exit;
  3053. Flogo:=AValue;
  3054. MarkPropertyChanged(AIndex);
  3055. end;
  3056. Procedure TCreativeTypenativeAd.Setprice(AIndex : Integer; const AValue : String);
  3057. begin
  3058. If (Fprice=AValue) then exit;
  3059. Fprice:=AValue;
  3060. MarkPropertyChanged(AIndex);
  3061. end;
  3062. Procedure TCreativeTypenativeAd.SetstarRating(AIndex : Integer; const AValue : double);
  3063. begin
  3064. If (FstarRating=AValue) then exit;
  3065. FstarRating:=AValue;
  3066. MarkPropertyChanged(AIndex);
  3067. end;
  3068. Procedure TCreativeTypenativeAd.Setstore(AIndex : Integer; const AValue : String);
  3069. begin
  3070. If (Fstore=AValue) then exit;
  3071. Fstore:=AValue;
  3072. MarkPropertyChanged(AIndex);
  3073. end;
  3074. //2.6.4. bug workaround
  3075. {$IFDEF VER2_6}
  3076. Procedure TCreativeTypenativeAd.SetArrayLength(Const AName : String; ALength : Longint);
  3077. begin
  3078. Case AName of
  3079. 'impressiontrackingurl' : SetLength(FimpressionTrackingUrl,ALength);
  3080. else
  3081. Inherited SetArrayLength(AName,ALength);
  3082. end;
  3083. end;
  3084. {$ENDIF VER2_6}
  3085. { --------------------------------------------------------------------
  3086. TCreativeTypeservingRestrictionsItemTypecontextsItem
  3087. --------------------------------------------------------------------}
  3088. Procedure TCreativeTypeservingRestrictionsItemTypecontextsItem.SetauctionType(AIndex : Integer; const AValue : TStringArray);
  3089. begin
  3090. If (FauctionType=AValue) then exit;
  3091. FauctionType:=AValue;
  3092. MarkPropertyChanged(AIndex);
  3093. end;
  3094. Procedure TCreativeTypeservingRestrictionsItemTypecontextsItem.SetcontextType(AIndex : Integer; const AValue : String);
  3095. begin
  3096. If (FcontextType=AValue) then exit;
  3097. FcontextType:=AValue;
  3098. MarkPropertyChanged(AIndex);
  3099. end;
  3100. Procedure TCreativeTypeservingRestrictionsItemTypecontextsItem.SetgeoCriteriaId(AIndex : Integer; const AValue : TintegerArray);
  3101. begin
  3102. If (FgeoCriteriaId=AValue) then exit;
  3103. FgeoCriteriaId:=AValue;
  3104. MarkPropertyChanged(AIndex);
  3105. end;
  3106. Procedure TCreativeTypeservingRestrictionsItemTypecontextsItem.Setplatform(AIndex : Integer; const AValue : TStringArray);
  3107. begin
  3108. If (Fplatform=AValue) then exit;
  3109. Fplatform:=AValue;
  3110. MarkPropertyChanged(AIndex);
  3111. end;
  3112. //2.6.4. bug workaround
  3113. {$IFDEF VER2_6}
  3114. Procedure TCreativeTypeservingRestrictionsItemTypecontextsItem.SetArrayLength(Const AName : String; ALength : Longint);
  3115. begin
  3116. Case AName of
  3117. 'auctiontype' : SetLength(FauctionType,ALength);
  3118. 'geocriteriaid' : SetLength(FgeoCriteriaId,ALength);
  3119. 'platform' : SetLength(Fplatform,ALength);
  3120. else
  3121. Inherited SetArrayLength(AName,ALength);
  3122. end;
  3123. end;
  3124. {$ENDIF VER2_6}
  3125. { --------------------------------------------------------------------
  3126. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem
  3127. --------------------------------------------------------------------}
  3128. Procedure TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem.Setdetails(AIndex : Integer; const AValue : TStringArray);
  3129. begin
  3130. If (Fdetails=AValue) then exit;
  3131. Fdetails:=AValue;
  3132. MarkPropertyChanged(AIndex);
  3133. end;
  3134. Procedure TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem.Setreason(AIndex : Integer; const AValue : String);
  3135. begin
  3136. If (Freason=AValue) then exit;
  3137. Freason:=AValue;
  3138. MarkPropertyChanged(AIndex);
  3139. end;
  3140. //2.6.4. bug workaround
  3141. {$IFDEF VER2_6}
  3142. Procedure TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem.SetArrayLength(Const AName : String; ALength : Longint);
  3143. begin
  3144. Case AName of
  3145. 'details' : SetLength(Fdetails,ALength);
  3146. else
  3147. Inherited SetArrayLength(AName,ALength);
  3148. end;
  3149. end;
  3150. {$ENDIF VER2_6}
  3151. { --------------------------------------------------------------------
  3152. TCreativeTypeservingRestrictionsItem
  3153. --------------------------------------------------------------------}
  3154. Procedure TCreativeTypeservingRestrictionsItem.Setcontexts(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsItemTypecontextsArray);
  3155. begin
  3156. If (Fcontexts=AValue) then exit;
  3157. Fcontexts:=AValue;
  3158. MarkPropertyChanged(AIndex);
  3159. end;
  3160. Procedure TCreativeTypeservingRestrictionsItem.SetdisapprovalReasons(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsArray);
  3161. begin
  3162. If (FdisapprovalReasons=AValue) then exit;
  3163. FdisapprovalReasons:=AValue;
  3164. MarkPropertyChanged(AIndex);
  3165. end;
  3166. Procedure TCreativeTypeservingRestrictionsItem.Setreason(AIndex : Integer; const AValue : String);
  3167. begin
  3168. If (Freason=AValue) then exit;
  3169. Freason:=AValue;
  3170. MarkPropertyChanged(AIndex);
  3171. end;
  3172. //2.6.4. bug workaround
  3173. {$IFDEF VER2_6}
  3174. Procedure TCreativeTypeservingRestrictionsItem.SetArrayLength(Const AName : String; ALength : Longint);
  3175. begin
  3176. Case AName of
  3177. 'contexts' : SetLength(Fcontexts,ALength);
  3178. 'disapprovalreasons' : SetLength(FdisapprovalReasons,ALength);
  3179. else
  3180. Inherited SetArrayLength(AName,ALength);
  3181. end;
  3182. end;
  3183. {$ENDIF VER2_6}
  3184. { --------------------------------------------------------------------
  3185. TCreative
  3186. --------------------------------------------------------------------}
  3187. Procedure TCreative.SetHTMLSnippet(AIndex : Integer; const AValue : String);
  3188. begin
  3189. If (FHTMLSnippet=AValue) then exit;
  3190. FHTMLSnippet:=AValue;
  3191. MarkPropertyChanged(AIndex);
  3192. end;
  3193. Procedure TCreative.SetaccountId(AIndex : Integer; const AValue : integer);
  3194. begin
  3195. If (FaccountId=AValue) then exit;
  3196. FaccountId:=AValue;
  3197. MarkPropertyChanged(AIndex);
  3198. end;
  3199. Procedure TCreative.SetadChoicesDestinationUrl(AIndex : Integer; const AValue : String);
  3200. begin
  3201. If (FadChoicesDestinationUrl=AValue) then exit;
  3202. FadChoicesDestinationUrl:=AValue;
  3203. MarkPropertyChanged(AIndex);
  3204. end;
  3205. Procedure TCreative.SetadvertiserId(AIndex : Integer; const AValue : TStringArray);
  3206. begin
  3207. If (FadvertiserId=AValue) then exit;
  3208. FadvertiserId:=AValue;
  3209. MarkPropertyChanged(AIndex);
  3210. end;
  3211. Procedure TCreative.SetadvertiserName(AIndex : Integer; const AValue : String);
  3212. begin
  3213. If (FadvertiserName=AValue) then exit;
  3214. FadvertiserName:=AValue;
  3215. MarkPropertyChanged(AIndex);
  3216. end;
  3217. Procedure TCreative.SetagencyId(AIndex : Integer; const AValue : String);
  3218. begin
  3219. If (FagencyId=AValue) then exit;
  3220. FagencyId:=AValue;
  3221. MarkPropertyChanged(AIndex);
  3222. end;
  3223. Procedure TCreative.SetapiUploadTimestamp(AIndex : Integer; const AValue : TDatetime);
  3224. begin
  3225. If (FapiUploadTimestamp=AValue) then exit;
  3226. FapiUploadTimestamp:=AValue;
  3227. MarkPropertyChanged(AIndex);
  3228. end;
  3229. Procedure TCreative.Setattribute(AIndex : Integer; const AValue : TintegerArray);
  3230. begin
  3231. If (Fattribute=AValue) then exit;
  3232. Fattribute:=AValue;
  3233. MarkPropertyChanged(AIndex);
  3234. end;
  3235. Procedure TCreative.SetbuyerCreativeId(AIndex : Integer; const AValue : String);
  3236. begin
  3237. If (FbuyerCreativeId=AValue) then exit;
  3238. FbuyerCreativeId:=AValue;
  3239. MarkPropertyChanged(AIndex);
  3240. end;
  3241. Procedure TCreative.SetclickThroughUrl(AIndex : Integer; const AValue : TStringArray);
  3242. begin
  3243. If (FclickThroughUrl=AValue) then exit;
  3244. FclickThroughUrl:=AValue;
  3245. MarkPropertyChanged(AIndex);
  3246. end;
  3247. Procedure TCreative.Setcorrections(AIndex : Integer; const AValue : TCreativeTypecorrectionsArray);
  3248. begin
  3249. If (Fcorrections=AValue) then exit;
  3250. Fcorrections:=AValue;
  3251. MarkPropertyChanged(AIndex);
  3252. end;
  3253. Procedure TCreative.SetdealsStatus(AIndex : Integer; const AValue : String);
  3254. begin
  3255. If (FdealsStatus=AValue) then exit;
  3256. FdealsStatus:=AValue;
  3257. MarkPropertyChanged(AIndex);
  3258. end;
  3259. Procedure TCreative.SetfilteringReasons(AIndex : Integer; const AValue : TCreativeTypefilteringReasons);
  3260. begin
  3261. If (FfilteringReasons=AValue) then exit;
  3262. FfilteringReasons:=AValue;
  3263. MarkPropertyChanged(AIndex);
  3264. end;
  3265. Procedure TCreative.Setheight(AIndex : Integer; const AValue : integer);
  3266. begin
  3267. If (Fheight=AValue) then exit;
  3268. Fheight:=AValue;
  3269. MarkPropertyChanged(AIndex);
  3270. end;
  3271. Procedure TCreative.SetimpressionTrackingUrl(AIndex : Integer; const AValue : TStringArray);
  3272. begin
  3273. If (FimpressionTrackingUrl=AValue) then exit;
  3274. FimpressionTrackingUrl:=AValue;
  3275. MarkPropertyChanged(AIndex);
  3276. end;
  3277. Procedure TCreative.Setkind(AIndex : Integer; const AValue : String);
  3278. begin
  3279. If (Fkind=AValue) then exit;
  3280. Fkind:=AValue;
  3281. MarkPropertyChanged(AIndex);
  3282. end;
  3283. Procedure TCreative.SetnativeAd(AIndex : Integer; const AValue : TCreativeTypenativeAd);
  3284. begin
  3285. If (FnativeAd=AValue) then exit;
  3286. FnativeAd:=AValue;
  3287. MarkPropertyChanged(AIndex);
  3288. end;
  3289. Procedure TCreative.SetopenAuctionStatus(AIndex : Integer; const AValue : String);
  3290. begin
  3291. If (FopenAuctionStatus=AValue) then exit;
  3292. FopenAuctionStatus:=AValue;
  3293. MarkPropertyChanged(AIndex);
  3294. end;
  3295. Procedure TCreative.SetproductCategories(AIndex : Integer; const AValue : TintegerArray);
  3296. begin
  3297. If (FproductCategories=AValue) then exit;
  3298. FproductCategories:=AValue;
  3299. MarkPropertyChanged(AIndex);
  3300. end;
  3301. Procedure TCreative.SetrestrictedCategories(AIndex : Integer; const AValue : TintegerArray);
  3302. begin
  3303. If (FrestrictedCategories=AValue) then exit;
  3304. FrestrictedCategories:=AValue;
  3305. MarkPropertyChanged(AIndex);
  3306. end;
  3307. Procedure TCreative.SetsensitiveCategories(AIndex : Integer; const AValue : TintegerArray);
  3308. begin
  3309. If (FsensitiveCategories=AValue) then exit;
  3310. FsensitiveCategories:=AValue;
  3311. MarkPropertyChanged(AIndex);
  3312. end;
  3313. Procedure TCreative.SetservingRestrictions(AIndex : Integer; const AValue : TCreativeTypeservingRestrictionsArray);
  3314. begin
  3315. If (FservingRestrictions=AValue) then exit;
  3316. FservingRestrictions:=AValue;
  3317. MarkPropertyChanged(AIndex);
  3318. end;
  3319. Procedure TCreative.SetvendorType(AIndex : Integer; const AValue : TintegerArray);
  3320. begin
  3321. If (FvendorType=AValue) then exit;
  3322. FvendorType:=AValue;
  3323. MarkPropertyChanged(AIndex);
  3324. end;
  3325. Procedure TCreative.Setversion(AIndex : Integer; const AValue : integer);
  3326. begin
  3327. If (Fversion=AValue) then exit;
  3328. Fversion:=AValue;
  3329. MarkPropertyChanged(AIndex);
  3330. end;
  3331. Procedure TCreative.SetvideoURL(AIndex : Integer; const AValue : String);
  3332. begin
  3333. If (FvideoURL=AValue) then exit;
  3334. FvideoURL:=AValue;
  3335. MarkPropertyChanged(AIndex);
  3336. end;
  3337. Procedure TCreative.Setwidth(AIndex : Integer; const AValue : integer);
  3338. begin
  3339. If (Fwidth=AValue) then exit;
  3340. Fwidth:=AValue;
  3341. MarkPropertyChanged(AIndex);
  3342. end;
  3343. //2.6.4. bug workaround
  3344. {$IFDEF VER2_6}
  3345. Procedure TCreative.SetArrayLength(Const AName : String; ALength : Longint);
  3346. begin
  3347. Case AName of
  3348. 'advertiserid' : SetLength(FadvertiserId,ALength);
  3349. 'attribute' : SetLength(Fattribute,ALength);
  3350. 'clickthroughurl' : SetLength(FclickThroughUrl,ALength);
  3351. 'corrections' : SetLength(Fcorrections,ALength);
  3352. 'impressiontrackingurl' : SetLength(FimpressionTrackingUrl,ALength);
  3353. 'productcategories' : SetLength(FproductCategories,ALength);
  3354. 'restrictedcategories' : SetLength(FrestrictedCategories,ALength);
  3355. 'sensitivecategories' : SetLength(FsensitiveCategories,ALength);
  3356. 'servingrestrictions' : SetLength(FservingRestrictions,ALength);
  3357. 'vendortype' : SetLength(FvendorType,ALength);
  3358. else
  3359. Inherited SetArrayLength(AName,ALength);
  3360. end;
  3361. end;
  3362. {$ENDIF VER2_6}
  3363. { --------------------------------------------------------------------
  3364. TCreativesList
  3365. --------------------------------------------------------------------}
  3366. Procedure TCreativesList.Setitems(AIndex : Integer; const AValue : TCreativesListTypeitemsArray);
  3367. begin
  3368. If (Fitems=AValue) then exit;
  3369. Fitems:=AValue;
  3370. MarkPropertyChanged(AIndex);
  3371. end;
  3372. Procedure TCreativesList.Setkind(AIndex : Integer; const AValue : String);
  3373. begin
  3374. If (Fkind=AValue) then exit;
  3375. Fkind:=AValue;
  3376. MarkPropertyChanged(AIndex);
  3377. end;
  3378. Procedure TCreativesList.SetnextPageToken(AIndex : Integer; const AValue : String);
  3379. begin
  3380. If (FnextPageToken=AValue) then exit;
  3381. FnextPageToken:=AValue;
  3382. MarkPropertyChanged(AIndex);
  3383. end;
  3384. //2.6.4. bug workaround
  3385. {$IFDEF VER2_6}
  3386. Procedure TCreativesList.SetArrayLength(Const AName : String; ALength : Longint);
  3387. begin
  3388. Case AName of
  3389. 'items' : SetLength(Fitems,ALength);
  3390. else
  3391. Inherited SetArrayLength(AName,ALength);
  3392. end;
  3393. end;
  3394. {$ENDIF VER2_6}
  3395. { --------------------------------------------------------------------
  3396. TDealServingMetadata
  3397. --------------------------------------------------------------------}
  3398. Procedure TDealServingMetadata.SetdealPauseStatus(AIndex : Integer; const AValue : TDealServingMetadataDealPauseStatus);
  3399. begin
  3400. If (FdealPauseStatus=AValue) then exit;
  3401. FdealPauseStatus:=AValue;
  3402. MarkPropertyChanged(AIndex);
  3403. end;
  3404. { --------------------------------------------------------------------
  3405. TDealServingMetadataDealPauseStatus
  3406. --------------------------------------------------------------------}
  3407. Procedure TDealServingMetadataDealPauseStatus.SetfirstPausedBy(AIndex : Integer; const AValue : String);
  3408. begin
  3409. If (FfirstPausedBy=AValue) then exit;
  3410. FfirstPausedBy:=AValue;
  3411. MarkPropertyChanged(AIndex);
  3412. end;
  3413. Procedure TDealServingMetadataDealPauseStatus.SethasBuyerPaused(AIndex : Integer; const AValue : boolean);
  3414. begin
  3415. If (FhasBuyerPaused=AValue) then exit;
  3416. FhasBuyerPaused:=AValue;
  3417. MarkPropertyChanged(AIndex);
  3418. end;
  3419. Procedure TDealServingMetadataDealPauseStatus.SethasSellerPaused(AIndex : Integer; const AValue : boolean);
  3420. begin
  3421. If (FhasSellerPaused=AValue) then exit;
  3422. FhasSellerPaused:=AValue;
  3423. MarkPropertyChanged(AIndex);
  3424. end;
  3425. { --------------------------------------------------------------------
  3426. TDealTerms
  3427. --------------------------------------------------------------------}
  3428. Procedure TDealTerms.SetbrandingType(AIndex : Integer; const AValue : String);
  3429. begin
  3430. If (FbrandingType=AValue) then exit;
  3431. FbrandingType:=AValue;
  3432. MarkPropertyChanged(AIndex);
  3433. end;
  3434. Procedure TDealTerms.Setdescription(AIndex : Integer; const AValue : String);
  3435. begin
  3436. If (Fdescription=AValue) then exit;
  3437. Fdescription:=AValue;
  3438. MarkPropertyChanged(AIndex);
  3439. end;
  3440. Procedure TDealTerms.SetestimatedGrossSpend(AIndex : Integer; const AValue : TPrice);
  3441. begin
  3442. If (FestimatedGrossSpend=AValue) then exit;
  3443. FestimatedGrossSpend:=AValue;
  3444. MarkPropertyChanged(AIndex);
  3445. end;
  3446. Procedure TDealTerms.SetestimatedImpressionsPerDay(AIndex : Integer; const AValue : String);
  3447. begin
  3448. If (FestimatedImpressionsPerDay=AValue) then exit;
  3449. FestimatedImpressionsPerDay:=AValue;
  3450. MarkPropertyChanged(AIndex);
  3451. end;
  3452. Procedure TDealTerms.SetguaranteedFixedPriceTerms(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTerms);
  3453. begin
  3454. If (FguaranteedFixedPriceTerms=AValue) then exit;
  3455. FguaranteedFixedPriceTerms:=AValue;
  3456. MarkPropertyChanged(AIndex);
  3457. end;
  3458. Procedure TDealTerms.SetnonGuaranteedAuctionTerms(AIndex : Integer; const AValue : TDealTermsNonGuaranteedAuctionTerms);
  3459. begin
  3460. If (FnonGuaranteedAuctionTerms=AValue) then exit;
  3461. FnonGuaranteedAuctionTerms:=AValue;
  3462. MarkPropertyChanged(AIndex);
  3463. end;
  3464. Procedure TDealTerms.SetnonGuaranteedFixedPriceTerms(AIndex : Integer; const AValue : TDealTermsNonGuaranteedFixedPriceTerms);
  3465. begin
  3466. If (FnonGuaranteedFixedPriceTerms=AValue) then exit;
  3467. FnonGuaranteedFixedPriceTerms:=AValue;
  3468. MarkPropertyChanged(AIndex);
  3469. end;
  3470. Procedure TDealTerms.SetsellerTimeZone(AIndex : Integer; const AValue : String);
  3471. begin
  3472. If (FsellerTimeZone=AValue) then exit;
  3473. FsellerTimeZone:=AValue;
  3474. MarkPropertyChanged(AIndex);
  3475. end;
  3476. { --------------------------------------------------------------------
  3477. TDealTermsGuaranteedFixedPriceTerms
  3478. --------------------------------------------------------------------}
  3479. Procedure TDealTermsGuaranteedFixedPriceTerms.SetbillingInfo(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTermsBillingInfo);
  3480. begin
  3481. If (FbillingInfo=AValue) then exit;
  3482. FbillingInfo:=AValue;
  3483. MarkPropertyChanged(AIndex);
  3484. end;
  3485. Procedure TDealTermsGuaranteedFixedPriceTerms.SetfixedPrices(AIndex : Integer; const AValue : TDealTermsGuaranteedFixedPriceTermsTypefixedPricesArray);
  3486. begin
  3487. If (FfixedPrices=AValue) then exit;
  3488. FfixedPrices:=AValue;
  3489. MarkPropertyChanged(AIndex);
  3490. end;
  3491. Procedure TDealTermsGuaranteedFixedPriceTerms.SetguaranteedImpressions(AIndex : Integer; const AValue : String);
  3492. begin
  3493. If (FguaranteedImpressions=AValue) then exit;
  3494. FguaranteedImpressions:=AValue;
  3495. MarkPropertyChanged(AIndex);
  3496. end;
  3497. Procedure TDealTermsGuaranteedFixedPriceTerms.SetguaranteedLooks(AIndex : Integer; const AValue : String);
  3498. begin
  3499. If (FguaranteedLooks=AValue) then exit;
  3500. FguaranteedLooks:=AValue;
  3501. MarkPropertyChanged(AIndex);
  3502. end;
  3503. //2.6.4. bug workaround
  3504. {$IFDEF VER2_6}
  3505. Procedure TDealTermsGuaranteedFixedPriceTerms.SetArrayLength(Const AName : String; ALength : Longint);
  3506. begin
  3507. Case AName of
  3508. 'fixedprices' : SetLength(FfixedPrices,ALength);
  3509. else
  3510. Inherited SetArrayLength(AName,ALength);
  3511. end;
  3512. end;
  3513. {$ENDIF VER2_6}
  3514. { --------------------------------------------------------------------
  3515. TDealTermsGuaranteedFixedPriceTermsBillingInfo
  3516. --------------------------------------------------------------------}
  3517. Procedure TDealTermsGuaranteedFixedPriceTermsBillingInfo.SetcurrencyConversionTimeMs(AIndex : Integer; const AValue : String);
  3518. begin
  3519. If (FcurrencyConversionTimeMs=AValue) then exit;
  3520. FcurrencyConversionTimeMs:=AValue;
  3521. MarkPropertyChanged(AIndex);
  3522. end;
  3523. Procedure TDealTermsGuaranteedFixedPriceTermsBillingInfo.SetoriginalContractedQuantity(AIndex : Integer; const AValue : String);
  3524. begin
  3525. If (ForiginalContractedQuantity=AValue) then exit;
  3526. ForiginalContractedQuantity:=AValue;
  3527. MarkPropertyChanged(AIndex);
  3528. end;
  3529. Procedure TDealTermsGuaranteedFixedPriceTermsBillingInfo.Setprice(AIndex : Integer; const AValue : TPrice);
  3530. begin
  3531. If (Fprice=AValue) then exit;
  3532. Fprice:=AValue;
  3533. MarkPropertyChanged(AIndex);
  3534. end;
  3535. { --------------------------------------------------------------------
  3536. TDealTermsNonGuaranteedAuctionTerms
  3537. --------------------------------------------------------------------}
  3538. Procedure TDealTermsNonGuaranteedAuctionTerms.SetautoOptimizePrivateAuction(AIndex : Integer; const AValue : boolean);
  3539. begin
  3540. If (FautoOptimizePrivateAuction=AValue) then exit;
  3541. FautoOptimizePrivateAuction:=AValue;
  3542. MarkPropertyChanged(AIndex);
  3543. end;
  3544. Procedure TDealTermsNonGuaranteedAuctionTerms.SetreservePricePerBuyers(AIndex : Integer; const AValue : TDealTermsNonGuaranteedAuctionTermsTypereservePricePerBuyersArray);
  3545. begin
  3546. If (FreservePricePerBuyers=AValue) then exit;
  3547. FreservePricePerBuyers:=AValue;
  3548. MarkPropertyChanged(AIndex);
  3549. end;
  3550. //2.6.4. bug workaround
  3551. {$IFDEF VER2_6}
  3552. Procedure TDealTermsNonGuaranteedAuctionTerms.SetArrayLength(Const AName : String; ALength : Longint);
  3553. begin
  3554. Case AName of
  3555. 'reservepriceperbuyers' : SetLength(FreservePricePerBuyers,ALength);
  3556. else
  3557. Inherited SetArrayLength(AName,ALength);
  3558. end;
  3559. end;
  3560. {$ENDIF VER2_6}
  3561. { --------------------------------------------------------------------
  3562. TDealTermsNonGuaranteedFixedPriceTerms
  3563. --------------------------------------------------------------------}
  3564. Procedure TDealTermsNonGuaranteedFixedPriceTerms.SetfixedPrices(AIndex : Integer; const AValue : TDealTermsNonGuaranteedFixedPriceTermsTypefixedPricesArray);
  3565. begin
  3566. If (FfixedPrices=AValue) then exit;
  3567. FfixedPrices:=AValue;
  3568. MarkPropertyChanged(AIndex);
  3569. end;
  3570. //2.6.4. bug workaround
  3571. {$IFDEF VER2_6}
  3572. Procedure TDealTermsNonGuaranteedFixedPriceTerms.SetArrayLength(Const AName : String; ALength : Longint);
  3573. begin
  3574. Case AName of
  3575. 'fixedprices' : SetLength(FfixedPrices,ALength);
  3576. else
  3577. Inherited SetArrayLength(AName,ALength);
  3578. end;
  3579. end;
  3580. {$ENDIF VER2_6}
  3581. { --------------------------------------------------------------------
  3582. TDeleteOrderDealsRequest
  3583. --------------------------------------------------------------------}
  3584. Procedure TDeleteOrderDealsRequest.SetdealIds(AIndex : Integer; const AValue : TStringArray);
  3585. begin
  3586. If (FdealIds=AValue) then exit;
  3587. FdealIds:=AValue;
  3588. MarkPropertyChanged(AIndex);
  3589. end;
  3590. Procedure TDeleteOrderDealsRequest.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  3591. begin
  3592. If (FproposalRevisionNumber=AValue) then exit;
  3593. FproposalRevisionNumber:=AValue;
  3594. MarkPropertyChanged(AIndex);
  3595. end;
  3596. Procedure TDeleteOrderDealsRequest.SetupdateAction(AIndex : Integer; const AValue : String);
  3597. begin
  3598. If (FupdateAction=AValue) then exit;
  3599. FupdateAction:=AValue;
  3600. MarkPropertyChanged(AIndex);
  3601. end;
  3602. //2.6.4. bug workaround
  3603. {$IFDEF VER2_6}
  3604. Procedure TDeleteOrderDealsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  3605. begin
  3606. Case AName of
  3607. 'dealids' : SetLength(FdealIds,ALength);
  3608. else
  3609. Inherited SetArrayLength(AName,ALength);
  3610. end;
  3611. end;
  3612. {$ENDIF VER2_6}
  3613. { --------------------------------------------------------------------
  3614. TDeleteOrderDealsResponse
  3615. --------------------------------------------------------------------}
  3616. Procedure TDeleteOrderDealsResponse.Setdeals(AIndex : Integer; const AValue : TDeleteOrderDealsResponseTypedealsArray);
  3617. begin
  3618. If (Fdeals=AValue) then exit;
  3619. Fdeals:=AValue;
  3620. MarkPropertyChanged(AIndex);
  3621. end;
  3622. Procedure TDeleteOrderDealsResponse.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  3623. begin
  3624. If (FproposalRevisionNumber=AValue) then exit;
  3625. FproposalRevisionNumber:=AValue;
  3626. MarkPropertyChanged(AIndex);
  3627. end;
  3628. //2.6.4. bug workaround
  3629. {$IFDEF VER2_6}
  3630. Procedure TDeleteOrderDealsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3631. begin
  3632. Case AName of
  3633. 'deals' : SetLength(Fdeals,ALength);
  3634. else
  3635. Inherited SetArrayLength(AName,ALength);
  3636. end;
  3637. end;
  3638. {$ENDIF VER2_6}
  3639. { --------------------------------------------------------------------
  3640. TDeliveryControl
  3641. --------------------------------------------------------------------}
  3642. Procedure TDeliveryControl.SetcreativeBlockingLevel(AIndex : Integer; const AValue : String);
  3643. begin
  3644. If (FcreativeBlockingLevel=AValue) then exit;
  3645. FcreativeBlockingLevel:=AValue;
  3646. MarkPropertyChanged(AIndex);
  3647. end;
  3648. Procedure TDeliveryControl.SetdeliveryRateType(AIndex : Integer; const AValue : String);
  3649. begin
  3650. If (FdeliveryRateType=AValue) then exit;
  3651. FdeliveryRateType:=AValue;
  3652. MarkPropertyChanged(AIndex);
  3653. end;
  3654. Procedure TDeliveryControl.SetfrequencyCaps(AIndex : Integer; const AValue : TDeliveryControlTypefrequencyCapsArray);
  3655. begin
  3656. If (FfrequencyCaps=AValue) then exit;
  3657. FfrequencyCaps:=AValue;
  3658. MarkPropertyChanged(AIndex);
  3659. end;
  3660. //2.6.4. bug workaround
  3661. {$IFDEF VER2_6}
  3662. Procedure TDeliveryControl.SetArrayLength(Const AName : String; ALength : Longint);
  3663. begin
  3664. Case AName of
  3665. 'frequencycaps' : SetLength(FfrequencyCaps,ALength);
  3666. else
  3667. Inherited SetArrayLength(AName,ALength);
  3668. end;
  3669. end;
  3670. {$ENDIF VER2_6}
  3671. { --------------------------------------------------------------------
  3672. TDeliveryControlFrequencyCap
  3673. --------------------------------------------------------------------}
  3674. Procedure TDeliveryControlFrequencyCap.SetmaxImpressions(AIndex : Integer; const AValue : integer);
  3675. begin
  3676. If (FmaxImpressions=AValue) then exit;
  3677. FmaxImpressions:=AValue;
  3678. MarkPropertyChanged(AIndex);
  3679. end;
  3680. Procedure TDeliveryControlFrequencyCap.SetnumTimeUnits(AIndex : Integer; const AValue : integer);
  3681. begin
  3682. If (FnumTimeUnits=AValue) then exit;
  3683. FnumTimeUnits:=AValue;
  3684. MarkPropertyChanged(AIndex);
  3685. end;
  3686. Procedure TDeliveryControlFrequencyCap.SettimeUnitType(AIndex : Integer; const AValue : String);
  3687. begin
  3688. If (FtimeUnitType=AValue) then exit;
  3689. FtimeUnitType:=AValue;
  3690. MarkPropertyChanged(AIndex);
  3691. end;
  3692. { --------------------------------------------------------------------
  3693. TDimension
  3694. --------------------------------------------------------------------}
  3695. Procedure TDimension.SetdimensionType(AIndex : Integer; const AValue : String);
  3696. begin
  3697. If (FdimensionType=AValue) then exit;
  3698. FdimensionType:=AValue;
  3699. MarkPropertyChanged(AIndex);
  3700. end;
  3701. Procedure TDimension.SetdimensionValues(AIndex : Integer; const AValue : TDimensionTypedimensionValuesArray);
  3702. begin
  3703. If (FdimensionValues=AValue) then exit;
  3704. FdimensionValues:=AValue;
  3705. MarkPropertyChanged(AIndex);
  3706. end;
  3707. //2.6.4. bug workaround
  3708. {$IFDEF VER2_6}
  3709. Procedure TDimension.SetArrayLength(Const AName : String; ALength : Longint);
  3710. begin
  3711. Case AName of
  3712. 'dimensionvalues' : SetLength(FdimensionValues,ALength);
  3713. else
  3714. Inherited SetArrayLength(AName,ALength);
  3715. end;
  3716. end;
  3717. {$ENDIF VER2_6}
  3718. { --------------------------------------------------------------------
  3719. TDimensionDimensionValue
  3720. --------------------------------------------------------------------}
  3721. Procedure TDimensionDimensionValue.Setid(AIndex : Integer; const AValue : integer);
  3722. begin
  3723. If (Fid=AValue) then exit;
  3724. Fid:=AValue;
  3725. MarkPropertyChanged(AIndex);
  3726. end;
  3727. Procedure TDimensionDimensionValue.Setname(AIndex : Integer; const AValue : String);
  3728. begin
  3729. If (Fname=AValue) then exit;
  3730. Fname:=AValue;
  3731. MarkPropertyChanged(AIndex);
  3732. end;
  3733. { --------------------------------------------------------------------
  3734. TEditAllOrderDealsRequest
  3735. --------------------------------------------------------------------}
  3736. Procedure TEditAllOrderDealsRequest.Setdeals(AIndex : Integer; const AValue : TEditAllOrderDealsRequestTypedealsArray);
  3737. begin
  3738. If (Fdeals=AValue) then exit;
  3739. Fdeals:=AValue;
  3740. MarkPropertyChanged(AIndex);
  3741. end;
  3742. Procedure TEditAllOrderDealsRequest.Setproposal(AIndex : Integer; const AValue : TProposal);
  3743. begin
  3744. If (Fproposal=AValue) then exit;
  3745. Fproposal:=AValue;
  3746. MarkPropertyChanged(AIndex);
  3747. end;
  3748. Procedure TEditAllOrderDealsRequest.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  3749. begin
  3750. If (FproposalRevisionNumber=AValue) then exit;
  3751. FproposalRevisionNumber:=AValue;
  3752. MarkPropertyChanged(AIndex);
  3753. end;
  3754. Procedure TEditAllOrderDealsRequest.SetupdateAction(AIndex : Integer; const AValue : String);
  3755. begin
  3756. If (FupdateAction=AValue) then exit;
  3757. FupdateAction:=AValue;
  3758. MarkPropertyChanged(AIndex);
  3759. end;
  3760. //2.6.4. bug workaround
  3761. {$IFDEF VER2_6}
  3762. Procedure TEditAllOrderDealsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  3763. begin
  3764. Case AName of
  3765. 'deals' : SetLength(Fdeals,ALength);
  3766. else
  3767. Inherited SetArrayLength(AName,ALength);
  3768. end;
  3769. end;
  3770. {$ENDIF VER2_6}
  3771. { --------------------------------------------------------------------
  3772. TEditAllOrderDealsResponse
  3773. --------------------------------------------------------------------}
  3774. Procedure TEditAllOrderDealsResponse.Setdeals(AIndex : Integer; const AValue : TEditAllOrderDealsResponseTypedealsArray);
  3775. begin
  3776. If (Fdeals=AValue) then exit;
  3777. Fdeals:=AValue;
  3778. MarkPropertyChanged(AIndex);
  3779. end;
  3780. Procedure TEditAllOrderDealsResponse.SetorderRevisionNumber(AIndex : Integer; const AValue : String);
  3781. begin
  3782. If (ForderRevisionNumber=AValue) then exit;
  3783. ForderRevisionNumber:=AValue;
  3784. MarkPropertyChanged(AIndex);
  3785. end;
  3786. //2.6.4. bug workaround
  3787. {$IFDEF VER2_6}
  3788. Procedure TEditAllOrderDealsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3789. begin
  3790. Case AName of
  3791. 'deals' : SetLength(Fdeals,ALength);
  3792. else
  3793. Inherited SetArrayLength(AName,ALength);
  3794. end;
  3795. end;
  3796. {$ENDIF VER2_6}
  3797. { --------------------------------------------------------------------
  3798. TGetOffersResponse
  3799. --------------------------------------------------------------------}
  3800. Procedure TGetOffersResponse.Setproducts(AIndex : Integer; const AValue : TGetOffersResponseTypeproductsArray);
  3801. begin
  3802. If (Fproducts=AValue) then exit;
  3803. Fproducts:=AValue;
  3804. MarkPropertyChanged(AIndex);
  3805. end;
  3806. //2.6.4. bug workaround
  3807. {$IFDEF VER2_6}
  3808. Procedure TGetOffersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3809. begin
  3810. Case AName of
  3811. 'products' : SetLength(Fproducts,ALength);
  3812. else
  3813. Inherited SetArrayLength(AName,ALength);
  3814. end;
  3815. end;
  3816. {$ENDIF VER2_6}
  3817. { --------------------------------------------------------------------
  3818. TGetOrderDealsResponse
  3819. --------------------------------------------------------------------}
  3820. Procedure TGetOrderDealsResponse.Setdeals(AIndex : Integer; const AValue : TGetOrderDealsResponseTypedealsArray);
  3821. begin
  3822. If (Fdeals=AValue) then exit;
  3823. Fdeals:=AValue;
  3824. MarkPropertyChanged(AIndex);
  3825. end;
  3826. //2.6.4. bug workaround
  3827. {$IFDEF VER2_6}
  3828. Procedure TGetOrderDealsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3829. begin
  3830. Case AName of
  3831. 'deals' : SetLength(Fdeals,ALength);
  3832. else
  3833. Inherited SetArrayLength(AName,ALength);
  3834. end;
  3835. end;
  3836. {$ENDIF VER2_6}
  3837. { --------------------------------------------------------------------
  3838. TGetOrderNotesResponse
  3839. --------------------------------------------------------------------}
  3840. Procedure TGetOrderNotesResponse.Setnotes(AIndex : Integer; const AValue : TGetOrderNotesResponseTypenotesArray);
  3841. begin
  3842. If (Fnotes=AValue) then exit;
  3843. Fnotes:=AValue;
  3844. MarkPropertyChanged(AIndex);
  3845. end;
  3846. //2.6.4. bug workaround
  3847. {$IFDEF VER2_6}
  3848. Procedure TGetOrderNotesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3849. begin
  3850. Case AName of
  3851. 'notes' : SetLength(Fnotes,ALength);
  3852. else
  3853. Inherited SetArrayLength(AName,ALength);
  3854. end;
  3855. end;
  3856. {$ENDIF VER2_6}
  3857. { --------------------------------------------------------------------
  3858. TGetOrdersResponse
  3859. --------------------------------------------------------------------}
  3860. Procedure TGetOrdersResponse.Setproposals(AIndex : Integer; const AValue : TGetOrdersResponseTypeproposalsArray);
  3861. begin
  3862. If (Fproposals=AValue) then exit;
  3863. Fproposals:=AValue;
  3864. MarkPropertyChanged(AIndex);
  3865. end;
  3866. //2.6.4. bug workaround
  3867. {$IFDEF VER2_6}
  3868. Procedure TGetOrdersResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3869. begin
  3870. Case AName of
  3871. 'proposals' : SetLength(Fproposals,ALength);
  3872. else
  3873. Inherited SetArrayLength(AName,ALength);
  3874. end;
  3875. end;
  3876. {$ENDIF VER2_6}
  3877. { --------------------------------------------------------------------
  3878. TGetPublisherProfilesByAccountIdResponse
  3879. --------------------------------------------------------------------}
  3880. Procedure TGetPublisherProfilesByAccountIdResponse.Setprofiles(AIndex : Integer; const AValue : TGetPublisherProfilesByAccountIdResponseTypeprofilesArray);
  3881. begin
  3882. If (Fprofiles=AValue) then exit;
  3883. Fprofiles:=AValue;
  3884. MarkPropertyChanged(AIndex);
  3885. end;
  3886. //2.6.4. bug workaround
  3887. {$IFDEF VER2_6}
  3888. Procedure TGetPublisherProfilesByAccountIdResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3889. begin
  3890. Case AName of
  3891. 'profiles' : SetLength(Fprofiles,ALength);
  3892. else
  3893. Inherited SetArrayLength(AName,ALength);
  3894. end;
  3895. end;
  3896. {$ENDIF VER2_6}
  3897. { --------------------------------------------------------------------
  3898. TMarketplaceDeal
  3899. --------------------------------------------------------------------}
  3900. Procedure TMarketplaceDeal.SetbuyerPrivateData(AIndex : Integer; const AValue : TPrivateData);
  3901. begin
  3902. If (FbuyerPrivateData=AValue) then exit;
  3903. FbuyerPrivateData:=AValue;
  3904. MarkPropertyChanged(AIndex);
  3905. end;
  3906. Procedure TMarketplaceDeal.SetcreationTimeMs(AIndex : Integer; const AValue : String);
  3907. begin
  3908. If (FcreationTimeMs=AValue) then exit;
  3909. FcreationTimeMs:=AValue;
  3910. MarkPropertyChanged(AIndex);
  3911. end;
  3912. Procedure TMarketplaceDeal.SetcreativePreApprovalPolicy(AIndex : Integer; const AValue : String);
  3913. begin
  3914. If (FcreativePreApprovalPolicy=AValue) then exit;
  3915. FcreativePreApprovalPolicy:=AValue;
  3916. MarkPropertyChanged(AIndex);
  3917. end;
  3918. Procedure TMarketplaceDeal.SetcreativeSafeFrameCompatibility(AIndex : Integer; const AValue : String);
  3919. begin
  3920. If (FcreativeSafeFrameCompatibility=AValue) then exit;
  3921. FcreativeSafeFrameCompatibility:=AValue;
  3922. MarkPropertyChanged(AIndex);
  3923. end;
  3924. Procedure TMarketplaceDeal.SetdealId(AIndex : Integer; const AValue : String);
  3925. begin
  3926. If (FdealId=AValue) then exit;
  3927. FdealId:=AValue;
  3928. MarkPropertyChanged(AIndex);
  3929. end;
  3930. Procedure TMarketplaceDeal.SetdealServingMetadata(AIndex : Integer; const AValue : TDealServingMetadata);
  3931. begin
  3932. If (FdealServingMetadata=AValue) then exit;
  3933. FdealServingMetadata:=AValue;
  3934. MarkPropertyChanged(AIndex);
  3935. end;
  3936. Procedure TMarketplaceDeal.SetdeliveryControl(AIndex : Integer; const AValue : TDeliveryControl);
  3937. begin
  3938. If (FdeliveryControl=AValue) then exit;
  3939. FdeliveryControl:=AValue;
  3940. MarkPropertyChanged(AIndex);
  3941. end;
  3942. Procedure TMarketplaceDeal.SetexternalDealId(AIndex : Integer; const AValue : String);
  3943. begin
  3944. If (FexternalDealId=AValue) then exit;
  3945. FexternalDealId:=AValue;
  3946. MarkPropertyChanged(AIndex);
  3947. end;
  3948. Procedure TMarketplaceDeal.SetflightEndTimeMs(AIndex : Integer; const AValue : String);
  3949. begin
  3950. If (FflightEndTimeMs=AValue) then exit;
  3951. FflightEndTimeMs:=AValue;
  3952. MarkPropertyChanged(AIndex);
  3953. end;
  3954. Procedure TMarketplaceDeal.SetflightStartTimeMs(AIndex : Integer; const AValue : String);
  3955. begin
  3956. If (FflightStartTimeMs=AValue) then exit;
  3957. FflightStartTimeMs:=AValue;
  3958. MarkPropertyChanged(AIndex);
  3959. end;
  3960. Procedure TMarketplaceDeal.SetinventoryDescription(AIndex : Integer; const AValue : String);
  3961. begin
  3962. If (FinventoryDescription=AValue) then exit;
  3963. FinventoryDescription:=AValue;
  3964. MarkPropertyChanged(AIndex);
  3965. end;
  3966. Procedure TMarketplaceDeal.Setkind(AIndex : Integer; const AValue : String);
  3967. begin
  3968. If (Fkind=AValue) then exit;
  3969. Fkind:=AValue;
  3970. MarkPropertyChanged(AIndex);
  3971. end;
  3972. Procedure TMarketplaceDeal.SetlastUpdateTimeMs(AIndex : Integer; const AValue : String);
  3973. begin
  3974. If (FlastUpdateTimeMs=AValue) then exit;
  3975. FlastUpdateTimeMs:=AValue;
  3976. MarkPropertyChanged(AIndex);
  3977. end;
  3978. Procedure TMarketplaceDeal.Setname(AIndex : Integer; const AValue : String);
  3979. begin
  3980. If (Fname=AValue) then exit;
  3981. Fname:=AValue;
  3982. MarkPropertyChanged(AIndex);
  3983. end;
  3984. Procedure TMarketplaceDeal.SetproductId(AIndex : Integer; const AValue : String);
  3985. begin
  3986. If (FproductId=AValue) then exit;
  3987. FproductId:=AValue;
  3988. MarkPropertyChanged(AIndex);
  3989. end;
  3990. Procedure TMarketplaceDeal.SetproductRevisionNumber(AIndex : Integer; const AValue : String);
  3991. begin
  3992. If (FproductRevisionNumber=AValue) then exit;
  3993. FproductRevisionNumber:=AValue;
  3994. MarkPropertyChanged(AIndex);
  3995. end;
  3996. Procedure TMarketplaceDeal.SetprogrammaticCreativeSource(AIndex : Integer; const AValue : String);
  3997. begin
  3998. If (FprogrammaticCreativeSource=AValue) then exit;
  3999. FprogrammaticCreativeSource:=AValue;
  4000. MarkPropertyChanged(AIndex);
  4001. end;
  4002. Procedure TMarketplaceDeal.SetproposalId(AIndex : Integer; const AValue : String);
  4003. begin
  4004. If (FproposalId=AValue) then exit;
  4005. FproposalId:=AValue;
  4006. MarkPropertyChanged(AIndex);
  4007. end;
  4008. Procedure TMarketplaceDeal.SetsellerContacts(AIndex : Integer; const AValue : TMarketplaceDealTypesellerContactsArray);
  4009. begin
  4010. If (FsellerContacts=AValue) then exit;
  4011. FsellerContacts:=AValue;
  4012. MarkPropertyChanged(AIndex);
  4013. end;
  4014. Procedure TMarketplaceDeal.SetsharedTargetings(AIndex : Integer; const AValue : TMarketplaceDealTypesharedTargetingsArray);
  4015. begin
  4016. If (FsharedTargetings=AValue) then exit;
  4017. FsharedTargetings:=AValue;
  4018. MarkPropertyChanged(AIndex);
  4019. end;
  4020. Procedure TMarketplaceDeal.SetsyndicationProduct(AIndex : Integer; const AValue : String);
  4021. begin
  4022. If (FsyndicationProduct=AValue) then exit;
  4023. FsyndicationProduct:=AValue;
  4024. MarkPropertyChanged(AIndex);
  4025. end;
  4026. Procedure TMarketplaceDeal.Setterms(AIndex : Integer; const AValue : TDealTerms);
  4027. begin
  4028. If (Fterms=AValue) then exit;
  4029. Fterms:=AValue;
  4030. MarkPropertyChanged(AIndex);
  4031. end;
  4032. Procedure TMarketplaceDeal.SetwebPropertyCode(AIndex : Integer; const AValue : String);
  4033. begin
  4034. If (FwebPropertyCode=AValue) then exit;
  4035. FwebPropertyCode:=AValue;
  4036. MarkPropertyChanged(AIndex);
  4037. end;
  4038. //2.6.4. bug workaround
  4039. {$IFDEF VER2_6}
  4040. Procedure TMarketplaceDeal.SetArrayLength(Const AName : String; ALength : Longint);
  4041. begin
  4042. Case AName of
  4043. 'sellercontacts' : SetLength(FsellerContacts,ALength);
  4044. 'sharedtargetings' : SetLength(FsharedTargetings,ALength);
  4045. else
  4046. Inherited SetArrayLength(AName,ALength);
  4047. end;
  4048. end;
  4049. {$ENDIF VER2_6}
  4050. { --------------------------------------------------------------------
  4051. TMarketplaceDealParty
  4052. --------------------------------------------------------------------}
  4053. Procedure TMarketplaceDealParty.Setbuyer(AIndex : Integer; const AValue : TBuyer);
  4054. begin
  4055. If (Fbuyer=AValue) then exit;
  4056. Fbuyer:=AValue;
  4057. MarkPropertyChanged(AIndex);
  4058. end;
  4059. Procedure TMarketplaceDealParty.Setseller(AIndex : Integer; const AValue : TSeller);
  4060. begin
  4061. If (Fseller=AValue) then exit;
  4062. Fseller:=AValue;
  4063. MarkPropertyChanged(AIndex);
  4064. end;
  4065. { --------------------------------------------------------------------
  4066. TMarketplaceLabel
  4067. --------------------------------------------------------------------}
  4068. Procedure TMarketplaceLabel.SetaccountId(AIndex : Integer; const AValue : String);
  4069. begin
  4070. If (FaccountId=AValue) then exit;
  4071. FaccountId:=AValue;
  4072. MarkPropertyChanged(AIndex);
  4073. end;
  4074. Procedure TMarketplaceLabel.SetcreateTimeMs(AIndex : Integer; const AValue : String);
  4075. begin
  4076. If (FcreateTimeMs=AValue) then exit;
  4077. FcreateTimeMs:=AValue;
  4078. MarkPropertyChanged(AIndex);
  4079. end;
  4080. Procedure TMarketplaceLabel.SetdeprecatedMarketplaceDealParty(AIndex : Integer; const AValue : TMarketplaceDealParty);
  4081. begin
  4082. If (FdeprecatedMarketplaceDealParty=AValue) then exit;
  4083. FdeprecatedMarketplaceDealParty:=AValue;
  4084. MarkPropertyChanged(AIndex);
  4085. end;
  4086. Procedure TMarketplaceLabel.Set_label(AIndex : Integer; const AValue : String);
  4087. begin
  4088. If (F_label=AValue) then exit;
  4089. F_label:=AValue;
  4090. MarkPropertyChanged(AIndex);
  4091. end;
  4092. Class Function TMarketplaceLabel.ExportPropertyName(Const AName : String) :String;
  4093. begin
  4094. Case AName of
  4095. '_label' : Result:='label';
  4096. else
  4097. Result:=Inherited ExportPropertyName(AName);
  4098. end;
  4099. end;
  4100. { --------------------------------------------------------------------
  4101. TMarketplaceNote
  4102. --------------------------------------------------------------------}
  4103. Procedure TMarketplaceNote.SetcreatorRole(AIndex : Integer; const AValue : String);
  4104. begin
  4105. If (FcreatorRole=AValue) then exit;
  4106. FcreatorRole:=AValue;
  4107. MarkPropertyChanged(AIndex);
  4108. end;
  4109. Procedure TMarketplaceNote.SetdealId(AIndex : Integer; const AValue : String);
  4110. begin
  4111. If (FdealId=AValue) then exit;
  4112. FdealId:=AValue;
  4113. MarkPropertyChanged(AIndex);
  4114. end;
  4115. Procedure TMarketplaceNote.Setkind(AIndex : Integer; const AValue : String);
  4116. begin
  4117. If (Fkind=AValue) then exit;
  4118. Fkind:=AValue;
  4119. MarkPropertyChanged(AIndex);
  4120. end;
  4121. Procedure TMarketplaceNote.Setnote(AIndex : Integer; const AValue : String);
  4122. begin
  4123. If (Fnote=AValue) then exit;
  4124. Fnote:=AValue;
  4125. MarkPropertyChanged(AIndex);
  4126. end;
  4127. Procedure TMarketplaceNote.SetnoteId(AIndex : Integer; const AValue : String);
  4128. begin
  4129. If (FnoteId=AValue) then exit;
  4130. FnoteId:=AValue;
  4131. MarkPropertyChanged(AIndex);
  4132. end;
  4133. Procedure TMarketplaceNote.SetproposalId(AIndex : Integer; const AValue : String);
  4134. begin
  4135. If (FproposalId=AValue) then exit;
  4136. FproposalId:=AValue;
  4137. MarkPropertyChanged(AIndex);
  4138. end;
  4139. Procedure TMarketplaceNote.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  4140. begin
  4141. If (FproposalRevisionNumber=AValue) then exit;
  4142. FproposalRevisionNumber:=AValue;
  4143. MarkPropertyChanged(AIndex);
  4144. end;
  4145. Procedure TMarketplaceNote.SettimestampMs(AIndex : Integer; const AValue : String);
  4146. begin
  4147. If (FtimestampMs=AValue) then exit;
  4148. FtimestampMs:=AValue;
  4149. MarkPropertyChanged(AIndex);
  4150. end;
  4151. { --------------------------------------------------------------------
  4152. TPerformanceReport
  4153. --------------------------------------------------------------------}
  4154. Procedure TPerformanceReport.SetbidRate(AIndex : Integer; const AValue : double);
  4155. begin
  4156. If (FbidRate=AValue) then exit;
  4157. FbidRate:=AValue;
  4158. MarkPropertyChanged(AIndex);
  4159. end;
  4160. Procedure TPerformanceReport.SetbidRequestRate(AIndex : Integer; const AValue : double);
  4161. begin
  4162. If (FbidRequestRate=AValue) then exit;
  4163. FbidRequestRate:=AValue;
  4164. MarkPropertyChanged(AIndex);
  4165. end;
  4166. Procedure TPerformanceReport.SetcalloutStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray);
  4167. begin
  4168. If (FcalloutStatusRate=AValue) then exit;
  4169. FcalloutStatusRate:=AValue;
  4170. MarkPropertyChanged(AIndex);
  4171. end;
  4172. Procedure TPerformanceReport.SetcookieMatcherStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray);
  4173. begin
  4174. If (FcookieMatcherStatusRate=AValue) then exit;
  4175. FcookieMatcherStatusRate:=AValue;
  4176. MarkPropertyChanged(AIndex);
  4177. end;
  4178. Procedure TPerformanceReport.SetcreativeStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray);
  4179. begin
  4180. If (FcreativeStatusRate=AValue) then exit;
  4181. FcreativeStatusRate:=AValue;
  4182. MarkPropertyChanged(AIndex);
  4183. end;
  4184. Procedure TPerformanceReport.SetfilteredBidRate(AIndex : Integer; const AValue : double);
  4185. begin
  4186. If (FfilteredBidRate=AValue) then exit;
  4187. FfilteredBidRate:=AValue;
  4188. MarkPropertyChanged(AIndex);
  4189. end;
  4190. Procedure TPerformanceReport.SethostedMatchStatusRate(AIndex : Integer; const AValue : TTJSONSchemaArray);
  4191. begin
  4192. If (FhostedMatchStatusRate=AValue) then exit;
  4193. FhostedMatchStatusRate:=AValue;
  4194. MarkPropertyChanged(AIndex);
  4195. end;
  4196. Procedure TPerformanceReport.SetinventoryMatchRate(AIndex : Integer; const AValue : double);
  4197. begin
  4198. If (FinventoryMatchRate=AValue) then exit;
  4199. FinventoryMatchRate:=AValue;
  4200. MarkPropertyChanged(AIndex);
  4201. end;
  4202. Procedure TPerformanceReport.Setkind(AIndex : Integer; const AValue : String);
  4203. begin
  4204. If (Fkind=AValue) then exit;
  4205. Fkind:=AValue;
  4206. MarkPropertyChanged(AIndex);
  4207. end;
  4208. Procedure TPerformanceReport.Setlatency50thPercentile(AIndex : Integer; const AValue : double);
  4209. begin
  4210. If (Flatency50thPercentile=AValue) then exit;
  4211. Flatency50thPercentile:=AValue;
  4212. MarkPropertyChanged(AIndex);
  4213. end;
  4214. Procedure TPerformanceReport.Setlatency85thPercentile(AIndex : Integer; const AValue : double);
  4215. begin
  4216. If (Flatency85thPercentile=AValue) then exit;
  4217. Flatency85thPercentile:=AValue;
  4218. MarkPropertyChanged(AIndex);
  4219. end;
  4220. Procedure TPerformanceReport.Setlatency95thPercentile(AIndex : Integer; const AValue : double);
  4221. begin
  4222. If (Flatency95thPercentile=AValue) then exit;
  4223. Flatency95thPercentile:=AValue;
  4224. MarkPropertyChanged(AIndex);
  4225. end;
  4226. Procedure TPerformanceReport.SetnoQuotaInRegion(AIndex : Integer; const AValue : double);
  4227. begin
  4228. If (FnoQuotaInRegion=AValue) then exit;
  4229. FnoQuotaInRegion:=AValue;
  4230. MarkPropertyChanged(AIndex);
  4231. end;
  4232. Procedure TPerformanceReport.SetoutOfQuota(AIndex : Integer; const AValue : double);
  4233. begin
  4234. If (FoutOfQuota=AValue) then exit;
  4235. FoutOfQuota:=AValue;
  4236. MarkPropertyChanged(AIndex);
  4237. end;
  4238. Procedure TPerformanceReport.SetpixelMatchRequests(AIndex : Integer; const AValue : double);
  4239. begin
  4240. If (FpixelMatchRequests=AValue) then exit;
  4241. FpixelMatchRequests:=AValue;
  4242. MarkPropertyChanged(AIndex);
  4243. end;
  4244. Procedure TPerformanceReport.SetpixelMatchResponses(AIndex : Integer; const AValue : double);
  4245. begin
  4246. If (FpixelMatchResponses=AValue) then exit;
  4247. FpixelMatchResponses:=AValue;
  4248. MarkPropertyChanged(AIndex);
  4249. end;
  4250. Procedure TPerformanceReport.SetquotaConfiguredLimit(AIndex : Integer; const AValue : double);
  4251. begin
  4252. If (FquotaConfiguredLimit=AValue) then exit;
  4253. FquotaConfiguredLimit:=AValue;
  4254. MarkPropertyChanged(AIndex);
  4255. end;
  4256. Procedure TPerformanceReport.SetquotaThrottledLimit(AIndex : Integer; const AValue : double);
  4257. begin
  4258. If (FquotaThrottledLimit=AValue) then exit;
  4259. FquotaThrottledLimit:=AValue;
  4260. MarkPropertyChanged(AIndex);
  4261. end;
  4262. Procedure TPerformanceReport.Setregion(AIndex : Integer; const AValue : String);
  4263. begin
  4264. If (Fregion=AValue) then exit;
  4265. Fregion:=AValue;
  4266. MarkPropertyChanged(AIndex);
  4267. end;
  4268. Procedure TPerformanceReport.SetsuccessfulRequestRate(AIndex : Integer; const AValue : double);
  4269. begin
  4270. If (FsuccessfulRequestRate=AValue) then exit;
  4271. FsuccessfulRequestRate:=AValue;
  4272. MarkPropertyChanged(AIndex);
  4273. end;
  4274. Procedure TPerformanceReport.Settimestamp(AIndex : Integer; const AValue : String);
  4275. begin
  4276. If (Ftimestamp=AValue) then exit;
  4277. Ftimestamp:=AValue;
  4278. MarkPropertyChanged(AIndex);
  4279. end;
  4280. Procedure TPerformanceReport.SetunsuccessfulRequestRate(AIndex : Integer; const AValue : double);
  4281. begin
  4282. If (FunsuccessfulRequestRate=AValue) then exit;
  4283. FunsuccessfulRequestRate:=AValue;
  4284. MarkPropertyChanged(AIndex);
  4285. end;
  4286. //2.6.4. bug workaround
  4287. {$IFDEF VER2_6}
  4288. Procedure TPerformanceReport.SetArrayLength(Const AName : String; ALength : Longint);
  4289. begin
  4290. Case AName of
  4291. 'calloutstatusrate' : SetLength(FcalloutStatusRate,ALength);
  4292. 'cookiematcherstatusrate' : SetLength(FcookieMatcherStatusRate,ALength);
  4293. 'creativestatusrate' : SetLength(FcreativeStatusRate,ALength);
  4294. 'hostedmatchstatusrate' : SetLength(FhostedMatchStatusRate,ALength);
  4295. else
  4296. Inherited SetArrayLength(AName,ALength);
  4297. end;
  4298. end;
  4299. {$ENDIF VER2_6}
  4300. { --------------------------------------------------------------------
  4301. TPerformanceReportList
  4302. --------------------------------------------------------------------}
  4303. Procedure TPerformanceReportList.Setkind(AIndex : Integer; const AValue : String);
  4304. begin
  4305. If (Fkind=AValue) then exit;
  4306. Fkind:=AValue;
  4307. MarkPropertyChanged(AIndex);
  4308. end;
  4309. Procedure TPerformanceReportList.SetperformanceReport(AIndex : Integer; const AValue : TPerformanceReportListTypeperformanceReportArray);
  4310. begin
  4311. If (FperformanceReport=AValue) then exit;
  4312. FperformanceReport:=AValue;
  4313. MarkPropertyChanged(AIndex);
  4314. end;
  4315. //2.6.4. bug workaround
  4316. {$IFDEF VER2_6}
  4317. Procedure TPerformanceReportList.SetArrayLength(Const AName : String; ALength : Longint);
  4318. begin
  4319. Case AName of
  4320. 'performancereport' : SetLength(FperformanceReport,ALength);
  4321. else
  4322. Inherited SetArrayLength(AName,ALength);
  4323. end;
  4324. end;
  4325. {$ENDIF VER2_6}
  4326. { --------------------------------------------------------------------
  4327. TPretargetingConfigTypedimensionsItem
  4328. --------------------------------------------------------------------}
  4329. Procedure TPretargetingConfigTypedimensionsItem.Setheight(AIndex : Integer; const AValue : String);
  4330. begin
  4331. If (Fheight=AValue) then exit;
  4332. Fheight:=AValue;
  4333. MarkPropertyChanged(AIndex);
  4334. end;
  4335. Procedure TPretargetingConfigTypedimensionsItem.Setwidth(AIndex : Integer; const AValue : String);
  4336. begin
  4337. If (Fwidth=AValue) then exit;
  4338. Fwidth:=AValue;
  4339. MarkPropertyChanged(AIndex);
  4340. end;
  4341. { --------------------------------------------------------------------
  4342. TPretargetingConfigTypeexcludedPlacementsItem
  4343. --------------------------------------------------------------------}
  4344. Procedure TPretargetingConfigTypeexcludedPlacementsItem.Settoken(AIndex : Integer; const AValue : String);
  4345. begin
  4346. If (Ftoken=AValue) then exit;
  4347. Ftoken:=AValue;
  4348. MarkPropertyChanged(AIndex);
  4349. end;
  4350. Procedure TPretargetingConfigTypeexcludedPlacementsItem.Set_type(AIndex : Integer; const AValue : String);
  4351. begin
  4352. If (F_type=AValue) then exit;
  4353. F_type:=AValue;
  4354. MarkPropertyChanged(AIndex);
  4355. end;
  4356. Class Function TPretargetingConfigTypeexcludedPlacementsItem.ExportPropertyName(Const AName : String) :String;
  4357. begin
  4358. Case AName of
  4359. '_type' : Result:='type';
  4360. else
  4361. Result:=Inherited ExportPropertyName(AName);
  4362. end;
  4363. end;
  4364. { --------------------------------------------------------------------
  4365. TPretargetingConfigTypeplacementsItem
  4366. --------------------------------------------------------------------}
  4367. Procedure TPretargetingConfigTypeplacementsItem.Settoken(AIndex : Integer; const AValue : String);
  4368. begin
  4369. If (Ftoken=AValue) then exit;
  4370. Ftoken:=AValue;
  4371. MarkPropertyChanged(AIndex);
  4372. end;
  4373. Procedure TPretargetingConfigTypeplacementsItem.Set_type(AIndex : Integer; const AValue : String);
  4374. begin
  4375. If (F_type=AValue) then exit;
  4376. F_type:=AValue;
  4377. MarkPropertyChanged(AIndex);
  4378. end;
  4379. Class Function TPretargetingConfigTypeplacementsItem.ExportPropertyName(Const AName : String) :String;
  4380. begin
  4381. Case AName of
  4382. '_type' : Result:='type';
  4383. else
  4384. Result:=Inherited ExportPropertyName(AName);
  4385. end;
  4386. end;
  4387. { --------------------------------------------------------------------
  4388. TPretargetingConfigTypevideoPlayerSizesItem
  4389. --------------------------------------------------------------------}
  4390. Procedure TPretargetingConfigTypevideoPlayerSizesItem.SetaspectRatio(AIndex : Integer; const AValue : String);
  4391. begin
  4392. If (FaspectRatio=AValue) then exit;
  4393. FaspectRatio:=AValue;
  4394. MarkPropertyChanged(AIndex);
  4395. end;
  4396. Procedure TPretargetingConfigTypevideoPlayerSizesItem.SetminHeight(AIndex : Integer; const AValue : String);
  4397. begin
  4398. If (FminHeight=AValue) then exit;
  4399. FminHeight:=AValue;
  4400. MarkPropertyChanged(AIndex);
  4401. end;
  4402. Procedure TPretargetingConfigTypevideoPlayerSizesItem.SetminWidth(AIndex : Integer; const AValue : String);
  4403. begin
  4404. If (FminWidth=AValue) then exit;
  4405. FminWidth:=AValue;
  4406. MarkPropertyChanged(AIndex);
  4407. end;
  4408. { --------------------------------------------------------------------
  4409. TPretargetingConfig
  4410. --------------------------------------------------------------------}
  4411. Procedure TPretargetingConfig.SetbillingId(AIndex : Integer; const AValue : String);
  4412. begin
  4413. If (FbillingId=AValue) then exit;
  4414. FbillingId:=AValue;
  4415. MarkPropertyChanged(AIndex);
  4416. end;
  4417. Procedure TPretargetingConfig.SetconfigId(AIndex : Integer; const AValue : String);
  4418. begin
  4419. If (FconfigId=AValue) then exit;
  4420. FconfigId:=AValue;
  4421. MarkPropertyChanged(AIndex);
  4422. end;
  4423. Procedure TPretargetingConfig.SetconfigName(AIndex : Integer; const AValue : String);
  4424. begin
  4425. If (FconfigName=AValue) then exit;
  4426. FconfigName:=AValue;
  4427. MarkPropertyChanged(AIndex);
  4428. end;
  4429. Procedure TPretargetingConfig.SetcreativeType(AIndex : Integer; const AValue : TStringArray);
  4430. begin
  4431. If (FcreativeType=AValue) then exit;
  4432. FcreativeType:=AValue;
  4433. MarkPropertyChanged(AIndex);
  4434. end;
  4435. Procedure TPretargetingConfig.Setdimensions(AIndex : Integer; const AValue : TPretargetingConfigTypedimensionsArray);
  4436. begin
  4437. If (Fdimensions=AValue) then exit;
  4438. Fdimensions:=AValue;
  4439. MarkPropertyChanged(AIndex);
  4440. end;
  4441. Procedure TPretargetingConfig.SetexcludedContentLabels(AIndex : Integer; const AValue : TStringArray);
  4442. begin
  4443. If (FexcludedContentLabels=AValue) then exit;
  4444. FexcludedContentLabels:=AValue;
  4445. MarkPropertyChanged(AIndex);
  4446. end;
  4447. Procedure TPretargetingConfig.SetexcludedGeoCriteriaIds(AIndex : Integer; const AValue : TStringArray);
  4448. begin
  4449. If (FexcludedGeoCriteriaIds=AValue) then exit;
  4450. FexcludedGeoCriteriaIds:=AValue;
  4451. MarkPropertyChanged(AIndex);
  4452. end;
  4453. Procedure TPretargetingConfig.SetexcludedPlacements(AIndex : Integer; const AValue : TPretargetingConfigTypeexcludedPlacementsArray);
  4454. begin
  4455. If (FexcludedPlacements=AValue) then exit;
  4456. FexcludedPlacements:=AValue;
  4457. MarkPropertyChanged(AIndex);
  4458. end;
  4459. Procedure TPretargetingConfig.SetexcludedUserLists(AIndex : Integer; const AValue : TStringArray);
  4460. begin
  4461. If (FexcludedUserLists=AValue) then exit;
  4462. FexcludedUserLists:=AValue;
  4463. MarkPropertyChanged(AIndex);
  4464. end;
  4465. Procedure TPretargetingConfig.SetexcludedVerticals(AIndex : Integer; const AValue : TStringArray);
  4466. begin
  4467. If (FexcludedVerticals=AValue) then exit;
  4468. FexcludedVerticals:=AValue;
  4469. MarkPropertyChanged(AIndex);
  4470. end;
  4471. Procedure TPretargetingConfig.SetgeoCriteriaIds(AIndex : Integer; const AValue : TStringArray);
  4472. begin
  4473. If (FgeoCriteriaIds=AValue) then exit;
  4474. FgeoCriteriaIds:=AValue;
  4475. MarkPropertyChanged(AIndex);
  4476. end;
  4477. Procedure TPretargetingConfig.SetisActive(AIndex : Integer; const AValue : boolean);
  4478. begin
  4479. If (FisActive=AValue) then exit;
  4480. FisActive:=AValue;
  4481. MarkPropertyChanged(AIndex);
  4482. end;
  4483. Procedure TPretargetingConfig.Setkind(AIndex : Integer; const AValue : String);
  4484. begin
  4485. If (Fkind=AValue) then exit;
  4486. Fkind:=AValue;
  4487. MarkPropertyChanged(AIndex);
  4488. end;
  4489. Procedure TPretargetingConfig.Setlanguages(AIndex : Integer; const AValue : TStringArray);
  4490. begin
  4491. If (Flanguages=AValue) then exit;
  4492. Flanguages:=AValue;
  4493. MarkPropertyChanged(AIndex);
  4494. end;
  4495. Procedure TPretargetingConfig.SetmobileCarriers(AIndex : Integer; const AValue : TStringArray);
  4496. begin
  4497. If (FmobileCarriers=AValue) then exit;
  4498. FmobileCarriers:=AValue;
  4499. MarkPropertyChanged(AIndex);
  4500. end;
  4501. Procedure TPretargetingConfig.SetmobileDevices(AIndex : Integer; const AValue : TStringArray);
  4502. begin
  4503. If (FmobileDevices=AValue) then exit;
  4504. FmobileDevices:=AValue;
  4505. MarkPropertyChanged(AIndex);
  4506. end;
  4507. Procedure TPretargetingConfig.SetmobileOperatingSystemVersions(AIndex : Integer; const AValue : TStringArray);
  4508. begin
  4509. If (FmobileOperatingSystemVersions=AValue) then exit;
  4510. FmobileOperatingSystemVersions:=AValue;
  4511. MarkPropertyChanged(AIndex);
  4512. end;
  4513. Procedure TPretargetingConfig.Setplacements(AIndex : Integer; const AValue : TPretargetingConfigTypeplacementsArray);
  4514. begin
  4515. If (Fplacements=AValue) then exit;
  4516. Fplacements:=AValue;
  4517. MarkPropertyChanged(AIndex);
  4518. end;
  4519. Procedure TPretargetingConfig.Setplatforms(AIndex : Integer; const AValue : TStringArray);
  4520. begin
  4521. If (Fplatforms=AValue) then exit;
  4522. Fplatforms:=AValue;
  4523. MarkPropertyChanged(AIndex);
  4524. end;
  4525. Procedure TPretargetingConfig.SetsupportedCreativeAttributes(AIndex : Integer; const AValue : TStringArray);
  4526. begin
  4527. If (FsupportedCreativeAttributes=AValue) then exit;
  4528. FsupportedCreativeAttributes:=AValue;
  4529. MarkPropertyChanged(AIndex);
  4530. end;
  4531. Procedure TPretargetingConfig.SetuserLists(AIndex : Integer; const AValue : TStringArray);
  4532. begin
  4533. If (FuserLists=AValue) then exit;
  4534. FuserLists:=AValue;
  4535. MarkPropertyChanged(AIndex);
  4536. end;
  4537. Procedure TPretargetingConfig.SetvendorTypes(AIndex : Integer; const AValue : TStringArray);
  4538. begin
  4539. If (FvendorTypes=AValue) then exit;
  4540. FvendorTypes:=AValue;
  4541. MarkPropertyChanged(AIndex);
  4542. end;
  4543. Procedure TPretargetingConfig.Setverticals(AIndex : Integer; const AValue : TStringArray);
  4544. begin
  4545. If (Fverticals=AValue) then exit;
  4546. Fverticals:=AValue;
  4547. MarkPropertyChanged(AIndex);
  4548. end;
  4549. Procedure TPretargetingConfig.SetvideoPlayerSizes(AIndex : Integer; const AValue : TPretargetingConfigTypevideoPlayerSizesArray);
  4550. begin
  4551. If (FvideoPlayerSizes=AValue) then exit;
  4552. FvideoPlayerSizes:=AValue;
  4553. MarkPropertyChanged(AIndex);
  4554. end;
  4555. //2.6.4. bug workaround
  4556. {$IFDEF VER2_6}
  4557. Procedure TPretargetingConfig.SetArrayLength(Const AName : String; ALength : Longint);
  4558. begin
  4559. Case AName of
  4560. 'creativetype' : SetLength(FcreativeType,ALength);
  4561. 'dimensions' : SetLength(Fdimensions,ALength);
  4562. 'excludedcontentlabels' : SetLength(FexcludedContentLabels,ALength);
  4563. 'excludedgeocriteriaids' : SetLength(FexcludedGeoCriteriaIds,ALength);
  4564. 'excludedplacements' : SetLength(FexcludedPlacements,ALength);
  4565. 'excludeduserlists' : SetLength(FexcludedUserLists,ALength);
  4566. 'excludedverticals' : SetLength(FexcludedVerticals,ALength);
  4567. 'geocriteriaids' : SetLength(FgeoCriteriaIds,ALength);
  4568. 'languages' : SetLength(Flanguages,ALength);
  4569. 'mobilecarriers' : SetLength(FmobileCarriers,ALength);
  4570. 'mobiledevices' : SetLength(FmobileDevices,ALength);
  4571. 'mobileoperatingsystemversions' : SetLength(FmobileOperatingSystemVersions,ALength);
  4572. 'placements' : SetLength(Fplacements,ALength);
  4573. 'platforms' : SetLength(Fplatforms,ALength);
  4574. 'supportedcreativeattributes' : SetLength(FsupportedCreativeAttributes,ALength);
  4575. 'userlists' : SetLength(FuserLists,ALength);
  4576. 'vendortypes' : SetLength(FvendorTypes,ALength);
  4577. 'verticals' : SetLength(Fverticals,ALength);
  4578. 'videoplayersizes' : SetLength(FvideoPlayerSizes,ALength);
  4579. else
  4580. Inherited SetArrayLength(AName,ALength);
  4581. end;
  4582. end;
  4583. {$ENDIF VER2_6}
  4584. { --------------------------------------------------------------------
  4585. TPretargetingConfigList
  4586. --------------------------------------------------------------------}
  4587. Procedure TPretargetingConfigList.Setitems(AIndex : Integer; const AValue : TPretargetingConfigListTypeitemsArray);
  4588. begin
  4589. If (Fitems=AValue) then exit;
  4590. Fitems:=AValue;
  4591. MarkPropertyChanged(AIndex);
  4592. end;
  4593. Procedure TPretargetingConfigList.Setkind(AIndex : Integer; const AValue : String);
  4594. begin
  4595. If (Fkind=AValue) then exit;
  4596. Fkind:=AValue;
  4597. MarkPropertyChanged(AIndex);
  4598. end;
  4599. //2.6.4. bug workaround
  4600. {$IFDEF VER2_6}
  4601. Procedure TPretargetingConfigList.SetArrayLength(Const AName : String; ALength : Longint);
  4602. begin
  4603. Case AName of
  4604. 'items' : SetLength(Fitems,ALength);
  4605. else
  4606. Inherited SetArrayLength(AName,ALength);
  4607. end;
  4608. end;
  4609. {$ENDIF VER2_6}
  4610. { --------------------------------------------------------------------
  4611. TPrice
  4612. --------------------------------------------------------------------}
  4613. Procedure TPrice.SetamountMicros(AIndex : Integer; const AValue : double);
  4614. begin
  4615. If (FamountMicros=AValue) then exit;
  4616. FamountMicros:=AValue;
  4617. MarkPropertyChanged(AIndex);
  4618. end;
  4619. Procedure TPrice.SetcurrencyCode(AIndex : Integer; const AValue : String);
  4620. begin
  4621. If (FcurrencyCode=AValue) then exit;
  4622. FcurrencyCode:=AValue;
  4623. MarkPropertyChanged(AIndex);
  4624. end;
  4625. Procedure TPrice.SetpricingType(AIndex : Integer; const AValue : String);
  4626. begin
  4627. If (FpricingType=AValue) then exit;
  4628. FpricingType:=AValue;
  4629. MarkPropertyChanged(AIndex);
  4630. end;
  4631. { --------------------------------------------------------------------
  4632. TPricePerBuyer
  4633. --------------------------------------------------------------------}
  4634. Procedure TPricePerBuyer.SetauctionTier(AIndex : Integer; const AValue : String);
  4635. begin
  4636. If (FauctionTier=AValue) then exit;
  4637. FauctionTier:=AValue;
  4638. MarkPropertyChanged(AIndex);
  4639. end;
  4640. Procedure TPricePerBuyer.Setbuyer(AIndex : Integer; const AValue : TBuyer);
  4641. begin
  4642. If (Fbuyer=AValue) then exit;
  4643. Fbuyer:=AValue;
  4644. MarkPropertyChanged(AIndex);
  4645. end;
  4646. Procedure TPricePerBuyer.Setprice(AIndex : Integer; const AValue : TPrice);
  4647. begin
  4648. If (Fprice=AValue) then exit;
  4649. Fprice:=AValue;
  4650. MarkPropertyChanged(AIndex);
  4651. end;
  4652. { --------------------------------------------------------------------
  4653. TPrivateData
  4654. --------------------------------------------------------------------}
  4655. Procedure TPrivateData.SetreferenceId(AIndex : Integer; const AValue : String);
  4656. begin
  4657. If (FreferenceId=AValue) then exit;
  4658. FreferenceId:=AValue;
  4659. MarkPropertyChanged(AIndex);
  4660. end;
  4661. Procedure TPrivateData.SetreferencePayload(AIndex : Integer; const AValue : String);
  4662. begin
  4663. If (FreferencePayload=AValue) then exit;
  4664. FreferencePayload:=AValue;
  4665. MarkPropertyChanged(AIndex);
  4666. end;
  4667. { --------------------------------------------------------------------
  4668. TProduct
  4669. --------------------------------------------------------------------}
  4670. Procedure TProduct.SetcreationTimeMs(AIndex : Integer; const AValue : String);
  4671. begin
  4672. If (FcreationTimeMs=AValue) then exit;
  4673. FcreationTimeMs:=AValue;
  4674. MarkPropertyChanged(AIndex);
  4675. end;
  4676. Procedure TProduct.SetcreatorContacts(AIndex : Integer; const AValue : TProductTypecreatorContactsArray);
  4677. begin
  4678. If (FcreatorContacts=AValue) then exit;
  4679. FcreatorContacts:=AValue;
  4680. MarkPropertyChanged(AIndex);
  4681. end;
  4682. Procedure TProduct.SetdeliveryControl(AIndex : Integer; const AValue : TDeliveryControl);
  4683. begin
  4684. If (FdeliveryControl=AValue) then exit;
  4685. FdeliveryControl:=AValue;
  4686. MarkPropertyChanged(AIndex);
  4687. end;
  4688. Procedure TProduct.SetflightEndTimeMs(AIndex : Integer; const AValue : String);
  4689. begin
  4690. If (FflightEndTimeMs=AValue) then exit;
  4691. FflightEndTimeMs:=AValue;
  4692. MarkPropertyChanged(AIndex);
  4693. end;
  4694. Procedure TProduct.SetflightStartTimeMs(AIndex : Integer; const AValue : String);
  4695. begin
  4696. If (FflightStartTimeMs=AValue) then exit;
  4697. FflightStartTimeMs:=AValue;
  4698. MarkPropertyChanged(AIndex);
  4699. end;
  4700. Procedure TProduct.SethasCreatorSignedOff(AIndex : Integer; const AValue : boolean);
  4701. begin
  4702. If (FhasCreatorSignedOff=AValue) then exit;
  4703. FhasCreatorSignedOff:=AValue;
  4704. MarkPropertyChanged(AIndex);
  4705. end;
  4706. Procedure TProduct.SetinventorySource(AIndex : Integer; const AValue : String);
  4707. begin
  4708. If (FinventorySource=AValue) then exit;
  4709. FinventorySource:=AValue;
  4710. MarkPropertyChanged(AIndex);
  4711. end;
  4712. Procedure TProduct.Setkind(AIndex : Integer; const AValue : String);
  4713. begin
  4714. If (Fkind=AValue) then exit;
  4715. Fkind:=AValue;
  4716. MarkPropertyChanged(AIndex);
  4717. end;
  4718. Procedure TProduct.Setlabels(AIndex : Integer; const AValue : TProductTypelabelsArray);
  4719. begin
  4720. If (Flabels=AValue) then exit;
  4721. Flabels:=AValue;
  4722. MarkPropertyChanged(AIndex);
  4723. end;
  4724. Procedure TProduct.SetlastUpdateTimeMs(AIndex : Integer; const AValue : String);
  4725. begin
  4726. If (FlastUpdateTimeMs=AValue) then exit;
  4727. FlastUpdateTimeMs:=AValue;
  4728. MarkPropertyChanged(AIndex);
  4729. end;
  4730. Procedure TProduct.SetlegacyOfferId(AIndex : Integer; const AValue : String);
  4731. begin
  4732. If (FlegacyOfferId=AValue) then exit;
  4733. FlegacyOfferId:=AValue;
  4734. MarkPropertyChanged(AIndex);
  4735. end;
  4736. Procedure TProduct.Setname(AIndex : Integer; const AValue : String);
  4737. begin
  4738. If (Fname=AValue) then exit;
  4739. Fname:=AValue;
  4740. MarkPropertyChanged(AIndex);
  4741. end;
  4742. Procedure TProduct.SetprivateAuctionId(AIndex : Integer; const AValue : String);
  4743. begin
  4744. If (FprivateAuctionId=AValue) then exit;
  4745. FprivateAuctionId:=AValue;
  4746. MarkPropertyChanged(AIndex);
  4747. end;
  4748. Procedure TProduct.SetproductId(AIndex : Integer; const AValue : String);
  4749. begin
  4750. If (FproductId=AValue) then exit;
  4751. FproductId:=AValue;
  4752. MarkPropertyChanged(AIndex);
  4753. end;
  4754. Procedure TProduct.SetpublisherProfileId(AIndex : Integer; const AValue : String);
  4755. begin
  4756. If (FpublisherProfileId=AValue) then exit;
  4757. FpublisherProfileId:=AValue;
  4758. MarkPropertyChanged(AIndex);
  4759. end;
  4760. Procedure TProduct.SetpublisherProvidedForecast(AIndex : Integer; const AValue : TPublisherProvidedForecast);
  4761. begin
  4762. If (FpublisherProvidedForecast=AValue) then exit;
  4763. FpublisherProvidedForecast:=AValue;
  4764. MarkPropertyChanged(AIndex);
  4765. end;
  4766. Procedure TProduct.SetrevisionNumber(AIndex : Integer; const AValue : String);
  4767. begin
  4768. If (FrevisionNumber=AValue) then exit;
  4769. FrevisionNumber:=AValue;
  4770. MarkPropertyChanged(AIndex);
  4771. end;
  4772. Procedure TProduct.Setseller(AIndex : Integer; const AValue : TSeller);
  4773. begin
  4774. If (Fseller=AValue) then exit;
  4775. Fseller:=AValue;
  4776. MarkPropertyChanged(AIndex);
  4777. end;
  4778. Procedure TProduct.SetsharedTargetings(AIndex : Integer; const AValue : TProductTypesharedTargetingsArray);
  4779. begin
  4780. If (FsharedTargetings=AValue) then exit;
  4781. FsharedTargetings:=AValue;
  4782. MarkPropertyChanged(AIndex);
  4783. end;
  4784. Procedure TProduct.Setstate(AIndex : Integer; const AValue : String);
  4785. begin
  4786. If (Fstate=AValue) then exit;
  4787. Fstate:=AValue;
  4788. MarkPropertyChanged(AIndex);
  4789. end;
  4790. Procedure TProduct.SetsyndicationProduct(AIndex : Integer; const AValue : String);
  4791. begin
  4792. If (FsyndicationProduct=AValue) then exit;
  4793. FsyndicationProduct:=AValue;
  4794. MarkPropertyChanged(AIndex);
  4795. end;
  4796. Procedure TProduct.Setterms(AIndex : Integer; const AValue : TDealTerms);
  4797. begin
  4798. If (Fterms=AValue) then exit;
  4799. Fterms:=AValue;
  4800. MarkPropertyChanged(AIndex);
  4801. end;
  4802. Procedure TProduct.SetwebPropertyCode(AIndex : Integer; const AValue : String);
  4803. begin
  4804. If (FwebPropertyCode=AValue) then exit;
  4805. FwebPropertyCode:=AValue;
  4806. MarkPropertyChanged(AIndex);
  4807. end;
  4808. //2.6.4. bug workaround
  4809. {$IFDEF VER2_6}
  4810. Procedure TProduct.SetArrayLength(Const AName : String; ALength : Longint);
  4811. begin
  4812. Case AName of
  4813. 'creatorcontacts' : SetLength(FcreatorContacts,ALength);
  4814. 'labels' : SetLength(Flabels,ALength);
  4815. 'sharedtargetings' : SetLength(FsharedTargetings,ALength);
  4816. else
  4817. Inherited SetArrayLength(AName,ALength);
  4818. end;
  4819. end;
  4820. {$ENDIF VER2_6}
  4821. { --------------------------------------------------------------------
  4822. TProposal
  4823. --------------------------------------------------------------------}
  4824. Procedure TProposal.SetbilledBuyer(AIndex : Integer; const AValue : TBuyer);
  4825. begin
  4826. If (FbilledBuyer=AValue) then exit;
  4827. FbilledBuyer:=AValue;
  4828. MarkPropertyChanged(AIndex);
  4829. end;
  4830. Procedure TProposal.Setbuyer(AIndex : Integer; const AValue : TBuyer);
  4831. begin
  4832. If (Fbuyer=AValue) then exit;
  4833. Fbuyer:=AValue;
  4834. MarkPropertyChanged(AIndex);
  4835. end;
  4836. Procedure TProposal.SetbuyerContacts(AIndex : Integer; const AValue : TProposalTypebuyerContactsArray);
  4837. begin
  4838. If (FbuyerContacts=AValue) then exit;
  4839. FbuyerContacts:=AValue;
  4840. MarkPropertyChanged(AIndex);
  4841. end;
  4842. Procedure TProposal.SetbuyerPrivateData(AIndex : Integer; const AValue : TPrivateData);
  4843. begin
  4844. If (FbuyerPrivateData=AValue) then exit;
  4845. FbuyerPrivateData:=AValue;
  4846. MarkPropertyChanged(AIndex);
  4847. end;
  4848. Procedure TProposal.SethasBuyerSignedOff(AIndex : Integer; const AValue : boolean);
  4849. begin
  4850. If (FhasBuyerSignedOff=AValue) then exit;
  4851. FhasBuyerSignedOff:=AValue;
  4852. MarkPropertyChanged(AIndex);
  4853. end;
  4854. Procedure TProposal.SethasSellerSignedOff(AIndex : Integer; const AValue : boolean);
  4855. begin
  4856. If (FhasSellerSignedOff=AValue) then exit;
  4857. FhasSellerSignedOff:=AValue;
  4858. MarkPropertyChanged(AIndex);
  4859. end;
  4860. Procedure TProposal.SetinventorySource(AIndex : Integer; const AValue : String);
  4861. begin
  4862. If (FinventorySource=AValue) then exit;
  4863. FinventorySource:=AValue;
  4864. MarkPropertyChanged(AIndex);
  4865. end;
  4866. Procedure TProposal.SetisRenegotiating(AIndex : Integer; const AValue : boolean);
  4867. begin
  4868. If (FisRenegotiating=AValue) then exit;
  4869. FisRenegotiating:=AValue;
  4870. MarkPropertyChanged(AIndex);
  4871. end;
  4872. Procedure TProposal.SetisSetupComplete(AIndex : Integer; const AValue : boolean);
  4873. begin
  4874. If (FisSetupComplete=AValue) then exit;
  4875. FisSetupComplete:=AValue;
  4876. MarkPropertyChanged(AIndex);
  4877. end;
  4878. Procedure TProposal.Setkind(AIndex : Integer; const AValue : String);
  4879. begin
  4880. If (Fkind=AValue) then exit;
  4881. Fkind:=AValue;
  4882. MarkPropertyChanged(AIndex);
  4883. end;
  4884. Procedure TProposal.Setlabels(AIndex : Integer; const AValue : TProposalTypelabelsArray);
  4885. begin
  4886. If (Flabels=AValue) then exit;
  4887. Flabels:=AValue;
  4888. MarkPropertyChanged(AIndex);
  4889. end;
  4890. Procedure TProposal.SetlastUpdaterOrCommentorRole(AIndex : Integer; const AValue : String);
  4891. begin
  4892. If (FlastUpdaterOrCommentorRole=AValue) then exit;
  4893. FlastUpdaterOrCommentorRole:=AValue;
  4894. MarkPropertyChanged(AIndex);
  4895. end;
  4896. Procedure TProposal.Setname(AIndex : Integer; const AValue : String);
  4897. begin
  4898. If (Fname=AValue) then exit;
  4899. Fname:=AValue;
  4900. MarkPropertyChanged(AIndex);
  4901. end;
  4902. Procedure TProposal.SetnegotiationId(AIndex : Integer; const AValue : String);
  4903. begin
  4904. If (FnegotiationId=AValue) then exit;
  4905. FnegotiationId:=AValue;
  4906. MarkPropertyChanged(AIndex);
  4907. end;
  4908. Procedure TProposal.SetoriginatorRole(AIndex : Integer; const AValue : String);
  4909. begin
  4910. If (ForiginatorRole=AValue) then exit;
  4911. ForiginatorRole:=AValue;
  4912. MarkPropertyChanged(AIndex);
  4913. end;
  4914. Procedure TProposal.SetprivateAuctionId(AIndex : Integer; const AValue : String);
  4915. begin
  4916. If (FprivateAuctionId=AValue) then exit;
  4917. FprivateAuctionId:=AValue;
  4918. MarkPropertyChanged(AIndex);
  4919. end;
  4920. Procedure TProposal.SetproposalId(AIndex : Integer; const AValue : String);
  4921. begin
  4922. If (FproposalId=AValue) then exit;
  4923. FproposalId:=AValue;
  4924. MarkPropertyChanged(AIndex);
  4925. end;
  4926. Procedure TProposal.SetproposalState(AIndex : Integer; const AValue : String);
  4927. begin
  4928. If (FproposalState=AValue) then exit;
  4929. FproposalState:=AValue;
  4930. MarkPropertyChanged(AIndex);
  4931. end;
  4932. Procedure TProposal.SetrevisionNumber(AIndex : Integer; const AValue : String);
  4933. begin
  4934. If (FrevisionNumber=AValue) then exit;
  4935. FrevisionNumber:=AValue;
  4936. MarkPropertyChanged(AIndex);
  4937. end;
  4938. Procedure TProposal.SetrevisionTimeMs(AIndex : Integer; const AValue : String);
  4939. begin
  4940. If (FrevisionTimeMs=AValue) then exit;
  4941. FrevisionTimeMs:=AValue;
  4942. MarkPropertyChanged(AIndex);
  4943. end;
  4944. Procedure TProposal.Setseller(AIndex : Integer; const AValue : TSeller);
  4945. begin
  4946. If (Fseller=AValue) then exit;
  4947. Fseller:=AValue;
  4948. MarkPropertyChanged(AIndex);
  4949. end;
  4950. Procedure TProposal.SetsellerContacts(AIndex : Integer; const AValue : TProposalTypesellerContactsArray);
  4951. begin
  4952. If (FsellerContacts=AValue) then exit;
  4953. FsellerContacts:=AValue;
  4954. MarkPropertyChanged(AIndex);
  4955. end;
  4956. //2.6.4. bug workaround
  4957. {$IFDEF VER2_6}
  4958. Procedure TProposal.SetArrayLength(Const AName : String; ALength : Longint);
  4959. begin
  4960. Case AName of
  4961. 'buyercontacts' : SetLength(FbuyerContacts,ALength);
  4962. 'labels' : SetLength(Flabels,ALength);
  4963. 'sellercontacts' : SetLength(FsellerContacts,ALength);
  4964. else
  4965. Inherited SetArrayLength(AName,ALength);
  4966. end;
  4967. end;
  4968. {$ENDIF VER2_6}
  4969. { --------------------------------------------------------------------
  4970. TPublisherProfileApiProto
  4971. --------------------------------------------------------------------}
  4972. Procedure TPublisherProfileApiProto.SetaccountId(AIndex : Integer; const AValue : String);
  4973. begin
  4974. If (FaccountId=AValue) then exit;
  4975. FaccountId:=AValue;
  4976. MarkPropertyChanged(AIndex);
  4977. end;
  4978. Procedure TPublisherProfileApiProto.Setaudience(AIndex : Integer; const AValue : String);
  4979. begin
  4980. If (Faudience=AValue) then exit;
  4981. Faudience:=AValue;
  4982. MarkPropertyChanged(AIndex);
  4983. end;
  4984. Procedure TPublisherProfileApiProto.SetbuyerPitchStatement(AIndex : Integer; const AValue : String);
  4985. begin
  4986. If (FbuyerPitchStatement=AValue) then exit;
  4987. FbuyerPitchStatement:=AValue;
  4988. MarkPropertyChanged(AIndex);
  4989. end;
  4990. Procedure TPublisherProfileApiProto.SetdirectContact(AIndex : Integer; const AValue : String);
  4991. begin
  4992. If (FdirectContact=AValue) then exit;
  4993. FdirectContact:=AValue;
  4994. MarkPropertyChanged(AIndex);
  4995. end;
  4996. Procedure TPublisherProfileApiProto.Setexchange(AIndex : Integer; const AValue : String);
  4997. begin
  4998. If (Fexchange=AValue) then exit;
  4999. Fexchange:=AValue;
  5000. MarkPropertyChanged(AIndex);
  5001. end;
  5002. Procedure TPublisherProfileApiProto.SetgooglePlusLink(AIndex : Integer; const AValue : String);
  5003. begin
  5004. If (FgooglePlusLink=AValue) then exit;
  5005. FgooglePlusLink:=AValue;
  5006. MarkPropertyChanged(AIndex);
  5007. end;
  5008. Procedure TPublisherProfileApiProto.SetisParent(AIndex : Integer; const AValue : boolean);
  5009. begin
  5010. If (FisParent=AValue) then exit;
  5011. FisParent:=AValue;
  5012. MarkPropertyChanged(AIndex);
  5013. end;
  5014. Procedure TPublisherProfileApiProto.SetisPublished(AIndex : Integer; const AValue : boolean);
  5015. begin
  5016. If (FisPublished=AValue) then exit;
  5017. FisPublished:=AValue;
  5018. MarkPropertyChanged(AIndex);
  5019. end;
  5020. Procedure TPublisherProfileApiProto.Setkind(AIndex : Integer; const AValue : String);
  5021. begin
  5022. If (Fkind=AValue) then exit;
  5023. Fkind:=AValue;
  5024. MarkPropertyChanged(AIndex);
  5025. end;
  5026. Procedure TPublisherProfileApiProto.SetlogoUrl(AIndex : Integer; const AValue : String);
  5027. begin
  5028. If (FlogoUrl=AValue) then exit;
  5029. FlogoUrl:=AValue;
  5030. MarkPropertyChanged(AIndex);
  5031. end;
  5032. Procedure TPublisherProfileApiProto.SetmediaKitLink(AIndex : Integer; const AValue : String);
  5033. begin
  5034. If (FmediaKitLink=AValue) then exit;
  5035. FmediaKitLink:=AValue;
  5036. MarkPropertyChanged(AIndex);
  5037. end;
  5038. Procedure TPublisherProfileApiProto.Setname(AIndex : Integer; const AValue : String);
  5039. begin
  5040. If (Fname=AValue) then exit;
  5041. Fname:=AValue;
  5042. MarkPropertyChanged(AIndex);
  5043. end;
  5044. Procedure TPublisherProfileApiProto.Setoverview(AIndex : Integer; const AValue : String);
  5045. begin
  5046. If (Foverview=AValue) then exit;
  5047. Foverview:=AValue;
  5048. MarkPropertyChanged(AIndex);
  5049. end;
  5050. Procedure TPublisherProfileApiProto.SetprofileId(AIndex : Integer; const AValue : integer);
  5051. begin
  5052. If (FprofileId=AValue) then exit;
  5053. FprofileId:=AValue;
  5054. MarkPropertyChanged(AIndex);
  5055. end;
  5056. Procedure TPublisherProfileApiProto.SetprogrammaticContact(AIndex : Integer; const AValue : String);
  5057. begin
  5058. If (FprogrammaticContact=AValue) then exit;
  5059. FprogrammaticContact:=AValue;
  5060. MarkPropertyChanged(AIndex);
  5061. end;
  5062. Procedure TPublisherProfileApiProto.SetpublisherDomains(AIndex : Integer; const AValue : TStringArray);
  5063. begin
  5064. If (FpublisherDomains=AValue) then exit;
  5065. FpublisherDomains:=AValue;
  5066. MarkPropertyChanged(AIndex);
  5067. end;
  5068. Procedure TPublisherProfileApiProto.SetpublisherProfileId(AIndex : Integer; const AValue : String);
  5069. begin
  5070. If (FpublisherProfileId=AValue) then exit;
  5071. FpublisherProfileId:=AValue;
  5072. MarkPropertyChanged(AIndex);
  5073. end;
  5074. Procedure TPublisherProfileApiProto.SetpublisherProvidedForecast(AIndex : Integer; const AValue : TPublisherProvidedForecast);
  5075. begin
  5076. If (FpublisherProvidedForecast=AValue) then exit;
  5077. FpublisherProvidedForecast:=AValue;
  5078. MarkPropertyChanged(AIndex);
  5079. end;
  5080. Procedure TPublisherProfileApiProto.SetrateCardInfoLink(AIndex : Integer; const AValue : String);
  5081. begin
  5082. If (FrateCardInfoLink=AValue) then exit;
  5083. FrateCardInfoLink:=AValue;
  5084. MarkPropertyChanged(AIndex);
  5085. end;
  5086. Procedure TPublisherProfileApiProto.SetsamplePageLink(AIndex : Integer; const AValue : String);
  5087. begin
  5088. If (FsamplePageLink=AValue) then exit;
  5089. FsamplePageLink:=AValue;
  5090. MarkPropertyChanged(AIndex);
  5091. end;
  5092. Procedure TPublisherProfileApiProto.Setseller(AIndex : Integer; const AValue : TSeller);
  5093. begin
  5094. If (Fseller=AValue) then exit;
  5095. Fseller:=AValue;
  5096. MarkPropertyChanged(AIndex);
  5097. end;
  5098. Procedure TPublisherProfileApiProto.Setstate(AIndex : Integer; const AValue : String);
  5099. begin
  5100. If (Fstate=AValue) then exit;
  5101. Fstate:=AValue;
  5102. MarkPropertyChanged(AIndex);
  5103. end;
  5104. Procedure TPublisherProfileApiProto.SettopHeadlines(AIndex : Integer; const AValue : TStringArray);
  5105. begin
  5106. If (FtopHeadlines=AValue) then exit;
  5107. FtopHeadlines:=AValue;
  5108. MarkPropertyChanged(AIndex);
  5109. end;
  5110. //2.6.4. bug workaround
  5111. {$IFDEF VER2_6}
  5112. Procedure TPublisherProfileApiProto.SetArrayLength(Const AName : String; ALength : Longint);
  5113. begin
  5114. Case AName of
  5115. 'publisherdomains' : SetLength(FpublisherDomains,ALength);
  5116. 'topheadlines' : SetLength(FtopHeadlines,ALength);
  5117. else
  5118. Inherited SetArrayLength(AName,ALength);
  5119. end;
  5120. end;
  5121. {$ENDIF VER2_6}
  5122. { --------------------------------------------------------------------
  5123. TPublisherProvidedForecast
  5124. --------------------------------------------------------------------}
  5125. Procedure TPublisherProvidedForecast.Setdimensions(AIndex : Integer; const AValue : TPublisherProvidedForecastTypedimensionsArray);
  5126. begin
  5127. If (Fdimensions=AValue) then exit;
  5128. Fdimensions:=AValue;
  5129. MarkPropertyChanged(AIndex);
  5130. end;
  5131. Procedure TPublisherProvidedForecast.SetweeklyImpressions(AIndex : Integer; const AValue : String);
  5132. begin
  5133. If (FweeklyImpressions=AValue) then exit;
  5134. FweeklyImpressions:=AValue;
  5135. MarkPropertyChanged(AIndex);
  5136. end;
  5137. Procedure TPublisherProvidedForecast.SetweeklyUniques(AIndex : Integer; const AValue : String);
  5138. begin
  5139. If (FweeklyUniques=AValue) then exit;
  5140. FweeklyUniques:=AValue;
  5141. MarkPropertyChanged(AIndex);
  5142. end;
  5143. //2.6.4. bug workaround
  5144. {$IFDEF VER2_6}
  5145. Procedure TPublisherProvidedForecast.SetArrayLength(Const AName : String; ALength : Longint);
  5146. begin
  5147. Case AName of
  5148. 'dimensions' : SetLength(Fdimensions,ALength);
  5149. else
  5150. Inherited SetArrayLength(AName,ALength);
  5151. end;
  5152. end;
  5153. {$ENDIF VER2_6}
  5154. { --------------------------------------------------------------------
  5155. TSeller
  5156. --------------------------------------------------------------------}
  5157. Procedure TSeller.SetaccountId(AIndex : Integer; const AValue : String);
  5158. begin
  5159. If (FaccountId=AValue) then exit;
  5160. FaccountId:=AValue;
  5161. MarkPropertyChanged(AIndex);
  5162. end;
  5163. Procedure TSeller.SetsubAccountId(AIndex : Integer; const AValue : String);
  5164. begin
  5165. If (FsubAccountId=AValue) then exit;
  5166. FsubAccountId:=AValue;
  5167. MarkPropertyChanged(AIndex);
  5168. end;
  5169. { --------------------------------------------------------------------
  5170. TSharedTargeting
  5171. --------------------------------------------------------------------}
  5172. Procedure TSharedTargeting.Setexclusions(AIndex : Integer; const AValue : TSharedTargetingTypeexclusionsArray);
  5173. begin
  5174. If (Fexclusions=AValue) then exit;
  5175. Fexclusions:=AValue;
  5176. MarkPropertyChanged(AIndex);
  5177. end;
  5178. Procedure TSharedTargeting.Setinclusions(AIndex : Integer; const AValue : TSharedTargetingTypeinclusionsArray);
  5179. begin
  5180. If (Finclusions=AValue) then exit;
  5181. Finclusions:=AValue;
  5182. MarkPropertyChanged(AIndex);
  5183. end;
  5184. Procedure TSharedTargeting.Setkey(AIndex : Integer; const AValue : String);
  5185. begin
  5186. If (Fkey=AValue) then exit;
  5187. Fkey:=AValue;
  5188. MarkPropertyChanged(AIndex);
  5189. end;
  5190. //2.6.4. bug workaround
  5191. {$IFDEF VER2_6}
  5192. Procedure TSharedTargeting.SetArrayLength(Const AName : String; ALength : Longint);
  5193. begin
  5194. Case AName of
  5195. 'exclusions' : SetLength(Fexclusions,ALength);
  5196. 'inclusions' : SetLength(Finclusions,ALength);
  5197. else
  5198. Inherited SetArrayLength(AName,ALength);
  5199. end;
  5200. end;
  5201. {$ENDIF VER2_6}
  5202. { --------------------------------------------------------------------
  5203. TTargetingValue
  5204. --------------------------------------------------------------------}
  5205. Procedure TTargetingValue.SetcreativeSizeValue(AIndex : Integer; const AValue : TTargetingValueCreativeSize);
  5206. begin
  5207. If (FcreativeSizeValue=AValue) then exit;
  5208. FcreativeSizeValue:=AValue;
  5209. MarkPropertyChanged(AIndex);
  5210. end;
  5211. Procedure TTargetingValue.SetdayPartTargetingValue(AIndex : Integer; const AValue : TTargetingValueDayPartTargeting);
  5212. begin
  5213. If (FdayPartTargetingValue=AValue) then exit;
  5214. FdayPartTargetingValue:=AValue;
  5215. MarkPropertyChanged(AIndex);
  5216. end;
  5217. Procedure TTargetingValue.SetlongValue(AIndex : Integer; const AValue : String);
  5218. begin
  5219. If (FlongValue=AValue) then exit;
  5220. FlongValue:=AValue;
  5221. MarkPropertyChanged(AIndex);
  5222. end;
  5223. Procedure TTargetingValue.SetstringValue(AIndex : Integer; const AValue : String);
  5224. begin
  5225. If (FstringValue=AValue) then exit;
  5226. FstringValue:=AValue;
  5227. MarkPropertyChanged(AIndex);
  5228. end;
  5229. { --------------------------------------------------------------------
  5230. TTargetingValueCreativeSize
  5231. --------------------------------------------------------------------}
  5232. Procedure TTargetingValueCreativeSize.SetcompanionSizes(AIndex : Integer; const AValue : TTargetingValueCreativeSizeTypecompanionSizesArray);
  5233. begin
  5234. If (FcompanionSizes=AValue) then exit;
  5235. FcompanionSizes:=AValue;
  5236. MarkPropertyChanged(AIndex);
  5237. end;
  5238. Procedure TTargetingValueCreativeSize.SetcreativeSizeType(AIndex : Integer; const AValue : String);
  5239. begin
  5240. If (FcreativeSizeType=AValue) then exit;
  5241. FcreativeSizeType:=AValue;
  5242. MarkPropertyChanged(AIndex);
  5243. end;
  5244. Procedure TTargetingValueCreativeSize.Setsize(AIndex : Integer; const AValue : TTargetingValueSize);
  5245. begin
  5246. If (Fsize=AValue) then exit;
  5247. Fsize:=AValue;
  5248. MarkPropertyChanged(AIndex);
  5249. end;
  5250. //2.6.4. bug workaround
  5251. {$IFDEF VER2_6}
  5252. Procedure TTargetingValueCreativeSize.SetArrayLength(Const AName : String; ALength : Longint);
  5253. begin
  5254. Case AName of
  5255. 'companionsizes' : SetLength(FcompanionSizes,ALength);
  5256. else
  5257. Inherited SetArrayLength(AName,ALength);
  5258. end;
  5259. end;
  5260. {$ENDIF VER2_6}
  5261. { --------------------------------------------------------------------
  5262. TTargetingValueDayPartTargeting
  5263. --------------------------------------------------------------------}
  5264. Procedure TTargetingValueDayPartTargeting.SetdayParts(AIndex : Integer; const AValue : TTargetingValueDayPartTargetingTypedayPartsArray);
  5265. begin
  5266. If (FdayParts=AValue) then exit;
  5267. FdayParts:=AValue;
  5268. MarkPropertyChanged(AIndex);
  5269. end;
  5270. Procedure TTargetingValueDayPartTargeting.SettimeZoneType(AIndex : Integer; const AValue : String);
  5271. begin
  5272. If (FtimeZoneType=AValue) then exit;
  5273. FtimeZoneType:=AValue;
  5274. MarkPropertyChanged(AIndex);
  5275. end;
  5276. //2.6.4. bug workaround
  5277. {$IFDEF VER2_6}
  5278. Procedure TTargetingValueDayPartTargeting.SetArrayLength(Const AName : String; ALength : Longint);
  5279. begin
  5280. Case AName of
  5281. 'dayparts' : SetLength(FdayParts,ALength);
  5282. else
  5283. Inherited SetArrayLength(AName,ALength);
  5284. end;
  5285. end;
  5286. {$ENDIF VER2_6}
  5287. { --------------------------------------------------------------------
  5288. TTargetingValueDayPartTargetingDayPart
  5289. --------------------------------------------------------------------}
  5290. Procedure TTargetingValueDayPartTargetingDayPart.SetdayOfWeek(AIndex : Integer; const AValue : String);
  5291. begin
  5292. If (FdayOfWeek=AValue) then exit;
  5293. FdayOfWeek:=AValue;
  5294. MarkPropertyChanged(AIndex);
  5295. end;
  5296. Procedure TTargetingValueDayPartTargetingDayPart.SetendHour(AIndex : Integer; const AValue : integer);
  5297. begin
  5298. If (FendHour=AValue) then exit;
  5299. FendHour:=AValue;
  5300. MarkPropertyChanged(AIndex);
  5301. end;
  5302. Procedure TTargetingValueDayPartTargetingDayPart.SetendMinute(AIndex : Integer; const AValue : integer);
  5303. begin
  5304. If (FendMinute=AValue) then exit;
  5305. FendMinute:=AValue;
  5306. MarkPropertyChanged(AIndex);
  5307. end;
  5308. Procedure TTargetingValueDayPartTargetingDayPart.SetstartHour(AIndex : Integer; const AValue : integer);
  5309. begin
  5310. If (FstartHour=AValue) then exit;
  5311. FstartHour:=AValue;
  5312. MarkPropertyChanged(AIndex);
  5313. end;
  5314. Procedure TTargetingValueDayPartTargetingDayPart.SetstartMinute(AIndex : Integer; const AValue : integer);
  5315. begin
  5316. If (FstartMinute=AValue) then exit;
  5317. FstartMinute:=AValue;
  5318. MarkPropertyChanged(AIndex);
  5319. end;
  5320. { --------------------------------------------------------------------
  5321. TTargetingValueSize
  5322. --------------------------------------------------------------------}
  5323. Procedure TTargetingValueSize.Setheight(AIndex : Integer; const AValue : integer);
  5324. begin
  5325. If (Fheight=AValue) then exit;
  5326. Fheight:=AValue;
  5327. MarkPropertyChanged(AIndex);
  5328. end;
  5329. Procedure TTargetingValueSize.Setwidth(AIndex : Integer; const AValue : integer);
  5330. begin
  5331. If (Fwidth=AValue) then exit;
  5332. Fwidth:=AValue;
  5333. MarkPropertyChanged(AIndex);
  5334. end;
  5335. { --------------------------------------------------------------------
  5336. TUpdatePrivateAuctionProposalRequest
  5337. --------------------------------------------------------------------}
  5338. Procedure TUpdatePrivateAuctionProposalRequest.SetexternalDealId(AIndex : Integer; const AValue : String);
  5339. begin
  5340. If (FexternalDealId=AValue) then exit;
  5341. FexternalDealId:=AValue;
  5342. MarkPropertyChanged(AIndex);
  5343. end;
  5344. Procedure TUpdatePrivateAuctionProposalRequest.Setnote(AIndex : Integer; const AValue : TMarketplaceNote);
  5345. begin
  5346. If (Fnote=AValue) then exit;
  5347. Fnote:=AValue;
  5348. MarkPropertyChanged(AIndex);
  5349. end;
  5350. Procedure TUpdatePrivateAuctionProposalRequest.SetproposalRevisionNumber(AIndex : Integer; const AValue : String);
  5351. begin
  5352. If (FproposalRevisionNumber=AValue) then exit;
  5353. FproposalRevisionNumber:=AValue;
  5354. MarkPropertyChanged(AIndex);
  5355. end;
  5356. Procedure TUpdatePrivateAuctionProposalRequest.SetupdateAction(AIndex : Integer; const AValue : String);
  5357. begin
  5358. If (FupdateAction=AValue) then exit;
  5359. FupdateAction:=AValue;
  5360. MarkPropertyChanged(AIndex);
  5361. end;
  5362. { --------------------------------------------------------------------
  5363. TAccountsResource
  5364. --------------------------------------------------------------------}
  5365. Class Function TAccountsResource.ResourceName : String;
  5366. begin
  5367. Result:='accounts';
  5368. end;
  5369. Class Function TAccountsResource.DefaultAPI : TGoogleAPIClass;
  5370. begin
  5371. Result:=TadexchangebuyerAPI;
  5372. end;
  5373. Function TAccountsResource.Get(id: integer) : TAccount;
  5374. Const
  5375. _HTTPMethod = 'GET';
  5376. _Path = 'accounts/{id}';
  5377. _Methodid = 'adexchangebuyer.accounts.get';
  5378. Var
  5379. _P : String;
  5380. begin
  5381. _P:=SubstitutePath(_Path,['id',id]);
  5382. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccount) as TAccount;
  5383. end;
  5384. Function TAccountsResource.List : TAccountsList;
  5385. Const
  5386. _HTTPMethod = 'GET';
  5387. _Path = 'accounts';
  5388. _Methodid = 'adexchangebuyer.accounts.list';
  5389. begin
  5390. Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TAccountsList) as TAccountsList;
  5391. end;
  5392. Function TAccountsResource.Patch(id: integer; aAccount : TAccount) : TAccount;
  5393. Const
  5394. _HTTPMethod = 'PATCH';
  5395. _Path = 'accounts/{id}';
  5396. _Methodid = 'adexchangebuyer.accounts.patch';
  5397. Var
  5398. _P : String;
  5399. begin
  5400. _P:=SubstitutePath(_Path,['id',id]);
  5401. Result:=ServiceCall(_HTTPMethod,_P,'',aAccount,TAccount) as TAccount;
  5402. end;
  5403. Function TAccountsResource.Update(id: integer; aAccount : TAccount) : TAccount;
  5404. Const
  5405. _HTTPMethod = 'PUT';
  5406. _Path = 'accounts/{id}';
  5407. _Methodid = 'adexchangebuyer.accounts.update';
  5408. Var
  5409. _P : String;
  5410. begin
  5411. _P:=SubstitutePath(_Path,['id',id]);
  5412. Result:=ServiceCall(_HTTPMethod,_P,'',aAccount,TAccount) as TAccount;
  5413. end;
  5414. { --------------------------------------------------------------------
  5415. TBillingInfoResource
  5416. --------------------------------------------------------------------}
  5417. Class Function TBillingInfoResource.ResourceName : String;
  5418. begin
  5419. Result:='billingInfo';
  5420. end;
  5421. Class Function TBillingInfoResource.DefaultAPI : TGoogleAPIClass;
  5422. begin
  5423. Result:=TadexchangebuyerAPI;
  5424. end;
  5425. Function TBillingInfoResource.Get(accountId: integer) : TBillingInfo;
  5426. Const
  5427. _HTTPMethod = 'GET';
  5428. _Path = 'billinginfo/{accountId}';
  5429. _Methodid = 'adexchangebuyer.billingInfo.get';
  5430. Var
  5431. _P : String;
  5432. begin
  5433. _P:=SubstitutePath(_Path,['accountId',accountId]);
  5434. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TBillingInfo) as TBillingInfo;
  5435. end;
  5436. Function TBillingInfoResource.List : TBillingInfoList;
  5437. Const
  5438. _HTTPMethod = 'GET';
  5439. _Path = 'billinginfo';
  5440. _Methodid = 'adexchangebuyer.billingInfo.list';
  5441. begin
  5442. Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TBillingInfoList) as TBillingInfoList;
  5443. end;
  5444. { --------------------------------------------------------------------
  5445. TBudgetResource
  5446. --------------------------------------------------------------------}
  5447. Class Function TBudgetResource.ResourceName : String;
  5448. begin
  5449. Result:='budget';
  5450. end;
  5451. Class Function TBudgetResource.DefaultAPI : TGoogleAPIClass;
  5452. begin
  5453. Result:=TadexchangebuyerAPI;
  5454. end;
  5455. Function TBudgetResource.Get(accountId: string; billingId: string) : TBudget;
  5456. Const
  5457. _HTTPMethod = 'GET';
  5458. _Path = 'billinginfo/{accountId}/{billingId}';
  5459. _Methodid = 'adexchangebuyer.budget.get';
  5460. Var
  5461. _P : String;
  5462. begin
  5463. _P:=SubstitutePath(_Path,['accountId',accountId,'billingId',billingId]);
  5464. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TBudget) as TBudget;
  5465. end;
  5466. Function TBudgetResource.Patch(accountId: string; billingId: string; aBudget : TBudget) : TBudget;
  5467. Const
  5468. _HTTPMethod = 'PATCH';
  5469. _Path = 'billinginfo/{accountId}/{billingId}';
  5470. _Methodid = 'adexchangebuyer.budget.patch';
  5471. Var
  5472. _P : String;
  5473. begin
  5474. _P:=SubstitutePath(_Path,['accountId',accountId,'billingId',billingId]);
  5475. Result:=ServiceCall(_HTTPMethod,_P,'',aBudget,TBudget) as TBudget;
  5476. end;
  5477. Function TBudgetResource.Update(accountId: string; billingId: string; aBudget : TBudget) : TBudget;
  5478. Const
  5479. _HTTPMethod = 'PUT';
  5480. _Path = 'billinginfo/{accountId}/{billingId}';
  5481. _Methodid = 'adexchangebuyer.budget.update';
  5482. Var
  5483. _P : String;
  5484. begin
  5485. _P:=SubstitutePath(_Path,['accountId',accountId,'billingId',billingId]);
  5486. Result:=ServiceCall(_HTTPMethod,_P,'',aBudget,TBudget) as TBudget;
  5487. end;
  5488. { --------------------------------------------------------------------
  5489. TCreativesResource
  5490. --------------------------------------------------------------------}
  5491. Class Function TCreativesResource.ResourceName : String;
  5492. begin
  5493. Result:='creatives';
  5494. end;
  5495. Class Function TCreativesResource.DefaultAPI : TGoogleAPIClass;
  5496. begin
  5497. Result:=TadexchangebuyerAPI;
  5498. end;
  5499. Procedure TCreativesResource.AddDeal(accountId: integer; buyerCreativeId: string; dealId: string);
  5500. Const
  5501. _HTTPMethod = 'POST';
  5502. _Path = 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}';
  5503. _Methodid = 'adexchangebuyer.creatives.addDeal';
  5504. Var
  5505. _P : String;
  5506. begin
  5507. _P:=SubstitutePath(_Path,['accountId',accountId,'buyerCreativeId',buyerCreativeId,'dealId',dealId]);
  5508. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  5509. end;
  5510. Function TCreativesResource.Get(accountId: integer; buyerCreativeId: string) : TCreative;
  5511. Const
  5512. _HTTPMethod = 'GET';
  5513. _Path = 'creatives/{accountId}/{buyerCreativeId}';
  5514. _Methodid = 'adexchangebuyer.creatives.get';
  5515. Var
  5516. _P : String;
  5517. begin
  5518. _P:=SubstitutePath(_Path,['accountId',accountId,'buyerCreativeId',buyerCreativeId]);
  5519. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCreative) as TCreative;
  5520. end;
  5521. Function TCreativesResource.Insert(aCreative : TCreative) : TCreative;
  5522. Const
  5523. _HTTPMethod = 'POST';
  5524. _Path = 'creatives';
  5525. _Methodid = 'adexchangebuyer.creatives.insert';
  5526. begin
  5527. Result:=ServiceCall(_HTTPMethod,_Path,'',aCreative,TCreative) as TCreative;
  5528. end;
  5529. Function TCreativesResource.List(AQuery : string = '') : TCreativesList;
  5530. Const
  5531. _HTTPMethod = 'GET';
  5532. _Path = 'creatives';
  5533. _Methodid = 'adexchangebuyer.creatives.list';
  5534. begin
  5535. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TCreativesList) as TCreativesList;
  5536. end;
  5537. Function TCreativesResource.List(AQuery : TCreativeslistOptions) : TCreativesList;
  5538. Var
  5539. _Q : String;
  5540. begin
  5541. _Q:='';
  5542. AddToQuery(_Q,'accountId',AQuery.accountId);
  5543. AddToQuery(_Q,'buyerCreativeId',AQuery.buyerCreativeId);
  5544. AddToQuery(_Q,'dealsStatusFilter',AQuery.dealsStatusFilter);
  5545. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  5546. AddToQuery(_Q,'openAuctionStatusFilter',AQuery.openAuctionStatusFilter);
  5547. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  5548. Result:=List(_Q);
  5549. end;
  5550. Procedure TCreativesResource.RemoveDeal(accountId: integer; buyerCreativeId: string; dealId: string);
  5551. Const
  5552. _HTTPMethod = 'POST';
  5553. _Path = 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}';
  5554. _Methodid = 'adexchangebuyer.creatives.removeDeal';
  5555. Var
  5556. _P : String;
  5557. begin
  5558. _P:=SubstitutePath(_Path,['accountId',accountId,'buyerCreativeId',buyerCreativeId,'dealId',dealId]);
  5559. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  5560. end;
  5561. { --------------------------------------------------------------------
  5562. TMarketplacedealsResource
  5563. --------------------------------------------------------------------}
  5564. Class Function TMarketplacedealsResource.ResourceName : String;
  5565. begin
  5566. Result:='marketplacedeals';
  5567. end;
  5568. Class Function TMarketplacedealsResource.DefaultAPI : TGoogleAPIClass;
  5569. begin
  5570. Result:=TadexchangebuyerAPI;
  5571. end;
  5572. Function TMarketplacedealsResource.Delete(proposalId: string; aDeleteOrderDealsRequest : TDeleteOrderDealsRequest) : TDeleteOrderDealsResponse;
  5573. Const
  5574. _HTTPMethod = 'POST';
  5575. _Path = 'proposals/{proposalId}/deals/delete';
  5576. _Methodid = 'adexchangebuyer.marketplacedeals.delete';
  5577. Var
  5578. _P : String;
  5579. begin
  5580. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5581. Result:=ServiceCall(_HTTPMethod,_P,'',aDeleteOrderDealsRequest,TDeleteOrderDealsResponse) as TDeleteOrderDealsResponse;
  5582. end;
  5583. Function TMarketplacedealsResource.Insert(proposalId: string; aAddOrderDealsRequest : TAddOrderDealsRequest) : TAddOrderDealsResponse;
  5584. Const
  5585. _HTTPMethod = 'POST';
  5586. _Path = 'proposals/{proposalId}/deals/insert';
  5587. _Methodid = 'adexchangebuyer.marketplacedeals.insert';
  5588. Var
  5589. _P : String;
  5590. begin
  5591. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5592. Result:=ServiceCall(_HTTPMethod,_P,'',aAddOrderDealsRequest,TAddOrderDealsResponse) as TAddOrderDealsResponse;
  5593. end;
  5594. Function TMarketplacedealsResource.List(proposalId: string; AQuery : string = '') : TGetOrderDealsResponse;
  5595. Const
  5596. _HTTPMethod = 'GET';
  5597. _Path = 'proposals/{proposalId}/deals';
  5598. _Methodid = 'adexchangebuyer.marketplacedeals.list';
  5599. Var
  5600. _P : String;
  5601. begin
  5602. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5603. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TGetOrderDealsResponse) as TGetOrderDealsResponse;
  5604. end;
  5605. Function TMarketplacedealsResource.List(proposalId: string; AQuery : TMarketplacedealslistOptions) : TGetOrderDealsResponse;
  5606. Var
  5607. _Q : String;
  5608. begin
  5609. _Q:='';
  5610. AddToQuery(_Q,'pqlQuery',AQuery.pqlQuery);
  5611. Result:=List(proposalId,_Q);
  5612. end;
  5613. Function TMarketplacedealsResource.Update(proposalId: string; aEditAllOrderDealsRequest : TEditAllOrderDealsRequest) : TEditAllOrderDealsResponse;
  5614. Const
  5615. _HTTPMethod = 'POST';
  5616. _Path = 'proposals/{proposalId}/deals/update';
  5617. _Methodid = 'adexchangebuyer.marketplacedeals.update';
  5618. Var
  5619. _P : String;
  5620. begin
  5621. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5622. Result:=ServiceCall(_HTTPMethod,_P,'',aEditAllOrderDealsRequest,TEditAllOrderDealsResponse) as TEditAllOrderDealsResponse;
  5623. end;
  5624. { --------------------------------------------------------------------
  5625. TMarketplacenotesResource
  5626. --------------------------------------------------------------------}
  5627. Class Function TMarketplacenotesResource.ResourceName : String;
  5628. begin
  5629. Result:='marketplacenotes';
  5630. end;
  5631. Class Function TMarketplacenotesResource.DefaultAPI : TGoogleAPIClass;
  5632. begin
  5633. Result:=TadexchangebuyerAPI;
  5634. end;
  5635. Function TMarketplacenotesResource.Insert(proposalId: string; aAddOrderNotesRequest : TAddOrderNotesRequest) : TAddOrderNotesResponse;
  5636. Const
  5637. _HTTPMethod = 'POST';
  5638. _Path = 'proposals/{proposalId}/notes/insert';
  5639. _Methodid = 'adexchangebuyer.marketplacenotes.insert';
  5640. Var
  5641. _P : String;
  5642. begin
  5643. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5644. Result:=ServiceCall(_HTTPMethod,_P,'',aAddOrderNotesRequest,TAddOrderNotesResponse) as TAddOrderNotesResponse;
  5645. end;
  5646. Function TMarketplacenotesResource.List(proposalId: string) : TGetOrderNotesResponse;
  5647. Const
  5648. _HTTPMethod = 'GET';
  5649. _Path = 'proposals/{proposalId}/notes';
  5650. _Methodid = 'adexchangebuyer.marketplacenotes.list';
  5651. Var
  5652. _P : String;
  5653. begin
  5654. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5655. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TGetOrderNotesResponse) as TGetOrderNotesResponse;
  5656. end;
  5657. { --------------------------------------------------------------------
  5658. TMarketplaceprivateauctionResource
  5659. --------------------------------------------------------------------}
  5660. Class Function TMarketplaceprivateauctionResource.ResourceName : String;
  5661. begin
  5662. Result:='marketplaceprivateauction';
  5663. end;
  5664. Class Function TMarketplaceprivateauctionResource.DefaultAPI : TGoogleAPIClass;
  5665. begin
  5666. Result:=TadexchangebuyerAPI;
  5667. end;
  5668. Procedure TMarketplaceprivateauctionResource.Updateproposal(privateAuctionId: string; aUpdatePrivateAuctionProposalRequest : TUpdatePrivateAuctionProposalRequest);
  5669. Const
  5670. _HTTPMethod = 'POST';
  5671. _Path = 'privateauction/{privateAuctionId}/updateproposal';
  5672. _Methodid = 'adexchangebuyer.marketplaceprivateauction.updateproposal';
  5673. Var
  5674. _P : String;
  5675. begin
  5676. _P:=SubstitutePath(_Path,['privateAuctionId',privateAuctionId]);
  5677. ServiceCall(_HTTPMethod,_P,'',aUpdatePrivateAuctionProposalRequest,Nil);
  5678. end;
  5679. { --------------------------------------------------------------------
  5680. TPerformanceReportResource
  5681. --------------------------------------------------------------------}
  5682. Class Function TPerformanceReportResource.ResourceName : String;
  5683. begin
  5684. Result:='performanceReport';
  5685. end;
  5686. Class Function TPerformanceReportResource.DefaultAPI : TGoogleAPIClass;
  5687. begin
  5688. Result:=TadexchangebuyerAPI;
  5689. end;
  5690. Function TPerformanceReportResource.List(AQuery : string = '') : TPerformanceReportList;
  5691. Const
  5692. _HTTPMethod = 'GET';
  5693. _Path = 'performancereport';
  5694. _Methodid = 'adexchangebuyer.performanceReport.list';
  5695. begin
  5696. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TPerformanceReportList) as TPerformanceReportList;
  5697. end;
  5698. Function TPerformanceReportResource.List(AQuery : TPerformanceReportlistOptions) : TPerformanceReportList;
  5699. Var
  5700. _Q : String;
  5701. begin
  5702. _Q:='';
  5703. AddToQuery(_Q,'accountId',AQuery.accountId);
  5704. AddToQuery(_Q,'endDateTime',AQuery.endDateTime);
  5705. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  5706. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  5707. AddToQuery(_Q,'startDateTime',AQuery.startDateTime);
  5708. Result:=List(_Q);
  5709. end;
  5710. { --------------------------------------------------------------------
  5711. TPretargetingConfigResource
  5712. --------------------------------------------------------------------}
  5713. Class Function TPretargetingConfigResource.ResourceName : String;
  5714. begin
  5715. Result:='pretargetingConfig';
  5716. end;
  5717. Class Function TPretargetingConfigResource.DefaultAPI : TGoogleAPIClass;
  5718. begin
  5719. Result:=TadexchangebuyerAPI;
  5720. end;
  5721. Procedure TPretargetingConfigResource.Delete(accountId: string; configId: string);
  5722. Const
  5723. _HTTPMethod = 'DELETE';
  5724. _Path = 'pretargetingconfigs/{accountId}/{configId}';
  5725. _Methodid = 'adexchangebuyer.pretargetingConfig.delete';
  5726. Var
  5727. _P : String;
  5728. begin
  5729. _P:=SubstitutePath(_Path,['accountId',accountId,'configId',configId]);
  5730. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  5731. end;
  5732. Function TPretargetingConfigResource.Get(accountId: string; configId: string) : TPretargetingConfig;
  5733. Const
  5734. _HTTPMethod = 'GET';
  5735. _Path = 'pretargetingconfigs/{accountId}/{configId}';
  5736. _Methodid = 'adexchangebuyer.pretargetingConfig.get';
  5737. Var
  5738. _P : String;
  5739. begin
  5740. _P:=SubstitutePath(_Path,['accountId',accountId,'configId',configId]);
  5741. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPretargetingConfig) as TPretargetingConfig;
  5742. end;
  5743. Function TPretargetingConfigResource.Insert(accountId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  5744. Const
  5745. _HTTPMethod = 'POST';
  5746. _Path = 'pretargetingconfigs/{accountId}';
  5747. _Methodid = 'adexchangebuyer.pretargetingConfig.insert';
  5748. Var
  5749. _P : String;
  5750. begin
  5751. _P:=SubstitutePath(_Path,['accountId',accountId]);
  5752. Result:=ServiceCall(_HTTPMethod,_P,'',aPretargetingConfig,TPretargetingConfig) as TPretargetingConfig;
  5753. end;
  5754. Function TPretargetingConfigResource.List(accountId: string) : TPretargetingConfigList;
  5755. Const
  5756. _HTTPMethod = 'GET';
  5757. _Path = 'pretargetingconfigs/{accountId}';
  5758. _Methodid = 'adexchangebuyer.pretargetingConfig.list';
  5759. Var
  5760. _P : String;
  5761. begin
  5762. _P:=SubstitutePath(_Path,['accountId',accountId]);
  5763. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPretargetingConfigList) as TPretargetingConfigList;
  5764. end;
  5765. Function TPretargetingConfigResource.Patch(accountId: string; configId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  5766. Const
  5767. _HTTPMethod = 'PATCH';
  5768. _Path = 'pretargetingconfigs/{accountId}/{configId}';
  5769. _Methodid = 'adexchangebuyer.pretargetingConfig.patch';
  5770. Var
  5771. _P : String;
  5772. begin
  5773. _P:=SubstitutePath(_Path,['accountId',accountId,'configId',configId]);
  5774. Result:=ServiceCall(_HTTPMethod,_P,'',aPretargetingConfig,TPretargetingConfig) as TPretargetingConfig;
  5775. end;
  5776. Function TPretargetingConfigResource.Update(accountId: string; configId: string; aPretargetingConfig : TPretargetingConfig) : TPretargetingConfig;
  5777. Const
  5778. _HTTPMethod = 'PUT';
  5779. _Path = 'pretargetingconfigs/{accountId}/{configId}';
  5780. _Methodid = 'adexchangebuyer.pretargetingConfig.update';
  5781. Var
  5782. _P : String;
  5783. begin
  5784. _P:=SubstitutePath(_Path,['accountId',accountId,'configId',configId]);
  5785. Result:=ServiceCall(_HTTPMethod,_P,'',aPretargetingConfig,TPretargetingConfig) as TPretargetingConfig;
  5786. end;
  5787. { --------------------------------------------------------------------
  5788. TProductsResource
  5789. --------------------------------------------------------------------}
  5790. Class Function TProductsResource.ResourceName : String;
  5791. begin
  5792. Result:='products';
  5793. end;
  5794. Class Function TProductsResource.DefaultAPI : TGoogleAPIClass;
  5795. begin
  5796. Result:=TadexchangebuyerAPI;
  5797. end;
  5798. Function TProductsResource.Get(productId: string) : TProduct;
  5799. Const
  5800. _HTTPMethod = 'GET';
  5801. _Path = 'products/{productId}';
  5802. _Methodid = 'adexchangebuyer.products.get';
  5803. Var
  5804. _P : String;
  5805. begin
  5806. _P:=SubstitutePath(_Path,['productId',productId]);
  5807. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProduct) as TProduct;
  5808. end;
  5809. Function TProductsResource.Search(AQuery : string = '') : TGetOffersResponse;
  5810. Const
  5811. _HTTPMethod = 'GET';
  5812. _Path = 'products/search';
  5813. _Methodid = 'adexchangebuyer.products.search';
  5814. begin
  5815. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TGetOffersResponse) as TGetOffersResponse;
  5816. end;
  5817. Function TProductsResource.Search(AQuery : TProductssearchOptions) : TGetOffersResponse;
  5818. Var
  5819. _Q : String;
  5820. begin
  5821. _Q:='';
  5822. AddToQuery(_Q,'pqlQuery',AQuery.pqlQuery);
  5823. Result:=Search(_Q);
  5824. end;
  5825. { --------------------------------------------------------------------
  5826. TProposalsResource
  5827. --------------------------------------------------------------------}
  5828. Class Function TProposalsResource.ResourceName : String;
  5829. begin
  5830. Result:='proposals';
  5831. end;
  5832. Class Function TProposalsResource.DefaultAPI : TGoogleAPIClass;
  5833. begin
  5834. Result:=TadexchangebuyerAPI;
  5835. end;
  5836. Function TProposalsResource.Get(proposalId: string) : TProposal;
  5837. Const
  5838. _HTTPMethod = 'GET';
  5839. _Path = 'proposals/{proposalId}';
  5840. _Methodid = 'adexchangebuyer.proposals.get';
  5841. Var
  5842. _P : String;
  5843. begin
  5844. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5845. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProposal) as TProposal;
  5846. end;
  5847. Function TProposalsResource.Insert(aCreateOrdersRequest : TCreateOrdersRequest) : TCreateOrdersResponse;
  5848. Const
  5849. _HTTPMethod = 'POST';
  5850. _Path = 'proposals/insert';
  5851. _Methodid = 'adexchangebuyer.proposals.insert';
  5852. begin
  5853. Result:=ServiceCall(_HTTPMethod,_Path,'',aCreateOrdersRequest,TCreateOrdersResponse) as TCreateOrdersResponse;
  5854. end;
  5855. Function TProposalsResource.Patch(proposalId: string; revisionNumber: string; _updateAction: string; aProposal : TProposal) : TProposal;
  5856. Const
  5857. _HTTPMethod = 'PATCH';
  5858. _Path = 'proposals/{proposalId}/{revisionNumber}/{updateAction}';
  5859. _Methodid = 'adexchangebuyer.proposals.patch';
  5860. Var
  5861. _P : String;
  5862. begin
  5863. _P:=SubstitutePath(_Path,['proposalId',proposalId,'revisionNumber',revisionNumber,'updateAction',_updateAction]);
  5864. Result:=ServiceCall(_HTTPMethod,_P,'',aProposal,TProposal) as TProposal;
  5865. end;
  5866. Function TProposalsResource.Search(AQuery : string = '') : TGetOrdersResponse;
  5867. Const
  5868. _HTTPMethod = 'GET';
  5869. _Path = 'proposals/search';
  5870. _Methodid = 'adexchangebuyer.proposals.search';
  5871. begin
  5872. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TGetOrdersResponse) as TGetOrdersResponse;
  5873. end;
  5874. Function TProposalsResource.Search(AQuery : TProposalssearchOptions) : TGetOrdersResponse;
  5875. Var
  5876. _Q : String;
  5877. begin
  5878. _Q:='';
  5879. AddToQuery(_Q,'pqlQuery',AQuery.pqlQuery);
  5880. Result:=Search(_Q);
  5881. end;
  5882. Procedure TProposalsResource.Setupcomplete(proposalId: string);
  5883. Const
  5884. _HTTPMethod = 'POST';
  5885. _Path = 'proposals/{proposalId}/setupcomplete';
  5886. _Methodid = 'adexchangebuyer.proposals.setupcomplete';
  5887. Var
  5888. _P : String;
  5889. begin
  5890. _P:=SubstitutePath(_Path,['proposalId',proposalId]);
  5891. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  5892. end;
  5893. Function TProposalsResource.Update(proposalId: string; revisionNumber: string; _updateAction: string; aProposal : TProposal) : TProposal;
  5894. Const
  5895. _HTTPMethod = 'PUT';
  5896. _Path = 'proposals/{proposalId}/{revisionNumber}/{updateAction}';
  5897. _Methodid = 'adexchangebuyer.proposals.update';
  5898. Var
  5899. _P : String;
  5900. begin
  5901. _P:=SubstitutePath(_Path,['proposalId',proposalId,'revisionNumber',revisionNumber,'updateAction',_updateAction]);
  5902. Result:=ServiceCall(_HTTPMethod,_P,'',aProposal,TProposal) as TProposal;
  5903. end;
  5904. { --------------------------------------------------------------------
  5905. TPubprofilesResource
  5906. --------------------------------------------------------------------}
  5907. Class Function TPubprofilesResource.ResourceName : String;
  5908. begin
  5909. Result:='pubprofiles';
  5910. end;
  5911. Class Function TPubprofilesResource.DefaultAPI : TGoogleAPIClass;
  5912. begin
  5913. Result:=TadexchangebuyerAPI;
  5914. end;
  5915. Function TPubprofilesResource.List(accountId: integer) : TGetPublisherProfilesByAccountIdResponse;
  5916. Const
  5917. _HTTPMethod = 'GET';
  5918. _Path = 'publisher/{accountId}/profiles';
  5919. _Methodid = 'adexchangebuyer.pubprofiles.list';
  5920. Var
  5921. _P : String;
  5922. begin
  5923. _P:=SubstitutePath(_Path,['accountId',accountId]);
  5924. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TGetPublisherProfilesByAccountIdResponse) as TGetPublisherProfilesByAccountIdResponse;
  5925. end;
  5926. { --------------------------------------------------------------------
  5927. TAdexchangebuyerAPI
  5928. --------------------------------------------------------------------}
  5929. Class Function TAdexchangebuyerAPI.APIName : String;
  5930. begin
  5931. Result:='adexchangebuyer';
  5932. end;
  5933. Class Function TAdexchangebuyerAPI.APIVersion : String;
  5934. begin
  5935. Result:='v1.4';
  5936. end;
  5937. Class Function TAdexchangebuyerAPI.APIRevision : String;
  5938. begin
  5939. Result:='20160509';
  5940. end;
  5941. Class Function TAdexchangebuyerAPI.APIID : String;
  5942. begin
  5943. Result:='adexchangebuyer:v1.4';
  5944. end;
  5945. Class Function TAdexchangebuyerAPI.APITitle : String;
  5946. begin
  5947. Result:='Ad Exchange Buyer API';
  5948. end;
  5949. Class Function TAdexchangebuyerAPI.APIDescription : String;
  5950. begin
  5951. Result:='Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.';
  5952. end;
  5953. Class Function TAdexchangebuyerAPI.APIOwnerDomain : String;
  5954. begin
  5955. Result:='google.com';
  5956. end;
  5957. Class Function TAdexchangebuyerAPI.APIOwnerName : String;
  5958. begin
  5959. Result:='Google';
  5960. end;
  5961. Class Function TAdexchangebuyerAPI.APIIcon16 : String;
  5962. begin
  5963. Result:='https://www.google.com/images/icons/product/doubleclick-16.gif';
  5964. end;
  5965. Class Function TAdexchangebuyerAPI.APIIcon32 : String;
  5966. begin
  5967. Result:='https://www.google.com/images/icons/product/doubleclick-32.gif';
  5968. end;
  5969. Class Function TAdexchangebuyerAPI.APIdocumentationLink : String;
  5970. begin
  5971. Result:='https://developers.google.com/ad-exchange/buyer-rest';
  5972. end;
  5973. Class Function TAdexchangebuyerAPI.APIrootUrl : string;
  5974. begin
  5975. Result:='https://www.googleapis.com/';
  5976. end;
  5977. Class Function TAdexchangebuyerAPI.APIbasePath : string;
  5978. begin
  5979. Result:='/adexchangebuyer/v1.4/';
  5980. end;
  5981. Class Function TAdexchangebuyerAPI.APIbaseURL : String;
  5982. begin
  5983. Result:='https://www.googleapis.com/adexchangebuyer/v1.4/';
  5984. end;
  5985. Class Function TAdexchangebuyerAPI.APIProtocol : string;
  5986. begin
  5987. Result:='rest';
  5988. end;
  5989. Class Function TAdexchangebuyerAPI.APIservicePath : string;
  5990. begin
  5991. Result:='adexchangebuyer/v1.4/';
  5992. end;
  5993. Class Function TAdexchangebuyerAPI.APIbatchPath : String;
  5994. begin
  5995. Result:='batch';
  5996. end;
  5997. Class Function TAdexchangebuyerAPI.APIAuthScopes : TScopeInfoArray;
  5998. begin
  5999. SetLength(Result,1);
  6000. Result[0].Name:='https://www.googleapis.com/auth/adexchange.buyer';
  6001. Result[0].Description:='Manage your Ad Exchange buyer account configuration';
  6002. end;
  6003. Class Function TAdexchangebuyerAPI.APINeedsAuth : Boolean;
  6004. begin
  6005. Result:=True;
  6006. end;
  6007. Class Procedure TAdexchangebuyerAPI.RegisterAPIResources;
  6008. begin
  6009. TAccountTypebidderLocationItem.RegisterObject;
  6010. TAccount.RegisterObject;
  6011. TAccountsList.RegisterObject;
  6012. TAddOrderDealsRequest.RegisterObject;
  6013. TAddOrderDealsResponse.RegisterObject;
  6014. TAddOrderNotesRequest.RegisterObject;
  6015. TAddOrderNotesResponse.RegisterObject;
  6016. TBillingInfo.RegisterObject;
  6017. TBillingInfoList.RegisterObject;
  6018. TBudget.RegisterObject;
  6019. TBuyer.RegisterObject;
  6020. TContactInformation.RegisterObject;
  6021. TCreateOrdersRequest.RegisterObject;
  6022. TCreateOrdersResponse.RegisterObject;
  6023. TCreativeTypecorrectionsItem.RegisterObject;
  6024. TCreativeTypefilteringReasonsTypereasonsItem.RegisterObject;
  6025. TCreativeTypefilteringReasons.RegisterObject;
  6026. TCreativeTypenativeAdTypeappIcon.RegisterObject;
  6027. TCreativeTypenativeAdTypeimage.RegisterObject;
  6028. TCreativeTypenativeAdTypelogo.RegisterObject;
  6029. TCreativeTypenativeAd.RegisterObject;
  6030. TCreativeTypeservingRestrictionsItemTypecontextsItem.RegisterObject;
  6031. TCreativeTypeservingRestrictionsItemTypedisapprovalReasonsItem.RegisterObject;
  6032. TCreativeTypeservingRestrictionsItem.RegisterObject;
  6033. TCreative.RegisterObject;
  6034. TCreativesList.RegisterObject;
  6035. TDealServingMetadata.RegisterObject;
  6036. TDealServingMetadataDealPauseStatus.RegisterObject;
  6037. TDealTerms.RegisterObject;
  6038. TDealTermsGuaranteedFixedPriceTerms.RegisterObject;
  6039. TDealTermsGuaranteedFixedPriceTermsBillingInfo.RegisterObject;
  6040. TDealTermsNonGuaranteedAuctionTerms.RegisterObject;
  6041. TDealTermsNonGuaranteedFixedPriceTerms.RegisterObject;
  6042. TDeleteOrderDealsRequest.RegisterObject;
  6043. TDeleteOrderDealsResponse.RegisterObject;
  6044. TDeliveryControl.RegisterObject;
  6045. TDeliveryControlFrequencyCap.RegisterObject;
  6046. TDimension.RegisterObject;
  6047. TDimensionDimensionValue.RegisterObject;
  6048. TEditAllOrderDealsRequest.RegisterObject;
  6049. TEditAllOrderDealsResponse.RegisterObject;
  6050. TGetOffersResponse.RegisterObject;
  6051. TGetOrderDealsResponse.RegisterObject;
  6052. TGetOrderNotesResponse.RegisterObject;
  6053. TGetOrdersResponse.RegisterObject;
  6054. TGetPublisherProfilesByAccountIdResponse.RegisterObject;
  6055. TMarketplaceDeal.RegisterObject;
  6056. TMarketplaceDealParty.RegisterObject;
  6057. TMarketplaceLabel.RegisterObject;
  6058. TMarketplaceNote.RegisterObject;
  6059. TPerformanceReport.RegisterObject;
  6060. TPerformanceReportList.RegisterObject;
  6061. TPretargetingConfigTypedimensionsItem.RegisterObject;
  6062. TPretargetingConfigTypeexcludedPlacementsItem.RegisterObject;
  6063. TPretargetingConfigTypeplacementsItem.RegisterObject;
  6064. TPretargetingConfigTypevideoPlayerSizesItem.RegisterObject;
  6065. TPretargetingConfig.RegisterObject;
  6066. TPretargetingConfigList.RegisterObject;
  6067. TPrice.RegisterObject;
  6068. TPricePerBuyer.RegisterObject;
  6069. TPrivateData.RegisterObject;
  6070. TProduct.RegisterObject;
  6071. TProposal.RegisterObject;
  6072. TPublisherProfileApiProto.RegisterObject;
  6073. TPublisherProvidedForecast.RegisterObject;
  6074. TSeller.RegisterObject;
  6075. TSharedTargeting.RegisterObject;
  6076. TTargetingValue.RegisterObject;
  6077. TTargetingValueCreativeSize.RegisterObject;
  6078. TTargetingValueDayPartTargeting.RegisterObject;
  6079. TTargetingValueDayPartTargetingDayPart.RegisterObject;
  6080. TTargetingValueSize.RegisterObject;
  6081. TUpdatePrivateAuctionProposalRequest.RegisterObject;
  6082. end;
  6083. Function TAdexchangebuyerAPI.GetAccountsInstance : TAccountsResource;
  6084. begin
  6085. if (FAccountsInstance=Nil) then
  6086. FAccountsInstance:=CreateAccountsResource;
  6087. Result:=FAccountsInstance;
  6088. end;
  6089. Function TAdexchangebuyerAPI.CreateAccountsResource : TAccountsResource;
  6090. begin
  6091. Result:=CreateAccountsResource(Self);
  6092. end;
  6093. Function TAdexchangebuyerAPI.CreateAccountsResource(AOwner : TComponent) : TAccountsResource;
  6094. begin
  6095. Result:=TAccountsResource.Create(AOwner);
  6096. Result.API:=Self.API;
  6097. end;
  6098. Function TAdexchangebuyerAPI.GetBillingInfoInstance : TBillingInfoResource;
  6099. begin
  6100. if (FBillingInfoInstance=Nil) then
  6101. FBillingInfoInstance:=CreateBillingInfoResource;
  6102. Result:=FBillingInfoInstance;
  6103. end;
  6104. Function TAdexchangebuyerAPI.CreateBillingInfoResource : TBillingInfoResource;
  6105. begin
  6106. Result:=CreateBillingInfoResource(Self);
  6107. end;
  6108. Function TAdexchangebuyerAPI.CreateBillingInfoResource(AOwner : TComponent) : TBillingInfoResource;
  6109. begin
  6110. Result:=TBillingInfoResource.Create(AOwner);
  6111. Result.API:=Self.API;
  6112. end;
  6113. Function TAdexchangebuyerAPI.GetBudgetInstance : TBudgetResource;
  6114. begin
  6115. if (FBudgetInstance=Nil) then
  6116. FBudgetInstance:=CreateBudgetResource;
  6117. Result:=FBudgetInstance;
  6118. end;
  6119. Function TAdexchangebuyerAPI.CreateBudgetResource : TBudgetResource;
  6120. begin
  6121. Result:=CreateBudgetResource(Self);
  6122. end;
  6123. Function TAdexchangebuyerAPI.CreateBudgetResource(AOwner : TComponent) : TBudgetResource;
  6124. begin
  6125. Result:=TBudgetResource.Create(AOwner);
  6126. Result.API:=Self.API;
  6127. end;
  6128. Function TAdexchangebuyerAPI.GetCreativesInstance : TCreativesResource;
  6129. begin
  6130. if (FCreativesInstance=Nil) then
  6131. FCreativesInstance:=CreateCreativesResource;
  6132. Result:=FCreativesInstance;
  6133. end;
  6134. Function TAdexchangebuyerAPI.CreateCreativesResource : TCreativesResource;
  6135. begin
  6136. Result:=CreateCreativesResource(Self);
  6137. end;
  6138. Function TAdexchangebuyerAPI.CreateCreativesResource(AOwner : TComponent) : TCreativesResource;
  6139. begin
  6140. Result:=TCreativesResource.Create(AOwner);
  6141. Result.API:=Self.API;
  6142. end;
  6143. Function TAdexchangebuyerAPI.GetMarketplacedealsInstance : TMarketplacedealsResource;
  6144. begin
  6145. if (FMarketplacedealsInstance=Nil) then
  6146. FMarketplacedealsInstance:=CreateMarketplacedealsResource;
  6147. Result:=FMarketplacedealsInstance;
  6148. end;
  6149. Function TAdexchangebuyerAPI.CreateMarketplacedealsResource : TMarketplacedealsResource;
  6150. begin
  6151. Result:=CreateMarketplacedealsResource(Self);
  6152. end;
  6153. Function TAdexchangebuyerAPI.CreateMarketplacedealsResource(AOwner : TComponent) : TMarketplacedealsResource;
  6154. begin
  6155. Result:=TMarketplacedealsResource.Create(AOwner);
  6156. Result.API:=Self.API;
  6157. end;
  6158. Function TAdexchangebuyerAPI.GetMarketplacenotesInstance : TMarketplacenotesResource;
  6159. begin
  6160. if (FMarketplacenotesInstance=Nil) then
  6161. FMarketplacenotesInstance:=CreateMarketplacenotesResource;
  6162. Result:=FMarketplacenotesInstance;
  6163. end;
  6164. Function TAdexchangebuyerAPI.CreateMarketplacenotesResource : TMarketplacenotesResource;
  6165. begin
  6166. Result:=CreateMarketplacenotesResource(Self);
  6167. end;
  6168. Function TAdexchangebuyerAPI.CreateMarketplacenotesResource(AOwner : TComponent) : TMarketplacenotesResource;
  6169. begin
  6170. Result:=TMarketplacenotesResource.Create(AOwner);
  6171. Result.API:=Self.API;
  6172. end;
  6173. Function TAdexchangebuyerAPI.GetMarketplaceprivateauctionInstance : TMarketplaceprivateauctionResource;
  6174. begin
  6175. if (FMarketplaceprivateauctionInstance=Nil) then
  6176. FMarketplaceprivateauctionInstance:=CreateMarketplaceprivateauctionResource;
  6177. Result:=FMarketplaceprivateauctionInstance;
  6178. end;
  6179. Function TAdexchangebuyerAPI.CreateMarketplaceprivateauctionResource : TMarketplaceprivateauctionResource;
  6180. begin
  6181. Result:=CreateMarketplaceprivateauctionResource(Self);
  6182. end;
  6183. Function TAdexchangebuyerAPI.CreateMarketplaceprivateauctionResource(AOwner : TComponent) : TMarketplaceprivateauctionResource;
  6184. begin
  6185. Result:=TMarketplaceprivateauctionResource.Create(AOwner);
  6186. Result.API:=Self.API;
  6187. end;
  6188. Function TAdexchangebuyerAPI.GetPerformanceReportInstance : TPerformanceReportResource;
  6189. begin
  6190. if (FPerformanceReportInstance=Nil) then
  6191. FPerformanceReportInstance:=CreatePerformanceReportResource;
  6192. Result:=FPerformanceReportInstance;
  6193. end;
  6194. Function TAdexchangebuyerAPI.CreatePerformanceReportResource : TPerformanceReportResource;
  6195. begin
  6196. Result:=CreatePerformanceReportResource(Self);
  6197. end;
  6198. Function TAdexchangebuyerAPI.CreatePerformanceReportResource(AOwner : TComponent) : TPerformanceReportResource;
  6199. begin
  6200. Result:=TPerformanceReportResource.Create(AOwner);
  6201. Result.API:=Self.API;
  6202. end;
  6203. Function TAdexchangebuyerAPI.GetPretargetingConfigInstance : TPretargetingConfigResource;
  6204. begin
  6205. if (FPretargetingConfigInstance=Nil) then
  6206. FPretargetingConfigInstance:=CreatePretargetingConfigResource;
  6207. Result:=FPretargetingConfigInstance;
  6208. end;
  6209. Function TAdexchangebuyerAPI.CreatePretargetingConfigResource : TPretargetingConfigResource;
  6210. begin
  6211. Result:=CreatePretargetingConfigResource(Self);
  6212. end;
  6213. Function TAdexchangebuyerAPI.CreatePretargetingConfigResource(AOwner : TComponent) : TPretargetingConfigResource;
  6214. begin
  6215. Result:=TPretargetingConfigResource.Create(AOwner);
  6216. Result.API:=Self.API;
  6217. end;
  6218. Function TAdexchangebuyerAPI.GetProductsInstance : TProductsResource;
  6219. begin
  6220. if (FProductsInstance=Nil) then
  6221. FProductsInstance:=CreateProductsResource;
  6222. Result:=FProductsInstance;
  6223. end;
  6224. Function TAdexchangebuyerAPI.CreateProductsResource : TProductsResource;
  6225. begin
  6226. Result:=CreateProductsResource(Self);
  6227. end;
  6228. Function TAdexchangebuyerAPI.CreateProductsResource(AOwner : TComponent) : TProductsResource;
  6229. begin
  6230. Result:=TProductsResource.Create(AOwner);
  6231. Result.API:=Self.API;
  6232. end;
  6233. Function TAdexchangebuyerAPI.GetProposalsInstance : TProposalsResource;
  6234. begin
  6235. if (FProposalsInstance=Nil) then
  6236. FProposalsInstance:=CreateProposalsResource;
  6237. Result:=FProposalsInstance;
  6238. end;
  6239. Function TAdexchangebuyerAPI.CreateProposalsResource : TProposalsResource;
  6240. begin
  6241. Result:=CreateProposalsResource(Self);
  6242. end;
  6243. Function TAdexchangebuyerAPI.CreateProposalsResource(AOwner : TComponent) : TProposalsResource;
  6244. begin
  6245. Result:=TProposalsResource.Create(AOwner);
  6246. Result.API:=Self.API;
  6247. end;
  6248. Function TAdexchangebuyerAPI.GetPubprofilesInstance : TPubprofilesResource;
  6249. begin
  6250. if (FPubprofilesInstance=Nil) then
  6251. FPubprofilesInstance:=CreatePubprofilesResource;
  6252. Result:=FPubprofilesInstance;
  6253. end;
  6254. Function TAdexchangebuyerAPI.CreatePubprofilesResource : TPubprofilesResource;
  6255. begin
  6256. Result:=CreatePubprofilesResource(Self);
  6257. end;
  6258. Function TAdexchangebuyerAPI.CreatePubprofilesResource(AOwner : TComponent) : TPubprofilesResource;
  6259. begin
  6260. Result:=TPubprofilesResource.Create(AOwner);
  6261. Result.API:=Self.API;
  6262. end;
  6263. initialization
  6264. TAdexchangebuyerAPI.RegisterAPI;
  6265. end.