Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-110

CustomerCampaignService: updateAdKeywordDetails only saving 1 ad copy description line

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: Customization Service
    • Labels:
      None
    • Environment:

      optus dev environment

      Description

      On updateAdKeywordDetails request, description2 value is saved as description1, the value for description1 is lost, and the DB saves DESCRIPTION LINE 1 twice

      // soap request

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://thesearchagency.com/smb/core/content_model">
      <soapenv:Header/>
      <soapenv:Body>
      <con:updateAdKeywordDetails>
      <!-Optional:->
      <entityId>593</entityId>
      <!-Optional:->
      <CustomerCampaignAdKwdView>
      <adCopies>
      <!-1 or more repetitions:->
      <adCopy entityId="593" customizableEntityParentId="301" description="Brand - AdCopy" type="AD_COPY">
      <headline headline="Star Of Life CPR"/>
      <description1 description="Need to learn CPR?"/>
      <description2 description="Let us teach you!"/>
      </adCopy>
      </adCopies>
      <keywords>
      <!-1 or more repetitions:->
      <keyword entityId="593" customizableEntityParentId="301" description="Brand - Keyword" type="KEYWORD">
      <keyword keyword="star of life cpr"/>
      <keywordType type="Broad"/>
      <negativeKeyword isNegative="false"/>
      </keyword>
      </keywords>
      <customerCampaign entityId="593" customizableEntityParentId="31" id="301" description="Brand" type="CUSTOMER_CAMPAIGN">
      <businessLocationId id="721" businessLocationId="0"/>
      </customerCampaign>
      </CustomerCampaignAdKwdView>
      </con:updateAdKeywordDetails>
      </soapenv:Body>
      </soapenv:Envelope>

      // DB
      mysql> SELECT * FROM content_model.customizableEntity where entityId=593 and description like 'Brand%';
      -----------------------------------------------------

      id parentId entityId type description

      -----------------------------------------------------

      301 31 593 Customer Campaign Brand
      303 301 593 Ad Copy Brand - AdCopy
      305 301 593 Keyword Brand - Keyword

      -----------------------------------------------------
      3 rows in set (0.04 sec)

      mysql> SELECT * FROM content_model.contentField where customizable_entity_id=303;
      -------------------------------------------------------------------------------------------------------------------------------

      id entityId customizable_entity_id tag content_element_variation_id default_value value customized pinned

      -------------------------------------------------------------------------------------------------------------------------------

      481 593 303 HEADLINE 0 NULL Star Of Life CPR 0 0
      483 593 303 DESCRIPTION LINE 1 0 NULL Let us teach you! 0 0
      485 593 303 DESCRIPTION LINE 1 0 NULL Let us teach you! 0 0

      -------------------------------------------------------------------------------------------------------------------------------
      3 rows in set (0.03 sec)

      // soap request to read details

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://thesearchagency.com/smb/core/content_model">
      <soapenv:Header/>
      <soapenv:Body>
      <con:readAdKeywordDetails>
      <!-Optional:->
      <entityId>593</entityId>
      <!-Optional:->
      <campaignId>301</campaignId>
      </con:readAdKeywordDetails>
      </soapenv:Body>
      </soapenv:Envelope>

      // soap response

      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
      <ns2:readAdKeywordDetailsResponse xmlns:ns2="http://thesearchagency.com/smb/core/content_model">
      <CustomerCampaignAdKwdView>
      <adCopies>
      <adCopy entityId="593" customizableEntityParentId="301" id="303" description="Brand - AdCopy" type="AD_COPY">
      <headline headline="Star Of Life CPR" contentElementVariationId="0" pinned="false" id="481"/>
      <description1 description="Let us teach you!" contentElementVariationId="0" pinned="false" id="485"/>
      <description2 contentElementVariationId="0" pinned="false"/>
      </adCopy>
      </adCopies>
      <keywords>
      <keyword entityId="593" customizableEntityParentId="301" id="305" description="Brand - Keyword" type="KEYWORD">
      <keyword keyword="star of life cpr" id="723"/>
      <keywordType type="Broad" id="725"/>
      <negativeKeyword isNegative="false" id="727"/>
      </keyword>
      </keywords>
      <customerCampaign entityId="593" customizableEntityParentId="31" id="301" description="Brand" type="CUSTOMER_CAMPAIGN">
      <businessLocationId businessLocationId="0" id="721"/>
      </customerCampaign>
      </CustomerCampaignAdKwdView>
      </ns2:readAdKeywordDetailsResponse>
      </soap:Body>
      </soap:Envelope>

        Attachments

          Activity

            People

            • Assignee:
              jason.stedman Jason Stedman (Inactive)
              Reporter:
              caitlyn Caitlyn Duggan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: