Create & update Facebook Ads with an API: Tutorial

Поділитися
Вставка
  • Опубліковано 11 лип 2024
  • Managing too many Facebook ad accounts and looking to automate campaign creation& management?
    Learn to update and create ads via Facebook Marketing API.
    In this Facebook API tutorial, we will show you how you can programmatically update the status of an ad, adset, or campaign using Graph API. The best part of it - you can do it for multiple ads at once.
    Also, did you know that you can create many Facebook ads with a click of a button with Facebook Marketing API? Watch this tutorial to learn how to create Facebook ads and automatically upload media into the desired ad account.
    You will need access to a live Facebook Ad Account and a Facebook App, including an access token. If you don't have the latter, make sure to check the last webinar: www.youtube.com/watch?v=to4uT...
    If you want to work with the Facebook Marketing API but do NOT want to go through technical documentation or handle authentication yourself, check out Kitchn.io.
    Timecodes:
    00:00 Intro
    00:57 Select existing ad (id)
    02:55 Read out all information about the ad:
    GET /AD-ID?fields=id,name,creative,tracking_specs
    07:55 Pick the ad creative id
    09:35 Read ad creative
    GET /AD-ID?fields=id,object_story_spec,url_tags
    13:55 Create new ad creative
    POST /act_AD-ACCOUNT-ID/adcreatives?fields=id,object_story_spec,url_tags with JSON from previous call
    21:20 Edit ad: Attach new ad creative to the existing ad
    POST /AD-ID?fields=creative with JSON referring "creative_id"
    27:50 Create a new ad with new ad creative
    #facebookads #facebookadsapi #facebookmarketingapi #performancemarketing #scripting g
  • Наука та технологія

КОМЕНТАРІ • 32

  • @gaminginn6072
    @gaminginn6072 3 роки тому

    big fan sir, keep making videos please

  • @JingruChen-wn3if
    @JingruChen-wn3if 2 дні тому

    The link of the video to access to a live Facebook Ad Account and a Facebook App doesn't work

  • @TheFeroz6
    @TheFeroz6 3 роки тому +1

    I am a big fan of your videos
    Loved it..expecting more videos.

    • @kitchnio
      @kitchnio  3 роки тому

      Thank you so much 😀

  • @user-bo2xl8qm6q
    @user-bo2xl8qm6q 6 місяців тому

    Man, this was insane! It was the first tutorial I saw regarding Graph API, and it just blew my mind with the possibilities. You explain really well. Maybe you should launch an online course for paid media professionals and noobs in API, haha.

    • @kitchnio
      @kitchnio  2 місяці тому

      Ha, appreciate it! :)

  • @grigio7737
    @grigio7737 3 роки тому +1

    Mate this is incredibly helpful - thank you!
    How would the process change if you wanted to edit the primary text without creating a new ad? ie. Emulating what Facebook does when you edit the creative and it creates a new ad in the background? I was hoping to update ad copy every day or two automatically, but it'd be ideal if 30+ ads weren't appearing in each adset each month!
    Thanks again and really appreciate your work 🙂

  • @robbadhorn9259
    @robbadhorn9259 3 роки тому

    Hi Very Nice! Great videos! When Making a Saved Audience via API, I want to target and address, but also create for 4 Excludes Drop pins (Lat/Lons) that then lessen the Original Address to smaller than 1 Mile. How many Addresses + $ Excludes Address can you load into one ad? Or in one Saved Audience via API?

  • @manojkumar-nw7lh
    @manojkumar-nw7lh 2 роки тому

    video is very helpful.By any chance do you know how to test the ads insights when developing using marketing API?

  • @harshvardhangoyal5362
    @harshvardhangoyal5362 2 роки тому

    Hi, thanks for this amazing video. And others that you have on Facebook ads. Really helped with my project. The thing I am still unclear about is how to set public policy and access the facebooks business account of a client when you are not the root user, if you can point me in the right direction that would be great!

  • @kezy2695
    @kezy2695 3 роки тому

    Hi, do you know how to sort results on ad edge? Something like that: act_ID/ads?fields=name,id&sort=insights.sort(reach_descending), but actually it does not work!

  • @sumaprakash9046
    @sumaprakash9046 Рік тому

    hai!, amazing video in fact helped me to be implementing with my project but am not able to post ads using creative id, throw error while hitting api something like,"Add a valid payment method to your ad account.", can we post ads without pay when do the testing purpose?my test app which in development mode

  • @user-bo2xl8qm6q
    @user-bo2xl8qm6q 5 місяців тому

    How can I get the left fields menu shown at 4:40? My interface does not have it.

  • @SEHacker
    @SEHacker 2 роки тому

    Hello, can you show me how to publish AdCreative object_story_spec on api?

  • @rajneeshmishra2149
    @rajneeshmishra2149 Рік тому

    Is it necessary to ad money to get ad data in graph api explorer??

  • @snippetshub
    @snippetshub Рік тому

    Anyone knows how to use the Graph API shown here to get the info on other companies' campaigns?

  • @kapusietv3382
    @kapusietv3382 3 роки тому

    Can I change call to action button to "LIKE PAGE"?

  • @duytruongnguyen9068
    @duytruongnguyen9068 3 роки тому

    Can you ask me about this 1 problem?

  • @duchoang3265
    @duchoang3265 3 роки тому

    Hi, I'm having a problem at 20:43. When I submit I got an error "Ads creative post was created by an app that is in development mode. It must be in public to create this ad.". If I change my app mode from Development to Live, I can't set the permission to access the data in Graph Explorer. Can you help me with this, please?

    • @ChunkeyDrummer
      @ChunkeyDrummer Рік тому

      Hi! I have the same issue, did you solve it?

  • @dwikydinandra8966
    @dwikydinandra8966 3 роки тому

    Nice dudes! Will you make for the website version? like how to make an insight of facebook ads api to your own webapps?

    • @kitchnio
      @kitchnio  3 роки тому

      Thanks! What in particular do you have in mind?

    • @dwikydinandra8966
      @dwikydinandra8966 3 роки тому

      @@kitchnio I think you can show the clicks response from ads, or anything you need to do monitoring the ads from your own webapp

  • @kezy2695
    @kezy2695 3 роки тому +1

    Hi, will you make the same series about google ads api?

    • @kitchnio
      @kitchnio  3 роки тому +1

      Hey! We'll start doing some of these in the future, for sure! What in particular are you trying to do with the Google Ads API?

    • @kezy2695
      @kezy2695 3 роки тому

      @@kitchnio download all ads with a preview of their photos/videos

    • @kitchnio
      @kitchnio  3 роки тому

      So this would be for Display or UA-cam/Video or is that also relevant in Search/Shopping?

    • @kezy2695
      @kezy2695 3 роки тому

      @@kitchnio All :)

  • @rubenrayadelgado4594
    @rubenrayadelgado4594 Рік тому +2

    there's any way to get all comments from the Ad?

    • @eduardosuarez3807
      @eduardosuarez3807 2 місяці тому

      Hi ! Did you find the solution? I have the same issue.

  • @CongNguyen-zz8iy
    @CongNguyen-zz8iy 3 роки тому

    I'm using Graph API Explorer on developer facebook to add some fields to my campaign with step:
    Add field: method POST, /campaign_id/?a1=a2
    Get field: method GET , /campaign_id/?fields=a1 -> error, can't see a2
    {
    "error": {
    "message": "(#100) Tried accessing nonexisting field (a1) on node type (Ad)",
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "Ap-8WpxFN-x2CsCtjXXLuol"
    }
    }
    I have some permission:
    read_insights
    ads_management
    ads_read
    public_profile
    I think I'm using the wrong method or miss permission