GithubHelp home page GithubHelp logo

Comments (4)

guxuoss avatar guxuoss commented on April 20, 2024

Thanks for reporting Ads API SDK bug!

Have you populate the instance of AdCreativeLinkDataCallToActionValue with couple of "setField..." calls like this:

AdCreativeLinkDataCallToActionValue value = new AdCreativeLinkDataCallToActionValue();
value.setFieldLinkTitle("This is Title")
  .setFieldLinkDescription("This is Description")
  .setFieldLink("http://link");

Please help us understand and debug your issues with more examples.

from facebook-java-business-sdk.

prfxn avatar prfxn commented on April 20, 2024

This is how we are using it -

adCreativeObjectStorySpec.setFieldVideoData(
    new AdCreativeVideoData()
        ..
        .setFieldCallToAction(
            new AdCreativeLinkDataCallToAction()
                .setFieldType(..)
                .setFieldValue(
                    new AdCreativeLinkDataCallToActionValue()
                        .setFieldLink(link)
                        .setFieldLinkCaption(caption)
                        .setFieldLinkDescription(description)
                        .setFieldLinkTitle(title)
                )
        )
        ..
)

then we set adCreativeObjectStorySpec on an APIRequestCreateAdCreative, to create the adCreative

from facebook-java-business-sdk.

guxuoss avatar guxuoss commented on April 20, 2024

We still cannot repo the issue from our side. Can you check whether the Json string you are using is the same with what you set on AdCreativeLinkDataCallToActionValue. The only possibility I can image is that some special characters cannot be correctly handled by our encoder but your own JSON serializer did a good job. It would be great if you can also provide your JSON string to allow us repo.

If you are not comfortable to share, could you provide trace ids of your calls or ids of these creatives? We need some data to repo your issue.

from facebook-java-business-sdk.

guxuoss avatar guxuoss commented on April 20, 2024

Close this issue as we cannot repo.

from facebook-java-business-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.