cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Marketing Cloud - problem to authenticate FB campaign

former_member607457
Participant
0 Kudos

Hello dear experts,

I came across with the issue to authenticate a FB campaign. I did not get my FB app approved by FB (refer to attachment). Do you know any best practice how to be able to run FB campaigns in SAP Marketing Cloud.

sandeepmkh
Explorer
0 Kudos

Hi Alex Jakuba,

Please try to authenticate the Marketing cloud campaign with the FB APP in Development status (not live yet)

If the authentication is successful, you can edit the campaign to see the add accounts.

You can make the app live only after you have the app approved with Ads Management standard access given to it.

There are set of rules on which the FB app will be approved, you can follow the link sent by Kunal, along with this you need to make API calls using graph designed tool of Facebook.

Regards,

Sandeep Kulkarni

Accepted Solutions (0)

Answers (4)

Answers (4)

Kunal_Bansal
Active Contributor
sandeepmkh
Explorer
0 Kudos

Hi Alex,

Here is the sample payload.

act_509XXXXXXX61/insights?fields=campaign_id,campaign_name,actions,impressions,spend,inline_link_clicks≤vel=campaign&filtering=[{'field': 'campaign.id','operator': 'IN', 'value':['614XXXXX5166']}]&time_range={'since':'2019-04-21','until':'2019-06-30'} &time_increment=1

where: 509XXXXXXXX61 – is the Add account ID which can be seen when select the add account for authentication

Campaign ID: '614XXXXX5166' – which is generated after the sync takes places from marketing system – or you can use an existing or running campaign ID also.

Also I wanted to know if the authentication is successful and you are able to see the Ad account?

sandeepmkh
Explorer
0 Kudos

Hi Alex, Please follow the steps below


i) Go to graph explorer
https://developers.facebook.com/tools/explorer/
ii) select your app which you are planning to submit
click 'Get token' button, and click 'get user access token'
iii) select checkbox 'ads_management' and click 'Get access token' and type the below url in after /v3.3/..
act_XXX/insights?fields=campaign_id,campaign_name,actions,impressions,spend,inline_link_clicks≤vel=campaign&filtering=[{'field': 'campaign.id','operator': 'IN', 'value':['YYY']}]&time_range={'since':'2019-04-21','until':'2019-06-30'} &time_increment=1
iv) submit
You can continue clicking submit button as long as you get error. You can repeat after some minutes or hour based on ad account limit.

Please use your Facebook Adaccount replacing 'XXX'of above URL.

Please use your Facebook campaign replacing 'YYY' of above URL.

Once you have the API calls above 150 then follow the steps (8 onwards) from the blog :

https://blogs.sap.com/2019/03/15/sap-marketing-cloud-how-to-create-a-facebook-app-for-campaign-and-c...

Regards,

Sandeep Kulkarni

former_member607457
Participant
0 Kudos

Hello Sandeep Kulkarni,

Thank you for your response.

What is an example for:

- Facebook Adaccount

- Facebook campaign

So I can type in an exact value?

Is this a correct set up for clicking submit button:

Is the URL syntaxis right here?

me?fields=id,nameact_XXX/insights?fields=campaign_id,campaign_name,actions,impressions,spend,inline_link_clicks≤vel=campaign&filtering=[{'field': 'campaign.id','operator': 'IN', 'value':['YYY']}]&time_range={'since':'2019-04-21','until':'2019-06-30'} &time_increment=1

Thank you for your response in advance,

Alex.

sandeepmkh
Explorer
0 Kudos

Hi Alex Jakuba,

Please try to authenticate the Marketing cloud campaign with the FB APP in Development status (not live yet)

If the authentication is successful, you can edit the campaign to see the add accounts.

You can make the app live only after you have the app approved with Ads Management standard access given to it.

There are set of rules on which the FB app will be approved, you can follow the link sent by Kunal, along with this you need to make API calls using graph designer tool of Facebook.

Regards,

Sandeep Kulkarni

former_member607457
Participant
0 Kudos

Hi Sandeep Kulkarni,

Thank you for your response. Can you please provide some guidance in how to make API calls using graph designer tool of Facebook. Where I can find it? How to use it?

Thank you,

Alex.