Interface UpdateCampaignAssetResponse.Builder

  • Method Details

    • id

      The asset identifier.

      Parameters:
      id - The asset identifier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The asset's state, unchanged.

      An update never moves it, so a live asset stays ACTIVE while its edited values take effect for the next activation. There is no edit-outcome member: a 200 means every submitted value applied, and every failure is a refusal on the call itself (DG-040 Decision 11).

      Parameters:
      state - The asset's state, unchanged.

      An update never moves it, so a live asset stays ACTIVE while its edited values take effect for the next activation. There is no edit-outcome member: a 200 means every submitted value applied, and every failure is a refusal on the call itself (DG-040 Decision 11).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The asset's state, unchanged.

      An update never moves it, so a live asset stays ACTIVE while its edited values take effect for the next activation. There is no edit-outcome member: a 200 means every submitted value applied, and every failure is a refusal on the call itself (DG-040 Decision 11).

      Parameters:
      state - The asset's state, unchanged.

      An update never moves it, so a live asset stays ACTIVE while its edited values take effect for the next activation. There is no edit-outcome member: a 200 means every submitted value applied, and every failure is a refusal on the call itself (DG-040 Decision 11).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • activationIssues

      UpdateCampaignAssetResponse.Builder activationIssues(Collection<ActivationIssue> activationIssues)

      What must be fixed on this asset before it can be activated. Empty when the asset is ready.

      Issues don't block saving: an asset can be saved incomplete and fixed over several updates. StartCampaignAssetActivationTask refuses an asset that still has issues: an issue blocks activation when only an edit to the asset can change the outcome. Most issues name the field to fix in FieldId. Fix it with UpdateCampaignAsset, then read this list again.

      Besides the issues computed from the asset's content, the list carries what the last activation found: CONTENT_REJECTED and PARTNER_IMAGE_REJECTED when moderation refused a field. Editing that field removes its issue. A CONTENT_REJECTED without a FieldId means the text was refused as a whole; editing any text field removes it.

      Problems with the campaign's own settings, such as a missing recipient list, and with the partner's profile, such as a missing logo, are reported on Campaign.ActivationIssues, not here.

      Parameters:
      activationIssues - What must be fixed on this asset before it can be activated. Empty when the asset is ready.

      Issues don't block saving: an asset can be saved incomplete and fixed over several updates. StartCampaignAssetActivationTask refuses an asset that still has issues: an issue blocks activation when only an edit to the asset can change the outcome. Most issues name the field to fix in FieldId. Fix it with UpdateCampaignAsset, then read this list again.

      Besides the issues computed from the asset's content, the list carries what the last activation found: CONTENT_REJECTED and PARTNER_IMAGE_REJECTED when moderation refused a field. Editing that field removes its issue. A CONTENT_REJECTED without a FieldId means the text was refused as a whole; editing any text field removes it.

      Problems with the campaign's own settings, such as a missing recipient list, and with the partner's profile, such as a missing logo, are reported on Campaign.ActivationIssues, not here.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activationIssues

      UpdateCampaignAssetResponse.Builder activationIssues(ActivationIssue... activationIssues)

      What must be fixed on this asset before it can be activated. Empty when the asset is ready.

      Issues don't block saving: an asset can be saved incomplete and fixed over several updates. StartCampaignAssetActivationTask refuses an asset that still has issues: an issue blocks activation when only an edit to the asset can change the outcome. Most issues name the field to fix in FieldId. Fix it with UpdateCampaignAsset, then read this list again.

      Besides the issues computed from the asset's content, the list carries what the last activation found: CONTENT_REJECTED and PARTNER_IMAGE_REJECTED when moderation refused a field. Editing that field removes its issue. A CONTENT_REJECTED without a FieldId means the text was refused as a whole; editing any text field removes it.

      Problems with the campaign's own settings, such as a missing recipient list, and with the partner's profile, such as a missing logo, are reported on Campaign.ActivationIssues, not here.

      Parameters:
      activationIssues - What must be fixed on this asset before it can be activated. Empty when the asset is ready.

      Issues don't block saving: an asset can be saved incomplete and fixed over several updates. StartCampaignAssetActivationTask refuses an asset that still has issues: an issue blocks activation when only an edit to the asset can change the outcome. Most issues name the field to fix in FieldId. Fix it with UpdateCampaignAsset, then read this list again.

      Besides the issues computed from the asset's content, the list carries what the last activation found: CONTENT_REJECTED and PARTNER_IMAGE_REJECTED when moderation refused a field. Editing that field removes its issue. A CONTENT_REJECTED without a FieldId means the text was refused as a whole; editing any text field removes it.

      Problems with the campaign's own settings, such as a missing recipient list, and with the partner's profile, such as a missing logo, are reported on Campaign.ActivationIssues, not here.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activationIssues

      What must be fixed on this asset before it can be activated. Empty when the asset is ready.

      Issues don't block saving: an asset can be saved incomplete and fixed over several updates. StartCampaignAssetActivationTask refuses an asset that still has issues: an issue blocks activation when only an edit to the asset can change the outcome. Most issues name the field to fix in FieldId. Fix it with UpdateCampaignAsset, then read this list again.

      Besides the issues computed from the asset's content, the list carries what the last activation found: CONTENT_REJECTED and PARTNER_IMAGE_REJECTED when moderation refused a field. Editing that field removes its issue. A CONTENT_REJECTED without a FieldId means the text was refused as a whole; editing any text field removes it.

      Problems with the campaign's own settings, such as a missing recipient list, and with the partner's profile, such as a missing logo, are reported on Campaign.ActivationIssues, not here.

      This is a convenience method that creates an instance of the ActivationIssue.Builder avoiding the need to create one manually via ActivationIssue.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to activationIssues(List<ActivationIssue>).

      Parameters:
      activationIssues - a consumer that will call methods on ActivationIssue.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: