@@ -54,7 +54,7 @@ creative_map.save('creative_map')
5454/// tab | curl
5555``` bash
5656curl -X ' POST' \
57- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
57+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
5858 -H ' accept: application/json' \
5959 -H ' Content-Type: application/json' \
6060 -d ' {
@@ -118,7 +118,7 @@ creative_map.save('creative_map')
118118/// tab | curl
119119``` bash hl_lines="10"
120120curl -X ' POST' \
121- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
121+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
122122 -H ' accept: application/json' \
123123 -H ' Content-Type: application/json' \
124124 -d ' {
@@ -174,7 +174,7 @@ creative_map.save('creative_map')
174174/// tab | curl
175175``` bash hl_lines="8-10"
176176curl -X ' POST' \
177- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
177+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
178178 -H ' accept: application/json' \
179179 -H ' Content-Type: application/json' \
180180 -d ' {
@@ -231,7 +231,7 @@ creative_map.save('creative_map')
231231/// tab | curl
232232``` bash hl_lines="8-10"
233233curl -X ' POST' \
234- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
234+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
235235 -H ' accept: application/json' \
236236 -H ' Content-Type: application/json' \
237237 -d ' {
@@ -294,7 +294,7 @@ creative_map.save('creative_map')
294294Expose ` MEDIA_TAGGING_DB_URL ` environmental variable and restart service.
295295``` bash
296296curl -X ' POST' \
297- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
297+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
298298 -H ' accept: application/json' \
299299 -H ' Content-Type: application/json' \
300300 -d ' {
@@ -344,7 +344,7 @@ creative_map.save('creative_map')
344344/// tab | curl
345345``` bash hl_lines="11"
346346curl -X ' POST' \
347- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
347+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
348348 -H ' accept: application/json' \
349349 -H ' Content-Type: application/json' \
350350 -d ' {
@@ -360,7 +360,68 @@ curl -X 'POST' \
360360
361361### Output
362362
363- By default the results are saved into ` creative_map.json ` file in the current folder.
363+ By default the after running ` filonov ` you get a JSON file (` creative_map.json ` ) that contains all necessary information to visualize the results.
364+
365+
366+ #### Dashboardgenerate:
367+
368+ /// tab | cli
369+ ``` bash hl_lines="4-5"
370+ filonov --source googleads --media-type IMAGE \
371+ --tagger gemini \
372+ --googleads.account=GOOGLE_ADS_ACCOUNT_ID \
373+ --output dashboard --writer bq \
374+ --bq.project=BQ_PROJECT --bq.dataset=BQ_DATASETgenerate:
375+ ```
376+ ///
377+
378+ /// tab | python
379+
380+ ``` python hl_lines="10-20"
381+ import filonov
382+
383+ service = filonov.FilonovService()
384+
385+ request = filonov.CreativeMapGenerateRequest(
386+ source = ' googleads' ,
387+ media_type = ' IMAGE' ,
388+ tagger = ' gemini' ,
389+ source_parameters = {' account' : ' GOOGLE_ADS_ACCOUNT_ID' },
390+ output_parameters = {' output' : ' dashboard' },
391+ )
392+
393+ service.generate_dashboard(
394+ request,
395+ writer = ' bq' ,
396+ writer_parameters = {
397+ ' project' : ' BQ_PROJECT' ,
398+ ' dataset' : ' BQ_DATASET'
399+ }
400+ )
401+
402+ ```
403+ ///
404+
405+ /// tab | curl
406+ ``` bash hl_lines="11-13"
407+ curl -X ' POST' \
408+ ' http://127.0.0.1:8000/filonov/creative_map/googleads' \
409+ -H ' accept: application/json' \
410+ -H ' Content-Type: application/json' \
411+ -d ' {
412+ "media_type": "IMAGE",
413+ "tagger": "gemini",
414+ "source_parameters": {
415+ "account": "GOOGLE_ADS_ACCOUNT_ID"
416+ },
417+ "output_parameters": {
418+ "output": "dashboard"
419+ }
420+ }'
421+ ```
422+ ///
423+
424+ #### Map
364425
365426You can overwrite it with ` output-name ` option.
366427
@@ -401,7 +462,7 @@ creative_map.save('creative_map')
401462/// tab | curl
402463``` bash hl_lines="11-13"
403464curl -X ' POST' \
404- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
465+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
405466 -H ' accept: application/json' \
406467 -H ' Content-Type: application/json' \
407468 -d ' {
@@ -464,7 +525,7 @@ creative_map.save('creative_map')
464525/// tab | curl
465526``` bash hl_lines="11"
466527curl -X ' POST' \
467- ' http://127.0.0.1:8000/creative_maps/generate: googleads' \
528+ ' http://127.0.0.1:8000/filonov/creative_map/ googleads' \
468529 -H ' accept: application/json' \
469530 -H ' Content-Type: application/json' \
470531 -d ' {
0 commit comments