#REM #ENDREM #IF(#DEFINED(#GoogleAdsCampaign)) #IF(#FormError AND #FormErrors.Error.DeletionFailed)

{ErrorCampaignDeletion}

#ENDIF

{GoogleSmartShoppingCampaignTitle1}

#REM#ENDREM
#REM#ENDREM

{GoogleSmartShoppingCampaignSubTitle1}

#REM#ENDREM #IF(#ErrorGettingExistingCampaign)

{ErrorGettingExistingCampaign}

#ELSIF(#RatedProductsStatistics AND #RatedProductsStatistics.TooManyDisapproved)

{TooManyDisapprovedCampaignPageWarning1}

{TooManyDisapprovedCampaignPageWarning2}

#ELSIF(#RatedProductsStatistics AND #RatedProductsStatistics.TooManyPending)

#IF(#RatedProductsStatistics.active == 1) {TooManyPendingCampaignPageWarning1Singular} #ELSE {TooManyPendingCampaignPageWarning1Plural} #ENDIF

{TooManyPendingCampaignPageWarning2}

#ELSIF(#RatedProductsStatistics AND #RatedProductsStatistics.IsNotEnoughActive)

#IF(#RatedProductsStatistics.active == 1) {NotEnoughActiveCampaignPageWarningSingular} #ELSE {NotEnoughActiveCampaignPageWarningPlural} #ENDIF

#ENDIF
#REM#ENDREM
#LOCAL("Alternate", 0) #IF(#DEFINED(#GoogleAdsCampaign) AND #GoogleAdsCampaign.name) #WITH(#GoogleAdsCampaign) #SET("Alternate",1-#Alternate) #ENDWITH #ENDIF #ENDLOCAL
{TableColumnCampaign} {TableColDailyBudget} {TableColumnStatus} {TableColumnClicks}{TableColumnClicksTooltipText} {TableColumnCost}{TableColumnCostTooltipText} {TableColumnConversions}{TableColumnConversionsTooltipText} {TableColumnConversionValue}{TableColumnConversionValueTooltipText} {TableColumnProductPerformance}
{MoreDetailedStatistics}
#name #FUNCTION("FORMAT", #dailyBudget.amount, "money") #IF(#status EQ "ENABLED") {CampaignStatusActive} #ELSE {CampaignStatusPaused} #ENDIF #clicks #FUNCTION("FORMAT", #cost.amount, "money") #conversions #FUNCTION("FORMAT", #conversionsValue.amount, "money") {ShowProductsPerformanceDetails} #LOCAL("Currency", #CURRENCY(#cost.currency)) #ENDLOCAL
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #REM#ENDREM

{GoogleSmartShoppingCampaignTitle2}

{GoogleSmartShoppingCampaignSubTitle2}

{TimePeriod1}
{TimePeriod1Title}

{TimePeriod1Description}

{TimePeriod3}
{TimePeriod3Title}

{TimePeriod3Description}

#REM#ENDREM
#REM#ENDREM #REM#ENDREM #REM#ENDREM #REM#ENDREM #REM#ENDREM #REM#ENDREM
#REM #ENDREM
#REM#ENDREM #ELSE #REM#ENDREM #BLOCK("WITH_FORM_ERROR",#FormError)
#REM#ENDREM

{GoogleSmartShoppingCampaignsPagePromoHeader1}

{GoogleSmartShoppingCampaignsPagePromoHeader2}

#IF(#FormError AND #FormErrors.Error.CampaignCreationFailedNoMerchantCenterLink)

{ErrorCampaignCreationMerchantCenterNotLinked}

#ELSIF(#FormError AND #FormErrors.Error.CampaignCreationFailed)

{ErrorCampaignCreation}

#ELSIF(#ForbidCampaignCreation AND NOT #ForbidCampaignCreation.IsOnboardingComplete)

{ForbidCampaignCreationOnboarding}

#ELSIF(#RatedProductsStatistics AND #RatedProductsStatistics.total == 0)

{NoActiveProductsLandingPageWarning}

#ELSIF(#RatedProductsStatistics AND #RatedProductsStatistics.active == 0)
#IF(#RatedProductsStatistics.TooManyPending)

{NoActiveProductsAndTooManyPendingLandingPageWarning1}

{NoActiveProductsAndTooManyPendingLandingPageWarning2}

#ELSIF(#RatedProductsStatistics.TooManyDisapproved)

{NoActiveProductsAndTooManyDisapprovedLandingPageWarning}

#ELSE

{NoActiveProductsLandingPageWarning}

#ENDIF
#ELSIF(#RatedProductsStatistics) #IF( #RatedProductsStatistics.IsNotEnoughActive)

#IF(#RatedProductsStatistics.active == 1) {NotEnoughActiveProductsCampaignLandingPageWarningSingular} #ELSE {NotEnoughActiveProductsCampaignLandingPageWarningPlural} #ENDIF

#ELSE #IF( #RatedProductsStatistics.TooManyDisapproved)

{TooManyDisapprovedProductsCampaignLandingPageWarning1}

{TooManyDisapprovedProductsCampaignLandingPageWarning2}

#ENDIF #IF( #RatedProductsStatistics.TooManyPending)

{TooManyPendingProductsCampaignLandingPageWarning1}

{TooManyPendingProductsCampaignLandingPageWarning2}

#ENDIF #ENDIF #ENDIF
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDBLOCK #REM #ENDREM #IF(#CampaignCreationAllowed OR #Shop.IsInternalTestShop AND NOT #ForbidCampaignCreation) #REM#ENDREM #ENDIF #ENDIF