Last 12 weeks · 1 commit
5 of 6 standards met
Repository: facebook/facebook-java-business-sdk. Description: Java SDK for Meta Marketing APIs Stars: 452, Forks: 337. Primary language: Java. Languages: Java (100%), Kotlin (0%), Shell (0%). Homepage: https://developers.facebook.com/docs/business-sdk Latest release: v24.0.1 (3mo ago). Open PRs: 22, open issues: 53. Last activity: 1mo ago. Community health: 75%. Top contributors: jingping2015, JiamingFB, stcheng, satwikareddy3, marksliva, HeyMultiverse, vicdus, dependabot[bot], donglinw-fb, kongxinzhu and others.
Which SDK version are you using? 10.0.1 What's the issue? Apparently, because there is no CALL_NOW between the allowed values of AdCreativeLinkDataCallToAction.EnumType, we are unable to create an AdCreativeObjectStorySpec with CALL_NOW as the CTA for AdCreativeLinkData. We have already tried to use CALL and CALL_ME as replacements, but the Ads Manager fails to recognize them as valid ctas !Screenshot from 2021-05-12 07-50-45 What am I missing here? Steps/Sample code to reproduce the issue 1. Follow the instructions of any documentation or tutorial to create a campaign whose AdCreativeObjectStorySpec has a AdCreativeLinkData that uses GET_DIRECTIONS as CTA 2. Change how AdCreativeLinkDataCallToAction object gets created, replacing its type with VALUE_CALL (or VALUE_CALL_ME) and its value with "tel:+551198765432" Observed Results: Neither CALL or CALL_ME seems a suitable replacement for CALL_NOW; Ads Manager UI is unable to recognize them as valid Expected Results: Ability of using CALL_NOW as CTA or having a good replacement for it. Side notes: Is #182 fixed? when we use VALUE_SHARE as CTA, the API call fails anyway, but it shows a list of valid values and CALL_NOW can be found in that list: BOOK_TRAVEL, CONTACT_US, DONATE, DONATE_NOW, DOWNLOAD, GET_DIRECTIONS, GO_LIVE, INTERESTED, LEARN_MORE, LIKE_PAGE, MESSAGE_PAGE, SAVE, SEND_TIP, SHOP_NOW, SIGN_UP, VIEW_INSTAGRAM_PROFILE, INSTAGRAM_MESSAGE, LOYALTY_LEARN_MORE, PURCHASE_GIFT_CARDS, PAY_TO_ACCESS, GET_MOBILE_APP, INSTALL_MOBILE_APP, USE_MOBILE_APP, INSTALL_APP, USE_APP, PLAY_GAME, WATCH_VIDEO, WATCH_MORE, OPEN_LINK, NO_BUTTON, LISTEN_MUSIC, MOBILE_DOWNLOAD, GET_OFFER, GET_OFFER_VIEW, BUY_NOW, BUY_TICKETS, UPDATE_APP, BET_NOW, ADD_TO_CART, ORDER_NOW, SELL_NOW, GET_SHOWTIMES, LISTEN_NOW, GET_EVENT_TICKETS, SEARCH_MORE, PRE_REGISTER, SWIPE_UP_PRODUCT, SWIPE_UP_SHOP, CALL, MISSED_CALL, CALL_NOW, CALL_ME, APPLY_NOW, BUY, GET_QUOTE, SUBSCRIBE, RECORD_NOW, VOTE_NOW, GIVE_FREE_RIDES, REGISTER_NOW, OPEN_MESSENGER_EXT, EVENT_RSVP, CIVIC_ACTION, SEND_INVITES, REFER_FRIENDS, REQUEST_TIME, SEE_MENU, WHATSAPP_MESSAGE, SEARCH, TRY_IT, TRY_ON, LINK_CARD, DIAL_CODE, FIND_YOUR_GROUPS, START_ORDER
Which SDK version are you using? 16.0 What's the issue? ad and adcreative param is setted,but result is below. com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_subcode":1359187,"is_transient":false,"error_user_title":"Missing Object Store Urls For Cross Channel Optimization Ads","error_user_msg":"When creating cross channel optimization ads, object store urls is required in ad's creative's call to action.","fbtrace_id":"ABOLBxRZcdEhigrs-UkyJde"}} Steps/Sample code to reproduce the issue param is AdCreative adCreative = account.createAdCreative() .setName("测试标题") .setActorId("106058345276245") .setApplinkTreatment(AdCreative.EnumApplinkTreatment.VALUE_AUTOMATIC) .setBody("『超強磁力落下防") .setInstagramActorId("4586881281389023") // .setInstagramUserId("17841450871364493") .setTitle("特別価格868円 ") .setObjectType("VIDEO") .setObjectStorySpec(getAdCreativeObjectStorySpec1()) .setOmnichannelLinkSpec(getOmnichannelLinkSpec()) .setUsePageActorOverride(false) .execute() private static AdCreativeObjectStorySpec getAdCreativeObjectStorySpec1() { AdCreativeObjectStorySpec objectStorySpec = new AdCreativeObjectStorySpec() .setFieldInstagramActorId("4586881281389023") .setFieldPageId("106058345276245") .setFieldLinkData(linkData()); return objectStorySpec; } private static AdCreativeLinkData linkData() { AdCreativeLinkDataCallToAction callToAction = new AdCreativeLinkDataCallToAction(); callToAction.setFieldType(AdCreativeLinkDataCallToAction.EnumType.VALUE_LEARN_MORE);AdCreativeLinkData linkData = new AdCreativeLinkData(); linkData.setFieldCallToAction(callToAction) .setFieldLink("https://www.7sgood.com/att/index.html?attr_page=landing&at_token=1%3A%2F%20JL375%201970101%20%241%201w626ASyI2S") .setFieldName("sample creative") ; return linkData; } Observed Results: What happened? This could be a description, log output, etc. Expected Results: What did you expect to happen? create ad success