PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, June 29, 2022

[FIXED] how to get Campaign name from campaign ID using facebook SDK?

 June 29, 2022     facebook, facebook-business-sdk, facebook-marketing-api, facebook-sdk-4.0, python     No comments   

Issue

I have created a campaign using below code.

fields = []    
params = { 
'name': 'My campaign',
'objective': 'LINK_CLICKS',  
'status': 'PAUSED',
}

AdAccount(id).create_campaign(
  fields=fields,
  params=params,
)

when I try to get campaigns by using below code,

my_account = AdAccount('act_xxxxxxxxx')
campaigns = my_account.get_campaigns()

I'm getting only campaign ID's.

How to know the name of the campaign ID?


Solution

For Future reference to others.

I found the answer. We can check that by adding extra columns in ad manager dashboard. At the right corner there was Plus symbol(+) which is automatic column suggestions are on. Click the customize columns --> In standard events --> settings --> Object names and ID's.



Answered By - shaik moeed
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing