Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special Category Ads - new behaviour in 7.0 #1089

Closed
NenadP opened this issue Aug 27, 2020 · 0 comments
Closed

Special Category Ads - new behaviour in 7.0 #1089

NenadP opened this issue Aug 27, 2020 · 0 comments
Assignees
Milestone

Comments

@NenadP
Copy link

NenadP commented Aug 27, 2020

Campaign.java

  @Facebook("special_ad_category")
  private String specialAdCategory;

needs to change or we need additional one like

  @Facebook("special_ad_categories")
  private List<String> specialAdCategories;

https://developers.facebook.com/docs/graph-api/changelog/version7.0

Special Ad Category
This change applies to v7.0+.

The special_ad_category parameter on the POST /act_<AD_ACCOUNT_ID>/campaigns endpoint has been deprecated and replaced with a new special_ad_categories parameter.

The new special_ad_categories parameter is required and accepts an array. If you get the special_ad_category parameter, it will still return a string, but you should use GET /{campaign-id}?fields=special_ad_categories to get an array back.

So, for example, I've published one of my campaigns (thru restFb), and I was (obviously) able to send special_ad_categories as required from Facebook when creating, but I am unable to retrieve it back when reading (using provided DTO's).

For my example, querying campaign using graph api, it will return something like:

{
  "special_ad_categories": [
    "HOUSING",
    "CREDIT",
    "EMPLOYMENT"
  ],
  "special_ad_category": "HOUSING",
  "id": "<CAMPAIGN_ID>"
}

As you can see, existing special_ad_category will not have complete detail.

@nbartels nbartels self-assigned this Aug 27, 2020
@nbartels nbartels added this to the 3.10.0 milestone Aug 27, 2020
nbartels added a commit that referenced this issue Aug 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants