# Mapping Flow to Campaign

* Once the campaign is created, it needs to be mapped with the CTWA Flow in case of Conversion Objective and an utterance needs to be created as shown below:

<figure><img src="https://303644337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTdWohNbJyoGc4vPpxk1%2Fuploads%2FW238llMOLMpwCSVuJvl4%2Fimage.png?alt=media&#x26;token=932a2b30-f2e8-454a-898c-b5e3baccb50c" alt=""><figcaption></figcaption></figure>

METHODS TO FETCH AD SOURCE ID :

* Directly From Ads Manager -

There is a separate Ad ID which can be taken from Ads Manager while the campaign is set up and needs to be asked from the client so that it can be used directly

* From Logs -

1.) Get the preview link for the ad from the client and ask them to keep the campaign on paused state till ad source id is configured

2.) Start the flow using the name on respective number and check the logs using the below details to fetch ad source id

Kibana access to check ad source ID

{% embed url="<https://mycls.limechat.ai/app/discover>" %}

user: elastic

pass: 8F417e155eFP05IdPxnXgC8K

`Company easy name for Elastic query : <https://metabase.limechat.ai/question#eyJkYXRhc2V0X3F1ZXJ5Ijp7ImRhdGFiYXNlIjo1MiwidHlwZSI6InF1ZXJ5IiwicXVlcnkiOnsic291cmNlLXRhYmxlIjozMDczfX0sImRpc3BsYXkiOiJ0YWJsZSIsInZpc3VhbGl6YXRpb25fc2V0dGluZ3MiOnsidGFibGUuY29sdW1uX3dpZHRocyI6W251bGwsbnVsbCxudWxsLDE0NV19fQ==`>

* Select CTWA Query
* Select “bot” logs
* Change brand name in the query
* Choose “display\_id” from conversation url on helpdesk
* Go to the recent log and get ad\_source\_id from there in JSON

<figure><img src="https://303644337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTdWohNbJyoGc4vPpxk1%2Fuploads%2FMSH597b2dc7v7rsWP6QM%2Fimage.png?alt=media&#x26;token=8e003820-091e-40a9-9a91-a6aa2f1dffa4" alt=""><figcaption></figcaption></figure>
